select: Fix "warning: no previous prototype for function".
[gnulib.git] / ChangeLog
blob3698ba011d80c82242e5b152211ca7fe9e76da44
1 2020-09-05  Bruno Haible  <bruno@clisp.org>
3         select: Fix "warning: no previous prototype for function".
4         * lib/select.c: Include <sys/select.h>.
6 2020-09-05  Bruno Haible  <bruno@clisp.org>
8         Use module 'c99' when needed for variadic macros with '...' syntax.
9         * modules/crypto/sm3 (Depends-on): Add c99.
11 2020-09-05  Bruno Haible  <bruno@clisp.org>
13         Use module 'c99' when needed for subobject initializer syntax.
14         * modules/tempname (Depends-on): Add c99.
15         * modules/nstrftime-tests (Depends-on): Likewise.
17 2020-09-05  Bruno Haible  <bruno@clisp.org>
19         Use module 'c99' when needed for declaration-after-statement syntax.
20         * modules/backup-rename (Depends-on): Add c99.
21         * modules/backupfile (Depends-on): Likewise.
22         * modules/bitset-tests (Depends-on): Likewise.
23         * modules/bitsetv (Depends-on): Likewise.
24         * modules/c-strtod (Depends-on): Likewise.
25         * modules/c-strtold (Depends-on): Likewise.
26         * modules/clean-temp (Depends-on): Likewise.
27         * modules/copy-file (Depends-on): Likewise.
28         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
29         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
30         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
31         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
32         * modules/crypto/md5-buffer (Depends-on): Likewise.
33         * modules/crypto/md5-tests (Depends-on): Likewise.
34         * modules/crypto/sha1-buffer (Depends-on): Likewise.
35         * modules/crypto/sha1-tests (Depends-on): Likewise.
36         * modules/crypto/sha256-buffer (Depends-on): Likewise.
37         * modules/crypto/sha256-tests (Depends-on): Likewise.
38         * modules/crypto/sha512-buffer (Depends-on): Likewise.
39         * modules/crypto/sha512-tests (Depends-on): Likewise.
40         * modules/diffseq (Depends-on): Likewise.
41         * modules/fatal-signal (Depends-on): Likewise.
42         * modules/fchmodat (Depends-on): Likewise.
43         * modules/fstrcmp (Depends-on): Likewise.
44         * modules/fsusage (Depends-on): Likewise.
45         * modules/fts (Depends-on): Likewise.
46         * modules/fts-tests (Depends-on): Likewise.
47         * modules/getumask (Depends-on): Likewise.
48         * modules/git-merge-changelog (Depends-on): Likewise.
49         * modules/hash-map (Depends-on): Likewise.
50         * modules/hash-set (Depends-on): Likewise.
51         * modules/lchmod (Depends-on): Likewise.
52         * modules/libgmp-tests (Depends-on): Likewise.
53         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
54         * modules/linkedhash-map (Depends-on): Likewise.
55         * modules/linkedhash-set (Depends-on): Likewise.
56         * modules/long-options (Depends-on): Likewise.
57         * modules/mbrtoc32 (Depends-on): Likewise.
58         * modules/memchr2-tests (Depends-on): Likewise.
59         * modules/memmem-tests (Depends-on): Likewise.
60         * modules/memrchr-tests (Depends-on): Likewise.
61         * modules/mktime-internal (Depends-on): Likewise.
62         * modules/nstrftime (Depends-on): Likewise.
63         * modules/opendirat (Depends-on): Likewise.
64         * modules/parse-datetime (Depends-on): Likewise.
65         * modules/quotearg-simple-tests (Depends-on): Likewise.
66         * modules/same (Depends-on): Likewise.
67         * modules/supersede (Depends-on): Likewise.
68         * modules/supersede-tests (Depends-on): Likewise.
69         * modules/time_rz (Depends-on): Likewise.
70         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
71         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
72         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
73         * modules/xalloc (Depends-on): Likewise.
74         * modules/xnanosleep (Depends-on): Likewise.
76 2020-09-05  Bruno Haible  <bruno@clisp.org>
78         Fix "warning: array initialized from parenthesized string constant".
79         * tests/test-memmem.c (main): Remove parentheses around string constant.
80         * tests/test-c-strcasestr.c (main): Likewise.
81         * tests/test-strcasestr.c (main): Likewise.
83 2020-09-05  Bruno Haible  <bruno@clisp.org>
85         argmatch tests: Fix ISO C compliance warning.
86         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
87         invocation.
89 2020-09-05  Bruno Haible  <bruno@clisp.org>
91         uniname/uniname: Fix -Wshadow warning.
92         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
93         * modules/uniname/uniname (Depends-on): Add c99.
95 2020-09-05  Bruno Haible  <bruno@clisp.org>
97         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
98         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
99         argument to size_t.
100         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
101         n to size_t.
103 2020-09-05  Bruno Haible  <bruno@clisp.org>
105         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
106         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
107         u32_uctomb): Change type of last argument to ptrdiff_t.
108         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
109         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
110         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
111         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
112         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
114 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116         manywarnings: remove -Wchkp and -Wabi from C++ too
117         Suggested by Reuben Thomas in:
118         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
119         At some point somebody should merge the many other manywarnings-c.m4
120         changes into manywarnings-c++.m4 too, e.g.,
121         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
122         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
123         Remove -Wchkp, -Wabi.
125 2020-08-30  Bruno Haible  <bruno@clisp.org>
127         strerrorname_np: Add tests.
128         * tests/test-strerrorname_np.c: New file.
129         * modules/strerrorname_np-tests: New file.
131         strerrorname_np: New module.
132         * lib/string.in.h (strerrorname_np): New declaration.
133         * lib/strerrorname_np.c: New file.
134         * m4/strerrorname_np.m4: New file.
135         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
136         is declared.
137         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
138         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
139         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
140         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
141         * modules/strerrorname_np: New file.
142         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
143         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
144         the glibc 2.32 bug.
146 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
148         perror, strerror_r: remove unportable tests
149         Problem reported by Florian Weimer in:
150         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
151         * tests/test-perror2.c (main):
152         * tests/test-strerror_r.c (main): Omit unportable tests.
154 2020-08-26  Bruno Haible  <bruno@clisp.org>
156         stdint, wchar, wctype-h: Change configure message.
157         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
158         enough..." instead of "checking whether wint_t is too small...".
160 2020-08-26  Bruno Haible  <bruno@clisp.org>
162         time_rz: Change configure message.
163         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
164         near extrema..." instead of "checking whether localtime loops forever
165         near extrema...".
167 2020-08-26  Bruno Haible  <bruno@clisp.org>
169         stdint: Change configure message.
170         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
171         without ISO C predefines..." instead of "checking whether stdint.h
172         predates C++11...".
174 2020-08-26  Bruno Haible  <bruno@clisp.org>
176         socketlib: Change configure message.
177         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
178         instead of "checking if we need to call WSAStartup in winsock2.h and
179         -lws2_32...".
181 2020-08-26  Bruno Haible  <bruno@clisp.org>
183         include_next: Change configure message.
184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
185         code line length is unlimited..." instead of "checking whether system
186         header files limit the line length...".
188 2020-08-26  Bruno Haible  <bruno@clisp.org>
190         getcwd: Change configure message.
191         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
192         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
193         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
195 2020-08-26  Bruno Haible  <bruno@clisp.org>
197         chdir-long: Change configure message.
198         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
199         system supports file names of any length..." instead of "checking
200         whether this system has an arbitrary file name length limit...".
201         Set gl_cv_have_unlimited_file_name_length instead of
202         gl_cv_have_arbitrary_file_name_length_limit.
203         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
205 2020-08-26  Bruno Haible  <bruno@clisp.org>
207         ceill: Change configure message.
208         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
209         instead of "checking whether ceill() breaks with small values...".
211 2020-08-26  Bruno Haible  <bruno@clisp.org>
213         iconv: Change configure message.
214         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
215         with its POSIX signature..." instead of "checking for iconv
216         declaration...". Remove K&R C support.
218 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
220         getcwd: help the merge back into glibc
221         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
222         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
223         The idea is to make it easier for Gnulib lib/getcwd.c to match
224         glibc io/getcwd-generic.c.
225         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
226         Include not-cancel.h.
227         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
228         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
229         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
230         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
231         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
232         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
233         (__getcwd_generic): Rename from __getcwd.
234         Use the abovementioned macros for consistency with glibc.
235         (weak_alias): Remove.
237 2020-08-25  Bruno Haible  <bruno@clisp.org>
239         verify: Avoid warnings when assume(0) is used.
240         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
241         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
242         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
243         the constant 0.
244         * tests/test-verify.c (f): New function.
245         (state): New type.
246         (test_assume_expressions, test_assume_optimization,
247         test_assume_noreturn): New functions.
249 2020-08-25  Bruno Haible  <bruno@clisp.org>
251         fstrcmp: Clarification regarding NOTE_ORDERED.
252         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
254 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
256         diffseq: new option NOTE_ORDERED
257         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
258         * NEWS: Mention this.
259         * lib/diffseq.h (NOTE_ORDERED): New macro.
260         (IF_LINT2): Remove; no longer needed.
261         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
262         subproblem and iterate to do the larger.
264 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
266         sys_types: let Autoconf 2.70 do pid_t
267         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
268         only for Autoconf versions 2.69 and earlier, since 2.70
269         will be fixed.
271 2020-08-23  Bruno Haible  <bruno@clisp.org>
273         tests: Don't assume that pid_t fits in an 'int'.
274         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
275         of 'int'.
276         * tests/test-nonblocking-socket-main.c (main): Likewise.
278         sys_types: Fix definition of pid_t on 64-bit MSVC.
279         * m4/pid_t.m4: New file.
280         * modules/sys_types (Files): Add it.
281         * modules/dirent (Files): Likewise.
282         * modules/fcntl-h (Files): Likewise.
283         * modules/sched (Files): Likewise.
284         * modules/signal-h (Files): Likewise.
285         * modules/spawn (Files): Likewise.
286         * modules/sys_stat (Files): Likewise.
287         * modules/sys_wait (Files): Likewise.
288         * modules/termios (Files): Likewise.
289         * modules/unistd (Files): Likewise.
291 2020-08-23  Bruno Haible  <bruno@clisp.org>
293         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
294         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
295         program.
297 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
299         intprops: be consistent about +X vs X+0
300         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
302         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
303         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
304         is a bit-field, on older GCC or non-GCC compilers where we do
305         things ourselves instead of using __builtin_mul_overflow.
306         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
307         to applying sizeof to a bit-field.
308         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
309         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
311 2020-08-23  Bruno Haible  <bruno@clisp.org>
313         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
314         Reported by Jörg Sonnenberger <joerg@netbsd.org>
315         via Thomas Klausner <tk@giga.or.at> in
316         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
317         * lib/supersede.c (open_supersede): When opening an existing non-regular
318         file on Solaris, use O_CREAT although it should not be necessary.
320 2020-08-23  Bruno Haible  <bruno@clisp.org>
322         verify: Make assume work on bit field expressions (regr. 2020-08-22).
323         Reported by Benno Schulenberg <bensberg@telfort.nl> in
324         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
325         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
326         variable.
328 2020-08-23  Bruno Haible  <bruno@clisp.org>
330         libc-config: Improve comments.
331         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
332         cannot use clang's __diagnose_if__ here.
334 2020-08-22  Bruno Haible  <bruno@clisp.org>
336         verify: Do use __builtin_assume on clang.
337         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
338         variable in a statement expression.
340 2020-08-22  Bruno Haible  <bruno@clisp.org>
342         sig2str: Add more signals.
343         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
345 2020-08-22  Bruno Haible  <bruno@clisp.org>
347         doc: Update for OpenBSD 6.0, 6.7.
348         * doc/*/*.texi: Update.
349         * m4/printf.m4: Update comments and cross-compilation guesses.
350         * m4/ceill.m4: Update comments.
351         * m4/getcwd-abort-bug.m4: Likewise.
352         * m4/ilogb.m4: Likewise.
353         * m4/ilogbf.m4: Likewise.
354         * m4/langinfo_h.m4: Likewise.
355         * m4/modf.m4: Likewise.
356         * m4/modff.m4: Likewise.
358 2020-08-22  Bruno Haible  <bruno@clisp.org>
360         doc: Mention sig2str module.
361         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
363 2020-08-21  Bruno Haible  <bruno@clisp.org>
365         sigdescr_np: Add tests.
366         * tests/test-sigdescr_np.c: New file.
367         * modules/sigdescr_np-tests: New file.
369         sigdescr_np: New module.
370         * lib/string.in.h (sigdescr_np): New declaration.
371         * lib/sigdescr_np.c: New file.
372         * m4/sigdescr_np.m4: New file.
373         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
374         declared.
375         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
376         HAVE_SIGDESCR_NP.
377         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
378         HAVE_SIGDESCR_NP.
379         * modules/sigdescr_np: New file.
380         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
381         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
383 2020-08-20  Bruno Haible  <bruno@clisp.org>
385         sigabbrev_np: Add tests.
386         * tests/test-sigabbrev_np.c: New file.
387         * modules/sigabbrev_np-tests: New file.
389         sigabbrev_np: New module.
390         * lib/string.in.h (sigabbrev_np): New declaration.
391         * lib/sigabbrev_np.c: New file.
392         * m4/sigabbrev_np.m4: New file.
393         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
394         declared.
395         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
396         HAVE_SIGABBREV_NP.
397         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
398         HAVE_SIGABBREV_NP.
399         * modules/sigabbrev_np: New file.
400         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
401         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
403 2020-08-20  Bruno Haible  <bruno@clisp.org>
405         stdalign tests: Skip test with AIX xlclang.
406         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
408 2020-08-20  Bruno Haible  <bruno@clisp.org>
410         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
411         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
412         workaround as for GCC versions < 4.9.
414 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
416         Sync up ProjectQuirks comments and documentation
417         Transform the ProjectQuirks comments into a docstring so that it can
418         be accessed from python as ProjectQuirks.__doc__ and harmonize
419         descriptions with the documentation.
420         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
421         Transform comments into a docstring.
422         * doc/vcs-to-changelog.texi: Sync up description with comments.
424         Split ProjectQuirks out into its own file
425         ProjectQuirks is used by external quirks files and importing it from
426         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
427         is cleaner to put it in its own file anyway.
428         * build-aux/vcstocl/projectquirks.py: A new file...
429         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
430         we move ProjectQuirks and import the file.
432 2020-08-19  Bruno Haible  <bruno@clisp.org>
434         uchar: Fix compilation errors in C++ mode on macOS.
435         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
436         system header file before attempting to use 'char16_t' and 'char32_t'.
438 2020-08-19  Bruno Haible  <bruno@clisp.org>
440         ansi-c++-opt: Work around an autoconf macro reordering problem.
441         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
442         section.
444 2020-08-19  Bruno Haible  <bruno@clisp.org>
446         math C++ tests: Fix compilation error in with GCC 10.
447         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
448         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
449         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
451 2020-08-19  Bruno Haible  <bruno@clisp.org>
453         uchar: Fix compilation errors in C++ mode on OpenBSD.
454         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
455         CXX_HAS_UCHAR_TYPES is 1.
456         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
457         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
458         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
460 2020-08-19  Bruno Haible  <bruno@clisp.org>
462         Fix compilation errors in C++ mode on OpenBSD.
463         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
464         OpenBSD with clang, use the approach without C preprocessor macro.
466 2020-08-18  Bruno Haible  <bruno@clisp.org>
468         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
469         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
470         AC_LANG_POP.
472 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
474         verify: avoid __built_assume on Clang
475         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
476         Clang 9 incorrectly diagnoses arguments as having side effects
477         even when they do not.  I guess Clang 9 considers any function
478         call as if it had a side effect here.
480         libc-config: avoid Clang’s __diagnose_if__
481         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
482         For now, do not use __diagnose_if__ here, as this fails
483         on Fedora 31 with Clang 9.0.1, with diagnostic
484         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
485         size than length of destination buffer
486         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
487         for functions that are not called?
489         careadlinkat: speedup for GCC 10 with GCC_LINT
490         Inspired by a suggestion by Bruno Haible in:
491         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
492         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
493         (readlink_stk): New function, with most of the old careadlinkat
494         contents and with a new STACK_BUF arg.  Inline it in GCC 10
495         if GCC_LINT.
496         (careadlinkat): Use the new function for everything but the
497         stack buffer.
499         * build-aux/gcc-warning.spec: Update comments.
501 2020-08-17  Bruno Haible  <bruno@clisp.org>
503         Assume autoconf >= 2.64.
504         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
506 2020-08-17  Bruno Haible  <bruno@clisp.org>
508         Revert autoupdate's revert.
509         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
511 2020-08-17  Bruno Haible  <bruno@clisp.org>
513         uchar C++ tests: Fix build error on FreeBSD 12.
514         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
515         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
516         <cuchar> does not exist.
518 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
520         time_rz: remove unused functions
521         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
523         time_rz: fix issues with mktime_z failures
524         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
525         Use a cheaper tm_yday test for failed mktime.
527 2020-08-16  Bruno Haible  <bruno@clisp.org>
529         intprops test: Strengthen on clang.
530         * tests/test-intprops.c (VERIFY): Use verify_stmt.
532 2020-08-16  Bruno Haible  <bruno@clisp.org>
534         nstrftime: Guide inlining also on clang.
535         * lib/nstrftime.c (iso_week_days): Inline also on clang.
537 2020-08-16  Bruno Haible  <bruno@clisp.org>
539         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
540         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
542 2020-08-16  Bruno Haible  <bruno@clisp.org>
544         log2l: Disable MSVC workaround on clang.
545         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
547 2020-08-16  Bruno Haible  <bruno@clisp.org>
549         argp: Emit a warning also with clang.
550         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
551         clang.
553 2020-08-16  Bruno Haible  <bruno@clisp.org>
555         libc-config: Enable __REDIRECT macro also on clang.
556         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
557         __ASMNAME2): Define on clang like on GCC.
559 2020-08-16  Bruno Haible  <bruno@clisp.org>
561         regex: Use initializer shorthand syntax also with clang.
562         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
563         with clang.
565 2020-08-16  Bruno Haible  <bruno@clisp.org>
567         regex: Use space optimization also with clang.
568         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
569         with clang.
571 2020-08-16  Bruno Haible  <bruno@clisp.org>
573         Use _Static_assert and static_assert primitives when present on clang.
574         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
575         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
576         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
578 2020-08-16  Bruno Haible  <bruno@clisp.org>
580         Use 'throw ()' for optimization in C++ mode also on clang.
581         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
582         * lib/getopt-cdefs.in.h (__THROW): Likewise.
583         * lib/md5.h (__THROW): Likewise.
585 2020-08-16  Bruno Haible  <bruno@clisp.org>
587         absolute-header: Add support for clang.
588         * modules/absolute-header (Makefile.am): Include '__clang__' in the
589         HAVE_INCLUDE_NEXT expression.
591 2020-08-16  Bruno Haible  <bruno@clisp.org>
593         Fix "warning: implicitly declaring library function 'strcasecmp'".
594         * lib/argp-help.c: Include <strings.h>.
596 2020-08-16  Bruno Haible  <bruno@clisp.org>
598         stdio: Don't break attribute 'scanf' on clang.
599         * lib/stdio.in.h (scanf): Treat clang like GCC.
601 2020-08-16  Bruno Haible  <bruno@clisp.org>
603         Use __restrict also on clang.
604         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
605         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
606         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
608 2020-08-16  Bruno Haible  <bruno@clisp.org>
610         pthread-spin: Use GCC built-ins also on clang.
611         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
612         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
613         also on clang.
615 2020-08-16  Bruno Haible  <bruno@clisp.org>
617         asyncsafe-spin tests: Update.
618         * tests/test-asyncsafe-spin2.c: Update to match the change in
619         lib/asyncsafe-spin.c from 2020-08-11.
621 2020-08-16  Bruno Haible  <bruno@clisp.org>
623         setenv: Use tree code also with clang.
624         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
626 2020-08-16  Bruno Haible  <bruno@clisp.org>
628         math: Optimize signbit also on clang.
629         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
630         on clang.
632 2020-08-16  Bruno Haible  <bruno@clisp.org>
634         avltreehash-list, rbtreehash-list: Optimize also on clang.
635         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
636         __builtin_expect also on clang.
638 2020-08-16  Bruno Haible  <bruno@clisp.org>
640         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
641         * lib/socket.c: Use WSASocketW, not WSASocketA.
643         Fix "warning: format specifies type 'unsigned long'".
644         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
645         argument to match the format directive.
647         Fix "warning: no case matching constant switch condition '0'".
648         * tests/test-fcntl.c (check_flags): Add a 'default' case.
650         Fix "warning: integer overflow in expression".
651         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
652         remove a 'long' overflow.
654         Fix "warning: "getpagesize" redefined".
655         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
656         macro.
658         Fix "warning: implicitly declaring library function 'strncasecmp'".
659         * lib/strptime.c: Include <strings.h>.
661         Fix "warning: 'snprintf' macro redefined".
662         * lib/strerror_r.c (snprintf): Undefine before redefining.
664         Fix "warning: address of array 'locale' will always evaluate to 'true'".
665         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
667         Fix "warning: '__stat64' macro redefined".
668         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
670         Fix "warning: 'format' attribute argument not supported: rpl_printf".
671         * lib/stdio.in.h (printf): Treat clang like GCC.
673         Fix "warning: attribute declaration must precede definition" with clang.
674         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
675         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
676         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
677         on non-glibc systems.
678         * lib/netdb.in.h (gai_strerror): Likewise.
679         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
680         * lib/sys_stat.in.h (fstat): Likewise.
681         * lib/utime.in.h (utime): Likewise.
683         Fix undesired warnings.
684         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
685         clang.
687 2020-08-16  Bruno Haible  <bruno@clisp.org>
689         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
690         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
691         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
692         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
693         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
695 2020-08-16  Bruno Haible  <bruno@clisp.org>
697         Don't use Autoconf quadrigraphs.
698         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
699         Autoconf quadrigraph.
700         * m4/free.m4 (gl_FUNC_FREE): Likewise.
701         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
702         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
703         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
704         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
705         * m4/math_h.m4 (gl_MATH_H): Likewise.
706         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
708 2020-08-16  Bruno Haible  <bruno@clisp.org>
710         Fix quoting of AC_LANG_PROGRAM arguments.
711         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
712         arguments through [[...]].
713         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
714         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
716         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
717         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
718         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
719         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
720         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
721         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
722         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
723         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
724         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
725         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
727 2020-08-16  Bruno Haible  <bruno@clisp.org>
729         Assume autoconf >= 2.64.
730         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
731         * DEPENDENCIES: Require Autoconf 2.64 or newer.
732         * NEWS: Mention the changed requirement.
733         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
734         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
735         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
736         variables.
737         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
738         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
739         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
740         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
741         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
742         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
743         Likewise.
744         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
745         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
746         * m4/configmake.m4: Update comment.
748 2020-08-16  Bruno Haible  <bruno@clisp.org>
750         sys_ioctl: Simplify.
751         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
752         AC_INCLUDES_DEFAULT.
754 2020-08-16  Bruno Haible  <bruno@clisp.org>
756         Fix quoting of AC_LANG_SOURCE arguments.
757         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
758         GL_NOCRASH expansion.
759         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
760         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
761         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
762         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
763         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
765 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
767         nstrftime: be more predictable about errno
768         This aligns nstrftime better with draft POSIX 202x strftime.
769         * lib/nstrftime.c: Include errno.h.
770         (width_add, __strftime_internal): Set errno on failure,
771         and preserve it on success.  Check for mktime_z failure.
772         * modules/nstrftime (Depends-on): Add errno.
773         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
774         * tests/test-nstrftime.c: Include intprops.h, limits.h.
775         (errno_test): New test function.
776         (main): Call it.
778 2020-08-15  Bruno Haible  <bruno@clisp.org>
780         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
782         from dependency analysis first.
784 2020-08-15  Bruno Haible  <bruno@clisp.org>
786         Determine asm output option and filename suffix for MSVC/clang.
787         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
788         clang-cl.
790 2020-08-15  Bruno Haible  <bruno@clisp.org>
792         doc: Update for MSVC/clang.
793         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
794         that MSVC 14 does not have.
796 2020-08-15  Bruno Haible  <bruno@clisp.org>
798         Revert autoupdate's revert.
799         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
801 2020-08-15  Bruno Haible  <bruno@clisp.org>
803         frexpl: Fix configuration test result on MSVC.
804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
805         zero.
807 2020-08-15  Bruno Haible  <bruno@clisp.org>
809         Support compiling without -loldnames on native Windows.
810         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
811         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
812         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
813         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
814         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
816         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
817         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
818         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
819         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
820         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
821         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
822         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
823         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
824         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
825         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
826         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
827         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
829         Likewise.
830         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
831         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
832         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
833         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
834         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
835         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
836         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
837         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
838         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
839         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
840         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
841         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
842         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
843         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
844         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
845         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
846         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
847         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
848         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
849         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
850         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
851         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
852         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
853         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
854         * m4/utimens.m4 (gl_UTIMENS): Likewise.
855         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
856         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
857         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
858         test for getcwd.
859         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
860         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
861         with GL_MDA_DEFINES.
862         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
863         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
864         prefixed symbol.
865         * lib/search.in.h (lfind, lsearch): Likewise.
866         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
867         Likewise.
868         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
869         * lib/string.in.h (memccpy, strdup): Likewise.
870         * lib/sys_stat.in.h (chmod, umask): Likewise.
871         * lib/time.in.h (tzset): Likewise.
872         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
873         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
874         read, rmdir, swab, unlink, write): Likewise.
875         * lib/utime.in.h (utime): Likewise.
876         * lib/wchar.in.h (wcsdup): Likewise.
877         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
878         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
879         rpl_-prefixed macro.
880         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
881         * lib/close.c (close_nothrow): On native Windows, use _close.
882         * lib/creat.c (orig_creat): On native Windows, use _creat.
883         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
884         * lib/dup2.c (dup2_nothrow): Use _dup2.
885         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
886         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
887         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
888         * lib/open.c (orig_open): On native Windows, use _open.
889         * lib/read.c (read_nothrow): Use _read.
890         * lib/rmdir.c: On native Windows, use _rmdir.
891         * lib/unlink.c: On native Windows, use _unlink.
892         * lib/write.c (write_nothrow): Use _write.
893         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
894         undefined symbol.
895         * lib/sys_socket.in.h (close): Likewise.
896         * lib/sys_time.in.h (close): Likewise.
897         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
899 2020-08-15  Bruno Haible  <bruno@clisp.org>
901         Fix "unknown pragma ignored" warnings with clang on native Windows.
902         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
903         * lib/cbrtf.c: Likewise.
904         * lib/ceil.c: Likewise.
905         * lib/floor.c: Likewise.
906         * lib/fma.c: Likewise.
907         * lib/fmod.c: Likewise.
908         * lib/rint.c: Likewise.
909         * lib/round.c: Likewise.
910         * lib/trunc.c: Likewise.
911         * tests/test-ceil2.c: Likewise.
912         * tests/test-ceilf2.c: Likewise.
913         * tests/test-floor2.c: Likewise.
914         * tests/test-floorf2.c: Likewise.
915         * tests/test-trunc2.c: Likewise.
916         * tests/test-truncf2.c: Likewise.
917         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
918         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
920 2020-08-15  Bruno Haible  <bruno@clisp.org>
922         Fix compilation errors in C++ mode with clang on native Windows.
923         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
924         non-glibc systems.
925         * lib/sched.in.h (sched_yield): Likewise.
927 2020-08-14  Bruno Haible  <bruno@clisp.org>
929         stdnoreturn: Work around problem with MSVC/clang.
930         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
931         system header after <stdnoreturn.h>.
932         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
934 2020-08-14  Bruno Haible  <bruno@clisp.org>
936         utime-h: Generate an utime.h file always.
937         * modules/utime-h (Makefile.am): Generate utime.h always.
938         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
939         GL_GENERATE_UTIME_H.
941 2020-08-14  Bruno Haible  <bruno@clisp.org>
943         mktime, mktime-internal: Remove obsolete code.
944         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
946 2020-08-14  Bruno Haible  <bruno@clisp.org>
948         getcwd: Remove obsolete code.
949         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
950         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
952 2020-08-14  Bruno Haible  <bruno@clisp.org>
954         tzset: Assume the function exists.
955         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
956         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
957         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
958         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
959         HAVE_TZSET.
960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
961         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
963         nstrftime: Assume tzset exists.
964         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
965         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
966         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
968         mktime, mktime-internal: Assume tzset exists.
969         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
970         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
972 2020-08-14  Bruno Haible  <bruno@clisp.org>
974         strdup: Assume the function exists.
975         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
976         whether strdup exists.
977         * modules/strdup (Files): Remove lib/strdup.c.
978         (configure.ac): Don't compile strdup.c.
979         * modules/strdup-posix (Depends-on, configure.ac): Don't test
980         ac_cv_func_strdup.
981         * doc/posix-functions/strdup.texi: Update.
982         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
983         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
984         (Depends-on): Remove unistr/u8-strlen.
986 2020-08-13  Bruno Haible  <bruno@clisp.org>
988         sys_random: Work around an uClibc bug.
989         Reported by akater <nuclearspace@gmail.com>
990         via Stefan Kangas <stefan@marxist.se>
991         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
992         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
993         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
994         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
995         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
997 2020-08-12  Bruno Haible  <bruno@clisp.org>
999         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
1000         Reported by Florian Weimer in
1001         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
1002         * lib/gen-uni-tables.c (output_predicate): Change the element type of
1003         the level3 array to 'unsigned int'.
1004         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
1005         * lib/unictype/categ_*.h: Regenerated.
1006         * lib/unictype/ctype_*.h: Regenerated.
1007         * lib/unictype/pr_*.h: Regenerated.
1008         * lib/unictype/sy_*.h: Regenerated.
1009         * lib/unicase/cased.h: Regenerated.
1010         * lib/unicase/ignorable.h: Regenerated.
1012 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1014         stdint: port intptr_t to more-recent MinGW
1015         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
1016         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
1017         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
1018         Apparently those two macros were removed in mingwrt-3.22
1019         dated 2016-07-14.
1021 2020-08-12  Bruno Haible  <bruno@clisp.org>
1023         thread-optim: Export function-like macros only.
1024         Suggested by Paul Eggert.
1025         * lib/thread-optim.h (gl_multithreaded): New macro.
1026         (IF_MT_DECL, IF_MT): Remove macros.
1027         * doc/multithread.texi (Multithreading Optimizations): Add a small
1028         example.
1029         * lib/fatal-signal.c: Update all uses.
1030         * lib/clean-temp.c: Likewise.
1031         * lib/localename.c: Likewise.
1032         * modules/localename (Depends-on): Add stdbool.
1034 2020-08-12  Bruno Haible  <bruno@clisp.org>
1036         Revert autoupdate's revert.
1037         * config/srclist.txt: Mark regex.h as needing sync with glibc.
1039 2020-08-11  Bruno Haible  <bruno@clisp.org>
1041         thread-optim: Fix a compiler warning.
1042         * lib/thread-optim.h (IF_MT_DECL): Define differently.
1044 2020-08-11  Bruno Haible  <bruno@clisp.org>
1046         Use __restrict also on clang.
1047         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
1048         (__restrict_arr): On clang, define like on GCC.
1049         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
1050         (_Restrict_arr_): Use _Restrict_ also on clang.
1051         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
1052         (_Restrict_arr_): Use _Restrict_ also on clang.
1054 2020-08-11  Bruno Haible  <bruno@clisp.org>
1056         Use flexible array syntax also on clang.
1057         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
1058         define like for GCC 3.
1060 2020-08-11  Bruno Haible  <bruno@clisp.org>
1062         fcntl: On native Windows, use _setmode, not setmode.
1063         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
1064         * lib/binary-io.h: Update comment.
1065         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
1066         * tests/test-dup2.c: Likewise.
1067         * tests/test-dup-safer.c: Likewise.
1068         * tests/test-fcntl.c: Likewise.
1070 2020-08-11  Bruno Haible  <bruno@clisp.org>
1072         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
1073         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
1074         * lib/spawn-pipe.c (create_pipe): Likewise.
1075         * tests/test-nonblocking-pipe-main.c (main): Likewise.
1076         * tests/test-nonblocking-socket-main.c (main): Likewise.
1077         * lib/wait-process.c: Update comment.
1078         * doc/posix-functions/fork.texi: Update.
1080 2020-08-11  Bruno Haible  <bruno@clisp.org>
1082         asyncsafe-spin: Use GCC built-ins also on clang.
1083         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
1084         the newer GCC built-ins also on clang.
1086 2020-08-11  Bruno Haible  <bruno@clisp.org>
1088         Use expression statements also on clang.
1089         * lib/cdefs.h (__extension__): Don't define to empty on clang.
1090         * lib/obstack.h (__extension__): Likewise.
1091         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
1092         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
1093         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
1094         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
1095         obstack_finish, obstack_free): Enable as optimized macros also on clang.
1096         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
1098 2020-08-10  Bruno Haible  <bruno@clisp.org>
1100         Use many __attribute__s with clang.
1101         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
1102         on clang.
1103         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
1104         New macros.
1105         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
1106         on clang.
1107         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
1108         also on older clang versions.
1109         (__attribute__): Don't define to empty on clang.
1110         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
1111         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
1112         (__attribute_const__): Use __attribute__ __const__ also on clang.
1113         (__attribute_used__): Use __attribute__ __used__ also on clang.
1114         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
1115         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
1116         clang.
1117         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
1118         clang.
1119         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
1120         also on clang.
1121         (__nonnull): Use __attribute__ __nonnull__ also on clang.
1122         (__attribute_warn_unused_result__): Use __attribute__
1123         __warn_unused_result__ also on clang.
1124         (__always_inline): Use __attribute__ __always_inline__ also on clang.
1125         (__attribute_artificial__): Use __attribute__ __artificial__ also on
1126         clang >= 7.
1127         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
1128         clang versions.
1129         (_Noreturn): Don't redefine on clang >= 3.5.
1130         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
1131         also on clang.
1132         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
1133         on clang.
1134         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1135         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1136         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1137         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
1138         also on clang.
1139         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1140         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
1141         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
1142         also on clang.
1143         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
1144         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
1145         __attribute__ __noreturn__ also on clang.
1146         * lib/obstack.h (__attribute_noreturn__): Likewise.
1147         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
1148         clang.
1149         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
1150         always_inline also on clang.
1151         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
1152         clang.
1154 2020-08-10  Bruno Haible  <bruno@clisp.org>
1156         c-ldtoastr tests: Fix test failure.
1157         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
1158         is longer than 'double'.
1160 2020-08-10  Bruno Haible  <bruno@clisp.org>
1162         Revert autoupdate's revert.
1163         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
1165 2020-08-09  Bruno Haible  <bruno@clisp.org>
1167         string: Fix build error in C++ mode with clang (regression from today).
1168         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
1169         parameters, one for GCC, one for clang.
1170         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
1171         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
1172         as return type.
1174 2020-08-09  Bruno Haible  <bruno@clisp.org>
1176         ftruncate: Use _chsize, not chsize.
1177         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
1178         * lib/ftruncate.c: Test HAVE__CHSIZE.
1179         (chsize_nothrow): Use _chsize, not chsize.
1181 2020-08-09  Bruno Haible  <bruno@clisp.org>
1183         Silence warnings from clang 10 with -Wimplicit-fallthrough.
1184         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
1185         clang >= 10.
1186         * lib/fnmatch.c (FALLTHROUGH): Likewise.
1187         * lib/fts.c (FALLTHROUGH): Likewise.
1188         * tests/macros.h (FALLTHROUGH): Likewise.
1189         * lib/regex_internal.h (FALLTHROUGH): Likewise.
1190         * config/srclist.txt: Mark it as needing sync with glibc.
1192 2020-08-09  Bruno Haible  <bruno@clisp.org>
1194         stdbool tests: Enable the stricter tests also on clang.
1195         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
1196         (e): Enable the address-to-bool conversion test also on clang.
1198 2020-08-09  Bruno Haible  <bruno@clisp.org>
1200         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
1201         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
1203 2020-08-09  Bruno Haible  <bruno@clisp.org>
1205         Use attribute __aligned__ with clang.
1206         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
1207         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
1209 2020-08-09  Bruno Haible  <bruno@clisp.org>
1211         Use __alignof__ with clang.
1212         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
1213         on clang.
1214         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
1215         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
1216         clang.
1217         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
1218         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
1219         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
1220         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
1222 2020-08-09  Bruno Haible  <bruno@clisp.org>
1224         ignore-value: Simplify on clang.
1225         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
1226         workaround.
1228 2020-08-09  Bruno Haible  <bruno@clisp.org>
1230         Use __typeof__ with clang.
1231         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
1232         "clang -std=gnu99".
1233         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
1234         * tests/test-stdint.c (verify_same_types): Enable the check also on
1235         clang.
1237 2020-08-09  Bruno Haible  <bruno@clisp.org>
1239         Add ability to emit user-defined warnings and errors with clang.
1240         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
1241         _GL_ATTRIBUTE_WARNING using an attribute for clang.
1242         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
1243         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
1244         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
1245         attribute for clang.
1247 2020-08-09  Bruno Haible  <bruno@clisp.org>
1249         intprops: Fix typo in comment.
1250         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
1252 2020-08-09  Bruno Haible  <bruno@clisp.org>
1254         Use __builtin_signbit* with clang.
1255         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
1256         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
1257         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1259         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1260         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
1261         not REPLACE_SIGNBIT_USING_GCC.
1263 2020-08-09  Bruno Haible  <bruno@clisp.org>
1265         Use __builtin_isnan with clang.
1266         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1267         not __builtin_isnanf. Also on clang.
1268         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
1269         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
1270         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
1271         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
1272         built-in.
1273         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1274         not __builtin_isnanl. Also on clang.
1275         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
1276         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
1277         * lib/math.in.h (__has_builtin): Remove macro.
1278         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
1279         __builtin_isnanf. Also on clang.
1280         (isnand, gl_isnan_d): With clang, use the GCC built-in.
1281         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
1282         __builtin_isnanl. Also on clang.
1283         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
1284         on clang.
1286 2020-08-09  Bruno Haible  <bruno@clisp.org>
1288         thread-optim: Fix logic error.
1289         Reported by Paul Eggert.
1290         * lib/thread-optim.h (IF_MT): Fix logic error.
1292 2020-08-08  Bruno Haible  <bruno@clisp.org>
1294         localename: Use module 'thread-optim'.
1295         * lib/localename.c: Include thread-optim.h.
1296         (struniq): Use IF_MT macro.
1297         * modules/localename (Depends-on): Add thread-optim.
1299         clean-temp: Use module 'thread-optim'.
1300         * lib/clean-temp.c: Include thread-optim.h.
1301         (register_temporary_file, unregister_temporary_file, create_temp_dir,
1302         register_temp_file, unregister_temp_file, register_temp_subdir,
1303         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
1304         close_temp, fclose_variant_temp): Use IF_MT macro.
1305         * modules/clean-temp (Depends-on): Add thread-optim.
1307         fatal-signal: Use module 'thread-optim'.
1308         * lib/fatal-signal.c: Include thread-optim.h.
1309         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
1310         macro.
1311         * modules/fatal-signal (Depends-on): Add thread-optim.
1313 2020-08-08  Bruno Haible  <bruno@clisp.org>
1315         New module 'thread-optim'.
1316         * lib/thread-optim.h: New file.
1317         * modules/thread-optim: New file.
1318         * doc/multithread.texi (Multithreading Optimizations): New section.
1320 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
1322         doc: more updates for glibc 2.32
1323         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
1324         * doc/posix-functions/fchmodat.texi: Update.
1326 2020-08-07  Bruno Haible  <bruno@clisp.org>
1328         doc: Update for glibc 2.32.
1329         * doc/glibc-functions/__libc_single_threaded.texi: New file.
1330         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
1331         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
1332         * doc/glibc-functions/sigabbrev_np.texi: New file.
1333         * doc/glibc-functions/sigdescr_np.texi: New file.
1334         * doc/glibc-functions/strerrordesc_np.texi: New file.
1335         * doc/glibc-functions/strerrorname_np.texi: New file.
1336         * doc/gnulib.texi: Include them.
1337         (Glibc sys/single_threaded.h): New section.
1338         * doc/pastposix-functions/h_errno.texi: Update.
1339         * doc/posix-functions/*.texi: Likewise.
1340         * doc/glibc-functions/*.texi: Likewise.
1342 2020-08-07  Bruno Haible  <bruno@clisp.org>
1344         alloca: No need to compile alloca.c with clang.
1345         * lib/alloca.c: Skip all code with clang.
1347         Use __builtin_alloca with clang.
1348         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
1350 2020-08-06  Bruno Haible  <bruno@clisp.org>
1352         Use __builtin_assume with clang.
1353         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
1354         (assume): Use __builtin_assume when available.
1356 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1358         libgmp: add <gmp/gmp.h> support
1359         * m4/libgmp.m4 (gl_LIBGMP):
1360         * modules/libgmp (configure.ac, Makefile.am):
1361         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
1362         ‘#include <gmp.h>’.
1364 2020-08-06  Bruno Haible  <bruno@clisp.org>
1366         Consider that clang defines __OPTIMIZE__ like GCC does.
1367         * lib/streq.h: Define the inline functions also on clang.
1368         * lib/c-strcaseeq.h: Likewise.
1369         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
1370         the GCC workaround to clang.
1372 2020-08-06  Bruno Haible  <bruno@clisp.org>
1374         safe-alloc: Remove unused code.
1375         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
1377 2020-08-06  Bruno Haible  <bruno@clisp.org>
1379         Use __builtin_expect with clang everywhere.
1380         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
1381         also on clang.
1383 2020-08-05  Bruno Haible  <bruno@clisp.org>
1385         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
1386         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
1387         built-in also on clang.
1388         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
1389         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
1391 2020-08-05  Bruno Haible  <bruno@clisp.org>
1393         Use __builtin_clz{,l,ll} with clang, also on Windows.
1394         * lib/integer_length.c: With clang, use the GCC built-in, not
1395         <intrin.h>.
1396         * lib/integer_length_l.c: Likewise.
1397         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
1398         also on clang.
1399         * lib/vasnprintf.c (divide): Likewise.
1401 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1403         Update srclist.txt as per recent glibc changes
1404         * config/srclist.txt: Uncomment lines to reflect recent merges
1405         from Gnulib to glibc.
1407 2020-08-03  Bruno Haible  <bruno@clisp.org>
1409         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1410         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
1412 2020-08-03  Bruno Haible  <bruno@clisp.org>
1414         integer_length_ll: Optimize for MSVC in 64-bit mode.
1415         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1416         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1418 2020-08-03  Bruno Haible  <bruno@clisp.org>
1420         integer_length_ll: Optimize for MSVC in 32-bit mode.
1421         * lib/integer_length_l.c: Include <intrin.h>.
1422         (integer_length): Define as inline function, like in
1423         lib/integer_length.c.
1425 2020-08-03  Bruno Haible  <bruno@clisp.org>
1427         integer_length: Optimize for MSVC.
1428         * lib/integer_length.c: Include <intrin.h>.
1429         (integer_length): With MSVC, use the _BitScanReverse built-in.
1431 2020-08-03  Bruno Haible  <bruno@clisp.org>
1433         ffsll: Optimize for MSVC in 64-bit mode.
1434         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1435         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1436         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
1438 2020-08-03  Bruno Haible  <bruno@clisp.org>
1440         ffsll: Optimize for MSVC in 32-bit mode.
1441         * lib/ffsl.h: Include <intrin.h>.
1442         (ffs): Define as inline function, like in lib/ffs.c.
1444 2020-08-03  Bruno Haible  <bruno@clisp.org>
1446         ffs: Optimize for MSVC.
1447         * lib/ffs.c: Include <intrin.h>.
1448         (ffs): With MSVC, use the _BitScanForward built-in.
1450 2020-08-03  Bruno Haible  <bruno@clisp.org>
1452         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
1453         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
1454         variable.
1456 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
1458         fopen: Avoid undesired interactions with glibc headers.
1459         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
1460         __need_FILE, as the latter does not work with glibc.
1462 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1464         fcntl: document some F_SETLK errno variations
1465         * doc/posix-functions/fcntl.texi (fcntl): Document
1466         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
1468 2020-08-02  Bruno Haible  <bruno@clisp.org>
1470         oset: Add an 'iterator_atleast' operation.
1471         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
1472         extracted from gl_array_search_atleast.
1473         (gl_array_search_atleast): Use it.
1474         (gl_array_iterator_atleast): New function.
1475         (gl_array_oset_implementation): Use it.
1476         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
1477         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
1478         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
1479         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
1480         member.
1481         (gl_oset_iterator_atleast): New function.
1482         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
1483         (gl_OSet::iterator): Add another auxiliary constructor.
1484         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
1485         New functions.
1486         (main): Test also gl_oset_iterator_atleast.
1487         * tests/test-avltree_oset.c (is_at_least): New function.
1488         (main): Test also gl_oset_iterator_atleast.
1489         * tests/test-rbtree_oset.c (is_at_least): New function.
1490         (main): Test also gl_oset_iterator_atleast.
1491         * tests/test-oset-c++.cc (is_at_most): New function.
1492         (main): Test also gl_OSet::begin_atleast.
1494 2020-08-02  Bruno Haible  <bruno@clisp.org>
1496         oset-c++, omap-c++: Remove restriction for search_atleast method.
1497         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
1498         a different type than the element.
1499         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
1500         a different type than the key.
1502 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1504         gnumakefile: say ‘$(MAKE)’ not ‘make’
1505         * top/GNUmakefile (abort-due-to-no-makefile):
1506         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
1507         This change is backported from Autoconf.
1509 2020-08-01  Bruno Haible  <bruno@clisp.org>
1511         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1512         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
1513         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1514         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1515         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1516         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
1518 2020-08-01  Bruno Haible  <bruno@clisp.org>
1520         libtextstyle-optional: Update tests.
1521         * modules/libtextstyle-optional-tests (configure.ac): Invoke
1522         gl_LIBTEXTSTYLE_OPTIONAL.
1524 2020-08-01  Bruno Haible  <bruno@clisp.org>
1526         parse-datetime: Fix wrong #line statements.
1527         * modules/parse-datetime (Makefile.am): Correct #line statements also in
1528         parse-datetime-gen.h.
1530 2020-08-01  Bruno Haible  <bruno@clisp.org>
1532         libtextstyle[-optional]: Allow requesting a minimum version.
1533         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
1534         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
1535         gl_LIBTEXTSTYLE_SEARCH): New macros.
1536         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
1537         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
1538         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
1539         * modules/libtextstyle-optional (configure.ac): Don't invoke
1540         gl_LIBTEXTSTYLE_OPTIONAL.
1541         * NEWS: Mention the changes.
1543 2020-07-31  Bruno Haible  <bruno@clisp.org>
1545         _GL_CMP: Improve documentation.
1546         Reported by Paul Eggert in
1547         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
1548         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
1549         passed.
1551 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1553         largefile: sync with Autoconf master
1554         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1555         Avoid undefined behavior on platforms where off_t is 32 bits.
1556         See: https://bugs.debian.org/742780
1558         alloca: sync with Autoconf master
1559         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1560         Do not define if Autoconf 2.70 or later, since Autoconf master
1561         now matches us.
1563 2020-07-30  Bruno Haible  <bruno@clisp.org>
1565         unicodeio: Add comment.
1566         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
1567         different iconv behaviours.
1569 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1571         Work around some Oracle Studio attribute bugs
1572         These were discovered when building bleeding-edge Emacs with
1573         Oracle Studio.
1574         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
1575         Port to Oracle Studio 12.6, which mishandles __attribute__
1576         ((__cold__)) and __attribute__ ((__may_alias__)) even though
1577         __has_attribute says they work.
1579 2020-07-29  Bruno Haible  <bruno@clisp.org>
1581         unicodeio: Fix wrong result on musl libc.
1582         Reported by A. Wilcox <awilfox@adelielinux.org> in
1583         <https://www.openwall.com/lists/musl/2020/07/29/2>.
1584         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
1585         on musl libc.
1586         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
1587         * modules/unicodeio (Files): Add m4/musl.m4.
1589 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1591         fsusage, regex, stat-size: remove Cray support
1592         As near as I can make out this is actually support for UNICOS/mp,
1593         last released 2005, and Cray hasn’t supported that for years.
1594         * config/srclist.txt: Comment out regex.h for now.
1595         * lib/fsusage.c (get_fs_usage):
1596         * lib/regex.h (re_comp, re_exec):
1597         * lib/stat-size.h (ST_NBLOCKSIZE):
1598         Don’t worry about _CRAY.
1600 2020-07-29  Bruno Haible  <bruno@clisp.org>
1602         parse-datetime: Fix compilation error with bison 3.7.
1603         * modules/parse-datetime (Makefile.am): Create a generated header file
1604         parse-datetime-gen.h in the source directory. Correct #include and
1605         #line statements during preprocessing.
1607 2020-07-28  Bruno Haible  <bruno@clisp.org>
1609         fopen-gnu: Create files correctly (regression from 2020-05-24).
1610         * lib/fopen.c (rpl_open): Pass a third argument to open().
1612 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1614         xalloc-die: don’t depend on xalloc
1615         This removes a circular dependency, as xalloc depends on xalloc-die.
1616         * modules/xalloc-die (Files): Add lib/xalloc.h.
1617         (Depends-on): Remove xalloc.
1618         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
1620         dfa-tests: port to MSVC
1621         Problem reported by Gisle Vanem in:
1622         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
1623         Also, remove an unnecessary dependency on getprogname.
1624         * modules/dfa-tests (Depends-on): Remove getprogname.
1625         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
1626         (exit_status): New static var.
1627         (dfawarn): Set it instead of exiting.
1628         Do not declare as _Noreturn, to pacify MSVC.
1629         (main): Return exit_status.
1631 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1633         argz: pacify MSVC
1634         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
1635         Problem reported by Gisle Vanem.
1637         libgmp: remove dependency on havelib
1638         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
1639         use the more-traditional AC_SEARCH_LIBS approach.
1640         This should work better with GNU Emacs configuration,
1641         which uses pkg-config instead of a havelib-style approach.
1642         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
1643         * modules/libgmp (Depends-on): Remove havelib.
1645         libgmp: remove HAVE_GMP, LIB_GMP
1646         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
1647         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
1649 2020-07-26  Bruno Haible  <bruno@clisp.org>
1651         inttypes: Remove support for AIX 4.
1652         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
1653         * m4/inttypes-pri.m4: Remove file.
1654         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
1655         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
1656         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1657         PRI_MACROS_BROKEN.
1658         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
1660 2020-07-26  Bruno Haible  <bruno@clisp.org>
1662         gettimeofday: Remove workaround for Mac OS X 10.0.
1663         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
1664         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
1665         * lib/gettimeofday.c: Don't include localtime-buffer.h.
1666         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1667         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1668         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1669         * modules/localtime-buffer: Remove file.
1670         * lib/localtime-buffer.h: Remove file.
1671         * lib/localtime-buffer.c: Remove file.
1672         * m4/localtime-buffer.m4: Remove file.
1673         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1675 2020-07-26  Bruno Haible  <bruno@clisp.org>
1677         tzset: Remove workaround for Solaris 2.6.
1678         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1679         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1680         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1681         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1682         * lib/localtime-buffer.c: Likewise.
1683         * lib/localtime.c: Likewise.
1684         * lib/tzset.c: Don't include localtime-buffer.h.
1685         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1686         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1687         is 1.
1688         * modules/tzset (Depends-on): Remove localtime-buffer.
1690 2020-07-26  Bruno Haible  <bruno@clisp.org>
1692         expl: Simplify autoconf test.
1693         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1694         with small values..." test into the "checking whether expl works..."
1695         test.
1697 2020-07-26  Bruno Haible  <bruno@clisp.org>
1699         alloca: Remove Cray-2 and Cray Y-MP support.
1700         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1701         Enable also on Autoconf >= 2.69.
1702         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1703         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1704         i00afunc): Remove.
1706 2020-07-25  Bruno Haible  <bruno@clisp.org>
1708         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
1709         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
1711 2020-07-25  Bruno Haible  <bruno@clisp.org>
1713         sigprocmask: Small autoconf macro improvement.
1714         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
1715         user to override the value of gl_cv_func_sigprocmask.
1716         * m4/gnulib-common.m4 (gl_SILENT): New macro.
1718 2020-07-25  Bruno Haible  <bruno@clisp.org>
1720         Small autoconf macro improvements.
1721         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
1722         override the value of gl_cv_func_working_mktime.
1723         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
1724         compiler produces multi-arch binaries..." in the configure output.
1725         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
1726         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
1728 2020-07-25  Bruno Haible  <bruno@clisp.org>
1730         doc: Update for NetBSD 7.1, 8.0, 9.0.
1731         * doc/*/*.texi: Update.
1732         * m4/exp2l.m4: Update comments.
1733         * m4/expl.m4: Likewise.
1734         * m4/ilogb.m4: Likewise.
1735         * m4/ilogbf.m4: Likewise.
1736         * m4/log10l.m4: Likewise.
1737         * m4/logl.m4: Likewise.
1738         * m4/printf.m4: Likewise.
1739         * m4/rintl.m4: Likewise.
1740         * m4/wcwidth.m4: Likewise.
1742 2020-07-24  Bruno Haible  <bruno@clisp.org>
1744         doc: Update for Mac OS X 10.13.
1745         * doc/*/*.texi: Update.
1746         * m4/expm1l.m4: Update comments.
1747         * m4/getgroups.m4: Likewise.
1748         * m4/getlogin_r.m4: Likewise.
1749         * m4/linkat.m4: Likewise.
1750         * m4/printf.m4: Likewise.
1752 2020-07-24  Bruno Haible  <bruno@clisp.org>
1754         doc: Update for Cygwin 2.9.0.
1755         * doc/*/*.texi: Update.
1757 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1759         parse-datetime: modernize doc
1760         * doc/parse-datetime.texi: Use more-current examples.
1761         Don’t lead with 32-bit time_t, as it’s on its way out.
1762         Capitalize “Epoch” to be consistent with POSIX.
1764         timespec: remove dependence on ‘verify’
1765         * lib/timespec.h: Do not include verify.h; no longer needed.
1766         * modules/timespec (Depends-on): Remove ‘verify’.
1768         Optimize a few more three-valued comparisons
1769         * lib/timespec.h (timespec_cmp, timespec_sign):
1770         * lib/utimecmp.c (utimecmpat):
1771         Avoid conditional branches by using _GL_CMP.
1773         Fix _GL_CMP parenthesization typo
1774         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
1776 2020-07-24  Bruno Haible  <bruno@clisp.org>
1778         dfa: Revert breaking gawk.
1779         Reported by Arnold Robbins <arnold@skeeve.com>.
1780         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
1782 2020-07-23  Bruno Haible  <bruno@clisp.org>
1784         Optimize three-valued comparison between integers.
1785         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
1786         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
1787         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
1788         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
1789         * lib/dfa.c (compare): Likewise.
1790         * lib/fts.c (fts_compare_ino): Likewise.
1791         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
1792         * lib/mbscasecmp.c (mbscasecmp): Likewise.
1793         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
1794         * lib/memcasecmp.c (memcasecmp): Likewise.
1795         * lib/memcmp2.c (memcmp2): Likewise.
1796         * lib/savedir.c (direntry_cmp_inode): Likewise.
1797         * lib/strcasecmp.c (strcasecmp): Likewise.
1798         * lib/strncasecmp.c (strncasecmp): Likewise.
1799         * lib/unistr/u-cmp2.h (FUNC): Likewise.
1801 2020-07-23  Bruno Haible  <bruno@clisp.org>
1803         lchmod: Use /proc on Cygwin.
1804         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1806 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1808         fchmodat: Use /proc on Cygwin
1809         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1811 2020-07-21  Bruno Haible  <bruno@clisp.org>
1813         aligned-malloc: Optionally use aligned_alloc.
1814         * lib/aligned-malloc.h: Verify the alignment.
1815         (aligned_malloc): Use aligned_alloc as an alternative.
1816         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1817         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1818         'aligned-malloc' and 'pagealign_alloc'.
1820 2020-07-21  Bruno Haible  <bruno@clisp.org>
1822         aligned-malloc: Add tests.
1823         * tests/test-aligned-malloc.c: New file.
1824         * modules/aligned-malloc-tests: New file.
1826         aligned-malloc: New module.
1827         * lib/aligned-malloc.h: New file.
1828         * m4/malloc-align.m4: New file.
1829         * modules/aligned-malloc: New file.
1830         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1831         * doc/glibc-functions/memalign.texi: Likewise.
1833 2020-07-21  Bruno Haible  <bruno@clisp.org>
1835         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1836         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1837         sure PRIPTR_PREFIX is defined to "ll", not "l".
1839 2020-07-21  Bruno Haible  <bruno@clisp.org>
1841         printf-posix: Make an autoconf test more future-proof.
1842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1843         using uintptr_t.
1845 2020-07-20  Bruno Haible  <bruno@clisp.org>
1847         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1848         * modules/list (License): Change to LGPLv2+.
1849         * modules/array-list (License): Likewise.
1850         * modules/carray-list (License): Likewise.
1851         * modules/linked-list (License): Likewise.
1852         * modules/avltree-list (License): Likewise.
1853         * modules/rbtree-list (License): Likewise.
1854         * modules/oset (License): Likewise.
1855         * modules/array-oset (License): Likewise.
1856         * modules/avltree-oset (License): Likewise.
1857         * modules/rbtree-oset (License): Likewise.
1858         * modules/omap (License): Likewise.
1859         * modules/array-omap (License): Likewise.
1860         * modules/avltree-omap (License): Likewise.
1861         * modules/rbtree-omap (License): Likewise.
1863 2020-07-20  Bruno Haible  <bruno@clisp.org>
1865         oset: Add an 'update' operation.
1866         * lib/gl_array_oset.c (gl_array_update): New function.
1867         (gl_array_oset_implementation): Use it.
1868         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1869         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1870         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1871         extracted from gl_tree_nx_add_before.
1872         (gl_tree_nx_add_before): Invoke it.
1873         (gl_tree_add_node_after): New function, extracted from
1874         gl_tree_nx_add_after.
1875         (gl_tree_nx_add_after): Invoke it.
1876         (gl_tree_remove_node_no_free): New function, extracted from
1877         gl_tree_remove_node.
1878         (gl_tree_remove_node): Invoke it.
1879         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1880         extracted from gl_tree_nx_add_before.
1881         (gl_tree_nx_add_before): Invoke it.
1882         (gl_tree_add_node_after): New function, extracted from
1883         gl_tree_nx_add_after.
1884         (gl_tree_nx_add_after): Invoke it.
1885         (gl_tree_remove_node_no_free): New function, extracted from
1886         gl_tree_remove_node.
1887         (gl_tree_remove_node): Invoke it.
1888         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1889         from gl_tree_iterator_next.
1890         (gl_tree_iterator_next): Invoke it.
1891         (gl_tree_prev_node, gl_tree_update): New functions.
1892         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1893         (gl_avltree_oset_implementation): Use gl_tree_update.
1894         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1895         (gl_rbtree_oset_implementation): Use gl_tree_update.
1896         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1897         (gl_oset_update): New function.
1898         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1899         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1900         * modules/rbtree-oset (configure.ac): Likewise.
1901         * tests/test-oset-update.h: New file.
1902         * tests/test-array_oset.c: Include test-oset-update.h.
1903         (main): Invoke test_update.
1904         * tests/test-avltree_oset.c: Likewise.
1905         * tests/test-rbtree_oset.c: Likewise.
1906         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1907         * modules/avltree-oset-tests (Files): Likewise.
1908         * modules/rbtree-oset-tests (Files): Likewise.
1909         * tests/test-oset-c++.cc (action): New function.
1910         (main): Test the 'update' member function.
1912 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1914         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1915         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1916         shell if, so that the argument to AC_CHECK_HEADERS is
1917         a simple string that does not require shell evaluation.
1918         This fixes a warning generated by Autoconf 2.69b.
1920 2020-07-12  Bruno Haible  <bruno@clisp.org>
1922         libgmp: Avoid warning when --without-libgmp is used.
1923         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1924         GCC >= 8, not for GCC >= 4.6.
1926 2020-07-12  Bruno Haible  <bruno@clisp.org>
1928         libgmp: Link to the correct shared library.
1929         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1930         * modules/libgmp (Depends-on): Add havelib.
1931         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1932         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1934 2020-07-12  Bruno Haible  <bruno@clisp.org>
1936         libgmp tests: Add some safety checks.
1937         * modules/libgmp-tests (Depends-on): Add verify.
1938         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1939         (main): Verify that gmp.h and libgmp versions match.
1941 2020-07-10  Bruno Haible  <bruno@clisp.org>
1943         unicodeio: Fix wrong result on NetBSD.
1944         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1945         characters also on NetBSD.
1947 2020-07-09  Bruno Haible  <bruno@clisp.org>
1949         unicodeio: Fix wrong result on Solaris 11.
1950         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1951         via Akim Demaille <akim.demaille@gmail.com> in
1952         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1953         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1954         characters on Solaris.
1955         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1956         UTF-8 output or the specified fallback.
1958 2020-07-08  Bruno Haible  <bruno@clisp.org>
1960         unicodeio: Add tests.
1961         * tests/test-unicodeio.c: New file.
1962         * tests/test-unicodeio1.sh: New file.
1963         * tests/test-unicodeio2.sh: New file.
1964         * tests/test-unicodeio3.sh: New file.
1965         * modules/unicodeio-tests: New file.
1967 2020-07-08  Bruno Haible  <bruno@clisp.org>
1969         unicodeio: Document link requirements.
1970         * modules/unicodeio (Link): New section.
1972 2020-07-07  Bruno Haible  <bruno@clisp.org>
1974         doc: Remove support for some very old platforms.
1975         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1976         * doc/posix-functions/memcpy.texi: Likewise.
1977         * doc/posix-functions/memmove.texi: Likewise.
1978         * doc/posix-functions/memset.texi: Likewise.
1979         * doc/posix-functions/getcwd.texi: Likewise.
1981         memchr: Remove support for some very old platforms.
1982         * m4/memchr-obsolete.m4: Remove file.
1983         * modules/memchr-obsolete: Remove file.
1984         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1985         absent. Don't define HAVE_MEMCHR.
1986         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1987         * modules/memchr (Depends-on): Remove memchr-obsolete.
1988         (configure.ac): Assume HAVE_MEMCHR is 1.
1989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1990         HAVE_MEMCHR.
1991         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1992         * doc/posix-functions/memchr.texi: Don't mention module
1993         'memchr-obsolete'.
1994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1995         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1996         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1998         dup2: Remove support for some very old platforms.
1999         * m4/dup2-obsolete.m4: Remove file.
2000         * modules/dup2-obsolete: Remove file.
2001         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
2002         Don't define HAVE_DUP2.
2003         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
2004         * lib/dup2.c: Likewise.
2005         * modules/dup2 (Depends-on, configure.ac): Likewise.
2006         (Depends-on): Remove dup2-obsolete.
2007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
2008         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
2009         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
2011 2020-07-07  Bruno Haible  <bruno@clisp.org>
2013         canonicalize: Trim module dependencies.
2014         * lib/hash-triple.h: Group declarations.
2015         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
2016         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
2017         (STREQ): Remove macro.
2018         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
2019         * modules/hash-triple-simple: New file, based on modules/hash-triple.
2020         * modules/hash-triple (Files): Remove lib/hash-triple.h.
2021         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
2022         * modules/canonicalize (Depends-on): Remove hash-triple. Add
2023         hash-triple-simple.
2024         * modules/file-set (Depends-on): Likewise.
2026 2020-07-07  Bruno Haible  <bruno@clisp.org>
2028         Clarify dependencies to double-slash-root.
2029         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
2030         (Depends-on): Add double-slash-root.
2031         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
2032         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
2034 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2036         libgmp: new module
2037         The idea is to let programs simply include <gmp.h>, and
2038         so long as they live within the mini-gmp subset they need
2039         not worry about whether the GMP libraries are installed.
2040         * MODULES.html.sh: Mention it.
2041         * config/srclist.txt: Mention files copied from GMP source.
2042         * config/srclistvars.sh (GMP): New var.
2043         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
2044         * modules/libgmp-tests, tests/test-libgmp.c: New files.
2045         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
2047 2020-07-05  Bruno Haible  <bruno@clisp.org>
2049         mkancesdirs: Trim module dependencies.
2050         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
2051         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
2053 2020-07-05  Bruno Haible  <bruno@clisp.org>
2055         getprogname: Trim module dependencies.
2056         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
2057         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
2058         basename-lgpl.
2060 2020-07-05  Bruno Haible  <bruno@clisp.org>
2062         filenamecat-lgpl: Trim module dependencies.
2063         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
2064         dirname.h.
2065         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
2066         basename-lgpl, filename.
2068 2020-07-05  Bruno Haible  <bruno@clisp.org>
2070         backupfile, backup-rename: Trim module dependencies.
2071         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
2072         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
2073         basename-lgpl.
2074         * modules/backup-rename (Depends-on): Likewise.
2076 2020-07-05  Bruno Haible  <bruno@clisp.org>
2078         argp: Trim module dependencies.
2079         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
2080         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
2082 2020-07-05  Bruno Haible  <bruno@clisp.org>
2084         basename-lgpl: New module.
2085         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
2086         lib/basename-lgpl.c.
2087         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
2088         <stdbool.h>, filename.h.
2089         (last_component): Rename a local variable.
2090         * lib/dirname.h: Include basename-lgpl.h.
2091         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
2092         (last_component, base_len): Remove declarations.
2093         * modules/basename-lgpl: New file.
2094         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
2095         (Depends-on): Add basename-lgpl. Remove double-slash-root.
2096         (Makefile.am): Don't compile basename-lgpl.c.
2097         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
2098         not 'dirname'.
2100 2020-07-05  Bruno Haible  <bruno@clisp.org>
2102         dirname, dirname-lgpl: Simplify.
2103         * m4/dirname.m4: Remove file.
2104         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
2105         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
2106         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
2108 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
2110         tests: avoid shadowing warning
2111         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
2113 2020-07-05  Bruno Haible  <bruno@clisp.org>
2115         supersede: Add tests.
2116         * tests/test-supersede.c: New file.
2117         * tests/test-supersede-open.h: New file.
2118         * tests/test-supersede-fopen.h: New file.
2119         * modules/supersede-tests: New file.
2121         supersede: New module.
2122         * lib/supersede.h: New file.
2123         * lib/supersede.c: New file.
2124         * m4/supersede.m4: New file.
2125         * modules/supersede: New file.
2127 2020-07-05  Bruno Haible  <bruno@clisp.org>
2129         Add some copyright headers.
2130         * lib/dev-ino.h: Add copyright header.
2131         * lib/di-set.h: Likewise.
2132         * lib/fchown-stub.c: Likewise.
2133         * lib/file-set.h: Likewise.
2134         * lib/hash-triple.h: Likewise.
2135         * lib/idcache.h: Likewise.
2136         * lib/ino-map.h: Likewise.
2137         * lib/mkancesdirs.h: Likewise.
2138         * lib/scratch_buffer.h: Likewise.
2139         * lib/se-context.in.h: Likewise.
2140         * lib/stdopen.h: Likewise.
2141         * lib/userspec.h: Likewise.
2143 2020-07-04  Bruno Haible  <bruno@clisp.org>
2145         getrandom: Relicense under LGPLv2+.
2146         Paul Eggert's approval is in
2147         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
2148         * modules/getrandom (License): Change to LGPLv2+.
2150 2020-07-04  Bruno Haible  <bruno@clisp.org>
2152         getumask: Add tests.
2153         * tests/test-getumask.c: New file.
2154         * modules/getumask-tests: New file.
2156         getumask: New module.
2157         * lib/sys_stat.in.h (getumask): New declaration.
2158         * lib/getumask.c: New file.
2159         * m4/getumask.m4: New file.
2160         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
2161         declared.
2162         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
2163         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
2164         HAVE_GETUMASK.
2165         * modules/getumask: New file.
2166         * tests/test-sys_stat-c++.cc (getumask): Check signature.
2167         * doc/glibc-functions/getumask.texi: New file.
2168         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
2170 2020-07-04  Bruno Haible  <bruno@clisp.org>
2172         clean-temp: Add support for temporary files with given mode.
2173         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
2174         * lib/clean-temp.c (struct try_create_file_params): New type.
2175         (try_create_file): New function.
2176         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
2177         gen_tempname.
2179 2020-07-04  Bruno Haible  <bruno@clisp.org>
2181         clean-temp: Document limitations.
2182         * lib/clean-temp.h: Document limitations.
2184 2020-07-04  Bruno Haible  <bruno@clisp.org>
2186         clean-temp: Add support for temporary files with unpredictable names.
2187         * lib/clean-temp.h (gen_register_open_temp): New declaration.
2188         * lib/clean-temp.c: Include tempname.h.
2189         (gen_register_open_temp): New function.
2190         * modules/tempname (configure.ac): Define a module indicator.
2192 2020-07-04  Bruno Haible  <bruno@clisp.org>
2194         clean-temp: Add support for temporary files anywhere in the file system.
2195         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
2196         cleanup_temporary_file): New declarations.
2197         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
2198         variables.
2199         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
2200         (dir_cleanup_list): Renamed from cleanup_list.
2201         (cleanup_action): Process the file_cleanup_list as well.
2202         (do_init_clean_temp): New function.
2203         (clean_temp_once): New variable.
2204         (init_clean_temp): New function.
2205         (create_temp_dir): Invoke it.
2206         (register_temporary_file, unregister_temporary_file,
2207         cleanup_temporary_file): New functions.
2208         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
2209         argument.
2211 2020-07-04  Bruno Haible  <bruno@clisp.org>
2213         clean-temp: Improve comments.
2214         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2215         fwriteerror_temp, close_stream_temp): Clarify intended use.
2216         * lib/clean-temp.c: Likewise.
2218 2020-07-04  Bruno Haible  <bruno@clisp.org>
2220         clean-temp: Make multithread-safe, part 2.
2221         * lib/fatal-signal.h: Include <signal.h>.
2222         (get_fatal_signal_set): New declaration.
2223         * lib/fatal-signal.c (get_fatal_signal_set): New function.
2224         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
2225         (struct closeable_fd): New type.
2226         (fatal_signal_set): New variable.
2227         (init_fatal_signal_set): New function.
2228         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
2229         (cleanup_action): Invoke asyncsafe_close instead of close.
2230         (create_temp_dir): Invoke init_fatal_signal_set.
2231         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
2232         element.
2233         (unregister_fd): Remove function.
2234         (close_temp): Cleanup descriptors list on the fly. Invoke
2235         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
2236         (fclose_variant_temp): New function.
2237         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
2238         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
2240 2020-07-04  Bruno Haible  <bruno@clisp.org>
2242         clean-temp: Make multithread-safe, part 1.
2243         * lib/clean-temp.c: Include glthread/lock.h.
2244         (cleanup_list_lock): New variable.
2245         (register_temp_file, unregister_temp_file, register_temp_subdir,
2246         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
2247         (create_temp_dir): Likewise. Don't free the old array.
2248         (descriptors_lock): New variable.
2249         (register_fd, unregister_fd): Use it.
2250         * modules/clean-temp (Depends-on): Add lock.
2252 2020-07-04  Bruno Haible  <bruno@clisp.org>
2254         fatal-signal: Make multithread-safe.
2255         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2256         (do_init_fatal_signal_set): New function, extracted from
2257         init_fatal_signal_set.
2258         (fatal_signal_set_once): New variable.
2259         (init_fatal_signal_set): Use gl_once.
2261 2020-07-03  Bruno Haible  <bruno@clisp.org>
2263         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
2264         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
2265         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
2266         <bcrypt.h>.
2268 2020-07-03  Bruno Haible  <bruno@clisp.org>
2270         dfa tests: Follow common file naming conventions.
2271         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
2272         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
2273         * tests/test-dfa-invalid-char-class.sh: Renamed from
2274         tests/dfa-invalid-char-class.sh. Update.
2275         * modules/dfa-tests (Files, Makefile.am): Update.
2277 2020-07-03  Bruno Haible  <bruno@clisp.org>
2279         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
2280         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
2281         the GCC extended asm syntax also for the Sun Studio 12 compilers.
2283 2020-07-03  Bruno Haible  <bruno@clisp.org>
2285         asyncsafe-spin: Reduce code duplication.
2286         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
2287         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
2288         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
2290 2020-07-03  Bruno Haible  <bruno@clisp.org>
2292         lchmod: Simplify after 2020-02-22 change.
2293         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
2295 2020-07-03  Bruno Haible  <bruno@clisp.org>
2297         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
2298         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
2300 2020-07-03  Bruno Haible  <bruno@clisp.org>
2302         dfa: Make sure the compiler does not barf on 'inline'.
2303         * modules/dfa (configure.ac): Require AC_C_INLINE.
2305 2020-07-03  Bruno Haible  <bruno@clisp.org>
2307         bitset: Make sure the compiler does not barf on 'inline'.
2308         * modules/bitset (configure.ac): New section.
2310 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2312         manywarnings: improve port to GCC 10.1
2313         * build-aux/gcc-warning.spec: Also list warnings that are default
2314         or are enabled by already-given flags.  This lets us speed up
2315         checking for attributes, and makes the generated compilation
2316         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
2317         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
2318         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
2319         to shell variables that may have long values.
2320         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
2321         consequences of other flags, to speed up checking and
2322         shorten commands.
2324         tests: pacify gcc -fanalyzer on zerosize_ptr
2325         * tests/test-memcasecmp.c (main):
2326         * tests/test-memchr.c (main):
2327         * tests/test-memchr2.c (main):
2328         * tests/test-memcmp.c (main):
2329         * tests/test-memmem.c (main):
2330         * tests/test-memrchr.c (main):
2331         * tests/unistr/test-chr.h (main):
2332         * tests/unistr/test-cmp.h (test_cmp):
2333         Check whether zerosize_ptr returns NULL before using it.
2334         This pacifies GCC 10.1’s new fanalyzer option, and matches
2335         other uses of zerosize_ptr.
2337 2020-07-01  Bruno Haible  <bruno@clisp.org>
2339         asyncsafe-spin: Add tests.
2340         * tests/test-asyncsafe-spin1.c: New file.
2341         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
2342         tests/test-pthread-spin.c.
2343         * modules/asyncsafe-spin-tests: New file.
2345 2020-07-01  Bruno Haible  <bruno@clisp.org>
2347         asyncsafe-spin: New module.
2348         * lib/asyncsafe-spin.h: New file.
2349         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
2350         * modules/asyncsafe-spin: New file.
2352 2020-07-01  Bruno Haible  <bruno@clisp.org>
2354         windows-spin: Fix race condition on multiprocessor systems.
2355         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
2357 2020-07-01  Bruno Haible  <bruno@clisp.org>
2359         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
2360         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2361         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
2362         an implementation based on other GCC built-ins.
2364 2020-07-01  Bruno Haible  <bruno@clisp.org>
2366         pthread-spin: Optimize fallback for GCC versions >= 4.7.
2367         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2368         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
2369         lock byte.
2371 2020-07-01  Bruno Haible  <bruno@clisp.org>
2373         pthread-spin: Add error checking.
2374         * lib/pthread-spin.c: Include <stdbool.h>.
2375         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
2376         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
2377         the unlocks.
2378         * modules/pthread-spin (Depends-on): Add stdbool.
2380 2020-07-01  Bruno Haible  <bruno@clisp.org>
2382         pthread-spin: Add tests.
2383         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
2384         * modules/pthread-spin-tests: New file.
2386 2020-07-01  Bruno Haible  <bruno@clisp.org>
2388         tests: Reduce code duplication.
2389         * tests/atomic-int-posix.h: New file, extracted from
2390         tests/test-pthread-mutex.c.
2391         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
2392         * tests/test-pthread-rwlock.c: Likewise.
2393         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
2394         * modules/pthread-rwlock-tests (Files): Likewise.
2396 2020-07-01  Bruno Haible  <bruno@clisp.org>
2398         tests: Refactor.
2399         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
2400         * tests/test-mtx.c: Include it. Remove the corresponding code.
2401         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
2403 2020-07-01  Bruno Haible  <bruno@clisp.org>
2405         tests: Refactor.
2406         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
2407         * tests/test-lock.c: Include it. Remove the corresponding code.
2408         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
2410 2020-06-29  Bruno Haible  <bruno@clisp.org>
2412         sys_socket: Don't define socklen_t if it is already defined on mingw.
2413         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
2414         <https://savannah.gnu.org/bugs/?57725>,
2415         by Rahul Das <bokul_4u@yahoo.com> in
2416         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
2417         and by Eli Zaretskii <eliz@gnu.org> in
2418         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
2419         * lib/sys_socket.in.h (socklen_t): Remove definition.
2421 2020-06-29  Bruno Haible  <bruno@clisp.org>
2423         alloca-opt: Fix warning on mingw.
2424         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
2425         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
2426         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
2427         whether alloca is defined.
2429 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2431         getrandom: do not depend on ‘open’ on mingw
2432         Similarly for at-internal, getloadavg.  These modules do not call
2433         the ‘open’ function when they are compiled on mingw.  On mingw,
2434         this avoids having to compile open.c when building Emacs, which
2435         does its own thing with ‘open’.
2436         * modules/at-internal, modules/getloadavg, modules/getrandom:
2437         (Depends-on): Don’t depend on ‘open’ on mingw.
2438         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
2439         * modules/getloadavg (Depends-on):
2440         Depend on intprops, open, stdbool, stdlib only if compiling
2441         getloadavg.c.
2443 2020-06-28  Bruno Haible  <bruno@clisp.org>
2445         doc: Add a note about sigprocmask vs. pthread_sigmask.
2446         * doc/posix-functions/sigprocmask.texi: Add note.
2448 2020-06-28  Bruno Haible  <bruno@clisp.org>
2450         getrandom: Fix compilation errors on older versions of mingw.
2451         Reported by Eli Zaretskii <eliz@gnu.org> in
2452         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
2453         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
2454         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
2455         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
2456         BCryptGenRandom ourselves.
2458 2020-06-28  Bruno Haible  <bruno@clisp.org>
2460         clean-temp: Fix wrong errno in error message.
2461         * lib/clean-temp.c (create_temp_dir): Save errno around
2462         unblock_fatal_signals call.
2464 2020-06-27  Bruno Haible  <bruno@clisp.org>
2466         fatal-signal: Make multithread-safe.
2467         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
2469 2020-06-27  Bruno Haible  <bruno@clisp.org>
2471         clean-temp: Don't force deletion of temporary files on native Windows.
2472         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
2473         argument.
2474         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
2475         * NEWS: Mention the change.
2476         * lib/javacomp.c (write_temp_file): Update.
2478 2020-06-27  Bruno Haible  <bruno@clisp.org>
2480         fatal-signal: Make multithread-safe.
2481         * lib/fatal-signal.c: Include glthread/lock.h.
2482         (at_fatal_signal_lock): New variable.
2483         (at_fatal_signal): Use it.
2484         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
2485         (block_fatal_signals, unblock_fatal_signals): Use them.
2486         * modules/fatal-signal (Depends-on): Add lock.
2488 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
2490         getloadavg: don’t depend on fopen-gnu
2491         This is for Emacs, which does not need fopen-gnu for anything else,
2492         and which would need it only on a NetBSD platform where getloadavg
2493         does not work (does that even happen?).
2494         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
2495         * modules/getloadavg (Depends-on): Remove fopen-gnu.
2497         * tests/test-getloadavg.c (main): Fix typo.
2499 2020-06-27  Bruno Haible  <bruno@clisp.org>
2501         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
2502         * modules/tempname (Link): New section.
2503         * modules/mkdtemp (Link): Likewise.
2504         * modules/clean-temp (Link): Likewise.
2505         * modules/mkstemp (Link): Likewise.
2506         * modules/stdlib-safer (Link): Likewise.
2507         * modules/mkstemps (Link): Likewise.
2508         * modules/mkostemp (Link): Likewise.
2509         * modules/mkostemps (Link): Likewise.
2510         * modules/tmpfile (Link): Likewise.
2511         * modules/tmpfile-safer (Link): Likewise.
2512         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
2513         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
2514         $(LIB_GETRANDOM).
2515         * NEWS: Mention the changes.
2517 2020-06-27  Bruno Haible  <bruno@clisp.org>
2519         fopen-gnu: Simplify code.
2520         * lib/fopen.c: Include <stdbool.h>.
2521         (rpl_fopen): Use a single variable open_flags instead of
2522         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
2523         * modules/fopen (Depends-on): Add stdbool.
2525 2020-06-26  Bruno Haible  <bruno@clisp.org>
2527         canonicalize: Improve documentation.
2528         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
2529         return convention.
2531 2020-06-26  Bruno Haible  <bruno@clisp.org>
2533         xgetcwd: Improve documentation.
2534         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
2536 2020-06-26  Bruno Haible  <bruno@clisp.org>
2538         getcwd: Improve documentation.
2539         * lib/getcwd.c (__getcwd): Document the failure return convention.
2541 2020-06-26  Bruno Haible  <bruno@clisp.org>
2543         fchdir: Improve documentation.
2544         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
2545         convention.
2547 2020-06-26  Bruno Haible  <bruno@clisp.org>
2549         filenamecat-lgpl: Set errno upon failure.
2550         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
2551         return convention.
2552         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
2554 2020-06-26  Bruno Haible  <bruno@clisp.org>
2556         areadlink-with-size: Set errno upon failure.
2557         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
2558         fails.
2559         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
2561 2020-06-26  Bruno Haible  <bruno@clisp.org>
2563         copy-file: Shrink dependencies.
2564         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
2565         qcopy-acl.
2567 2020-06-26  Bruno Haible  <bruno@clisp.org>
2569         doc: Mention declaration fixes implemented by some modules.
2570         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
2571         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
2572         declaration appear in <unistd.h>.
2573         * doc/posix-functions/dup.texi: Likewise.
2574         * doc/posix-functions/dup2.texi: Likewise.
2575         * doc/posix-functions/gethostname.texi: Likewise.
2576         * doc/posix-functions/isatty.texi: Likewise.
2577         * doc/posix-functions/lseek.texi: Likewise.
2578         * doc/posix-functions/unlink.texi: Likewise.
2579         * doc/posix-functions/read.texi: Mention the module 'read'.
2580         * doc/posix-functions/write.texi: Mention the effects of the module
2581         'write'.
2583 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2585         c-dtoastr, c-ldtoastr: new modules
2586         These modules provide the same functionality as the modules
2587         dtoastr and ldtoastr except for the formatting taking place in the
2588         C locale.
2589         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
2590         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
2591         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
2592         defined.  Use c_snprintf and c_strtod/c_strtold instead of
2593         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
2594         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
2595         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
2596         modules/c-ldtoastr-tests: New files.
2597         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
2598         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
2600 2020-06-21  Bruno Haible  <bruno@clisp.org>
2602         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
2603         * lib/tzset.c: Include <stdlib.h>, <string.h>.
2605 2020-06-16  Bruno Haible  <bruno@clisp.org>
2607         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
2608         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
2610 2020-06-16  Bruno Haible  <bruno@clisp.org>
2612         thread, thrd: Avoid a compiler warning.
2613         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
2615 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
2617         windows-thread: Avoid a compiler warning.
2618         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
2619         void.
2620         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
2622 2020-06-15  Bruno Haible  <bruno@clisp.org>
2624         unictype/joininggroup-name: Fix warning on 64-bit mingw.
2625         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
2626         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
2627         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
2628         first.
2630 2020-06-06  Bruno Haible  <bruno@clisp.org>
2632         calloc-gnu tests: Avoid a test failure with clang.
2633         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
2634         'volatile', to defeat compiler optimizations.
2636 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2638         getloadavg: fix double-increment bug
2639         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
2640         Linux without glibc, Android, Cygwin.  This fixes a bug I
2641         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
2642         Problem and fix reported by Semen Verchenko in:
2643         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
2645         tempname: use getrandom, not getentropy
2646         This removes a dependency, as getentropy depends on getrandom.
2647         * lib/tempname.c: Include sys/random.h instead of unistd.h.
2648         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
2649         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
2651 2020-06-01  Bruno Haible  <bruno@clisp.org>
2653         doc: New chapter 'Multithreading'.
2654         * doc/multithread.texi: New file.
2655         * doc/gnulib.texi: Include it.
2657 2020-06-01  Bruno Haible  <bruno@clisp.org>
2659         doc: Move 'Running self-tests under valgrind' section.
2660         * doc/gnulib.texi (Build Infrastructure Modules): Include
2661         valgrind-tests.texi here...
2662         (Miscellaneous Notes): ... not here.
2664 2020-06-01  Bruno Haible  <bruno@clisp.org>
2666         doc: Move 'Visual Studio Compatibility' section.
2667         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2668         here...
2669         (Build Infrastructure Modules): ... not here.
2671 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2673         doc: improve randomness discussion
2674         Inspired by comments from Jeffrey Walton in:
2675         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2676         * doc/glibc-functions/getentropy.texi (getentropy):
2677         * doc/glibc-functions/getrandom.texi (getrandom):
2678         Improve discussion of problems with "random" data,
2679         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2681 2020-06-01  Bruno Haible  <bruno@clisp.org>
2683         doc: Fix Texinfo syntax error.
2684         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2686 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2688         doc: Change '.' to '@.' where appropriate.
2689         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2690         * doc/glibc-functions/fstatfs.texi: Likewise.
2691         * doc/glibc-functions/fts_children.texi: Likewise.
2692         * doc/glibc-functions/fts_read.texi: Likewise.
2693         * doc/glibc-functions/getdirentries.texi: Likewise.
2694         * doc/glibc-functions/mkostemp.texi: Likewise.
2695         * doc/glibc-functions/mkostemps.texi: Likewise.
2696         * doc/glibc-functions/mkstemps.texi: Likewise.
2697         * doc/glibc-functions/preadv.texi: Likewise.
2698         * doc/glibc-functions/pwritev.texi: Likewise.
2699         * doc/glibc-functions/sendfile.texi: Likewise.
2700         * doc/glibc-functions/statfs.texi: Likewise.
2701         * doc/gnulib-intro.texi: Likewise.
2702         * doc/gnulib-tool.texi: Likewise.
2703         * doc/intprops.texi: Likewise.
2704         * doc/lib-symbol-visibility.texi: Likewise.
2705         * doc/licenses-texi.texi: Likewise.
2706         * doc/pastposix-functions/bcmp.texi: Likewise.
2707         * doc/pastposix-functions/bcopy.texi: Likewise.
2708         * doc/pastposix-functions/bzero.texi: Likewise.
2709         * doc/pastposix-functions/ecvt.texi: Likewise.
2710         * doc/pastposix-functions/fcvt.texi: Likewise.
2711         * doc/pastposix-functions/ftime.texi: Likewise.
2712         * doc/pastposix-functions/gcvt.texi: Likewise.
2713         * doc/pastposix-functions/getwd.texi: Likewise.
2714         * doc/pastposix-functions/index.texi: Likewise.
2715         * doc/pastposix-functions/mktemp.texi: Likewise.
2716         * doc/pastposix-functions/rindex.texi: Likewise.
2717         * doc/pastposix-functions/wcswcs.texi: Likewise.
2718         * doc/posix-functions/aio_cancel.texi: Likewise.
2719         * doc/posix-functions/aio_error.texi: Likewise.
2720         * doc/posix-functions/aio_fsync.texi: Likewise.
2721         * doc/posix-functions/aio_read.texi: Likewise.
2722         * doc/posix-functions/aio_return.texi: Likewise.
2723         * doc/posix-functions/aio_suspend.texi: Likewise.
2724         * doc/posix-functions/aio_write.texi: Likewise.
2725         * doc/posix-functions/creat.texi: Likewise.
2726         * doc/posix-functions/ctime.texi: Likewise.
2727         * doc/posix-functions/daylight.texi: Likewise.
2728         * doc/posix-functions/fgetpos.texi: Likewise.
2729         * doc/posix-functions/fopen.texi: Likewise.
2730         * doc/posix-functions/freopen.texi: Likewise.
2731         * doc/posix-functions/fseeko.texi: Likewise.
2732         * doc/posix-functions/fsetpos.texi: Likewise.
2733         * doc/posix-functions/fstatat.texi: Likewise.
2734         * doc/posix-functions/fstatvfs.texi: Likewise.
2735         * doc/posix-functions/ftello.texi: Likewise.
2736         * doc/posix-functions/ftruncate.texi: Likewise.
2737         * doc/posix-functions/getrlimit.texi: Likewise.
2738         * doc/posix-functions/lio_listio.texi: Likewise.
2739         * doc/posix-functions/localtime.texi: Likewise.
2740         * doc/posix-functions/lseek.texi: Likewise.
2741         * doc/posix-functions/mkstemp.texi: Likewise.
2742         * doc/posix-functions/mktime.texi: Likewise.
2743         * doc/posix-functions/open.texi: Likewise.
2744         * doc/posix-functions/openat.texi: Likewise.
2745         * doc/posix-functions/opendir.texi: Likewise.
2746         * doc/posix-functions/pread.texi: Likewise.
2747         * doc/posix-functions/pwrite.texi: Likewise.
2748         * doc/posix-functions/readdir.texi: Likewise.
2749         * doc/posix-functions/readdir_r.texi: Likewise.
2750         * doc/posix-functions/scandir.texi: Likewise.
2751         * doc/posix-functions/seekdir.texi: Likewise.
2752         * doc/posix-functions/setrlimit.texi: Likewise.
2753         * doc/posix-functions/statvfs.texi: Likewise.
2754         * doc/posix-functions/strftime.texi: Likewise.
2755         * doc/posix-functions/telldir.texi: Likewise.
2756         * doc/posix-functions/timezone.texi: Likewise.
2757         * doc/posix-functions/tmpfile.texi: Likewise.
2758         * doc/posix-functions/truncate.texi: Likewise.
2759         * doc/posix-functions/tzname.texi: Likewise.
2760         * doc/posix-functions/wcsftime.texi: Likewise.
2761         * doc/windows-sockets.texi: Likewise.
2763 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2765         getrandom-tests: do not assume GRND_RANDOM yields short read
2766         * tests/test-getrandom.c (main): Omit assertion that
2767         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
2768         when b’s size is 100000.  This assertion fails with Linux kernel
2769         5.6.13, as that kernel ignores the GRND_RANDOM flag.
2770         The separate blocking pool is going away in the Linux kernel, and
2771         they’ve added a flag GRND_INSECURE instead; see:
2772         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
2773         The assertion was iffy anyway; what’s to prevent a kernel from
2774         lazily filling a large buffer with random bytes?
2776         read-file-test: pacify --enable-gcc-warnings
2777         * tests/test-read-file.c (test_read_file): Now static.
2779         tempname: merge from glibc and coreutils
2780         Also, merge in Gnulib’s more-recent methods of making it easier
2781         to share between Gnulib and glibc, and fix a few randomness
2782         glitches.
2783         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
2784         (__set_errno): Remove; libc-config.h does that for us.
2785         Do not include <sys/time.h>.
2786         (__secure_getenv) [_LIBC]: New macro.
2787         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
2788         (RANDOM_BITS): Rewrite.
2789         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
2790         (random_value): New typedef.
2791         (try_file, try_dir, try_nocreate): Move up.
2792         (gen_tempname_len, try_tempname_len): New functions.
2793         (gen_tempname_len): Use a constant array rather than a switch.
2794         (try_tempname_len): Don’t assume string length fits in int.
2795         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
2796         has enough entropy (it’s a bit short).
2797         (__gen_tempname): Rewrite in terms of gen_tempname_len.
2798         (__try_tempname): Rewrite in terms of try_tempname_len.
2799         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
2800         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
2801         Add getentropy, libc-config.
2803 2020-05-31  Bruno Haible  <bruno@clisp.org>
2805         getrandom, getentropy: Mention the crypto/gc-random module.
2806         Suggested by Simon Josefsson in
2807         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2808         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2809         crypto/gc-random module.
2810         * doc/glibc-functions/getentropy.texi: Likewise.
2812 2020-05-31  Bruno Haible  <bruno@clisp.org>
2814         getentropy: Enhance tests.
2815         * tests/test-getentropy.c (main): Add one more test.
2816         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2818 2020-05-31  Bruno Haible  <bruno@clisp.org>
2820         getentropy: Work around a macOS and Solaris problem.
2821         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2822         'getentropy' module.
2823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2824         UNISTD_H_HAVE_SYS_RANDOM_H.
2825         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2826         UNISTD_H_HAVE_SYS_RANDOM_H.
2827         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2828         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2829         problem. List more platforms.
2831 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2833         fnmatch: merge from glibc
2834         Also, merge in Gnulib’s more-recent methods of making it easier
2835         to share between Gnulib and glibc.
2836         * lib/fnmatch.c: Reorder includes to match glibc better.
2837         Include libc-config.h instead of config.h.
2838         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2839         Do not include "../locale/elem-hash.h" if _LIBC.
2840         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2841         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2842         Include intprops.h, since glibc has it now.
2843         (SIZE_MAX): Remove; use (size_t) -1 instead.
2844         Omit the "Comment out all this code" ifdef, since Gnulib
2845         has never really needed it.
2846         (STREQ): Remove; no longer used.
2847         (__libc_use_alloca, alloca, alloca_account): Define as
2848         needed if !_LIBC.
2849         (ISWCTYPE): Remove; all uses replaced by iswctype.
2850         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2851         (internal_function): Remove.  All uses removed.
2852         (STRUCT): New macro.
2853         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2854         (WMEMCMP): New macro.
2855         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2856         and <locale/weightwc.h>.
2857         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2858         __builtin_expect.  Check for integer overflow more
2859         systematically.  Account for alloca storage better when
2860         recursive.  Use strnlen instead of strlen for efficiency.
2861         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2862         (struct STRUCT): New type.
2863         (FCT, EXT): New ENDS and ALLOCA_USED args.
2864         All callers changed.
2865         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2866         Simplify by assuming WIDE_CHAR_SUPPORT.
2867         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2868         Cast cold to UCHAR to avoid signedness warning.
2869         (END): Check for invalid pattern.
2870         (EXT): Improve alloca/malloc checking (taken from glibc),
2871         and improve it some more by using intprops.h and checking
2872         for integer overflow and using bool for booleans.
2873         * lib/libc-config.h (compat_symbol): New macro.
2874         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2875         acceptable to non-GCC when a trailing semicolon is added.
2876         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2877         libc-config, strnlen.  Remove alloca.
2879 2020-05-31  Bruno Haible  <bruno@clisp.org>
2881         getrandom: Doc and test tweaks.
2882         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2883         it sets errno when failing.
2884         * tests/test-getrandom.c (main): Disable the high-quality check on those
2885         platforms on which it fails.
2886         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2887         Cygwin to the list of platforms that don't have the function. Add a note
2888         about the quality of the result.
2889         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2890         declaration; this is fixed by module 'getrandom'.
2892 2020-05-31  Bruno Haible  <bruno@clisp.org>
2894         getrandom: Add support for native Windows.
2895         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2896         <wincrypt.h>.
2897         (CRYPT_VERIFY_CONTEXT): New macro.
2898         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2899         'A'.
2900         (GetProcAddress): New macro.
2901         (BCryptGenRandomFuncType): New type.
2902         (BCryptGenRandomFunc, initialized): New variables.
2903         (initialize): New function.
2904         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2905         <wincrypt.h> API as fallback.
2906         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2907         * modules/getrandom (Link): New section.
2908         * modules/getentropy (Link): Likewise.
2909         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2910         $(LIB_GETRANDOM).
2911         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2912         $(LIB_GETRANDOM).
2913         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2914         against $(LIB_GETRANDOM).
2915         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2916         support.
2918 2020-05-31  Bruno Haible  <bruno@clisp.org>
2920         getrandom: Simplify the determination of the random number devices.
2921         Suggested by Paul Eggert in
2922         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2923         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2924         macros.
2925         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2927 2020-05-31  Bruno Haible  <bruno@clisp.org>
2929         crypto/gc-random: Fix list of crypto devices for Solaris.
2930         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2932 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2934         list: fix GCC warnings
2935         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2936         (gl_tree_next_node, gl_tree_node_nx_set_value)
2937         (gl_tree_previous_node, gl_tree_next_node):
2938         Mark unused arguments.
2939         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2940         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2941         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2943         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2944         the same variable name in nested scopes.
2946 2020-05-31  Bruno Haible  <bruno@clisp.org>
2948         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2949         Reported by Akim Demaille in
2950         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2951         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2952         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2953         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2954         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2955         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2957 2020-05-30  Bruno Haible  <bruno@clisp.org>
2959         wmemchr: Relicense under LGPLv2+.
2960         * modules/wmemchr (License): Set to LGPLv2+.
2962 2020-05-30  Bruno Haible  <bruno@clisp.org>
2964         wmempcpy: New module.
2965         Reported by Paul Eggert in
2966         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2967         * lib/wchar.in.h (wmempcpy): New declaration.
2968         * lib/wmempcpy.c: New file.
2969         * m4/wmempcpy.m4: New file.
2970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2972         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2973         HAVE_WMEMPCPY.
2974         * modules/wmempcpy: New file.
2975         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2976         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2977         * modules/mempcpy (Description): Fix typo.
2979 2020-05-30  Bruno Haible  <bruno@clisp.org>
2981         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2982         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2984 2020-05-30  Bruno Haible  <bruno@clisp.org>
2986         sys_random: Work around macOS bug.
2987         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2988         <stdlib.h> before <sys/random.h>.
2989         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2990         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2991         first.
2992         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2994 2020-05-30  Bruno Haible  <bruno@clisp.org>
2996         getrandom: Override incompatible system function on Solaris 11.
2997         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2998         * lib/getrandom.c (getrandom): When the system has getrandom, just
2999         invoke it.
3000         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
3001         system's getrandom function's prototype is not the expected one.
3002         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
3003         REPLACE_GETRANDOM.
3004         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
3005         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
3006         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
3007         EAGAIN.
3008         * doc/glibc-functions/getrandom.texi: Mention the new module and the
3009         Solaris problem.
3011 2020-05-30  Bruno Haible  <bruno@clisp.org>
3013         sys_random: Add C++ tests.
3014         * tests/test-sys_random-c++.cc: New file.
3015         * modules/sys_random-c++-tests: New file.
3016         * modules/sys_random-tests (Depends-on): Depend on it.
3018         sys_random: Add tests.
3019         * tests/test-sys_random.c: New file.
3020         * modules/sys_random-tests: New file.
3022         sys_random: New module.
3023         * lib/sys_random.in.h: Use the common idioms for overridable header
3024         files.
3025         * m4/sys_random_h.m4: New file.
3026         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
3027         * modules/sys_random: New file.
3028         * modules/getrandom (Files): Remove lib/sys_random.in.h.
3029         (Depends-on): Add sys_random.
3030         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
3031         gl_UNISTD_MODULE_INDICATOR.
3032         (Makefile.am): Don't generate sys/random.h here.
3033         * doc/glibc-headers/sys_random.texi: New file.
3034         * doc/gnulib.texi: Include it.
3036 2020-05-30  Bruno Haible  <bruno@clisp.org>
3038         unistd: Remove conflicting declaration of getrandom().
3039         * lib/unistd.in.h (getrandom): Remove declaration.
3040         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
3041         declared.
3042         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
3043         HAVE_GETRANDOM.
3044         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
3045         HAVE_GETRANDOM.
3047 2020-05-30  Bruno Haible  <bruno@clisp.org>
3049         getrandom: Add tests.
3050         * tests/test-getrandom.c: New file.
3051         * modules/getrandom-tests: New file.
3053 2020-05-30  Bruno Haible  <bruno@clisp.org>
3055         crypto/gc-random: Fix link error on MSVC.
3056         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
3057         * modules/crypto/gc-random (Link): New section.
3058         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
3059         $(LIB_GC_RANDOM).
3061 2020-05-30  Bruno Haible  <bruno@clisp.org>
3063         Don't assume that UNICODE is not defined.
3064         Many Windows API functions are defined differently (redirecting to a
3065         function with suffix 'W') if the application defines the macro UNICODE
3066         than by default (redirecting to a function with suffix 'A').
3067         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
3068         variant with suffix 'A'.
3069         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
3070         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
3071         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
3072         * lib/getlogin.c (GetUserName): Likewise.
3073         * lib/getlogin_r.c (GetUserName): Likewise.
3074         * lib/gettimeofday.c (LoadLibrary): Likewise.
3075         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
3076         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
3077         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
3078         * lib/mountlist.c (GetDriveType): Likewise.
3079         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
3080         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
3081         Likewise.
3082         * lib/physmem.c (GetModuleHandle): Likewise.
3083         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3084         PeekMessage, DispatchMessage): Likewise.
3085         * lib/progreloc.c (GetModuleFileName): Likewise.
3086         * lib/putenv.c (SetEnvironmentVariable): Likewise.
3087         * lib/read.c (GetNamedPipeHandleState): Likewise.
3088         * lib/readdir.c (FindNextFile): Likewise.
3089         * lib/relocatable.c (GetModuleFileName): Likewise.
3090         * lib/rename.c (MoveFileEx): Likewise.
3091         * lib/rewinddir.c (FindFirstFile): Likewise.
3092         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3093         PeekMessage, DispatchMessage): Likewise.
3094         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
3095         * lib/socket.c (WSASocket): Likewise.
3096         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
3097         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
3098         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
3099         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
3100         * lib/tmpdir.c (GetTempPath): Likewise.
3101         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
3102         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
3103         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
3104         * lib/windows-cond.c (CreateEvent): Likewise.
3105         * lib/windows-rwlock.c (CreateEvent): Likewise.
3106         * lib/windows-timedmutex.c (CreateEvent): Likewise.
3107         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
3108         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
3109         * lib/write.c (GetNamedPipeHandleState): Likewise.
3111 2020-05-30  Bruno Haible  <bruno@clisp.org>
3113         physmem: Fix compilation errors on MSVC.
3114         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
3115         * modules/physmem (Depends-on): Add unistd.
3117 2020-05-29  Bruno Haible  <bruno@clisp.org>
3119         gnulib-tool: Fix link errors with a particular set of modules on mingw.
3120         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
3121         LDADD a second time, after the second occurrence of libtests.a.
3122         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3124 2020-05-29  Bruno Haible  <bruno@clisp.org>
3126         fnmatch: Rely on more gnulib modules.
3127         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
3128         wmempcpy, mempcpy.
3129         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
3130         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
3131         HAVE_MEMPCPY are all 1.
3132         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
3133         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
3135 2020-05-29  Bruno Haible  <bruno@clisp.org>
3137         Avoid dynamic lookup of Windows API functions when possible.
3138         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
3139         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
3140         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
3141         (use_win32_p): Define differently.
3142         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
3143         CreateHardLinkFunc, initialized, initialize): Don't define in a build
3144         for Windows XP or higher.
3146 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3148         read-file: disable buffering if RF_SENSITIVE is set
3149         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
3150         Suggested by Glenn Strauss.
3151         (fread_file): Suggest calling setvbuf before calling this
3152         function.  Suggested by Bruno Haible.
3154 2020-05-29  Bruno Haible  <bruno@clisp.org>
3156         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
3157         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
3158         program.
3159         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
3160         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
3161         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
3162         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
3164 2020-05-29  Bruno Haible  <bruno@clisp.org>
3166         Fix compilation error on native Windows (regression from 2020-05-28).
3167         Reported by Daiki Ueno.
3168         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
3169         macro when not using dynamic loading.
3170         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
3171         QueryFullProcessImageNameFunc): Likewise.
3172         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
3173         GetFinalPathNameByHandleFunc): Likewise.
3175 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3177         fopen-gnu-tests: fix "\x" escape usage
3178         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
3180 2020-05-28  Bruno Haible  <bruno@clisp.org>
3182         Avoid dynamic loading of Windows API functions when possible.
3183         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3184         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
3185         * lib/gettimeofday.c (GetProcAddress,
3186         GetSystemTimePreciseAsFileTimeFuncType,
3187         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
3188         define in a build for Windows 8 or higher.
3189         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
3190         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
3191         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
3192         in a build for Windows Vista or higher.
3193         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
3194         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
3195         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
3197 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3199         explicit_bzero-tests: improve -Wmissing-declarations pacification
3200         * tests/test-explicit_bzero.c: Now noinline.
3201         Suggested by Bruno Haible in:
3202         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
3204 2020-05-28  Bruno Haible  <bruno@clisp.org>
3206         Fix build errors due to read-file changes (regression from 2020-05-27).
3207         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
3208         invocation.
3209         * tests/test-sameacls.c (main): Likewise.
3210         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
3211         read_binary_file.
3212         * tests/test-pipe-filter-ii1.c (main): Likewise.
3214 2020-05-28  Bruno Haible  <bruno@clisp.org>
3216         fts: Make more robust in multithreaded applications.
3217         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
3218         * modules/fts (Depends-on): Add 'open'.
3220 2020-05-28  Bruno Haible  <bruno@clisp.org>
3222         relocatable-prog: Make more robust in multithreaded applications.
3223         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
3224         relocatable-prog-wrapper.
3225         (find_executable): Pass an O_CLOEXEC flag to open().
3226         * modules/relocatable-prog (Depends-on): Add 'open'.
3228 2020-05-28  Bruno Haible  <bruno@clisp.org>
3230         getloadavg: Make more robust in multithreaded applications.
3231         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
3232         Simplify use of O_CLOEXEC.
3233         * modules/getloadavg (Depends-on): Add 'open'.
3235 2020-05-28  Bruno Haible  <bruno@clisp.org>
3237         vma-iter: Make more robust in multithreaded applications.
3238         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
3239         open().
3240         * modules/vma-iter (Depends-on): Add 'open'.
3242 2020-05-28  Bruno Haible  <bruno@clisp.org>
3244         truncate: Make more robust in multithreaded applications.
3245         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
3247 2020-05-28  Bruno Haible  <bruno@clisp.org>
3249         pagealign_alloc: Make more robust in multithreaded applications.
3250         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
3251         open().
3252         * modules/pagealign_alloc (Depends-on): Add 'open'.
3254 2020-05-28  Bruno Haible  <bruno@clisp.org>
3256         openat: Make more robust in multithreaded applications.
3257         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
3259 2020-05-28  Bruno Haible  <bruno@clisp.org>
3261         at-internal: Make more robust in multithreaded applications.
3262         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
3263         open().
3265 2020-05-28  Bruno Haible  <bruno@clisp.org>
3267         mountlist: Make more robust in multithreaded applications.
3268         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
3269         open().
3270         * modules/mountlist (Depends-on): Add 'open'.
3272 2020-05-28  Bruno Haible  <bruno@clisp.org>
3274         login_tty: Make more robust in multithreaded applications.
3275         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
3276         * modules/login_tty (Depends-on): Add 'open'.
3278 2020-05-28  Bruno Haible  <bruno@clisp.org>
3280         javacomp: Make more robust in multithreaded applications.
3281         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
3282         open().
3283         * modules/javacomp (Depends-on): Add 'open'.
3285 2020-05-28  Bruno Haible  <bruno@clisp.org>
3287         getprogname: Make more robust in multithreaded applications.
3288         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
3289         * modules/getprogname (Depends-on): Add 'open'.
3291 2020-05-28  Bruno Haible  <bruno@clisp.org>
3293         get_progname_of: Make more robust in multithreaded applications.
3294         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
3295         open().
3296         * modules/get_progname_of (Depends-on): Add 'open'.
3298 2020-05-28  Bruno Haible  <bruno@clisp.org>
3300         get_ppid_of: Make more robust in multithreaded applications.
3301         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
3302         * modules/get_ppid_of (Depends-on): Add 'open'.
3304 2020-05-28  Bruno Haible  <bruno@clisp.org>
3306         get-rusage-as: Make more robust in multithreaded applications.
3307         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
3308         flag to open().
3309         * modules/get-rusage-as (Depends-on): Add 'open'.
3311 2020-05-28  Bruno Haible  <bruno@clisp.org>
3313         crypto/gc: Make more robust in multithreaded applications.
3314         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
3315         * modules/crypto/gc (Depends-on): Add 'open'.
3317 2020-05-28  Bruno Haible  <bruno@clisp.org>
3319         copy-file: Make more robust in multithreaded applications.
3320         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
3321         open().
3323 2020-05-28  Bruno Haible  <bruno@clisp.org>
3325         chown: Make more robust in multithreaded applications.
3326         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
3328 2020-05-28  Bruno Haible  <bruno@clisp.org>
3330         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
3331         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
3333 2020-05-28  Daiki Ueno  <ueno@gnu.org>
3335         fopen-gnu: make 'b' flag can be used with 'e' on Windows
3336         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
3337         specified on Windows.
3338         * tests/test-fopen-gnu.c (DATA): New define.
3339         (main): Add test for reading binary files with an 'e' flag.
3341 2020-05-27  Bruno Haible  <bruno@clisp.org>
3343         Don't assume that UNICODE is not defined.
3344         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
3345         differently if the application defines the macro UNICODE.
3346         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3347         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
3348         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
3349         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
3350         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
3352 2020-05-27  Bruno Haible  <bruno@clisp.org>
3354         Improve pattern for defining _WIN32_WINNT.
3355         Newer versions of the Windows API may not only add, but also remove API
3356         functions. Therefore, when the user is e.g. building for Windows 10, we
3357         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
3358         use of APIs that were present in Windows 8 but removed in Windows 10.
3359         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
3360         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
3361         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
3362         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3363         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
3365 2020-05-27  Bruno Haible  <bruno@clisp.org>
3367         javacomp: Make more robust in multithreaded applications.
3368         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
3369         * modules/javacomp (Depends-on): Add fopen-gnu.
3371 2020-05-27  Bruno Haible  <bruno@clisp.org>
3373         mountlist: Make more robust in multithreaded applications.
3374         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
3375         to fopen.
3376         * modules/mountlist (Depends-on): Add fopen-gnu.
3378 2020-05-27  Bruno Haible  <bruno@clisp.org>
3380         sethostname: Make more robust in multithreaded applications.
3381         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
3382         * modules/sethostname (Depends-on): Add fopen-gnu.
3384 2020-05-27  Bruno Haible  <bruno@clisp.org>
3386         readutmp: Make more robust in multithreaded applications.
3387         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
3388         * modules/readutmp (Depends-on): Add fopen-gnu.
3390 2020-05-27  Bruno Haible  <bruno@clisp.org>
3392         getpass: Make more robust in multithreaded applications.
3393         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
3394         * modules/getpass (Depends-on): Add fopen-gnu.
3396 2020-05-27  Bruno Haible  <bruno@clisp.org>
3398         getloadavg: Make more robust in multithreaded applications.
3399         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
3400         * modules/getloadavg (Depends-on): Add fopen-gnu.
3402 2020-05-27  Bruno Haible  <bruno@clisp.org>
3404         exclude: Make more robust in multithreaded applications.
3405         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
3406         * modules/exclude (Depends-on): Add fopen-gnu.
3408 2020-05-27  Bruno Haible  <bruno@clisp.org>
3410         bitset: Make more robust in multithreaded applications.
3411         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
3412         'e' flag to fopen.
3413         * modules/bitset (Depends-on): Add fopen-gnu.
3415 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3417         read-file: add RF_SENSITIVE flag
3418         * lib/read-file.h (RF_SENSITIVE): New define.
3419         * lib/read-file.c (fread_file, read_file): Take into account of
3420         RF_SENSITIVE flag.
3421         * modules/read-file (Depends-on): Add explicit_bzero.
3422         This adds an alternative behavior of those functions to explicitly
3423         clear the internal memory block when it becomes unused.  This is
3424         useful for reading sensitive information from a file.
3426 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3428         read-file: add flags to modify reading behavior
3429         * lib/read-file.h (RF_BINARY): New define.
3430         (fread_file, read_file): Take FLAGS argument.
3431         (read_binary_file): Remove.
3432         * lib/read-file.c (internal_read_file): Merge into ...
3433         (read_file): ... here.
3434         * modules/read-file-tests (Files): Add "tests/macros.h".
3435         * tests/test-read-file.c (main): Refactor using ASSERT macro.
3436         * NEWS: Mention this change.
3438 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
3440         doc/gnulib-intro.texi: add missing "to" in sentence
3441         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
3442         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
3443         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
3445 2020-05-26  Bruno Haible  <bruno@clisp.org>
3447         count-one-bits: Fix MSVC specific code.
3448         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3449         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
3450         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
3451         using GCC.
3452         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
3453         (__popcnt64): In 32-bit mode, define as an inline function.
3454         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
3456 2020-05-26  Bruno Haible  <bruno@clisp.org>
3458         argz: Avoid name clashes through argz.h.
3459         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3460         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
3461         * lib/argz.h: Don't use __ prefixed identifiers.
3462         (const): Remove definition.
3463         (argz_next): Remove inline definitions.
3465 2020-05-26  Daiki Ueno  <ueno@gnu.org>
3467         read-file: make use of fopen-gnu
3468         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
3469         (read_binary_file): Likewise.
3470         * modules/read-file (Depends-on): Add fopen-gnu.
3472 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3474         getentropy, getrandom: new modules
3475         * MODULES.html.sh (func_all_modules):
3476         * lib/unistd.in.h (getentropy, getrandom):
3477         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
3478         * modules/unistd (unistd.h):
3479         Add support for getentropy, getrandom.
3480         * doc/glibc-functions/getentropy.texi (getentropy):
3481         * doc/glibc-functions/getrandom.texi (getrandom):
3482         These are now fixed on some platforms.
3483         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
3484         * m4/getentropy.m4, m4/getrandom.m4:
3485         * modules/getentropy, modules/getentropy-tests:
3486         * modules/getrandom, modules/getrandom-tests:
3487         * tests/test-getentropy.c, tests/test-getrandom.c:
3488         New files.
3490 2020-05-25  Bruno Haible  <bruno@clisp.org>
3492         Add missing C99 dependencies.
3493         Reported by Paul Smith <psmith@gnu.org> in
3494         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
3495         * modules/assert (Depends-on): Add c99.
3496         * modules/filenamecat-lgpl (Depends-on): Likewise.
3497         * modules/libc-config (Depends-on): Likewise.
3498         * modules/mktime (Depends-on): Likewise.
3499         * modules/random_r (Depends-on): Likewise.
3500         * modules/regex (Depends-on): Likewise.
3501         * modules/scratch_buffer (Depends-on): Likewise.
3502         * modules/timespec-add (Depends-on): Likewise.
3503         * modules/timespec-sub (Depends-on): Likewise.
3504         * modules/verify (Depends-on): Likewise.
3506 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3508         explicit_bzero-tests: pacify -Wmissing-declarations
3509         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
3510         Now static.
3512 2020-05-24  Bruno Haible  <bruno@clisp.org>
3514         fopen-gnu: Add tests.
3515         * tests/test-fopen-gnu.c: New file.
3516         * modules/fopen-gnu-tests: New file.
3518         fopen-gnu: New module.
3519         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
3520         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
3521         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
3522         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
3523         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
3524         * modules/fopen-gnu: New file.
3525         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
3527 2020-05-24  Bruno Haible  <bruno@clisp.org>
3529         open, openat: Really support O_CLOEXEC.
3530         * lib/open.c (open): When have_cloexec is still undecided, do pass a
3531         O_CLOEXEC flag to orig_open.
3532         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
3533         pass a O_CLOEXEC flag to orig_openat.
3534         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
3535         * modules/open-tests (Depends-on): Add fcntl.
3536         * modules/openat-tests (Depends-on): Likewise.
3537         * modules/fcntl-safer-tests (Depends-on): Likewise.
3539 2020-05-24  Bruno Haible  <bruno@clisp.org>
3541         fopen: Fix the trailing slash workaround.
3542         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
3543         write access. Pass the right flags to open().
3544         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
3546 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3548         assure: new macro ‘affirm’
3549         * lib/assure.h: Include verify.h.
3550         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
3551         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
3552         and commentary by Bruno Haible in:
3553         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
3554         * modules/assure (Depends-on:): Add verify.
3556 2020-05-23  Bruno Haible  <bruno@clisp.org>
3558         calloc-gnu: Make test work in non-flat address spaces.
3559         Uses code by Paul Eggert.
3560         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
3561         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
3563 2020-05-23  Bruno Haible  <bruno@clisp.org>
3565         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
3566         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
3567         AC_RUN_IFELSE invocations.
3569 2020-05-23  Bruno Haible  <bruno@clisp.org>
3571         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
3572         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
3573         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
3574         don't have it.
3575         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3576         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
3577         don't have it.
3578         * lib/isnanf-nolibm.h (__has_builtin): New macro.
3579         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3580         it.
3581         * lib/isnanl-nolibm.h (__has_builtin): New macro.
3582         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3583         it.
3584         * lib/math.in.h (__has_builtin): New macro.
3585         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3586         it.
3587         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3588         it.
3589         (isnan): Don't use the builtins on clang versions that don't have
3590         __builtin_isnanf and __builtin_isnanl.
3592 2020-05-23  Bruno Haible  <bruno@clisp.org>
3594         calloc-gnu: Avoid wrong configure results with clang.
3595         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
3596         'volatile', to defeat compiler optimizations.
3598 2020-05-23  Bruno Haible  <bruno@clisp.org>
3600         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
3601         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
3602         'long double' values by reference, with values taken from a statically
3603         allocated array.
3605 2020-05-23  Bruno Haible  <bruno@clisp.org>
3607         findprog-in: Ignore directories.
3608         Reported by Frederick Eaton via Dmitry Goncharov in
3609         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3610         * lib/findprog-in.c (find_in_given_path): When the file found is a
3611         directory, set errno to EACCES and, during a PATH search, continue
3612         searching.
3613         * modules/findprog-in (Depends-on): Add sys_stat, stat.
3615 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3617         verify: document ‘assume’ better
3618         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
3620 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
3622         gendocs: Clarify licenses for templates.
3623         * doc/gendocs_template: Add a GNU All-Permissive license notice
3624         and bump Parent-Version.
3625         * doc/gendocs_template_min: Add a GNU All-Permissive license
3626         notice and copy the explanatory comment about the license notice
3627         at the bottom from gendocs_template.
3629 2020-05-21  Bruno Haible  <bruno@clisp.org>
3631         group-member: Relicense under LGPLv2+.
3632         Jim Meyering's approval is in
3633         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
3634         Paul Eggert's approval is in
3635         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
3636         Eric Blake's approval is in
3637         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
3638         * modules/group-member (License): Change to LGPLv2+.
3640 2020-05-21  Bruno Haible  <bruno@clisp.org>
3642         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
3643         Reported by Tim Rühsen in
3644         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3645         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
3647 2020-05-21  Bruno Haible  <bruno@clisp.org>
3649         regex: Avoid wrong configure results with "clang -fsanitize=leak".
3650         Reported by Tim Rühsen in
3651         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3652         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
3653         before returning with status 0.
3655 2020-05-21  Bruno Haible  <bruno@clisp.org>
3657         glob: Avoid wrong configure results with "clang -fsanitize=leak".
3658         Reported by Tim Rühsen in
3659         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3660         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
3662 2020-05-21  Bruno Haible  <bruno@clisp.org>
3664         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
3665         Reported by Tim Rühsen in
3666         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3667         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3668         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3669         respectively.
3671 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3673         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3676 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3678         ftoastr: fix ifndef typo
3679         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3681 2020-05-19  Bruno Haible  <bruno@clisp.org>
3683         havelib: Tweak documentation.
3684         * doc/havelib.texi (Searching for Libraries): Fix typo.
3686 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3688         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3689         This was needed earlier because modules had to import the main script,
3690         but that is no longer true.  Rename the script so that it is
3691         consistent with all other scripts in gnulib and uses hyphens.
3692         * build-aux/vcs_to_changelog.py: Rename to...
3693         * build-aux/vcs-to-changelog.py: ... this.
3694         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3695         * modules/vcs-to-changelog: Likewise.
3697 2020-05-17  Bruno Haible  <bruno@clisp.org>
3699         Clarify intended usage of the license file modules.
3700         Reported by Asher Gordon <AsDaGo@posteo.net> in
3701         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3702         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3703         GNU AGPL. Explain the intended usage of the modules.
3704         * modules/fdl (Notice): Discourage use as a module.
3705         * modules/fdl-1.3 (Notice): Likewise.
3707 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
3709         hash: add hash_xinsert
3710         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
3712 2020-05-16  Bruno Haible  <bruno@clisp.org>
3714         findprog-lgpl: Fix link error (existing since 2008-09-02).
3715         * modules/findprog-lgpl (Makefile.am): Arrange to compile
3716         findprog-lgpl.c, not findprog.c.
3717         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
3718         XNMALLOC.
3720 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
3722         c-stack: pacify -Wunused-result when DEBUG
3723         Problem reported by Marc Nieper-Wißkirchen in:
3724         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
3725         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3726         Explicitly ignore write failures.
3728 2020-05-13  Jim Meyering  <meyering@fb.com>
3730         announce-gen: improve a comment
3731         * build-aux/announce-gen: Improve comment.
3733 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3735         xalloc: pacify -Wanalyzer-possible-null-argument
3736         Problem reported for GCC 10.1.0 by Bruno Haible in:
3737         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
3738         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
3739         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
3740         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
3742 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3744         careadlinkat: fix GCC 10 workaround
3745         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3746         Massage the code so that it’s closer to what it was before
3747         the GCC 10.1.0 workaround was introduced.  This fixes
3748         a loop when !buffer and the bug workaround is in effect.
3749         Remove unnecessary casts.  Defend in a different way
3750         against (buffer && !buffer_size), by adding at least 1
3751         to buf_size each time through the loop.
3753 2020-05-10  Bruno Haible  <bruno@clisp.org>
3755         doc: Mark HP-UX as unsupported.
3756         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
3758 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3760         careadlinkat: limit GCC workaround
3761         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
3762         10.1.0 and later, since the workaround is pretty bad and the GCC
3763         bug should get fixed.
3765 2020-05-10  Bruno Haible  <bruno@clisp.org>
3767         havelib: Enhance documentation.
3768         * doc/havelib.texi (Searching for Libraries): Mention the bad
3769         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
3771 2020-05-10  Bruno Haible  <bruno@clisp.org>
3773         attribute: Clarify list of attributes.
3774         * lib/attribute.h: Reorder the list of attributes, and group them by
3775         purpose.
3777 2020-05-10  Bruno Haible  <bruno@clisp.org>
3779         string: Fix compilation error in C++ mode.
3780         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
3781         _GL_WARN_ON_USE.
3782         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
3783         instead of _GL_WARN_ON_USE.
3785 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
3787         announce-gen: add support for dist-lzip
3788         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
3790 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3792         manywarnings: port to GCC 10.1
3793         * build-aux/gcc-warning.spec:
3794         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
3795         Add GCC 10.1.0 warnings.
3797         careadlinkat: pacify -Wreturn-local-addr
3798         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3799         Pacify gcc 10’s -Wreturn-local-addr option.
3800         Simplify some of the later code.
3802 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3804         attribute: remove ATTRIBUTE_DEPRECATED
3805         * lib/attribute.h: Improve recently-added comments, mostly
3806         by shortening them (use active voice, etc.).
3807         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3808         Problem reported by Bruno Haible in:
3809         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3811 2020-05-09  Bruno Haible  <bruno@clisp.org>
3813         attribute: Add comments.
3814         * lib/attribute.h: Document each macro.
3816 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3818         bitset: use the attribute module
3819         * modules/bitset: Depend on 'attribute'.
3820         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3821         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3822         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3823         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3825 2020-05-09  Bruno Haible  <bruno@clisp.org>
3827         c-stack: Fix warning when DEBUG is enabled.
3828         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3830         * lib/c-stack.c: Include <stdio.h>.
3832 2020-05-09  Bruno Haible  <bruno@clisp.org>
3834         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3835         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3836         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3837         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3838         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3839         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3840         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3841         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3842         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3843         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3844         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3845         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3846         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3848 2020-05-09  Bruno Haible  <bruno@clisp.org>
3850         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3851         Reported by Akim Demaille in
3852         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3853         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3854         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3855         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3857 2020-05-09  Bruno Haible  <bruno@clisp.org>
3859         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3860         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3861         that usually comes from m4/gnulib-common.m4.
3862         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3864 2020-05-09  Bruno Haible  <bruno@clisp.org>
3866         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3867         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3868         that usually comes from m4/gnulib-common.m4.
3869         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3870         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3871         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3873 2020-05-09  Bruno Haible  <bruno@clisp.org>
3875         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3876         * lib/uchar.in.h (char16_t): Define as macro if
3877         GNULIB_OVERRIDES_CHAR16_T.
3878         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3879         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3880         (gl_UCHAR_H): Invoke them.
3881         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3882         GNULIB_OVERRIDES_CHAR32_T.
3883         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3884         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3885         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3886         GNULIB_OVERRIDES_CHAR32_T.
3888 2020-05-09  Bruno Haible  <bruno@clisp.org>
3890         Macro tweaks.
3891         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3892         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3894 2020-05-08  Bruno Haible  <bruno@clisp.org>
3896         c32rtomb: Avoid compilation failure on Haiku.
3897         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3898         inline definitions.
3899         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3901 2020-05-08  Bruno Haible  <bruno@clisp.org>
3903         mbrtoc32: Avoid compilation failure on Haiku.
3904         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3905         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3906         AC_CHECK_FUNCS_ONCE.
3907         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3909 2020-05-08  Bruno Haible  <bruno@clisp.org>
3911         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3912         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3914 2020-05-08  Bruno Haible  <bruno@clisp.org>
3916         list: Update documentation.
3917         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3918         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3919         * doc/containers.texi (Container data types): Document the new list
3920         operations and their complexity.
3922 2020-05-08  Bruno Haible  <bruno@clisp.org>
3924         ignore-value tests: Use module 'attribute'.
3925         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3926         * tests/test-ignore-value.c: Include attribute.h.
3927         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3928         * modules/ignore-value-tests (Depends-on): Add attribute.
3930 2020-05-08  Bruno Haible  <bruno@clisp.org>
3932         uniname/uniname: Use module 'attribute'.
3933         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3934         * lib/uniname/uninames.h: Regenerated.
3935         * lib/uniname/uniname.c: Include attribute.h.
3936         * modules/uniname/uniname (Depends-on): Add attribute.
3938 2020-05-08  Bruno Haible  <bruno@clisp.org>
3940         c32rtomb: Use module 'attribute'.
3941         * lib/c32rtomb.c: Include attribute.h.
3942         (FALLTHROUGH): Remove macro.
3943         * modules/c32rtomb (Depends-on): Add attribute.
3945 2020-05-08  Bruno Haible  <bruno@clisp.org>
3947         xsize: Use module 'attribute'.
3948         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3949         * modules/xsize (Depends-on): Add attribute.
3951 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3953         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3955         * lib/attribute.h: Minor style fixes.
3957         Fix version-etc glitch on OpenIndiana
3958         Problem reported by Mats Erik Andersson in:
3959         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3960         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3961         that now clashes with gnulib-common.h.  All uses changed.
3963 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3965         attribute: new module
3966         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3967         * MODULES.html.sh: Add attribute.
3968         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3969         * doc/gnulib.texi (Particular Modules): Add Attributes.
3970         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3971         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3972         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3973         * lib/vasnprintf.c:
3974         Include attribute.h, and let it define FALLTHROUGH.
3975         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3976         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3977         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3978         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3979         This is a copy since Gawk doesn’t use Gnulib.
3980         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3981         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3982         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3983         Keep the existing FALLTHROUGH definition since Glibc might use it,
3984         and it does no harm to Gnulib’s FALLTHROUGH.
3985         * lib/fts_.h, lib/inttostr.h:
3986         (__GNUC_PREREQ): Remove; no longer needed.
3987         (__attribute_warn_unused_result__): Remove.  All uses
3988         replaced by _GL_ATTRIBUTE_NODISCARD.
3989         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3990         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3991         __attribute__ ((__warn_unused_result__)), for forward
3992         compatibility to C2X.
3993         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3994         _GL_ATTRIBUTE_NODISCARD.
3995         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3996         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3997         replaced by gl_COMMON_BODY’s implementation, which has a
3998         slightly different signature.
3999         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
4000         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
4001         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
4002         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
4003         No doubt all uses should be replaced, at some point.
4004         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
4005         (_Noreturn): Use it.
4006         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
4007         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
4008         (_GL_ATTRIBUTE_COLD)
4009         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
4010         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
4011         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
4012         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
4013         (_GL_ATTRIBUTE_MAYBE_UNUSED)
4014         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
4015         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
4016         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
4017         (_GL_ATTRIBUTE_RETURNS_NONNULL)
4018         (_GL_ATTRIBUTE_SENTINEL): New macros.
4019         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
4020         * modules/fnmatch, modules/freopen-safer, modules/fts:
4021         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
4022         * modules/quotearg, modules/savewd:
4023         * modules/unistdio/u16-u16-vasnprintf:
4024         * modules/unistdio/u16-vasnprintf:
4025         * modules/unistdio/u32-u32-vasnprintf:
4026         * modules/unistdio/u32-vasnprintf:
4027         * modules/unistdio/u8-u8-vasnprintf:
4028         * modules/unistdio/u8-vasnprintf:
4029         * modules/unistdio/ulc-vasnprintf:
4030         * modules/unistr/u8-uctomb, modules/vasnprintf:
4031         (Depends-on:): Add attribute module.
4033 2020-05-03  Bruno Haible  <bruno@clisp.org>
4035         bison: Fix today's commit.
4036         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
4038 2020-05-03  Bruno Haible  <bruno@clisp.org>
4040         list-c++: Add get_first, get_last, set_first, set_last operations.
4041         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
4042         set_first, set_last.
4043         * lib/gl_list.h: Tweak comments.
4045 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
4047         bison: rely on bison's %require to check a version requirement
4048         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
4049         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
4050         enough of not.
4051         So far it is the only know Yacc tool that supports '%require'.
4052         Other yaccs will actually even choke on seeing the -o option after the
4053         input file name.
4054         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
4056 2020-05-02  Bruno Haible  <bruno@clisp.org>
4058         list: Add get_first, get_last, set_first, set_last operations.
4059         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
4060         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
4061         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
4063 2020-05-02  Bruno Haible  <bruno@clisp.org>
4065         list: Remove redundant code for remove_first and remove_last operations.
4066         * lib/gl_list.h (struct gl_list_implementation): Remove fields
4067         remove_first, remove_last.
4068         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
4069         * lib/gl_array_list.c: Revert last change.
4070         * lib/gl_carray_list.c: Likewise.
4071         * lib/gl_anylinked_list2.h: Likewise.
4072         * lib/gl_linked_list.c: Likewise.
4073         * lib/gl_linkedhash_list.c: Likewise.
4074         * lib/gl_anytree_list2.h: Likewise.
4075         * lib/gl_avltree_list.c: Likewise.
4076         * lib/gl_avltreehash_list.c: Likewise.
4077         * lib/gl_rbtree_list.c: Likewise.
4078         * lib/gl_rbtreehash_list.c: Likewise.
4079         * lib/gl_sublist.c: Likewise.
4081 2020-05-02  Bruno Haible  <bruno@clisp.org>
4083         bison-i18n: Add support for cross-compilation.
4084         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
4085         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
4086         via Akim Demaille <akim@lrde.epita.fr>.
4087         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
4088         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
4089         Don't use bison's --print-localedir option when cross-compiling.
4090         Also, fix an error message and a comment.
4092 2020-05-01  Bruno Haible  <bruno@clisp.org>
4094         list: Add remove_first and remove_last operations.
4095         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4096         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
4097         * lib/gl_list.h (struct gl_list_implementation): Add fields
4098         remove_first, remove_last.
4099         (gl_list_remove_first, gl_list_remove_last): New functions.
4100         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
4101         functions, based on gl_array_remove_at.
4102         (gl_array_list_implementation): Implement the new operations.
4103         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
4104         New functions, based on gl_carray_remove_at.
4105         (gl_carray_list_implementation): Implement the new operations.
4106         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
4107         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
4108         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
4109         new operations.
4110         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
4111         Likewise.
4112         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
4113         New functions, based on gl_tree_remove_at.
4114         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
4115         new operations.
4116         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4117         Likewise.
4118         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
4119         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
4120         Likewise.
4121         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
4122         New functions, based on gl_sublist_remove_at.
4123         (gl_sublist_list_implementation): Implement the new operations.
4124         * lib/gl_list.hh (class gl_List): Add methods remove_first,
4125         remove_last.
4126         * tests/test-array_list.c (main): Test also gl_list_remove_first and
4127         gl_list_remove_last.
4128         * tests/test-avltree_list.c (main): Likewise.
4129         * tests/test-avltreehash_list.c (main): Likewise.
4130         * tests/test-carray_list.c (main): Likewise.
4131         * tests/test-linked_list.c (main): Likewise.
4132         * tests/test-linkedhash_list.c (main): Likewise.
4133         * tests/test-rbtree_list.c (main): Likewise.
4134         * tests/test-rbtreehash_list.c (main): Likewise.
4136 2020-05-01  Bruno Haible  <bruno@clisp.org>
4138         parse-datetime: Fix a build failure with an older bison version.
4139         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
4140         parse-datetime.tab.c if a suitable version of bison was not found.
4142 2020-05-01  Bruno Haible  <bruno@clisp.org>
4144         bison: New module.
4145         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
4146         m4/parse-datetime.m4.
4147         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
4148         * modules/bison: New file.
4149         * modules/parse-datetime (Files): Remove m4/bison.m4.
4150         (Depends-on): Add bison.
4152 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
4154         Update users.txt.
4155         * users.txt: Add poke.
4157 2020-04-28  Bruno Haible  <bruno@clisp.org>
4159         posix_spawn_file_actions_addfchdir tests: Enhance test.
4160         * tests/test-posix_spawn5.c: Include findprog.h.
4161         (test): New function, extracted from main.
4162         (main): Invoke it. Also, invoke it with a program name such as
4163         "bin/pwd".
4164         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
4165         findprog.
4167 2020-04-28  Bruno Haible  <bruno@clisp.org>
4169         posix_spawn_file_actions_addchdir tests: Enhance test.
4170         * tests/test-posix_spawn4.c: Include findprog.h.
4171         (test): New function, extracted from main.
4172         (main): Invoke it. Also, invoke it with a program name such as
4173         "bin/pwd".
4174         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
4175         findprog.
4177 2020-04-28  Bruno Haible  <bruno@clisp.org>
4179         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
4180         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
4181         access elements of the wrong union member.
4183 2020-04-27  Bruno Haible  <bruno@clisp.org>
4185         getdate: Remove deprecated module.
4186         * modules/getdate: Remove file.
4187         * doc/getdate.texi: Remove file.
4188         * lib/getdate.h: Remove file.
4189         * NEWS: Mention the removal.
4191 2020-04-27  Bruno Haible  <bruno@clisp.org>
4193         realloc: Remove deprecated module.
4194         * modules/realloc: Remove file.
4195         * NEWS: Mention the removal.
4197 2020-04-27  Bruno Haible  <bruno@clisp.org>
4199         calloc: Remove deprecated module.
4200         * modules/calloc: Remove file.
4201         * NEWS: Mention the removal.
4203 2020-04-27  Bruno Haible  <bruno@clisp.org>
4205         malloc: Remove deprecated module.
4206         * modules/malloc: Remove file.
4207         * NEWS: Mention the removal.
4209 2020-04-27  Bruno Haible  <bruno@clisp.org>
4211         fnmatch-posix: Remove deprecated module.
4212         * modules/fnmatch-posix: Remove file.
4213         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
4214         * NEWS: Mention the removal.
4216 2020-04-27  Bruno Haible  <bruno@clisp.org>
4218         pipe: Remove deprecated module.
4219         * modules/pipe: Remove file.
4220         * lib/pipe.h: Remove file.
4221         * NEWS: Mention the removal.
4223 2020-04-27  Bruno Haible  <bruno@clisp.org>
4225         getopt: Remove deprecated module.
4226         * modules/getopt: Remove file.
4227         * NEWS: Mention the removal.
4229 2020-04-27  Bruno Haible  <bruno@clisp.org>
4231         remove-dest-slash: Remove deprecated module.
4232         * modules/rename-dest-slash: Remove file.
4233         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
4234         Update.
4235         * NEWS: Mention the removal.
4237 2020-04-27  Bruno Haible  <bruno@clisp.org>
4239         unictype/bidicategory-*: Remove deprecated modules.
4240         * modules/unictype/bidicategory-all: Remove file.
4241         * modules/unictype/bidicategory-byname: Remove file.
4242         * modules/unictype/bidicategory-name: Remove file.
4243         * modules/unictype/bidicategory-of: Remove file.
4244         * modules/unictype/bidicategory-test: Remove file.
4245         * MODULES.html.sh (Unicode string functions): Update.
4246         * NEWS: Mention the removals.
4248 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4250         Tune fts for FTS_LOGICAL+FTS_NOSTAT
4251         From a suggestion by Askar Safin in:
4252         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
4253         * lib/fts.c (fts_build): If file types are known, optimize
4254         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
4255         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
4256         non-directories.
4258 2020-04-19  Bruno Haible  <bruno@clisp.org>
4260         vasnprintf: Add support for printing wide characters using escapes.
4261         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
4262         (wctomb_fallback): New function.
4263         (local_wctomb): New function.
4264         (local_wcrtomb): New function or macro.
4265         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
4266         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
4267         %lc.
4269 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
4271         fts: remove NOSTAT_LEAF_OPTIMIZATION
4272         It caused ‘find’ and ‘du’ to dump core, and it was useful
4273         only for obsolescent Linux filesystems anyway.  Problem reported in:
4274         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
4275         Quite possibly there is still a serious underlying fts bug with
4276         tight-loop-check and mutating file systems, but if so this patch
4277         should cause the bug to be triggered less often.
4278         * lib/fts.c (enum leaf_optimization): Remove
4279         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
4280         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
4281         (leaf_optimization): Remove special cases for ReiserFS and XFS.
4282         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
4283         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
4284         Remove.  All uses removed.
4286 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4288         explicit_bzero: Improve code style.
4289         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
4291 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4293         explicit_bzero: On native Windows, use SecureZeroMemory().
4294         * lib/explicit_bzero.c: Include <windows.h>.
4295         (explicit_bzero): On native Windows, use SecureZeroMemory.
4297 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4299         explicit_bzero: Use memset_s() when available.
4300         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
4301         (explicit_bzero): Use memset_s when available.
4302         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
4304 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4306         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
4307         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
4308         free() that overwrite the memory with canaries.
4310 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
4312         bootstrap: recommend git submodule update --init
4313         Reported by Bruno Haible.
4314         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
4315         * build-aux/bootstrap: recommand "git submodule update --init"
4316         rather than "git submodule init".
4318 2020-04-12  Bruno Haible  <bruno@clisp.org>
4320         explicit_bzero: Add tests.
4321         * tests/test-explicit_bzero.c: New file.
4322         * modules/explicit_bzero-tests: New file.
4324 2020-04-11  Bruno Haible  <bruno@clisp.org>
4326         explicit_bzero: Relicense under LGPLv2+.
4327         Approved by Paul Eggert.
4328         * modules/explicit_bzero (License): Change to LGPLv2+.
4330 2020-04-10  Bruno Haible  <bruno@clisp.org>
4332         findprog, relocatable-prog: Ignore directories during PATH search.
4333         Reported by Frederick Eaton via Dmitry Goncharov in
4334         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4336         * lib/findprog.c (find_in_path): When the file found in a PATH element
4337         is a directory, continue searching.
4338         * modules/findprog (Depends-on): Add sys_stat, stat.
4339         * modules/findprog-lgpl (Depends-on): Likewise.
4341         * lib/progreloc.c (maybe_executable): When the file found in a PATH
4342         element is a directory, continue searching.
4343         * lib/relocwrapper.c: Update comments.
4344         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
4345         (configure.ac-early): New section.
4347 2020-04-10  Bruno Haible  <bruno@clisp.org>
4349         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
4350         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4351         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
4352         * MODULES.html.sh: In a git-less tarball, use the date of the first
4353         ChangeLog entry.
4355 2020-04-04  Bruno Haible  <bruno@clisp.org>
4357         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
4358         * m4/gettext.m4: Fix comments regarding the gettext library.
4359         * m4/intl-thread-locale.m4: Likewise.
4360         * m4/intlmacosx.m4: Likewise.
4361         * m4/lcmessage.m4: Likewise.
4362         * m4/nls.m4: Likewise.
4363         * m4/po.m4: Likewise.
4364         * m4/progtest.m4: Likewise.
4366 2020-04-04  Jim Meyering  <meyering@fb.com>
4368         maint: remove a stray inter-word space in a 6x-repeated comment
4369         Induce the changes by running this:
4370           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
4371         * build-aux/announce-gen: Change "by  perl" to "by perl".
4372         * build-aux/gitlog-to-changelog: Likewise.
4373         * build-aux/prefix-gnulib-mk: Likewise.
4374         * build-aux/update-copyright: Likewise.
4375         * build-aux/useless-if-before-free: Likewise.
4376         * tests/test-update-copyright.sh: Likewise.
4378 2020-03-28  Bruno Haible  <bruno@clisp.org>
4380         Use module 'filename' instead of module 'dosname'.
4382         * lib/at-func.c: Include filename.h instead of dosname.h.
4383         * lib/unlinkat.c: Likewise.
4384         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
4385         * modules/areadlinkat-with-size (Depends-on): Likewise.
4386         * modules/faccessat (Depends-on): Likewise.
4387         * modules/fchmodat (Depends-on): Likewise.
4388         * modules/fchownat (Depends-on): Likewise.
4389         * modules/fstatat (Depends-on): Likewise.
4390         * modules/mkdirat (Depends-on): Likewise.
4391         * modules/mkfifoat (Depends-on): Likewise.
4392         * modules/readlinkat (Depends-on): Likewise.
4393         * modules/selinux-at (Depends-on): Likewise.
4394         * modules/symlinkat (Depends-on): Likewise.
4395         * modules/unlinkat (Depends-on): Likewise.
4396         * modules/utimensat (Depends-on): Likewise.
4398         * lib/at-func2.c: Include filename.h instead of dosname.h.
4399         * modules/linkat (Depends-on): Add filename. Remove dosname.
4400         * modules/renameatu (Depends-on): Likewise.
4402         * lib/canonicalize.c: Include filename.h instead of dosname.h.
4403         * lib/canonicalize-lgpl.c: Likewise.
4404         * modules/canonicalize (Depends-on): Add filename.
4405         * modules/canonicalize-lgpl (Depends-on): Likewise.
4407         * lib/dirname.h: Include filename.h instead of dosname.h.
4408         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
4410         * lib/fchdir.c: Include filename.h instead of dosname.h.
4411         * modules/fchdir (Depends-on): Add filename. Remove dosname.
4413         * lib/openat.c: Include filename.h instead of dosname.h.
4414         * modules/openat (Depends-on): Add filename. Remove dosname.
4416         * lib/rmdir.c: Include filename.h instead of dosname.h.
4417         * modules/rmdir (Depends-on): Add filename. Remove dosname.
4419         * lib/savewd.c: Include filename.h instead of dosname.h.
4420         * modules/savewd (Depends-on): Add filename. Remove dosname.
4422         * lib/unlink.c: Include filename.h instead of dosname.h.
4423         * modules/unlink (Depends-on): Add filename. Remove dosname.
4425         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
4426         * lib/relocwrapper.c: Update comments.
4428         * modules/lstat (Depends-on): Remove dosname.
4430 2020-03-28  Bruno Haible  <bruno@clisp.org>
4432         dosname: Redirect to 'filename'.
4433         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4434         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
4435         * lib/dosname.h: Remove all definitions. Just include filename.h.
4436         * modules/dosname (Status, Notice): Mark as deprecated.
4437         (Depends-on): Add 'filename'.
4439 2020-03-28  Bruno Haible  <bruno@clisp.org>
4441         dosname: Change IS_RELATIVE_FILE_NAME.
4442         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
4443         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
4444         * NEWS: Mention the change.
4446 2020-03-28  Bruno Haible  <bruno@clisp.org>
4448         filename: Copy some definitions from module 'dosname'.
4449         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
4450         (HAS_DEVICE): Document macro.
4451         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
4452         (IS_ABSOLUTE_FILE_NAME): Consider
4453         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
4454         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
4455         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
4456         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
4457         IS_PATH_WITH_DIR.
4458         (DllMain): Update.
4459         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
4460         IS_PATH_WITH_DIR.
4461         (find_executable): Update.
4462         * NEWS: Document the deprecations.
4464 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4466         getopt-posix: port __GETOPT_PREFIX to macOS
4467         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
4468         Define to work around a problem with asm on macOS (Bug#40205).
4470 2020-03-22  Bruno Haible  <bruno@clisp.org>
4472         MODULES.html.sh: Add support for reproducible builds.
4473         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4474         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
4475         * MODULES.html.sh: Print the date of the last gnulib commit, not the
4476         current date.
4478 2020-03-22  Bruno Haible  <bruno@clisp.org>
4480         Several modules: Depend on stat.
4481         * modules/acl-permissions (Depends-on): Add stat.
4482         * modules/canonicalize (Depends-on): Likewise.
4483         * modules/file-has-acl (Depends-on): Likewise.
4484         * modules/fstat (Depends-on): Likewise.
4485         * modules/fstatat (Depends-on): Likewise.
4486         * modules/glob (Depends-on): Likewise.
4487         * modules/javacomp (Depends-on): Likewise.
4488         * modules/linkat (Depends-on): Likewise.
4489         * modules/mkdir (Depends-on): Likewise.
4490         * modules/pt_chown (Depends-on): Likewise.
4491         * modules/ptsname_r (Depends-on): Likewise.
4492         * modules/readlinkat (Depends-on): Likewise.
4493         * modules/rename (Depends-on): Likewise.
4494         * modules/renameatu (Depends-on): Likewise.
4495         * modules/tmpdir (Depends-on): Likewise.
4496         * modules/utimens (Depends-on): Likewise.
4497         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
4498         * modules/same (Depends-on): Remove stat.
4500 2020-03-22  Bruno Haible  <bruno@clisp.org>
4502         acl-permissions: Improve autoconf macro.
4503         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
4504         more reliably.
4506 2020-03-22  Bruno Haible  <bruno@clisp.org>
4508         file-has-acl: Fix module description.
4509         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
4510         (Depends-on): Depend on acl-permissions unconditionally.
4512 2020-03-21  Bruno Haible  <bruno@clisp.org>
4514         unlink: Ensure errno also on native Windows.
4515         * modules/unlink (Depends-on): Add malloc-posix.
4517 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4519         unlink: fix malloc errno typo
4520         Problem reported by Tim Rühsen in:
4521         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
4522         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
4524 2020-03-16  Bruno Haible  <bruno@clisp.org>
4526         *printf-posix: Fix m4 error (regression from 2020-03-08).
4527         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
4528         brackets in AC_COMPILE_IFELSE invocation.
4530 2020-03-08  Bruno Haible  <bruno@clisp.org>
4532         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
4533         * modules/crypto/af_alg (Depends-on): Add fstat.
4534         * modules/renameatu (Depends-on): Likewise.
4535         * modules/same (Depends-on): Likewise.
4536         * modules/term-style-control (Depends-on): Likewise.
4538 2020-03-08  Bruno Haible  <bruno@clisp.org>
4540         *printf-posix: Document why it's overridden on some glibc systems.
4541         Reported by Adrian Bunk <bunk@stusta.de> in
4542         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
4543         * doc/posix-functions/*printf.texi: Document the problem with the %n
4544         directive on some glibc systems.
4545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
4546         the cross-compilation guesses accordingly.
4548 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4550         open, openat: port to (O_RDWR | O_RDONLY) != 0
4551         Potential portability problem reported by Dan Gohman in:
4552         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
4553         * lib/open.c (open):
4554         * lib/openat.c (rpl_openat):
4555         Don’t assume O_RDONLY is disjoint from O_RDWR.
4557 2020-03-07  Bruno Haible  <bruno@clisp.org>
4559         openat: Fix theoretically possible issue on GNU/Hurd.
4560         Reported by Dan Gohman <sunfish@mozilla.com> in
4561         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
4562         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
4563         ignore the bits that are also set in O_RDONLY.
4565 2020-02-24  Bruno Haible  <bruno@clisp.org>
4567         getloadavg: Don't use /usr/local when cross-compiling on AIX.
4568         Reported by Jens Rehsack <sno@netbsd.org> in
4569         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
4570         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
4571         cross-compiling.
4573 2020-02-24  Bruno Haible  <bruno@clisp.org>
4575         fcntl: Add witness of gnulib override.
4576         Reported by Jens Rehsack <sno@netbsd.org> in
4577         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
4578         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
4579         macros.
4581 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
4583         Update users.txt.
4584         * users.txt: Add datamash, time.
4586 2020-02-23  Bruno Haible  <bruno@clisp.org>
4588         uni*/base: Use 'restrict'.
4589         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
4590         from lib/regex.h.
4591         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
4592         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
4593         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
4594         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
4595         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
4596         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
4597         '_UC_RESTRICT'.
4598         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
4599         u32_conv_to_encoding): Use '_UC_RESTRICT'.
4600         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
4601         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
4602         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4603         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4604         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
4605         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
4606         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
4607         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
4608         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
4609         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
4610         '_UC_RESTRICT'.
4611         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
4612         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
4613         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
4614         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
4615         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
4616         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
4617         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
4618         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
4620 2020-02-23  Bruno Haible  <bruno@clisp.org>
4622         glob, spawn: Use improved '_Restrict_' definition.
4623         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
4624         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
4626 2020-02-23  Bruno Haible  <bruno@clisp.org>
4628         crypto/gc: Use 'restrict'.
4629         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
4630         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
4632         crypto/hmac-*: Use 'restrict'.
4633         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
4634         'restrict'.
4635         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
4636         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
4637         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
4638         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
4640         crypto/sm3: Use 'restrict'.
4641         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
4642         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
4644         crypto/*-buffer: Use 'restrict'.
4645         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
4646         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
4648         crypto/sha512-buffer: Use 'restrict'.
4649         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
4650         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
4651         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
4653         crypto/sha256-buffer: Use 'restrict'.
4654         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
4655         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
4656         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
4658         crypto/sha1-buffer: Use 'restrict'.
4659         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
4660         'restrict'.
4661         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
4663         crypto/md5-buffer: Use 'restrict'.
4664         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
4665         'restrict'.
4666         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4668         crypto/md4: Use 'restrict'.
4669         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4670         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4672         crypto/md2: Use 'restrict'.
4673         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4674         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4676         crypto/rijndael: Use 'restrict'.
4677         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4678         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4679         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4681         crypto/arctwo: Use 'restrict'.
4682         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4683         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4685         crypto/arcfour: Use 'restrict'.
4686         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4687         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4689         careadlinkat: Use 'restrict'.
4690         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4691         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4692         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4694         regex-quote: Use 'restrict'.
4695         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4696         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4698         system-quote: Use 'restrict'.
4699         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4700         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4702         sh-quote: Use 'restrict'.
4703         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4704         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4706         quotearg: Use 'restrict'.
4707         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
4708         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
4710         parse-datetime: Use 'restrict'.
4711         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
4712         'restrict'.
4713         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
4715         nstrftime: Use 'restrict'.
4716         * lib/strftime.h (nstrftime): Use 'restrict'.
4717         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
4719         mbstok_r: Use 'restrict'.
4720         * lib/string.in.h (mbstok_r): Use 'restrict'.
4722         xmemcoll: Use 'restrict'.
4723         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
4724         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
4726         memcoll: Use 'restrict'.
4727         * lib/memcoll.h (memcoll): Use 'restrict'.
4728         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
4730         vasnprintf: Use 'restrict'.
4731         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
4732         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
4734         c-vasnprintf: Use 'restrict'.
4735         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
4736         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
4738         c-vsnprintf: Use 'restrict'.
4739         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
4740         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
4742         c-snprintf: Use 'restrict'.
4743         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
4744         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
4746         astrxfrm: Use 'restrict'.
4747         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
4748         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
4750         amemxfrm: Use 'restrict'.
4751         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
4752         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
4754 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4756         fchmodat, lchmod: simplify
4757         It appears that we may have overengineered lchmod and fchmodat,
4758         in that the code was prepared for some hypothetical platforms but
4759         was so complicated that it was hard to understand.  I attempted to
4760         improve the situation by simplifying the code when this
4761         simplification should not hurt on real platforms; we can re-add
4762         complexity later to port to platforms I didn’t know about.
4763         * lib/fchmodat.c (fchmodat):
4764         * lib/lchmod.c (lchmod):
4765         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
4766         around the /proc code that needs it.
4767         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
4768         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
4769         Do not include <config.h> twice.
4770         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
4771         lchmod on any known hosts.
4772         (lchmod): Do not defer to fchmodat, so that the lchmod module
4773         need not depend on the fchmodat module (which is a circular
4774         dependency).  Do not use openat, since ‘open’ suffices.
4775         Coalesce calls to lchmod/chmod.
4776         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
4777         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
4778         * modules/lchmod (Depends-on, configure.ac):
4779         * modules/sys_stat (Depends-on):
4780         Do not worry about replacing lchmod, since that shouldn’t happen.
4781         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
4782         Do not worry about whether lchmod works on non-symlinks,
4783         since every known lchmod works on non-symlinks.
4784         * modules/lchmod (Depends-on):
4785         Remove circular dependency on fchmodat.
4787 2020-02-22  Bruno Haible  <bruno@clisp.org>
4789         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
4790         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
4791         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
4793 2020-02-22  Bruno Haible  <bruno@clisp.org>
4795         Use 'restrict' in all POSIX function declarations.
4796         * lib/iconv.in.h (iconv): Use 'restrict'.
4797         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
4798         * lib/monetary.in.h (strfmon_l): Likewise.
4799         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
4800         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
4801         pthread_mutex_timedlock, pthread_rwlock_init,
4802         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4803         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
4804         * lib/search.in.h (tdelete): Likewise.
4805         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4806         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4807         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4808         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4809         Likewise.
4810         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4811         strtoull): Likewise.
4812         * lib/string.in.h (strncat): Likewise.
4813         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4814         recvfrom): Likewise.
4815         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4816         * lib/time.in.h (strftime): Likewise.
4817         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4818         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4819         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4820         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4821         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4822         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4823         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4824         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4825         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4826         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4827         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4829         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4830         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4831         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4832         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4833         other *_h.m4 files.
4834         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4836 2020-02-22  Bruno Haible  <bruno@clisp.org>
4838         Update NEWS.
4839         * NEWS: Mention the last change.
4841 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4843         chmodat, chownat: new modules
4844         These are split from fchmodat, fchownat.  GNU Emacs needs the
4845         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4846         lchmodat.  Split the latter two into a new module chmodat.
4847         Similarly for fchownat.  This the same basic idea for why statat
4848         was split from fstatat on 2013-01-23.
4849         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4850         Rename from FCHMODAT_INLINE.  All uses changed.
4851         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4852         Rename from FCHOWNAT_INLINE.  All uses changed.
4853         * lib/openat.h:
4854         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4855         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4856         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4857         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4858         (configure.ac): Remove fchmodat module indicator.
4859         (Makefile.am): Omit chmodat.c.
4860         (Maintainer): Add self.
4861         * modules/fchownat: Similarly, but for chown.
4862         * tests/test-fchownat.c (BASE): Don't define if already defined.
4863         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4865 2020-02-22  Bruno Haible  <bruno@clisp.org>
4867         users.txt: Add groff.
4868         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4869         * users.txt: Add groff.
4871 2020-02-22  Bruno Haible  <bruno@clisp.org>
4873         gnulib-tool: Ensure copied files are writable.
4874         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4875         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4876         * gnulib-tool (func_ensure_writable): New function.
4877         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4878         func_create_testdir, copy-file): Invoke it after copying a file.
4880 2020-02-22  Bruno Haible  <bruno@clisp.org>
4882         users.txt: Update.
4883         * users.txt: Update URLs to projects that have moved or switched to git.
4884         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4885         over the summary view. Add gawk.
4887 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4889         largefile: remove _DARWIN_USE_64_BIT_INODE
4890         It’s not needed in currently-supported macOS versions, and was
4891         problematic anyway in MacOS X 10.5 which was the only version that
4892         could use it.  Problem reported by Peter Eisentraut in:
4893         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4894         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4895         Don’t define _DARWIN_USE_64_BIT_INODE.
4896         This syncs with Autoconf master.
4898         Add ‘extern "C"’ to count-one-bits.h etc.
4899         This ports these .h files to C++.
4900         Problem reported by Simon Marchi in:
4901         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4902         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4903         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4905 2020-02-19  Bruno Haible  <bruno@clisp.org>
4907         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4908         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4909         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4910         * lib/array-mergesort.h: Accept an optional macro definition
4911         STATIC_FROMTO.
4912         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4914 2020-02-16  Bruno Haible  <bruno@clisp.org>
4916         fchmodat: Make more future-proof.
4917         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4918         NEED_FCHMODAT_NONSYMLINK_FIX.
4919         (gl_PREREQ_FCHMODAT): New macro.
4920         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4921         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4922         without lchmod function.
4923         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4925 2020-02-16  Bruno Haible  <bruno@clisp.org>
4927         lchmod: Make more future-proof.
4928         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4929         (gl_PREREQ_LCHMOD): New macro.
4930         * lib/lchmod.c (orig_lchmod): New function.
4931         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4932         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4933         function.
4934         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4936         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4937         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4939 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4941         xnanosleep: prefer pause, and get remaining time
4942         Problem reported by Vladimir Panteleev in:
4943         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4944         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4945         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4946         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4947         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4948         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4950 2020-02-16  Bruno Haible  <bruno@clisp.org>
4952         lchmod: Improve cross-compilation guess.
4953         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4954         cross-compiling, guess depending on the platform.
4956 2020-02-16  Bruno Haible  <bruno@clisp.org>
4958         fstrcmp: Add API to clean up resources.
4959         Reported by Akim Demaille <akim@lrde.epita.fr> in
4960         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4961         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4962         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4964 2020-02-14  Bruno Haible  <bruno@clisp.org>
4966         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4967         Reported by Christian Biesinger in
4968         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4969         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4970         corresponding module is not enabled.
4971         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4972         prototype if the corresponding module is not enabled.
4974 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4976         fchmodat, lchmod: port to buggy Linux filesystems
4977         Problem reported by Florian Weimer in:
4978         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4979         * lib/fchmodat.c (fchmodat):
4980         * lib/lchmod.c (lchmod):
4981         Don’t assume that chmod on the O_PATH-opened fd will do
4982         the right thing on a symbolic link.
4983         * lib/fchmodat.c (fchmodat):
4984         Don’t attempt to special-case
4985         any flag value other than AT_SYMLINK_NOFOLLOW.
4987 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4989         lchmod: pacify Coverity CID 1491216
4990         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4991         not complain about unreachable code at the ‘struct stat st;’
4992         declaration.
4994 2020-02-10  Bruno Haible  <bruno@clisp.org>
4996         copysignf: Fix link error on HP-UX with cc.
4997         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4998         HP-UX, set COPYSIGNF_LIBM to -lm.
5000 2020-02-10  Bruno Haible  <bruno@clisp.org>
5002         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
5003         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
5004         with $(LIB_SEMAPHORE).
5005         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
5006         with $(LIB_SEMAPHORE).
5008 2020-02-10  Bruno Haible  <bruno@clisp.org>
5010         ptsname_r-tests: Avoid unused function warning.
5011         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
5013 2020-02-08  Bruno Haible  <bruno@clisp.org>
5015         lchmod: Add tests.
5016         * tests/test-lchmod.c: New file.
5017         * modules/lchmod-tests: New file.
5019 2020-02-08  Bruno Haible  <bruno@clisp.org>
5021         lchmod: Ensure declaration on HP-UX.
5022         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
5023         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
5025 2020-02-08  Bruno Haible  <bruno@clisp.org>
5027         fchmodat: Strengthen tests.
5028         * tests/test-fchmodat.c (BASE): New macro.
5029         (main): Use it, to avoid conflicts with other unit tests. Verify that
5030         fchmodat changed the file permission bits.
5032 2020-02-08  Bruno Haible  <bruno@clisp.org>
5034         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
5035         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
5036         '#undef __need_system_sys_stat_h'.
5038 2020-02-08  Bruno Haible  <bruno@clisp.org>
5040         fchmodat: Improve cross-compilation guesses.
5041         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
5042         cross-compiling, guess depending on the platform.
5043         * doc/posix-functions/fchmodat.texi: Clarify.
5045 2020-02-08  Bruno Haible  <bruno@clisp.org>
5047         Fix compilation errors in a testdir created with --with-c++-tests.
5048         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
5049         since it does not work any more with g++ >= 4.4.
5051 2020-02-08  Bruno Haible  <bruno@clisp.org>
5053         doc: Update for glibc 2.31.
5054         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
5055         * doc/gnulib.texi: Include it.
5056         * doc/pastposix-functions/h_errno.texi: Update.
5057         * doc/posix-functions/*.texi: Likewise.
5059 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
5061         mountlist: consider smb3 file systems as remote
5062         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
5063         "smb3" as remote.
5065 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5067         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
5068         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
5069         they act like chmod on non-symlinks.
5070         * NEWS:
5071         * doc/glibc-functions/lchmod.texi (lchmod):
5072         * doc/posix-functions/fchmodat.texi (fchmodat):
5073         Mention this.
5074         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
5075         config.h, and undef it after including sys/stat.h the first time.
5076         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
5077         sys/stat.h a second time after defining orig_fchmodat.
5078         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
5079         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
5080         * lib/lchmod.c: New file.
5081         * lib/sys_stat.in.h (fchmodat, lchmod):
5082         Support replacing these functions.
5083         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
5084         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
5085         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
5086         Test that lchmod works on non-symlinks.
5087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
5088         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
5089         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
5090         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
5091         * modules/lchmod (Files): Add lib/lchmod.c.
5092         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
5093         (configure.ac): Compile lchmod.c if needed.
5094         (lib_SOURCES): Add lchmod.c.
5095         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
5096         and REPLACE_LCHMOD.
5097         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
5098         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
5100 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
5102         mountlist: Consider AFS filesystems as remote
5103         df --local relies on the ME_REMOTE macro to determine if a given
5104         mount entry should be considered "local".  There is special logic
5105         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
5106         kernel's kafs module or AuriStorFS is treated as a local mount.
5107         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
5108         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
5110 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5112         Port _Noreturn to older Clang
5113         Problem reported by Jeffery Walton in:
5114         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
5115         * lib/_Noreturn.h (_Noreturn):
5116         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5117         Assume _Noreturn works in Clang 3.5 and later.
5118         It is documented to work in Clang 3.5:
5119         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
5120         and is not documented in Clang 3.4:
5121         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
5122         Apple sets __clang_version__ to a different value, so use
5123         __apple_build_version__ there.  See:
5124         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
5126 2020-02-04  Pádraig Brady  <P@draigBrady.com>
5128         test-canonicalize: avoid unused function warning
5129         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
5130         with the same guard as that used to protect usage of the null_ptr
5131         function, so that one doesn't get a -Wunused warning.
5132         * tests/test-canonicalize-lgpl.c: Likewise.
5134 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5136         libc-config: port to Apple’s Clang variant
5137         * lib/libc-config.h (__glibc_clang_prereq):
5138         Port to Apple’s Clang variant, which uses a different
5139         numbering scheme for __clang_major__.
5141 2020-02-02  Bruno Haible  <bruno@clisp.org>
5143         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
5144         * doc/containers.texi: Document these new modules.
5146 2020-02-02  Bruno Haible  <bruno@clisp.org>
5148         omap-c++: Add tests.
5149         * tests/test-omap-c++.cc: New file.
5150         * modules/omap-c++-tests: New file.
5152         omap-c++: New module.
5153         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
5154         * modules/omap-c++: New file.
5156 2020-02-02  Bruno Haible  <bruno@clisp.org>
5158         map-c++: Add tests.
5159         * tests/test-map-c++.cc: New file.
5160         * modules/map-c++-tests: New file.
5162         map-c++: New module.
5163         * lib/gl_map.hh: New file, based on lib/gl_map.h.
5164         * modules/map-c++: New file.
5166 2020-02-02  Bruno Haible  <bruno@clisp.org>
5168         oset-c++: Add tests.
5169         * tests/test-oset-c++.cc: New file.
5170         * modules/oset-c++-tests: New file.
5172         oset-c++: New module.
5173         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
5174         * modules/oset-c++: New file.
5176 2020-02-02  Bruno Haible  <bruno@clisp.org>
5178         set-c++: Add tests.
5179         * tests/test-set-c++.cc: New file.
5180         * modules/set-c++-tests: New file.
5182         set-c++: New module.
5183         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5184         * modules/set-c++: New file.
5186 2020-02-02  Bruno Haible  <bruno@clisp.org>
5188         list-c++: Add tests.
5189         * tests/test-list-c++.cc: New file.
5190         * modules/list-c++-tests: New file.
5192         list-c++: New module.
5193         * lib/gl_list.hh: New file, based on lib/gl_list.h.
5194         * modules/list-c++: New file.
5196 2020-02-02  Bruno Haible  <bruno@clisp.org>
5198         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
5199         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
5200         '_Noreturn'.
5201         * lib/sigpipe-die.h (sigpipe_die): Likewise.
5203 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5205         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
5206         On x86_64 with glibc-2.30, gcc 9.2 is giving:
5207           error: argument 2 value '18446744073709551615'
5208           exceeds maximum object size 9223372036854775807
5209           [-Werror=alloc-size-larger-than=]
5210         The details of this restriction are discussed at:
5211         https://stackoverflow.com/q/42574890/4421
5212         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
5214 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5216         sysctl.h: avoid including on glibc
5217         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
5218         * lib/physmem.c: Likewise.
5220 2020-02-02  Bruno Haible  <bruno@clisp.org>
5222         list, set, oset, map, omap: Avoid imperative voice in documentation.
5223         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
5224         in the specification of functions.
5225         * lib/gl_set.h: Likewise.
5226         * lib/gl_oset.h: Likewise.
5227         * lib/gl_map.h: Likewise.
5228         * lib/gl_omap.h: Likewise.
5229         * lib/gl_*.h: Likewise.
5231 2020-02-01  Bruno Haible  <bruno@clisp.org>
5233         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
5234         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
5235         does.
5237 2020-01-29  Bruno Haible  <bruno@clisp.org>
5239         array-map, hash-map, linkedhash-map: Fix module description.
5240         * modules/array-map (Description): Fix description.
5241         * modules/hash-map (Description): Likewise.
5242         * modules/linkedhash-map (Description): Likewise.
5244 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5246         dfa: do not depend on isblank
5247         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
5248         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
5249         * modules/dfa (Depends-on): Remove isblank.
5250         * modules/isblank: Add a module indicator, for lib/dfa.c.
5252         dfa: do not assume 64-bit int
5253         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
5254         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
5255         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
5256         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
5257         Fall back to 32-bit words.
5258         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
5259         of 4 64-bit args.  All uses changed.
5261 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5263         regex: remove limits-h dependency
5264         * modules/regex (Depends-on): Remove limits-h, since the
5265         code no longer depends on ULONG_WIDTH already being defined.
5267         regex: port to non-GCC pre-IEC-60559
5268         Problem reported by Arnold Robbins in:
5269         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
5270         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
5272 2020-01-25  Bruno Haible  <bruno@clisp.org>
5274         c32isxdigit: Add tests.
5275         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
5276         * tests/test-c32isxdigit.sh: New file.
5277         * modules/c32isxdigit-tests: New file.
5279         c32isxdigit: New module.
5280         * lib/c32isxdigit.c: New file.
5281         * modules/c32isxdigit: New file.
5282         * doc/posix-functions/iswxdigit.texi: Mention the new module.
5284 2020-01-25  Bruno Haible  <bruno@clisp.org>
5286         c32isupper: Add tests.
5287         * tests/test-c32isupper.c: New file.
5288         * tests/test-c32isupper.sh: New file.
5289         * modules/c32isupper-tests: New file.
5291         c32isupper: New module.
5292         * lib/c32isupper.c: New file.
5293         * modules/c32isupper: New file.
5294         * doc/posix-functions/iswupper.texi: Mention the new module.
5296 2020-01-25  Bruno Haible  <bruno@clisp.org>
5298         c32isspace: Add tests.
5299         * tests/test-c32isspace.c: New file.
5300         * tests/test-c32isspace.sh: New file.
5301         * modules/c32isspace-tests: New file.
5303         c32isspace: New module.
5304         * lib/c32isspace.c: New file.
5305         * modules/c32isspace: New file.
5306         * doc/posix-functions/iswspace.texi: Mention the new module.
5308 2020-01-25  Bruno Haible  <bruno@clisp.org>
5310         c32ispunct: Add tests.
5311         * tests/test-c32ispunct.c: New file.
5312         * tests/test-c32ispunct.sh: New file.
5313         * modules/c32ispunct-tests: New file.
5315         c32ispunct: New module.
5316         * lib/c32ispunct.c: New file.
5317         * modules/c32ispunct: New file.
5318         * doc/posix-functions/iswpunct.texi: Mention the new module.
5320 2020-01-25  Bruno Haible  <bruno@clisp.org>
5322         c32isprint: Add tests.
5323         * tests/test-c32isprint.c: New file.
5324         * tests/test-c32isprint.sh: New file.
5325         * modules/c32isprint-tests: New file.
5327         c32isprint: New module.
5328         * lib/c32isprint.c: New file.
5329         * modules/c32isprint: New file.
5330         * doc/posix-functions/iswprint.texi: Mention the new module.
5332 2020-01-25  Bruno Haible  <bruno@clisp.org>
5334         c32islower: Add tests.
5335         * tests/test-c32islower.c: New file.
5336         * tests/test-c32islower.sh: New file.
5337         * modules/c32islower-tests: New file.
5339         c32islower: New module.
5340         * lib/c32islower.c: New file.
5341         * modules/c32islower: New file.
5342         * doc/posix-functions/iswlower.texi: Mention the new module.
5344 2020-01-25  Bruno Haible  <bruno@clisp.org>
5346         c32isgraph: Add tests.
5347         * tests/test-c32isgraph.c: New file.
5348         * tests/test-c32isgraph.sh: New file.
5349         * modules/c32isgraph-tests: New file.
5351         c32isgraph: New module.
5352         * lib/c32isgraph.c: New file.
5353         * modules/c32isgraph: New file.
5354         * doc/posix-functions/iswgraph.texi: Mention the new module.
5356 2020-01-25  Bruno Haible  <bruno@clisp.org>
5358         c32isdigit: Add tests.
5359         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
5360         * tests/test-c32isdigit.sh: New file.
5361         * modules/c32isdigit-tests: New file.
5363         c32isdigit: New module.
5364         * lib/c32isdigit.c: New file.
5365         * modules/c32isdigit: New file.
5366         * doc/posix-functions/iswdigit.texi: Mention the new module.
5368 2020-01-25  Bruno Haible  <bruno@clisp.org>
5370         c32iscntrl: Add tests.
5371         * tests/test-c32iscntrl.c: New file.
5372         * tests/test-c32iscntrl.sh: New file.
5373         * modules/c32iscntrl-tests: New file.
5375         c32iscntrl: New module.
5376         * lib/c32iscntrl.c: New file.
5377         * modules/c32iscntrl: New file.
5378         * doc/posix-functions/iswcntrl.texi: Mention the new module.
5380 2020-01-25  Bruno Haible  <bruno@clisp.org>
5382         c32isblank: Add tests.
5383         * tests/test-c32isblank.c: New file.
5384         * tests/test-c32isblank.sh: New file.
5385         * modules/c32isblank-tests: New file.
5387         c32isblank: New module.
5388         * lib/c32isblank.c: New file.
5389         * modules/c32isblank: New file.
5390         * doc/posix-functions/iswblank.texi: Mention the new module.
5392 2020-01-25  Bruno Haible  <bruno@clisp.org>
5394         c32isalpha: Add tests.
5395         * tests/test-c32isalpha.c: New file.
5396         * tests/test-c32isalpha.sh: New file.
5397         * modules/c32isalpha-tests: New file.
5399         c32isalpha: New module.
5400         * lib/c32isalpha.c: New file.
5401         * modules/c32isalpha: New file.
5402         * doc/posix-functions/iswalpha.texi: Mention the new module.
5404 2020-01-25  Bruno Haible  <bruno@clisp.org>
5406         c32isalnum: Add tests.
5407         * tests/test-c32isalnum.c: New file.
5408         * tests/test-c32isalnum.sh: New file.
5409         * modules/c32isalnum-tests: New file.
5411         c32isalnum: New module.
5412         * lib/c32isalnum.c: New file.
5413         * lib/c32is-impl.h: New file.
5414         * modules/c32isalnum: New file.
5415         * doc/posix-functions/iswalnum.texi: Mention the new module.
5417 2020-01-25  Bruno Haible  <bruno@clisp.org>
5419         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
5420         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
5421         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
5422         c32isupper, c32isxdigit): New declarations.
5423         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
5424         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5425         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5426         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5427         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5428         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
5429         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5430         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5431         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5432         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5433         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
5434         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
5435         c32ispunct, c32isspace, c32isupper, c32isxdigit.
5437 2020-01-25  Bruno Haible  <bruno@clisp.org>
5439         mbchar, wctype: Use the corrected iswxdigit function.
5440         * modules/mbchar (Depends-on): Add iswxdigit.
5441         * modules/wctype (Depends-on): Likewise.
5443         iswxdigit: Add tests.
5444         * tests/test-iswxdigit.c: New file.
5445         * tests/test-iswxdigit.sh: New file.
5446         * modules/iswxdigit-tests: New file.
5448         iswxdigit: New module.
5449         * m4/iswxdigit.m4: New file.
5450         * lib/wctype.in.h (iswxdigit): Potentially override.
5451         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
5452         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
5453         * lib/iswxdigit.c: New file.
5454         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
5455         REPLACE_ISWXDIGIT.
5456         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
5457         REPLACE_ISWXDIGIT.
5458         * modules/iswxdigit: New file.
5459         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
5461 2020-01-25  Bruno Haible  <bruno@clisp.org>
5463         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
5464         Reported by John Donoghue <john.david.donoghue@gmail.com> in
5465         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
5466         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
5467         off_t on mingw, invoke _lseeki64 instead of lseek.
5469 2020-01-25  Bruno Haible  <bruno@clisp.org>
5471         iswdigit tests: Avoid test failure on Cygwin.
5472         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
5473         byte sequence, return 0.
5475         iswdigit: Fix test failure on native Windows.
5476         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
5478         mbchar, wctype: Use the corrected iswdigit function.
5479         * modules/mbchar (Depends-on): Add iswdigit.
5480         * modules/wctype (Depends-on): Likewise.
5482         iswdigit: Add tests.
5483         * tests/test-iswdigit.c: New file.
5484         * tests/test-iswdigit.sh: New file.
5485         * modules/iswdigit-tests: New file.
5487         iswdigit: New module.
5488         * m4/iswdigit.m4: New file.
5489         * lib/wctype.in.h (iswdigit): Potentially override.
5490         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
5491         * lib/iswdigit.c: New file.
5492         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
5493         REPLACE_ISWDIGIT.
5494         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
5495         REPLACE_ISWDIGIT.
5496         * modules/iswdigit: New file.
5497         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
5499 2020-01-25  Bruno Haible  <bruno@clisp.org>
5501         hard-locale tests: Make it easy to reuse the musl test.
5502         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
5503         * modules/hard-locale-tests (Files): Add it.
5504         (configure.ac): Invoke gl_MUSL_LIBC.
5506 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5508         regex: port to Gawk on nonstandard platforms
5509         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
5510         This is useful for Gawk, which does not use the Gnulib stdlib-h
5511         module.  Problem reported by Arnold Robbins in:
5512         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
5514 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5516         regex: fix bug with >=16 subexpressions
5517         * lib/regex_internal.h (struct re_backref_cache_entry):
5518         Use bitset_word_t as the type of eps_reachable_subexps_map,
5519         instead of unsigned short int.  This fixes a bug I introduced
5520         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
5521         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
5522         Remove unused member 'unused'.
5524         regex: simplify definition of BITSET_WORD_BITS
5525         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
5526         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
5527         * lib/regex_internal.h (BITSET_WORD_BITS):
5528         * modules/regex (Depends-on): Add limits-h.
5529         Simplify now that we can use ULONG_WIDTH.
5531 2020-01-20  Bruno Haible  <bruno@clisp.org>
5533         mbrtoc32: Add note about FreeBSD 12.
5534         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
5535         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
5536         affected.
5538 2020-01-20  Bruno Haible  <bruno@clisp.org>
5540         unistr/u8-uctomb: Fix warning.
5541         Reported by Andreas Schwab <schwab@suse.de> in
5542         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
5543         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
5544         (u8_uctomb): Add FALLTHROUGH markers.
5546 2020-01-20  Bruno Haible  <bruno@clisp.org>
5548         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
5549         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
5550         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
5551         (glthread_once): Use it.
5553 2020-01-19  Bruno Haible  <bruno@clisp.org>
5555         threadlib: Disable use of weak symbols on FreeBSD 11.
5556         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5557         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
5558         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
5559         against a bug in FreeBSD 11.
5561 2020-01-19  Bruno Haible  <bruno@clisp.org>
5563         iconv_open: Improve z/OS support.
5564         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
5565         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
5566         Remove mapping for EUC-TW.
5568 2020-01-18  Bruno Haible  <bruno@clisp.org>
5570         Rename ~~gnulib.m4 to zzgnulib.m4.
5571         Suggested by Paul Eggert.
5572         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
5573         * gnulib-tool (func_get_filelist): Update.
5574         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5576 2020-01-18  Bruno Haible  <bruno@clisp.org>
5578         doc: Update license notices.
5579         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
5580         reference to a section or to a "file as part of this distribution".
5582 2020-01-18  Bruno Haible  <bruno@clisp.org>
5584         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
5585         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5586         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
5587         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
5588         AC_EGREP_CPP.
5590 2020-01-18  Bruno Haible  <bruno@clisp.org>
5592         Ensure Automake does not drop ~~gnulib.m4.
5593         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
5594         * m4/gnulib-common.m4 (gl_COMMON): Require it.
5596 2020-01-18  Bruno Haible  <bruno@clisp.org>
5598         Fix major regression from 2020-01-10.
5599         Reported by Paul Eggert in
5600         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
5601         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5602         Don't AC_REQUIRE anything.
5603         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
5604         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
5605         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
5606         use ac_compile instead.
5607         (AC_CHECK_DECL): Remove override.
5608         * m4/~~gnulib.m4: New file.
5609         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
5610         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5612 2020-01-17  Bruno Haible  <bruno@clisp.org>
5613             Paul Eggert  <eggert@cs.ucla.edu>
5615         glob: Fix use-after-free bug.
5616         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5617         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
5618         * lib/glob.c (__glob): Delay freeing dirname until after the use of
5619         end_name.
5621 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5623         vcs-to-changelog: Fix parsing of fndecl without args.
5624         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
5625         for empty arguments.
5627 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5629         vcs-to-changelog: Add documentation.
5630         * doc/vcs-to-changelog.texi: New file.
5631         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
5632         section.
5634 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5636         vcs-to-changelog: Allow loading of custom quirks file.
5637         * build-aux/vcs_to_changelog.py: New commandline option -q.
5639 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5641         vcs-to-changelog: Fix formatting of ChangeLog output.
5642         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
5643         output.
5645 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5647         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
5648         Reported in
5649         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
5650         * build-aux/vcstocl/frontend_c.py: Remove shebang.
5652 2020-01-15  Simon Josefsson  <simon@josefsson.org>
5654         crypto/gc-pbkdf2: New module.
5655         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
5656         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
5657         * lib/gc-pbkdf2.c: New file.
5658         * lib/gc-pbkdf2-sha1.c: Use new interface.
5659         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
5660         * modules/crypto/gc-pbkdf2: New file.
5661         * modules/crypto/gc-pbkdf2-tests: New file.
5662         * tests/test-gc-pbkdf2.c: New file.
5664 2020-01-12  Bruno Haible  <bruno@clisp.org>
5666         c32stombs: Add tests.
5667         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5668         * tests/test-c32stombs-1.sh: New file, based on
5669         tests/test-c32srtombs-1.sh.
5670         * tests/test-c32stombs-2.sh: New file, based on
5671         tests/test-c32srtombs-2.sh.
5672         * tests/test-c32stombs-3.sh: New file, based on
5673         tests/test-c32srtombs-3.sh.
5674         * tests/test-c32stombs-4.sh: New file, based on
5675         tests/test-c32srtombs-4.sh.
5676         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5678         c32stombs: New module.
5679         * lib/uchar.in.h (c32stombs): New declaration.
5680         * lib/c32stombs.c: New file.
5681         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5682         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5683         * modules/c32stombs: New file.
5684         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5685         * doc/posix-functions/wcstombs.texi: Mention the new module.
5687 2020-01-11  Jim Meyering  <meyering@fb.com>
5689         perl: require the "warnings" module
5690         * m4/perl.m4: Also "use warnings", so we reject the perl found
5691         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5692         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5694 2020-01-10  Bruno Haible  <bruno@clisp.org>
5696         Fix major regression from 2020-01-04.
5697         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5698         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5699         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5700         AC_DEFUN_ONCE.
5701         (AC_CHECK_DECL): Invoke, not require, it.
5703 2020-01-10  Bruno Haible  <bruno@clisp.org>
5705         c32snrtombs: Add tests.
5706         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5707         * tests/test-c32snrtombs-1.sh: New file, based on
5708         tests/test-wcsnrtombs1.sh.
5709         * tests/test-c32snrtombs-2.sh: New file, based on
5710         tests/test-wcsnrtombs2.sh.
5711         * tests/test-c32snrtombs-3.sh: New file, based on
5712         tests/test-wcsnrtombs3.sh.
5713         * tests/test-c32snrtombs-4.sh: New file, based on
5714         tests/test-wcsnrtombs4.sh.
5715         * modules/c32snrtombs-tests: New file, based on
5716         modules/wcsnrtombs-tests.
5718         c32snrtombs: New module.
5719         * lib/uchar.in.h (c32snrtombs): New declaration.
5720         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5721         INTERNAL_STATE, WCRTOMB.
5722         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5723         * lib/c32snrtombs.c: New file.
5724         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
5725         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
5726         * modules/c32snrtombs: New file.
5727         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
5728         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5730 2020-01-09  Bruno Haible  <bruno@clisp.org>
5732         c32srtombs: Add tests.
5733         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
5734         * tests/test-c32srtombs-1.sh: New file, based on
5735         tests/test-wcsrtombs1.sh.
5736         * tests/test-c32srtombs-2.sh: New file, based on
5737         tests/test-wcsrtombs2.sh.
5738         * tests/test-c32srtombs-3.sh: New file, based on
5739         tests/test-wcsrtombs3.sh.
5740         * tests/test-c32srtombs-4.sh: New file, based on
5741         tests/test-wcsrtombs4.sh.
5742         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
5744         c32srtombs: New module.
5745         * lib/uchar.in.h (c32srtombs): New declaration.
5746         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5747         INTERNAL_STATE, WCRTOMB.
5748         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5749         * lib/c32srtombs.c: New file.
5750         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
5751         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
5752         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
5753         * modules/c32srtombs: New file.
5754         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
5755         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
5757 2020-01-08  Bruno Haible  <bruno@clisp.org>
5759         c32tob: Make consistent with mbrtoc32.
5760         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
5761         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
5762         use c32rtomb, not wctob.
5763         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
5764         (Depends-on): Add c32rtomb.
5765         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
5767 2020-01-08  Bruno Haible  <bruno@clisp.org>
5769         c32rtomb: Add tests.
5770         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
5771         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
5772         * tests/test-c32rtomb-w32.c: New file, based on
5773         tests/test-wcrtomb-w32.c.
5774         * tests/test-c32rtomb-w32-1.sh: New file, based on
5775         tests/test-wcrtomb-w32-1.sh.
5776         * tests/test-c32rtomb-w32-2.sh: New file, based on
5777         tests/test-wcrtomb-w32-2.sh.
5778         * tests/test-c32rtomb-w32-3.sh: New file, based on
5779         tests/test-wcrtomb-w32-3.sh.
5780         * tests/test-c32rtomb-w32-4.sh: New file, based on
5781         tests/test-wcrtomb-w32-4.sh.
5782         * tests/test-c32rtomb-w32-5.sh: New file, based on
5783         tests/test-wcrtomb-w32-5.sh.
5784         * tests/test-c32rtomb-w32-6.sh: New file, based on
5785         tests/test-wcrtomb-w32-6.sh.
5786         * tests/test-c32rtomb-w32-7.sh: New file, based on
5787         tests/test-wcrtomb-w32-7.sh.
5788         * modules/c32rtomb-tests: New file.
5790         c32rtomb: New module.
5791         * lib/uchar.in.h (c32rtomb): New declaration.
5792         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
5793         * m4/c32rtomb.m4: New file.
5794         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
5795         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
5796         REPLACE_C32RTOMB.
5797         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
5798         HAVE_C32RTOMB, REPLACE_C32RTOMB.
5799         * modules/c32rtomb: New file.
5800         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
5801         * doc/posix-functions/c32rtomb.texi: Document the new module.
5802         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5804 2020-01-08  Bruno Haible  <bruno@clisp.org>
5806         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5807         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5808         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5809         but is not working.
5810         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5811         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5812         differ, use the system's mbrtoc32, adding workarounds.
5813         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5814         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5815         Windows problem.
5816         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5817         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5818         use mbrtoc32, not btowc.
5819         * modules/btoc32 (Depends-on): Add mbrtoc32.
5820         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5821         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5822         * modules/mbsrtoc32s (Depends-on): Update conditions.
5823         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5824         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5825         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5826         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5827         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5829 2020-01-07  Bruno Haible  <bruno@clisp.org>
5831         wcrtomb: Make multithread-safe, except possibly on IRIX.
5832         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5833         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5834         WCRTOMB_RETVAL_BUG.
5835         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5836         wctomb only on IRIX.
5838 2020-01-05  Jim Meyering  <meyering@fb.com>
5840         tests: skip thread-using tests when threading is disabled
5841         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5842         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5843         of those, so they are skipped in this case.
5844         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5845         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5846         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5848 2020-01-05  Bruno Haible  <bruno@clisp.org>
5850         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5851         Reported by Jim Meyering in
5852         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5853         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5854         (GNULIB_defined_ptsname_r): New macro.
5855         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5856         (main): Disable the NULL argument test if canonicalize_file_name does
5857         not come from gnulib.
5858         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5859         (main): Disable the NULL argument test if canonicalize_file_name does
5860         not come from gnulib.
5861         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5862         (test_errors): Disable the NULL argument test if ptsname_r does not come
5863         from gnulib.
5865 2020-01-04  Jim Meyering  <meyering@fb.com>
5867         update-copyright: reenable its always-skipped test
5868         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5869         on 2019-06-15. Without those, an internal preliminary test would
5870         fail, causing this test always to be skipped.
5871         Verify that the test is now run and passes via this:
5872           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5874 2020-01-05  Bruno Haible  <bruno@clisp.org>
5876         mbstoc32s: Add tests.
5877         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5878         * tests/test-mbstoc32s-1.sh: New file, based on
5879         tests/test-mbsrtoc32s-1.sh.
5880         * tests/test-mbstoc32s-2.sh: New file, based on
5881         tests/test-mbsrtoc32s-2.sh.
5882         * tests/test-mbstoc32s-3.sh: New file, based on
5883         tests/test-mbsrtoc32s-3.sh.
5884         * tests/test-mbstoc32s-4.sh: New file, based on
5885         tests/test-mbsrtoc32s-4.sh.
5886         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5888         mbstoc32s: New module.
5889         * lib/uchar.in.h (mbstoc32s): New declaration.
5890         * lib/mbstoc32s.c: New file.
5891         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5892         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5893         * modules/mbstoc32s: New file.
5894         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5895         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5897 2020-01-05  Bruno Haible  <bruno@clisp.org>
5899         Tweak recently added tests.
5900         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5901         * tests/test-mbsrtoc32s.c: Likewise.
5902         * tests/test-mbsnrtoc32s.c: Likewise.
5904 2020-01-04  Bruno Haible  <bruno@clisp.org>
5906         mbsnrtoc32s: Add tests.
5907         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5908         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5909         tests/test-mbsnrtowcs1.sh.
5910         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5911         tests/test-mbsnrtowcs2.sh.
5912         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5913         tests/test-mbsnrtowcs3.sh.
5914         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5915         tests/test-mbsnrtowcs4.sh.
5916         * modules/mbsnrtoc32s-tests: New file, based on
5917         modules/mbsnrtowcs-tests.
5919         mbsnrtoc32s: New module.
5920         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5921         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5922         INTERNAL_STATE, MBRTOWC.
5923         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5924         * lib/mbsnrtoc32s.c: New file.
5925         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5926         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5927         * modules/mbsnrtoc32s: New file.
5928         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5929         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5931 2020-01-04  Bruno Haible  <bruno@clisp.org>
5933         mbsrtoc32s tests: Enhance test.
5934         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5935         test strings for UTF-8 and GB18030.
5937 2020-01-04  Bruno Haible  <bruno@clisp.org>
5939         mbsrtoc32s: Fix bug.
5940         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5941         that SMALL_WCHAR_T is defined.
5943 2020-01-04  Bruno Haible  <bruno@clisp.org>
5945         mbsrtoc32s: Add tests.
5946         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5947         * tests/test-mbsrtoc32s-1.sh: New file, based on
5948         tests/test-mbsrtowcs1.sh.
5949         * tests/test-mbsrtoc32s-2.sh: New file, based on
5950         tests/test-mbsrtowcs2.sh.
5951         * tests/test-mbsrtoc32s-3.sh: New file, based on
5952         tests/test-mbsrtowcs3.sh.
5953         * tests/test-mbsrtoc32s-4.sh: New file, based on
5954         tests/test-mbsrtowcs4.sh.
5955         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5957         mbsrtoc32s: New module.
5958         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5959         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5960         INTERNAL_STATE, MBRTOWC.
5961         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5962         * lib/mbsrtoc32s.c: New file.
5963         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5964         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5965         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5966         * modules/mbsrtoc32s: New file.
5967         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5968         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5970 2020-01-04  Bruno Haible  <bruno@clisp.org>
5972         mbrtowc, mbrtoc32: Tighten dependendies.
5973         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5974         REPLACE_MBSTATE_T is 1.
5975         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5976         REPLACE_MBSTATE_T is 0.
5977         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5978         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5979         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5980         REPLACE_MBSTATE_T is 0.
5982 2020-01-04  Bruno Haible  <bruno@clisp.org>
5984         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5985         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5986         * modules/uchar (Files): Add stdint.m4.
5987         (Makefile.am): Substitute SMALL_WCHAR_T.
5988         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5990 2020-01-04  Bruno Haible  <bruno@clisp.org>
5992         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5993         Reported by Martin Storsjö <martin@martin.st> in
5994         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5995         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5996         New macros.
5997         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5999 2020-01-04  Bruno Haible  <bruno@clisp.org>
6001         btoc32: Add tests.
6002         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
6003         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
6004         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
6005         * modules/btoc32-tests: New file, based on modules/btowc-tests.
6007         btoc32: New module.
6008         * lib/uchar.in.h (btoc32): New declaration.
6009         * lib/btoc32.c: New file.
6010         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
6011         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
6012         * modules/btoc32: New file.
6013         * tests/test-uchar-c++.cc: Test the signature of btoc32.
6014         * doc/posix-functions/btowc.texi: Mention the new module.
6016 2020-01-03  Bruno Haible  <bruno@clisp.org>
6018         uchar tests: Avoid compilation error with HP cc.
6019         * tests/test-uchar.c: Disable a test when HP cc is in use.
6021 2020-01-03  Bruno Haible  <bruno@clisp.org>
6023         mbrtoc32: Add tests.
6024         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
6025         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
6026         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
6027         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
6028         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
6029         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
6030         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
6031         * tests/test-mbrtoc32-w32-1.sh: New file, based on
6032         tests/test-mbrtowc-w32-1.sh.
6033         * tests/test-mbrtoc32-w32-2.sh: New file, based on
6034         tests/test-mbrtowc-w32-2.sh.
6035         * tests/test-mbrtoc32-w32-3.sh: New file, based on
6036         tests/test-mbrtowc-w32-3.sh.
6037         * tests/test-mbrtoc32-w32-4.sh: New file, based on
6038         tests/test-mbrtowc-w32-4.sh.
6039         * tests/test-mbrtoc32-w32-5.sh: New file, based on
6040         tests/test-mbrtowc-w32-5.sh.
6041         * tests/test-mbrtoc32-w32-6.sh: New file, based on
6042         tests/test-mbrtowc-w32-6.sh.
6043         * tests/test-mbrtoc32-w32-7.sh: New file, based on
6044         tests/test-mbrtowc-w32-7.sh.
6045         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
6047         mbrtoc32: New module.
6048         * lib/uchar.in.h (mbrtoc32): New declaration.
6049         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
6050         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
6051         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
6052         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
6053         REPLACE_MBRTOC32.
6054         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
6055         HAVE_MBRTOC32, REPLACE_MBRTOC32.
6056         * modules/mbrtoc32: New file, based on modules/mbrtowc.
6057         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
6058         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
6059         $(LIB_MBRTOWC).
6060         * doc/posix-functions/mbrtoc32.texi: Document the new module.
6061         * doc/posix-functions/mbrtowc.texi: Mention the new module.
6063 2020-01-03  Bruno Haible  <bruno@clisp.org>
6065         mbrtowc: Refactor to share code with mbrtoc32.
6066         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
6067         * lib/mbrtowc-impl-utf8.h: Likewise.
6068         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
6069         mbrtowc-impl.h.
6070         * modules/mbrtowc (Files): Add the new files.
6072 2020-01-03  Jim Meyering  <meyering@fb.com>
6074         doc: fix time.texi wording
6075         * doc/posix-headers/time.texi (time.h): Typo.
6077 2020-01-03  Bruno Haible  <bruno@clisp.org>
6079         mbrtowc: Refactor locale charset dispatching.
6080         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
6081         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
6082         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
6083         localcharset.h, streq.h.
6084         (enc_t): Remove type.
6085         (locale_enc): Remove function.
6086         (cached_locale_enc): Remove variable.
6087         (locale_enc_cached): Remove function.
6088         (mbrtowc): Invoke locale_encoding_classification.
6089         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
6090         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
6091         lc-charset-dispatch.c.
6092         (configure.ac): Arrange to compile lc-charset-dispatch.c.
6094 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6096         doc: mention 32-bit time_t issue
6097         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6098         * doc/posix-headers/time.texi (time.h): Mention 2038.
6100 2020-01-03  Bruno Haible  <bruno@clisp.org>
6102         mbrtowc: Ensure the mbtowc_lock is unique.
6103         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
6104         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
6105         lib/setlocale_null.c.
6106         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
6107         glthread/lock.h. Include mbtowc-lock.h.
6108         (mbtowc_lock): Remove declaration.
6109         (mbrtowc): Use mbtowc_with_lock.
6110         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
6111         threads.h. Set LIB_MBRTOWC.
6112         (gl_PREREQ_MBTOWC_LOCK): New macro.
6113         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
6114         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
6115         (Depends-on): Remove lock.
6116         (configure.ac): Arrange to compile mbtowc-lock.c.
6117         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
6118         * modules/acl (Link): Likewise.
6119         * modules/argmatch (Link): Likewise.
6120         * modules/backup-rename (Link): Likewise.
6121         * modules/backupfile (Link): Likewise.
6122         * modules/closein (Link): Likewise.
6123         * modules/closeout (Link): Likewise.
6124         * modules/copy-file (Link): Likewise.
6125         * modules/csharpcomp (Link): Likewise.
6126         * modules/csharpexec (Link): Likewise.
6127         * modules/dfa (Link): Likewise.
6128         * modules/exclude (Link): Likewise.
6129         * modules/fnmatch (Link): Likewise.
6130         * modules/fnmatch-gnu (Link): Likewise.
6131         * modules/fnmatch-posix (Link): Likewise.
6132         * modules/glob (Link): Likewise.
6133         * modules/human (Link): Likewise.
6134         * modules/javacomp (Link): Likewise.
6135         * modules/javaexec (Link): Likewise.
6136         * modules/javaversion (Link): Likewise.
6137         * modules/mbfile (Link): Likewise.
6138         * modules/mbiter (Link): Likewise.
6139         * modules/mbmemcasecmp (Link): Likewise.
6140         * modules/mbmemcasecoll (Link): Likewise.
6141         * modules/mbrlen (Link): Likewise.
6142         * modules/mbscasecmp (Link): Likewise.
6143         * modules/mbscasestr (Link): Likewise.
6144         * modules/mbschr (Link): Likewise.
6145         * modules/mbscspn (Link): Likewise.
6146         * modules/mbsinit (Link): Likewise.
6147         * modules/mbslen (Link): Likewise.
6148         * modules/mbsncasecmp (Link): Likewise.
6149         * modules/mbsnlen (Link): Likewise.
6150         * modules/mbsnrtowcs (Link): Likewise.
6151         * modules/mbspbrk (Link): Likewise.
6152         * modules/mbspcasecmp (Link): Likewise.
6153         * modules/mbsrchr (Link): Likewise.
6154         * modules/mbsrtowcs (Link): Likewise.
6155         * modules/mbssep (Link): Likewise.
6156         * modules/mbsspn (Link): Likewise.
6157         * modules/mbsstr (Link): Likewise.
6158         * modules/mbstok_r (Link): Likewise.
6159         * modules/mbswidth (Link): Likewise.
6160         * modules/mbuiter (Link): Likewise.
6161         * modules/mkdir-p (Link): Likewise.
6162         * modules/propername (Link): Likewise.
6163         * modules/quote (Link): Likewise.
6164         * modules/quotearg (Link): Likewise.
6165         * modules/quotearg-simple (Link): Likewise.
6166         * modules/regex-quote (Link): Likewise.
6167         * modules/rpmatch (Link): Likewise.
6168         * modules/sh-quote (Link): Likewise.
6169         * modules/system-quote (Link): Likewise.
6170         * modules/trim (Link): Likewise.
6171         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6172         * modules/unistdio/ulc-fprintf (Link): Likewise.
6173         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6174         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6175         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6176         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6177         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6178         * modules/xfreopen (Link): Likewise.
6179         * modules/xmemcoll (Link): Likewise.
6180         * modules/yesno (Link): Likewise.
6181         * modules/regex (Link): Add $(LIB_MBRTOWC).
6182         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
6183         instead of $(LIBTHREAD).
6184         * modules/argmatch-tests (Makefile.am): Likewise.
6185         * modules/closein-tests (Makefile.am): Likewise.
6186         * modules/copy-file-tests (Makefile.am): Likewise.
6187         * modules/dfa-tests (Makefile.am): Likewise.
6188         * modules/fnmatch-tests (Makefile.am): Likewise.
6189         * modules/glob-tests (Makefile.am): Likewise.
6190         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6191         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6192         * modules/mbrtowc-tests (Makefile.am): Likewise.
6193         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6194         * modules/mbscasestr-tests (Makefile.am): Likewise.
6195         * modules/mbschr-tests (Makefile.am): Likewise.
6196         * modules/mbscspn-tests (Makefile.am): Likewise.
6197         * modules/mbsinit-tests (Makefile.am): Likewise.
6198         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6199         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6200         * modules/mbspbrk-tests (Makefile.am): Likewise.
6201         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6202         * modules/mbsrchr-tests (Makefile.am): Likewise.
6203         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6204         * modules/mbsspn-tests (Makefile.am): Likewise.
6205         * modules/mbsstr-tests (Makefile.am): Likewise.
6206         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6207         * modules/quotearg-tests (Makefile.am): Likewise.
6208         * modules/readtokens-tests (Makefile.am): Likewise.
6209         * modules/sh-quote-tests (Makefile.am): Likewise.
6210         * modules/system-quote-tests (Makefile.am): Likewise.
6211         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6212         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6213         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6214         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6215         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6216         * modules/yesno-tests (Makefile.am): Likewise.
6217         * modules/exclude-tests (Makefile.am): Link the programs with
6218         $(LIB_MBRTOWC).
6219         * modules/regex-tests (Makefile.am): Likewise.
6220         * modules/regex-quote-tests (Makefile.am): Likewise.
6222 2020-01-03  Bruno Haible  <bruno@clisp.org>
6224         getopt-posix: Fix compilation failure in testdirs.
6225         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
6226         when the gnulib module 'getopt-posix' is enabled.
6227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
6228         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
6229         module indicator.
6230         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
6232 2020-01-03  Bruno Haible  <bruno@clisp.org>
6234         doc: Mention the 64-bit inode number problem.
6235         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
6236         64-bit inode number problem.
6237         * doc/posix-functions/stat.texi: Mention that this module fixes the
6238         64-bit inode number problem.
6239         * doc/posix-functions/lstat.texi: Likewise.
6240         * doc/posix-functions/fstat.texi: Likewise.
6241         * doc/posix-functions/readdir.texi: Add more details.
6242         * doc/posix-functions/readdir_r.texi: Likewise.
6244 2020-01-02  Bruno Haible  <bruno@clisp.org>
6246         wcrtomb: Add more tests.
6247         * tests/test-wcrtomb-w32.c: Include localcharset.h.
6248         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6249         locale_charset() returns the expected value; otherwise, skip the test.
6250         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
6251         * tests/test-wcrtomb-w32-7.sh: Likewise.
6252         * modules/wcrtomb-tests (Files): Add these files.
6253         (Depends-on): Add localcharset.
6254         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
6256 2020-01-02  Bruno Haible  <bruno@clisp.org>
6258         mbrtowc: Add more tests.
6259         * tests/test-mbrtowc-w32.c: Include localcharset.h.
6260         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6261         locale_charset() returns the expected value; otherwise, skip the test.
6262         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
6263         * tests/test-mbrtowc-w32-7.sh: Likewise.
6264         * modules/mbrtowc-tests (Files): Add these files.
6265         (Depends-on): Add localcharset.
6266         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
6268 2020-01-02  Bruno Haible  <bruno@clisp.org>
6270         mbrtowc: Fix test failures on MSVC (regression by previous commit).
6271         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
6272         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
6273         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
6274         MBRTOWC_STORES_INCOMPLETE_BUG.
6275         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
6277 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6279         doc: mention glibc bug 24269
6280         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
6281         Reformat slightly so that it looks nicer in the Grep manual.
6283 2020-01-02  Bruno Haible  <bruno@clisp.org>
6285         mbrtowc: Don't replace mbstate_t on MSVC.
6286         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
6287         a missing mbsinit function on native Windows.
6288         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
6289         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
6290         MSVC bug.
6291         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
6293 2020-01-02  Bruno Haible  <bruno@clisp.org>
6295         setlocale-null: Avoid crashing the MSVC linker.
6296         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
6297         MSVC.
6299 2020-01-02  Bruno Haible  <bruno@clisp.org>
6301         wchar: Make the HP-UX workaround work on HP-UX 11.31.
6302         * modules/wchar (Depends-on): Add inttypes-incomplete.
6303         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
6304         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
6305         of strtoimax.
6307 2020-01-02  Bruno Haible  <bruno@clisp.org>
6309         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
6310         * lib/mbrtowc.c: Include <stdint.h>.
6311         * modules/mbrtowc (Depends-on): Add stdint.
6313 2020-01-01  Pádraig Brady  <P@draigBrady.com>
6315         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
6316         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
6317         which will auto enable use of openssl, only for >= version 3,
6318         which is newly licensed under the Apache Software License.
6320 2020-01-01  Bruno Haible  <bruno@clisp.org>
6322         mbrtowc: Include function name in macro names.
6323         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
6324         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
6325         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
6326         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
6327         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
6328         C_LOCALE_MAYBE_EILSEQ.
6330 2020-01-01  Bruno Haible  <bruno@clisp.org>
6332         c32tob: New module.
6333         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
6334         (c32tob): New declaration.
6335         * lib/c32tob.c: New file.
6336         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
6337         macros.
6338         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
6339         * modules/uchar (Depends-on): Add snippet/c++defs.
6340         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
6341         uchar.h.
6342         * modules/c32tob: New file.
6343         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
6344         defined.
6345         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
6346         c32tob.
6347         * modules/uchar-c++-tests (Files): Add tests/signature.h.
6348         * doc/posix-functions/wctob.texi: Mention the new module.
6350 2020-01-01  Bruno Haible  <bruno@clisp.org>
6352         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
6353         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
6354         $(LIB_SETLOCALE).
6356 2020-01-01  Bruno Haible  <bruno@clisp.org>
6358         hard-locale tests: Fix a conflict with the C++ tests.
6359         * modules/hard-locale-tests (Makefile.am): Build a program named
6360         'current-locale', not 'locale'.
6362 2020-01-01  Bruno Haible  <bruno@clisp.org>
6364         doc: Update documentation about wchar_t.
6365         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
6366         wchar_t type.
6368 2020-01-01  Bruno Haible  <bruno@clisp.org>
6370         mbrtowc tests: Fix typos.
6371         * tests/test-mbrtowc.c (main): Fix typo.
6372         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
6374 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6376         maint: update copyright notices
6377         Before doing the following changes done by hand, I also ran ‘make
6378         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
6379         to do most of the copyright years automatically.  A few upstream
6380         sources are still in 2019 but these should eventually be changed
6381         automatically too.
6382         * build-aux/declared.sh (func_version):
6383         * build-aux/libtool-next-version (func_version):
6384         * build-aux/run-test (func_version):
6385         Update these notices by hand.  Put just the last year
6386         in output of programs, as per GNU coding standards.
6388 2019-12-31  Bruno Haible  <bruno@clisp.org>
6390         uchar: Add C++ tests.
6391         * tests/test-uchar-c++.cc: New file.
6392         * tests/test-uchar-c++2.cc: New file.
6393         * modules/uchar-c++-tests: New file.
6395         uchar: Add tests.
6396         * tests/test-uchar.c: New file.
6397         * modules/uchar-tests: New file.
6399         uchar: New module.
6400         * lib/uchar.in.h: New file.
6401         * m4/uchar.m4: New file.
6402         * modules/uchar: New file.
6403         * doc/posix-headers/uchar.texi: Mention the new module.
6405 2019-12-30  Jim Meyering  <meyering@fb.com>
6407         localeinfo: ->simple would be wrong for LC_ALL=C
6408         That would lead to using unnecessary and expensive code paths in dfa.c.
6409         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
6410         error that would have made grep many times slower in the C locale.
6411         With this change, and a file created like this:
6412           yes 00 | head -10000000 > in
6413         Running grep as follows becomes more than 40 times faster:
6414           LC_ALL=C grep -Fw 0 in
6416 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6418         doc: document trouble with back-references
6419         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
6421 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6423         doc: use “back-reference” for \1 etc.
6424         * doc/regex.texi: Consistently spell “back-reference” with
6425         a hyphen, since that’s how POSIX does it.
6427 2019-12-26  Jim Meyering  <meyering@fb.com>
6429         test-framework-sh: tighten an internal grep regexp
6430         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
6431         that helps test for a working printf.
6433 2019-12-26  Bruno Haible  <bruno@clisp.org>
6435         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
6436         Reported by Paul Eggert in
6437         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
6438         Simplification by Jim Meyering.
6439         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
6440         octal escape sequence in a UTF-8 locale.
6442 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
6444         mbrtowc: port better to narrow-wchar_t platforms
6445         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
6446         wchar_t is too narrow to represent all the Unicode characters,
6447         consider a byte sequence for an out-of-wchar_t-range character to
6448         be an encoding error.  This fixes grep’s surrogate-pair test
6449         failure on AIX 7.2.
6451 2019-12-24  Bruno Haible  <bruno@clisp.org>
6453         localcharset: Avoid referencing rpl_setlocale on native Windows.
6454         * lib/localcharset.c (setlocale): Undefine.
6456 2019-12-24  Bruno Haible  <bruno@clisp.org>
6458         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
6459         * m4/semaphore.m4: New file.
6460         * modules/lock-tests (Files): Add it.
6461         (configure.ac): Require gl_SEMAPHORE.
6462         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
6464 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
6466         strptime: fix typo in previous patch
6467         Problem and fix reported by Bruno Haible in:
6468         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
6469         * lib/strptime.c (day_of_the_week): Fix paren bug.
6471 2019-12-24  Bruno Haible  <bruno@clisp.org>
6473         setlocale-null: Make it easy to rely on the lock in another library.
6474         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
6475         defined.
6477 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6479         gethrxtime, mktime, nstrftime, strptime: tweak division performance
6480         Performanced analyzed by Bruno Haible in:
6481         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
6482         * config/srclist.txt: Do not sync mktime.c for now.
6483         * lib/mktime.c (shr, ydhms_diff):
6484         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
6485         * lib/strptime.c (day_of_the_week):
6486         * lib/xtime.h (xtime_sec):
6487         Redo with neither ‘%’ nor conditional branches.
6489 2019-12-23  Bruno Haible  <bruno@clisp.org>
6491         setlocale-null: Export the lock function also on non-Windows platforms.
6492         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
6493         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
6494         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
6495         * modules/setlocale-null (configure.ac): Invoke it.
6496         (Files): Add m4/visibility.m4.
6498 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6500         gethrxtime: fix rounding bug with negative args
6501         Problem reported by Bruno Haible in:
6502         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
6503         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
6504         with negative rounding.  Common platforms can compute / and % with
6505         a single instruction, so the simplified code should be shorter and
6506         faster on these platforms anyway.
6508 2019-12-22  Bruno Haible  <bruno@clisp.org>
6510         gethrxtime: remove incorrect overflow detection
6511         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
6512         integer overflow, as it didn’t suffice.  This reverts the xtime.h
6513         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
6514         cannot now see the need for anyway (even in cases where it works),
6515         as the patch is helpful only when the signs of S and NS disagree,
6516         and all callers pass nonnegative values for S and NS.
6518 2019-12-22  Bruno Haible  <bruno@clisp.org>
6520         setlocale-null: Add standalone include file.
6521         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
6522         * lib/locale.in.h: Include setlocale_null.h.
6523         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
6524         setlocale_null): Remove declarations.
6525         * lib/setlocale_null.c: Include setlocale_null.h.
6526         * lib/localename.c: Likewise.
6527         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
6528         (Depends-on): Add snippet/arg-nonnull.
6529         (Include): Allow either "setlocale_null.h" or <locale.h>.
6531 2019-12-22  Bruno Haible  <bruno@clisp.org>
6533         strfmon_l: Fix test failures on FreeBSD and Cygwin.
6534         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
6535         AC_RUN_IFELSE test.
6536         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
6537         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
6538         problem.
6540 2019-12-22  Bruno Haible  <bruno@clisp.org>
6542         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
6543         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
6544         unconditional AC_LIBOBJ.
6545         * modules/selinux-at: Likewise.
6546         * modules/xmemdup0: Likewise.
6547         * modules/xstrtoll: Likewise.
6549 2019-12-22  Bruno Haible  <bruno@clisp.org>
6551         longlong: Mark module obsolete.
6552         * modules/longlong (Status, Notice): New sections.
6554         stdint: Assume that the compiler supports 'long long'.
6555         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
6556         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
6557         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6558         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
6559         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6560         * modules/stdint (Files): Remove longlong.m4.
6561         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
6562         HAVE_UNSIGNED_LONG_LONG_INT.
6564         inttypes-incomplete: Assume that the compiler supports 'long long'.
6565         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6566         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
6567         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6568         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
6569         HAVE_LONG_LONG_INT to be 1.
6570         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6571         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
6573         malloca: Assume that the compiler supports 'long long'.
6574         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
6575         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
6576         * modules/malloca (Files): Remove longlong.m4.
6577         * modules/relocatable-prog-wrapper (Files): Likewise.
6579         atoll: Assume that the compiler supports 'long long'.
6580         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
6581         * modules/atoll (Files): Remove longlong.m4.
6583         strtoll: Assume that the compiler supports 'long long'.
6584         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
6585         * modules/strtoll (Files): Remove longlong.m4.
6587         strtoull: Assume that the compiler supports 'long long'.
6588         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
6589         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6590         * modules/strtoull (Files): Remove longlong.m4.
6592         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
6593         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
6594         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6595         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
6596         AC_TYPE_LONG_LONG_INT.
6597         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
6598         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6599         * modules/strtoimax (Files): Remove longlong.m4.
6600         * modules/strtoumax (Files): Likewise.
6602         xstrtoll: Assume that the compiler supports 'long long'.
6603         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
6604         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
6606         vasnprintf: Assume that the compiler supports 'long long'.
6607         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
6608         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
6609         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6610         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
6611         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
6612         require AC_TYPE_LONG_LONG_INT.
6613         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6614         gl_PREREQ_VASNPRINTF): Likewise.
6615         * modules/vasnprintf (Files): Remove longlong.m4.
6616         * modules/c-vasnprintf (Files): Likewise.
6617         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6618         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6619         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6620         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6621         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6622         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6623         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6625         gethrxtime: Assume that the compiler supports 'long long'.
6626         * lib/xtime.h (xtime_t): Define to 'long long int' always.
6627         (XTIME_PRECISION): Define to 1000000000 always.
6628         (xtime_make, xtime_sec): Optimize accordingly.
6629         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
6630         * modules/gethrxtime (Files): Remove longlong.m4.
6632         integer_length*: Assume that the compiler supports 'long long'.
6633         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
6634         * modules/integer_length (Files): Remove longlong.m4.
6635         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6636         * modules/integer_length_l (Files): Remove longlong.m4.
6637         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6638         * modules/integer_length_ll (Files): Remove longlong.m4.
6639         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6641         count-one-bits: Assume that the compiler supports 'long long'.
6642         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
6643         * m4/count-one-bits.m4: Remove file.
6644         * modules/count-one-bits (Files): Remove it.
6645         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
6646         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
6647         unconditionally.
6649         count-trailing-zeros: Assume that the compiler supports 'long long'.
6650         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
6651         unconditionally.
6652         * m4/count-trailing-zeros.m4: Remove file.
6653         * modules/count-trailing-zeros (Files): Remove it.
6654         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
6655         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
6656         unconditionally.
6658         count-leading-zeros: Assume that the compiler supports 'long long'.
6659         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
6660         unconditionally.
6661         * m4/count-leading-zeros.m4: Remove file.
6662         * modules/count-leading-zeros (Files): Remove it.
6663         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
6664         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
6665         unconditionally.
6667 2019-12-22  Bruno Haible  <bruno@clisp.org>
6669         localcharset: Update support for OpenBSD.
6670         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6672 2019-12-21  Bruno Haible  <bruno@clisp.org>
6674         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6675         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6676         NetBSD.
6677         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6679 2019-12-21  Bruno Haible  <bruno@clisp.org>
6681         threadlib: Improve code structure.
6682         * m4/threadlib.m4: Reorder macros. Add comments.
6684 2019-12-21  Bruno Haible  <bruno@clisp.org>
6686         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6687         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6688         here from m4/threads.m4).
6689         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6690         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6691         (gl_STDTHREADLIB): New macro.
6692         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6693         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6695 2019-12-21  Bruno Haible  <bruno@clisp.org>
6697         sched_yield: Don't depend on threadlib and yield.
6698         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6699         LIB_SCHED_YIELD.
6700         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6701         m4/yield.m4).
6702         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6703         gl_THREADLIB and gl_YIELD.
6704         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6705         based on $(LIB_SCHED_YIELD).
6706         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6707         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6708         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
6709         (Depends-on): Remove threadlib.
6710         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6711         * modules/threads-h (Files): Remove m4/yield.m4.
6712         * modules/pthread-cond-tests (Makefile.am): Link the programs against
6713         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6714         * modules/pthread-mutex-tests (Makefile.am): Likewise.
6715         * modules/pthread-once-tests (Makefile.am): Likewise.
6716         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
6717         * modules/pthread-tss-tests (Makefile.am): Likewise.
6719 2019-12-21  Bruno Haible  <bruno@clisp.org>
6721         threads-h: Don't depend on threadlib.
6722         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
6723         not gl_THREADLIB_EARLY.
6725 2019-12-21  Bruno Haible  <bruno@clisp.org>
6727         nl_langinfo tests: Fix link error (regression from 2019-12-18).
6728         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
6729         with $(LIB_SETLOCALE).
6731 2019-12-21  Bruno Haible  <bruno@clisp.org>
6733         threadlib: Remove unused dependency (left over from 2019-07-06).
6734         * modules/threadlib (Depends-on): Remove havelib.
6736 2019-12-21  Bruno Haible  <bruno@clisp.org>
6738         New convention for multithread-safety tests.
6739         * tests/test-setlocale_null-mt-one.c: Renamed from
6740         tests/test-setlocale_null-one.c.
6741         * tests/test-setlocale_null-mt-all.c: Renamed from
6742         tests/test-setlocale_null-all.c.
6743         * modules/setlocale-null-tests (Files, Makefile.am): Update.
6745 2019-12-21  Bruno Haible  <bruno@clisp.org>
6747         quotearg tests: Fix conflict with hard-locale tests.
6748         * tests/testlocale: Renamed from tests/locale.
6749         * modules/quotearg-tests (Files): Update.
6750         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
6752 2019-12-21  Bruno Haible  <bruno@clisp.org>
6754         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
6755         Reported by Daniel Richard G. in
6756         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
6757         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
6758         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
6759         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
6760         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
6761         alternative to PTHREAD_RWLOCK_INITIALIZER.
6762         * lib/glthread/lock.c: Likewise.
6764 2019-12-21  Bruno Haible  <bruno@clisp.org>
6766         memcmp tests: Work around the clang bug.
6767         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
6768         the clang optimization.
6770 2019-12-20  Bruno Haible  <bruno@clisp.org>
6772         localcharset: Add support for z/OS encoding names.
6773         * lib/localcharset.h: Mention which encodings are used as locale
6774         encodings on z/OS.
6776 2019-12-20  Bruno Haible  <bruno@clisp.org>
6778         iconv_open: Add support for z/OS encoding names.
6779         Reported by Daniel Richard G. in
6780         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
6781         * lib/iconv_open-zos.gperf: New file.
6782         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
6783         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
6784         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
6785         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
6786         * doc/posix-functions/iconv_open.texi: Mention z/OS.
6788 2019-12-20  Bruno Haible  <bruno@clisp.org>
6790         doc: Document the problem of the per-thread locale functions on z/OS.
6791         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
6792         * doc/posix-functions/newlocale.texi: Likewise.
6793         * doc/posix-functions/duplocale.texi: Likewise.
6794         * doc/posix-functions/freelocale.texi: Likewise.
6796 2019-12-20  Bruno Haible  <bruno@clisp.org>
6798         localename, gettext: Fix host_os value for z/OS.
6799         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
6800         cross-configuration code.
6802 2019-12-19  Jim Meyering  <meyering@fb.com>
6804         nstrftime: avoid a shadowing warning
6805         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6806         to avoid shadowing an "i" declared hundreds of lines above.
6808 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6810         dfa: struct dfamust now uses flexible array
6811         * lib/dfa.c: Include flexmember.h.
6812         (dfamust, dfamustfree): Adjust to struct dfamust change.
6813         This saves a call to malloc+free.
6814         * lib/dfa.h (struct dfamust): Make the final member a
6815         flexible array member.
6816         * modules/dfa (Depends-on): Add flexmember.
6818         dfa: fast->small for array elements
6819         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6820         since this type is used in arrays.  This change is more for
6821         documentation than for any practical effect, since the two types
6822         are the same on all known platforms.
6824 2019-12-19  Bruno Haible  <bruno@clisp.org>
6826         iconv tests: Test canonicalized, not system-dependent, encoding names.
6827         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6828         * modules/iconv-tests (Depends-on): Add iconv_open.
6830 2019-12-18  Bruno Haible  <bruno@clisp.org>
6832         localename: Fix test failure on AIX 7.2.
6833         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6834         locales on AIX.
6835         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6836         locales on AIX.
6838 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6840         Improve port of AC_C_RESTRICT to Oracle C++
6841         Problem reported by Christian Biesinger in:
6842         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6843         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6844         Oracle Developer Studio C++ 12.5 or later.
6846 2019-12-18  Bruno Haible  <bruno@clisp.org>
6848         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6849         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6851 2019-12-18  Bruno Haible  <bruno@clisp.org>
6853         localename: Ensure multithread-safety in future changes.
6854         * lib/localename.c (setlocale): Reference the system's setlocale().
6855         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6856         (gl_locale_name_posix): Likewise.
6857         * modules/localename (Depends-on): Add setlocale-null.
6859 2019-12-18  Bruno Haible  <bruno@clisp.org>
6861         setlocale-null: Make API more useful.
6862         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6863         callers changed.
6864         (setlocale_null): New declaration.
6865         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6866         extracted from setlocale_null_unlocked.
6867         (setlocale_null_unlocked): Invoke it.
6868         (setlocale_null_r): Renamed from setlocale_null.
6869         (setlocale_null): New function, extracted from setlocale_mtsafe in
6870         setlocale.c.
6871         * lib/setlocale.c: Don't include <errno.h>.
6872         (setlocale_mtsafe): Invoke setlocale_null.
6873         * lib/setlocale-lock.c: Update comments.
6874         * doc/posix-functions/setlocale.texi: Mention both functions.
6876 2019-12-18  Bruno Haible  <bruno@clisp.org>
6878         localename: Optimize code for native Windows.
6879         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6880         category (not allowed here).
6882 2019-12-18  Bruno Haible  <bruno@clisp.org>
6884         setlocale: Make calls with NULL argument multithread-safe.
6885         * lib/setlocale.c: Include <errno.h>.
6886         (setlocale_mtsafe): New function.
6887         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6888         (setlocale_improved): Renamed from rpl_setlocale.
6889         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6890         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6891         LIB_SETLOCALE.
6892         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6893         (Link): New section.
6894         * tests/locale.c: Undefine setlocale.
6895         * tests/test-setlocale_null-one.c: Likewise.
6896         * tests/test-setlocale_null-all.c: Likewise.
6897         * modules/setlocale-tests (Makefile.am): Link the test programs with
6898         $(LIB_SETLOCALE).
6899         * modules/astrxfrm-tests (Makefile.am): Likewise.
6900         * modules/btowc-tests (Makefile.am): Likewise.
6901         * modules/c-ctype-tests (Makefile.am): Likewise.
6902         * modules/c-snprintf-tests (Makefile.am): Likewise.
6903         * modules/c-strcase-tests (Makefile.am): Likewise.
6904         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6905         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6906         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6907         * modules/dfa-tests (Makefile.am): Likewise.
6908         * modules/duplocale-tests (Makefile.am): Likewise.
6909         * modules/hard-locale-tests (Makefile.am): Likewise.
6910         * modules/localcharset-tests (Makefile.am): Likewise.
6911         * modules/localename-tests (Makefile.am): Likewise.
6912         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6913         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6914         * modules/mbrtowc-tests (Makefile.am): Likewise.
6915         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6916         * modules/mbscasestr-tests (Makefile.am): Likewise.
6917         * modules/mbschr-tests (Makefile.am): Likewise.
6918         * modules/mbscspn-tests (Makefile.am): Likewise.
6919         * modules/mbsinit-tests (Makefile.am): Likewise.
6920         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6921         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6922         * modules/mbspbrk-tests (Makefile.am): Likewise.
6923         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6924         * modules/mbsrchr-tests (Makefile.am): Likewise.
6925         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6926         * modules/mbsspn-tests (Makefile.am): Likewise.
6927         * modules/mbsstr-tests (Makefile.am): Likewise.
6928         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6929         * modules/quotearg-tests (Makefile.am): Likewise.
6930         * modules/regex-tests (Makefile.am): Likewise.
6931         * modules/strfmon_l-tests (Makefile.am): Likewise.
6932         * modules/strtod-tests (Makefile.am): Likewise.
6933         * modules/strtold-tests (Makefile.am): Likewise.
6934         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6935         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6936         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6937         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6938         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6939         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6940         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6941         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6942         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6943         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6944         * modules/wcrtomb-tests (Makefile.am): Likewise.
6945         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6946         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6947         * modules/wcwidth-tests (Makefile.am): Likewise.
6948         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6949         safety fix is also available in module 'setlocale'.
6951 2019-12-18  Bruno Haible  <bruno@clisp.org>
6953         hard-locale: Make multithread-safe.
6954         * lib/hard-locale.h (hard_locale): Move documentation to here.
6955         * lib/hard-locale.c: Don't include <stdlib.h>.
6956         (GLIBC_VERSION): Remove macro.
6957         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6958         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6959         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6960         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6961         (Link): New section.
6962         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6963         $(LIB_HARD_LOCALE).
6965 2019-12-18  Bruno Haible  <bruno@clisp.org>
6967         hard-locale: Avoid test failure on Haiku.
6968         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6970 2019-12-18  Bruno Haible  <bruno@clisp.org>
6972         setlocale-null: Handle NULL result from setlocale.
6973         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6974         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6975         from setlocale or _wsetlocale.
6977 2019-12-18  Bruno Haible  <bruno@clisp.org>
6979         hard-locale: Add test.
6980         * tests/test-hard-locale.c: New file.
6981         * tests/locale.c: New file.
6982         * modules/hard-locale-tests: New file.
6984 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6986         dfa: do not match invalid UTF-8
6987         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6988         from 5 to 9 tokens; this is needed due to the changes to
6989         add_utf8_anychar.
6990         (charclass_index): 2nd arg is now pointer-to-const.
6991         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6992         instead of allowing overlong encodings or surrogate halves.
6994         dfa: simplify charclass by assuming C99
6995         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6996         (charclass_word): Now always uint_fast64_t.
6997         (CHARCLASS_PAIR): Remove.
6998         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
7000         fts: tune via calloc
7001         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
7003         dfa: tune via xzalloc
7004         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
7006 2019-12-17  Bruno Haible  <bruno@clisp.org>
7008         localcharset: Fix multithread-safety bug on Windows and OS/2.
7009         * lib/localcharset.h (locale_charset): Clarify when the result becomes
7010         invalid.
7011         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
7012         assemble the result.
7014 2019-12-17  Bruno Haible  <bruno@clisp.org>
7016         localcharset: Optimize code for native Windows.
7017         * lib/localcharset.c (locale_charset): Don't bother calling
7018         setlocale (LC_ALL, NULL) since we're not interested in its result.
7020 2019-12-17  Bruno Haible  <bruno@clisp.org>
7022         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
7023         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
7024         setlocale.
7025         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
7026         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
7027         * modules/nl_langinfo (Depends-on): Add setlocale-null.
7029 2019-12-17  Bruno Haible  <bruno@clisp.org>
7031         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
7032         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
7033         stack-allocated buffer to assemble each result and different static
7034         buffers to return it.
7035         * tests/test-nl_langinfo-mt.c: New file.
7036         * modules/nl_langinfo-tests (Files): Add it.
7037         (Depends-on): Add thread, nanosleep.
7038         (Makefile.am): Build test-nl_langinfo-mt test.
7040 2019-12-17  Bruno Haible  <bruno@clisp.org>
7042         langinfo: Document more details.
7043         * doc/posix-headers/langinfo.texi: List platform details.
7044         * doc/posix-functions/nl_langinfo.texi: Likewise.
7046 2019-12-17  Bruno Haible  <bruno@clisp.org>
7048         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
7049         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
7050         and Martin Storsjö <martin@martin.st>
7051         in <https://savannah.gnu.org/bugs/?57406>.
7052         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
7053         mingw.
7055 2019-12-17  Bruno Haible  <bruno@clisp.org>
7057         glob: Avoid warning on mingw.
7058         Reported by Christian Biesinger <cbiesinger@google.com> in
7059         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
7060         * lib/glob.c (__stat64): Undefine first.
7062 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7064         xalloc: tune xzalloc for fresh allocations
7065         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
7066         because when the memory is freshly allocated from the OS via sbrk
7067         or mmap, calloc can avoid doing the memset.
7069         dfa: new function dfacopysyntax
7070         * lib/dfa.c (struct dfa): Move syntax member later so
7071         that dfacopysyntax can easily clear earlier members.
7072         (dfacopysyntax): New function, used by Gawk.
7074 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7076         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
7077         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
7078         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
7079         if not already defined.
7081         dfa: remove one dependency on MB_CUR_MAX
7082         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
7084         dfa: remove struct lexer_state.cur_mb_len
7085         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
7086         as it’s not needed and the code is simpler without it.
7087         All uses removed.
7089 2019-12-16  Bruno Haible  <bruno@clisp.org>
7091         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
7092         Reported by Arnold Robbins <arnold@skeeve.com>.
7093         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
7094         copied from lib/glthread/lock.h.
7095         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
7096         (setlocale_null_with_lock): If pthread_in_use() is false, use
7097         setlocale_null_unlocked directly.
7098         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
7099         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
7100         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
7101         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
7102         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
7103         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
7105 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7107         dfa: make dfasyntax thread-safe
7108         Problem reported by Bruno Haible in:
7109         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
7110         * lib/dfa.c: Do not include locale.h.
7111         (struct dfa): Remove simple_locale member.
7112         All uses replaced by localeinfo.simple.
7113         (using_simple_locale): Remove; now present (with some
7114         changes) in localeinfo.c.
7115         (dfasyntax): No need to initialize removed member.
7117         localeinfo: record whether locale is simple
7118         * lib/localeinfo.c (using_simple_locale): New function,
7119         copied here from lib/dfa.c but with a change: it uses
7120         strcoll for its heuristic, instead of using setlocale.
7121         This lets it be thread-safe.
7122         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
7124 2019-12-15  Bruno Haible  <bruno@clisp.org>
7126         duplocale: Fix multithread-safety bug on AIX.
7127         * lib/duplocale.c: Don't include <stdlib.h>.
7128         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
7129         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7130         Set LIB_DUPLOCALE.
7131         * modules/duplocale (Depends-on): Add setlocale-null.
7132         (Link): New section.
7133         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
7134         $(LIB_DUPLOCALE).
7136 2019-12-15  Bruno Haible  <bruno@clisp.org>
7138         setlocale-null: Add tests.
7139         * tests/test-setlocale_null.c: New file.
7140         * tests/test-setlocale_null-one.c: New file.
7141         * tests/test-setlocale_null-all.c: New file.
7142         * modules/setlocale-null-tests: New file.
7144         setlocale-null: New module.
7145         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
7146         setlocale_null): New declarations.
7147         * lib/setlocale_null.c: New file.
7148         * lib/setlocale-lock.c: New file.
7149         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
7150         * m4/setlocale_null.m4: New file.
7151         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
7152         GNULIB_SETLOCALE_NULL.
7153         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
7154         * modules/setlocale-null: New file.
7155         * doc/posix-functions/setlocale.texi: Mention the new module.
7157 2019-12-15  Bruno Haible  <bruno@clisp.org>
7159         lock tests: Skip test when no multithreading is enabled.
7160         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
7162 2019-12-14  Bruno Haible  <bruno@clisp.org>
7164         locale, duplocale, localename: Fix last patch.
7165         Reported by Daniel Richard G. in
7166         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
7167         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
7168         Don't define if locale_t does not exist.
7170 2019-12-13  Bruno Haible  <bruno@clisp.org>
7172         locale, duplocale, localename: Fix errors if locale_t does not exist.
7173         Reported by Daniel Richard G. in
7174         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
7175         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
7176         macros.
7177         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
7178         HAVE_NEWLOCALE.
7179         * tests/test-localename.c: Likewise.
7180         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
7181         HAVE_DUPLOCALE.
7182         * tests/test-locale-c++.cc: Likewise.
7184 2019-12-13  Bruno Haible  <bruno@clisp.org>
7186         wcstok: Fix test failure on HP-UX.
7187         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
7188         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
7190 2019-12-12  Bruno Haible  <bruno@clisp.org>
7192         strtod, strtold tests: Avoid test failure on AIX 7.2.
7193         * tests/test-strtod1.c (main): Allow implementations in which ',' and
7194         '.' both are radix characters.
7195         * tests/test-strtold1.c (main): Likewise.
7197 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7199         dfa: prefer ptrdiff_t for API, too
7200         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
7201         but do this only for internal use for now.
7202         * NEWS: Mention the API change.
7203         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
7204         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
7205         values known to be nonnegative.
7206         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
7207         Prefer idx_t or ptrdiff_t to size_t for API.
7208         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
7209         Prefer ptrdiff_t to size_t for API.
7211         stdalign: port to xlclang 16.01
7212         Problem reportd by Bruno Haible in:
7213         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
7214         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
7215         ((__aligned__ (...))) with xlclang, as a top-level
7216         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
7217         xlclang version 16.01.0000.0001; the alignment directive is ignored.
7219 2019-12-12  Bruno Haible  <bruno@clisp.org>
7221         duplocale: Fix test failure on AIX 7.2 with xlclang.
7222         * lib/duplocale.c: Include <stdlib.h>.
7223         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
7224         value.
7226 2019-12-12  Bruno Haible  <bruno@clisp.org>
7228         stddef: Document the AIX xlc issue.
7229         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
7231 2019-12-12  Bruno Haible  <bruno@clisp.org>
7233         duplocale: Don't attempt to override if locale_t does not exist.
7234         Reported by Daniel Richard G. in
7235         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
7236         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
7237         HAVE_DUPLOCALE to 0.
7239 2019-12-12  Bruno Haible  <bruno@clisp.org>
7241         wcwidth: Avoid test failure on AIX 7.2.
7242         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
7243         negative.
7244         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
7246 2019-12-12  Bruno Haible  <bruno@clisp.org>
7248         ilogbl: Work around Cygwin bug.
7249         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
7250         correct.
7251         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
7253 2019-12-12  Bruno Haible  <bruno@clisp.org>
7255         strtold: Work around Cygwin bug.
7256         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
7257         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
7258         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
7259         STRTOLD_HAS_UNDERFLOW_BUG is defined.
7260         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
7262 2019-12-12  Bruno Haible  <bruno@clisp.org>
7264         strtold: Fix autoconf test.
7265         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
7267 2019-12-11  Bruno Haible  <bruno@clisp.org>
7269         fsync tests: Skip test that is known to fail.
7270         * doc/posix-functions/fsync.texi: Update list of platforms.
7271         * tests/test-fsync.c (main): Skip test with read-only file descriptors
7272         that is known to fail on AIX and Cygwin.
7274 2019-12-11  Bruno Haible  <bruno@clisp.org>
7276         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
7277         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
7278         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
7279         HAVE_GETADDRINFO as a C macro.
7280         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
7281         declare as replacement functions.
7282         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
7283         define as no-op overrides.
7284         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
7285         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
7286         * modules/getaddrinfo (Depends-on, configure.ac): Test
7287         REPLACE_GETADDRINFO.
7288         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
7289         problem.
7290         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
7291         convention problems.
7293 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7295         dfa: prefer signed integers for internals
7296         Signed integers can be checked more easily for integer overflow.
7297         * lib/dfa.c (position, struct lexer_state, struct parser_state)
7298         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
7299         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
7300         (nsubtoks, copytoks, closure, alloc_position_set, delete)
7301         (replace, state_index, epsclosure, charclass_context)
7302         (state_separate_contexts, merge_nfa_state, dfaoptimize)
7303         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
7304         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
7305         (comsubs, inboth, allocmust):
7306         Prefer a signed to an unsigned integer when calculating indexes,
7307         unless the integer is part of the external API (a bigger deal,
7308         and to be done later).
7310         dfa: fix index overflow
7311         * lib/dfa.c (compare): Avoid integer overflow when analyzing
7312         very large regular expressions.
7314         dfa: update commentary for previous change
7315         * NEWS: Mention the change.
7316         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
7318 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7320         dfa: separate parse and compile phase
7321         ‘dfamust’ must be called after parsing and before tokens are
7322         reordered, but both are executed in the compilation phase.
7323         Token reordering was introduced in Gnulib commit
7324         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
7325         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
7326         * lib/dfa.c (dfaparse): Change it to global function.
7327         (dfacomp): If first argument is NULL, skip parse.
7328         * lib/dfa.h: (dfaparse): Add a prototype.
7330 2019-12-11  Bruno Haible  <bruno@clisp.org>
7332         unistd tests: Fix link error on MSVC.
7333         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
7334         $(LIB_GETLOGIN).
7336 2019-12-11  Bruno Haible  <bruno@clisp.org>
7338         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
7339         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
7340         and POSIX substitutes are supported in C++ mode.
7341         * NEWS: Likewise.
7343 2019-12-11  Bruno Haible  <bruno@clisp.org>
7345         stddef: Fix compilation error in C++ mode on MSVC.
7346         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
7347         instead, include <cstddef>.
7349 2019-12-11  Bruno Haible  <bruno@clisp.org>
7351         unistd: Fix compilation error in C++ mode on MSVC.
7352         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
7353         does not have <unistd.h>.
7355 2019-12-11  Bruno Haible  <bruno@clisp.org>
7357         locale: Fix compilation error in C++ mode on MSVC.
7358         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
7359         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
7360         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
7361         int_n_sep_by_space): Define as macros on MSVC.
7363 2019-12-11  Bruno Haible  <bruno@clisp.org>
7365         wchar: Fix compilation error in C++ mode on MSVC.
7366         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
7368 2019-12-11  Bruno Haible  <bruno@clisp.org>
7370         pthread-thread: Fix compilation error in C++ mode on MSVC.
7371         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
7372         _GL_CXXALIAS_RPL invocation.
7374 2019-12-08  Bruno Haible  <bruno@clisp.org>
7376         Fix compilation errors in C++ mode on Haiku.
7377         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
7378         non-glibc systems.
7379         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
7380         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7381         posix_spawnattr_setschedparam): Likewise.
7382         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
7383         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7384         * lib/unistd.in.h (usleep): Likewise.
7386 2019-12-08  Bruno Haible  <bruno@clisp.org>
7388         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
7389         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
7390         * modules/fseeko (configure.ac-early): Require it instead of
7391         AC_FUNC_FSEEKO.
7392         * modules/ftello (configure.ac-early): Likewise.
7393         * modules/fflush (configure.ac-early): Likewise.
7395 2019-12-08  Bruno Haible  <bruno@clisp.org>
7397         Fix compilation error in C++ mode on HP-UX 11.
7398         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
7399         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
7401 2019-12-08  Bruno Haible  <bruno@clisp.org>
7403         Fix compilation errors on HP-UX 11/ia64.
7404         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
7405         _GL_FUNCDECL_SYS.
7407 2019-12-08  Bruno Haible  <bruno@clisp.org>
7409         Fix compilation error in C++ mode on OpenBSD.
7410         * lib/signal.in.h (signal): Declare on OpenBSD.
7412 2019-12-08  Bruno Haible  <bruno@clisp.org>
7414         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
7415         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
7416         instead of #error.
7418 2019-12-08  Bruno Haible  <bruno@clisp.org>
7420         Fix compilation errors in C++ mode on FreeBSD.
7421         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
7422         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
7423         * lib/threads.in.h (thrd_exit): Likewise.
7424         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
7426 2019-12-08  Bruno Haible  <bruno@clisp.org>
7428         Fix compilation errors in C++ mode on macOS and FreeBSD.
7429         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
7430         or FreeBSD with clang, use the approach without C preprocessor macro.
7432 2019-12-07  Bruno Haible  <bruno@clisp.org>
7434         Fix compilation errors in C++ mode on AIX with xlclang++.
7435         Reported by Christian Biesinger <cbiesinger@google.com> in
7436         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7437         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
7439 2019-12-07  Bruno Haible  <bruno@clisp.org>
7441         Document compilation error in C++ mode on NetBSD 8.0.
7442         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
7444 2019-12-07  Bruno Haible  <bruno@clisp.org>
7446         Fix compilation errors in C++ mode on Solaris 10.
7447         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
7448         to non-empty on Solaris with a non-GCC compiler.
7449         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
7451 2019-12-07  Bruno Haible  <bruno@clisp.org>
7453         Reword NEWS entry.
7454         * NEWS: Reword the latest NEWS entry.
7456 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
7458         Move xstrtol_fatal to a new xstrtol-error module.
7459         * lib/xstrtol.h: Stop including <getopt.h>.
7460         (xstrtol_fatal): Move ...
7461         * lib/xstrtol-error.h: ... here.  New file.
7462         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
7463         * tests/test-xstrtol.c: Likewise.
7464         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
7465         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
7466         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
7467         * modules/xstrtol-error: New file.
7468         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
7469         * MODULES.html.sh: Add xstrtol-error.
7470         * NEWS: Document the change.
7472 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
7474         nstrftime: better width support for %N, %z
7475         * lib/nstrftime.c (width_add, width_add1, width_cpy):
7476         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
7477         a new WIDTH parameter.
7478         (add, add1, cpy): Use these macros.
7479         (width_add): Do not treat digits == 0 as a special case,
7480         do not pad if padding is ‘-’, and do not use a negative width.
7481         (__strftime_internal): Redo formatting of nanoseconds and numeric
7482         timezones to avoid buffer misuse in unusual cases, and so that
7483         widths make more sense.  Add support for widths greater than 9 to
7484         the %N format; they are zero filled on the right.
7485         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
7487 2019-12-05  Bruno Haible  <bruno@clisp.org>
7489         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
7490         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
7491         set REPLACE_ISFINITE to 1.
7492         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
7493         REPLACE_ISINF to 1.
7494         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
7495         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
7496         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7497         * lib/threads.in.h (call_once): Likewise.
7498         * lib/iconv.in.h (iconv): Likewise.
7500 2019-12-05  Bruno Haible  <bruno@clisp.org>
7502         wchar: Add more C++ tests.
7503         Reported by Christian Biesinger <cbiesinger@google.com> in
7504         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7505         * tests/test-wchar-c++3.cc: New file.
7506         * modules/wchar-c++-tests (Files): Add it.
7507         (Makefile.am): Compile it.
7509 2019-12-05  Bruno Haible  <bruno@clisp.org>
7511         Add more C++ tests.
7513         assert-h: Add C++ tests.
7514         * tests/test-assert-h-c++.cc: New file.
7515         * tests/test-assert-h-c++2.cc: New file.
7516         * modules/assert-h-c++-tests: New file.
7517         * modules/assert-h-tests: New file.
7519         ctype: Add C++ tests.
7520         * tests/test-ctype-c++.cc: New file.
7521         * tests/test-ctype-c++2.cc: New file.
7522         * modules/ctype-c++-tests: New file.
7523         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
7525         errno: Add C++ tests.
7526         * tests/test-errno-c++.cc: New file.
7527         * tests/test-errno-c++2.cc: New file.
7528         * modules/errno-c++-tests: New file.
7529         * modules/errno-tests (Depends-on): Add errno-c++-tests.
7531         float: Add C++ tests.
7532         * tests/test-float-c++.cc: New file.
7533         * tests/test-float-c++2.cc: New file.
7534         * modules/float-c++-tests: New file.
7535         * modules/float-tests (Depends-on): Add float-c++-tests.
7537         inttypes: Add more C++ tests.
7538         * tests/test-inttypes-c++2.cc: New file.
7539         * modules/inttypes-c++-tests (Files): Add it.
7540         (Makefile.am): Compile it.
7542         limits-h: Add C++ tests.
7543         * tests/test-limits-h-c++.cc: New file.
7544         * tests/test-limits-h-c++2.cc: New file.
7545         * modules/limits-h-c++-tests: New file.
7546         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
7548         stdarg: Add C++ tests.
7549         * tests/test-stdarg-c++.cc: New file.
7550         * tests/test-stdarg-c++2.cc: New file.
7551         * modules/stdarg-c++-tests: New file.
7552         * modules/stdarg-tests: New file.
7554         stdbool: Add C++ tests.
7555         * tests/test-stdbool-c++.cc: New file.
7556         * tests/test-stdbool-c++2.cc: New file.
7557         * modules/stdbool-c++-tests: New file.
7558         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
7560         stddef: Add C++ tests.
7561         * tests/test-stddef-c++.cc: New file.
7562         * tests/test-stddef-c++2.cc: New file.
7563         * modules/stddef-c++-tests: New file.
7564         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
7566         stdint: Add C++ tests.
7567         * tests/test-stdint-c++.cc: New file.
7568         * tests/test-stdint-c++2.cc: New file.
7569         * modules/stdint-c++-tests: New file.
7570         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
7572         wchar: Add more C++ tests.
7573         * tests/test-wchar-c++2.cc: New file.
7574         * modules/wchar-c++-tests (Files): Add it.
7575         (Makefile.am): Compile it.
7577         wctype-h: Add more C++ tests.
7578         * tests/test-wctype-h-c++2.cc: New file.
7579         * modules/wctype-h-c++-tests (Files): Add it.
7580         (Makefile.am): Compile it.
7582 2019-12-04  Bruno Haible  <bruno@clisp.org>
7584         Fix compilation errors in C++ mode with xlclang++ on AIX.
7585         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
7586         C++ mode on AIX.
7587         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
7588         without C preprocessor macro.
7589         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
7590         _GL_CXXALIAS_SYS.
7591         * lib/threads.in.h (thrd_exit): Likewise.
7593 2019-12-04  Bruno Haible  <bruno@clisp.org>
7595         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
7596         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
7597         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7599 2019-12-04  Bruno Haible  <bruno@clisp.org>
7601         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
7602         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
7603         _GL_CXXALIASWARN invocation on non-glibc systems.
7604         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7605         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
7606         iswctype, towlower, towupper): Likewise.
7608 2019-12-03  Bruno Haible  <bruno@clisp.org>
7610         Avoid hassles caused by [[noreturn]] in C++.
7611         Reported by Christian Biesinger <cbiesinger@google.com> in
7612         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
7613         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
7614         * lib/_Noreturn.h: Likewise.
7616 2019-12-02  Bruno Haible  <bruno@clisp.org>
7618         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
7619         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
7620         LIBMULTITHREAD.
7621         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
7622         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
7623         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
7624         gl_THREADLIB.
7625         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
7627 2019-12-02  Bruno Haible  <bruno@clisp.org>
7629         Fix some more link errors with --enable-threads=isoc.
7630         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
7631         * modules/pthread-rwlock (Depends-on): Likewise.
7633 2019-12-02  Bruno Haible  <bruno@clisp.org>
7635         Fix link errors with --enable-threads=posix on AIX.
7636         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
7637         program with $(LIBTHREAD).
7638         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
7639         program with $(LIBTHREAD).
7641 2019-12-02  Bruno Haible  <bruno@clisp.org>
7643         Fix link errors with --enable-threads=posix on AIX.
7644         * modules/mbrtowc (Link): New section.
7645         * modules/acl (Link): Likewise.
7646         * modules/argmatch (Link): Likewise.
7647         * modules/backup-rename (Link): Likewise.
7648         * modules/backupfile (Link): Likewise.
7649         * modules/closein (Link): Likewise.
7650         * modules/closeout (Link): Likewise.
7651         * modules/copy-file (Link): Likewise.
7652         * modules/csharpcomp (Link): Likewise.
7653         * modules/csharpexec (Link): Likewise.
7654         * modules/dfa (Link): Likewise.
7655         * modules/exclude (Link): Likewise.
7656         * modules/fnmatch (Link): Likewise.
7657         * modules/fnmatch-gnu (Link): Likewise.
7658         * modules/fnmatch-posix (Link): Likewise.
7659         * modules/glob (Link): Likewise.
7660         * modules/human (Link): Likewise.
7661         * modules/javacomp (Link): Likewise.
7662         * modules/javaexec (Link): Likewise.
7663         * modules/javaversion (Link): Likewise.
7664         * modules/mbfile (Link): Likewise.
7665         * modules/mbiter (Link): Likewise.
7666         * modules/mbmemcasecmp (Link): Likewise.
7667         * modules/mbmemcasecoll (Link): Likewise.
7668         * modules/mbrlen (Link): Likewise.
7669         * modules/mbscasecmp (Link): Likewise.
7670         * modules/mbscasestr (Link): Likewise.
7671         * modules/mbschr (Link): Likewise.
7672         * modules/mbscspn (Link): Likewise.
7673         * modules/mbsinit (Link): Likewise.
7674         * modules/mbslen (Link): Likewise.
7675         * modules/mbsncasecmp (Link): Likewise.
7676         * modules/mbsnlen (Link): Likewise.
7677         * modules/mbsnrtowcs (Link): Likewise.
7678         * modules/mbspbrk (Link): Likewise.
7679         * modules/mbspcasecmp (Link): Likewise.
7680         * modules/mbsrchr (Link): Likewise.
7681         * modules/mbsrtowcs (Link): Likewise.
7682         * modules/mbssep (Link): Likewise.
7683         * modules/mbsspn (Link): Likewise.
7684         * modules/mbsstr (Link): Likewise.
7685         * modules/mbstok_r (Link): Likewise.
7686         * modules/mbswidth (Link): Likewise.
7687         * modules/mbuiter (Link): Likewise.
7688         * modules/mkdir-p (Link): Likewise.
7689         * modules/propername (Link): Likewise.
7690         * modules/quote (Link): Likewise.
7691         * modules/quotearg (Link): Likewise.
7692         * modules/quotearg-simple (Link): Likewise.
7693         * modules/regex-quote (Link): Likewise.
7694         * modules/rpmatch (Link): Likewise.
7695         * modules/sh-quote (Link): Likewise.
7696         * modules/system-quote (Link): Likewise.
7697         * modules/trim (Link): Likewise.
7698         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7699         * modules/unistdio/ulc-fprintf (Link): Likewise.
7700         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7701         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7702         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7703         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7704         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7705         * modules/xfreopen (Link): Likewise.
7706         * modules/xmemcoll (Link): Likewise.
7707         * modules/yesno (Link): Likewise.
7708         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
7709         * modules/argmatch-tests (Makefile.am): Likewise.
7710         * modules/closein-tests (Makefile.am): Likewise.
7711         * modules/copy-file-tests (Makefile.am): Likewise.
7712         * modules/dfa-tests (Makefile.am): Likewise.
7713         * modules/fnmatch-tests (Makefile.am): Likewise.
7714         * modules/glob-tests (Makefile.am): Likewise.
7715         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7716         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7717         * modules/mbrtowc-tests (Makefile.am): Likewise.
7718         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7719         * modules/mbscasestr-tests (Makefile.am): Likewise.
7720         * modules/mbschr-tests (Makefile.am): Likewise.
7721         * modules/mbscspn-tests (Makefile.am): Likewise.
7722         * modules/mbsinit-tests (Makefile.am): Likewise.
7723         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7724         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7725         * modules/mbspbrk-tests (Makefile.am): Likewise.
7726         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7727         * modules/mbsrchr-tests (Makefile.am): Likewise.
7728         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7729         * modules/mbsspn-tests (Makefile.am): Likewise.
7730         * modules/mbsstr-tests (Makefile.am): Likewise.
7731         * modules/quotearg-tests (Makefile.am): Likewise.
7732         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7733         * modules/readtokens-tests (Makefile.am): Likewise.
7734         * modules/regex-quote-tests (Makefile.am): Likewise.
7735         * modules/sh-quote-tests (Makefile.am): Likewise.
7736         * modules/system-quote-tests (Makefile.am): Likewise.
7737         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7738         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7739         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7740         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7741         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7742         * modules/yesno-tests (Makefile.am): Likewise.
7744 2019-12-02  Bruno Haible  <bruno@clisp.org>
7746         Simplify link sections.
7747         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
7748         * modules/lock (Link): Likewise.
7749         * modules/cond (Link): Likewise.
7750         * modules/tls (Link): Likewise.
7751         * modules/yield (Link): Likewise.
7752         * modules/regex (Link): Likewise.
7753         * modules/localename (Link): Likewise.
7754         * modules/unicase/locale-language (Link): Likewise.
7755         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
7757 2019-12-02  Bruno Haible  <bruno@clisp.org>
7759         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
7760         * tests/test-thread_self.c (main): Disable test on AIX.
7762 2019-12-01  Bruno Haible  <bruno@clisp.org>
7764         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
7765         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
7766         gl_THREADLIB_EARLY_BODY.
7767         (gl_THREADLIB_EARLY_BODY): Invoke it.
7768         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
7769         (gl_THREADLIB_BODY): Invoke it.
7770         (gl_PTHREADLIB): New macro.
7771         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
7772         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
7773         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
7774         * modules/pthread-h (Files): Add threadlib.m4.
7775         (Depends-on): Remove threadlib.
7776         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
7777         and _THREAD_SAFE here.
7778         (Link): Use LIBPTHREAD, not LIBTHREAD.
7779         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
7780         LIBMULTITHREAD.
7781         * modules/pthread-once (Link): Likewise.
7782         * modules/pthread-mutex (Link): Likewise.
7783         * modules/pthread-rwlock (Link): Likewise.
7784         * modules/pthread-cond (Link): Likewise.
7785         * modules/pthread-tss (Link): Likewise.
7786         * modules/pthread-spin (Link): Likewise.
7787         * modules/pthread (Link): Likewise.
7788         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
7789         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
7790         * modules/pthread-once-tests (test_pthread_once1_LDADD,
7791         test_pthread_once2_LDADD): Likewise.
7792         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
7793         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
7794         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
7795         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
7797 2019-12-01  Bruno Haible  <bruno@clisp.org>
7799         cond: State linking requirements.
7800         * modules/cond (Link): New section.
7802 2019-12-01  Bruno Haible  <bruno@clisp.org>
7804         threadlib: Remove unnecessary file (left over from 2019-07-06).
7805         * modules/threadlib (Files): Remove config.rpath.
7807 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7809         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7810         Reported by Dagobert Michelsen <dam@opencsw.org> in
7811         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7812         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7813         list of strings instead of one string.
7814         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7815         * pygnulib/GLImport.py (execute): Likewise.
7817 2019-11-27  Bruno Haible  <bruno@clisp.org>
7819         openpty, forkpty: Fix build error on Solaris 11.4.
7820         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7821         also in <termios.h>.
7822         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7823         of the function also in <termios.h>.
7824         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7825         * doc/glibc-functions/forkpty.texi: Likewise.
7827 2019-11-27  Bruno Haible  <bruno@clisp.org>
7829         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7830         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7831         --enable-threads=isoc and --enable-threads=isoc+posix.
7832         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7833         When both the ISO C and the POSIX threads API are available, choose
7834         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7835         --enable-threads=isoc+posix was specified. When only the ISO C threads
7836         API is available and --enable-threads=iso was specified, choose
7837         USE_ISOC_THREADS.
7838         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7839         USE_ISOC_AND_POSIX_THREADS.
7840         * lib/glthread/lock.c: Likewise.
7841         * lib/glthread/cond.h: Likewise.
7842         * lib/glthread/cond.c: Likewise.
7843         * lib/glthread/tls.h: Likewise.
7844         * lib/glthread/tls.c: Likewise.
7845         * lib/glthread/yield.h: Likewise.
7846         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7847         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7848         * lib/glthread/thread.c: Likewise.
7849         * lib/glthread/threadlib.c: Likewise.
7850         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7851         USE_ISOC_AND_POSIX_THREADS.
7852         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7853         USE_ISOC_AND_POSIX_THREADS.
7854         * tests/test-tls.c: Likewise.
7855         * tests/test-thread_create.c (main): Likewise.
7856         * tests/test-pthread-cond.c: Likewise.
7857         * tests/test-pthread-mutex.c: Likewise.
7858         * tests/test-pthread-once2.c: Likewise.
7859         * tests/test-pthread-rwlock.c: Likewise.
7860         * tests/test-pthread-tss.c: Likewise.
7861         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7862         USE_POSIX_THREADS.
7864 2019-11-24  Bruno Haible  <bruno@clisp.org>
7866         mbrtowc: Modernize autoconf test.
7867         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7868         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7869         try a UTF-8 locale.
7870         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7872 2019-11-24  Bruno Haible  <bruno@clisp.org>
7874         Fix errors in C++ mode on mingw.
7875         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7876         instead of _GL_CXXALIAS_SYS.
7877         * lib/signal.in.h (pthread_sigmask): Likewise.
7878         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7879         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7880         Likewise.
7881         * lib/wchar.in.h (btowc): Likewise.
7883 2019-11-24  Bruno Haible  <bruno@clisp.org>
7885         sys_time: Fix errors in C++ mode on mingw.
7886         * lib/sys_time.in.h (timeval): Restore the redirection
7887         '#define timeval rpl_timeval', for when the symbol timeval is being used
7888         outside the 'gnulib' namespace.
7889         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7890         'struct timeval'.
7892 2019-11-24  Bruno Haible  <bruno@clisp.org>
7894         iswctype: Fix errors in C++ mode on mingw.
7895         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7896         is 1.
7897         * lib/iswctype.c (iswctype): Add another implementation, for the
7898         GNULIB_defined_wint_t case.
7899         * modules/iswctype (configure.ac): Compile iswctype.c also if
7900         GNULIB_OVERRIDES_WINT_T is 1.
7902 2019-11-24  Bruno Haible  <bruno@clisp.org>
7904         windows-timedmutex: Fix errors in C++ mode on mingw.
7905         * lib/windows-timedmutex.h: Add closing brace.
7907 2019-11-24  Bruno Haible  <bruno@clisp.org>
7909         Fix errors in C++ mode on Cygwin.
7910         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7911         _GL_CXXALIAS_SYS.
7913 2019-11-24  Bruno Haible  <bruno@clisp.org>
7915         time_r: Fix for mingw (regression from 2019-11-16).
7916         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7917         AC_LINK_IFELSE test only if the function does not appear to exist.
7919 2019-11-24  Bruno Haible  <bruno@clisp.org>
7921         wcstok: Add tests.
7922         * tests/test-wcstok.c: New file.
7923         * modules/wcstok-tests: New file.
7925 2019-11-24  Bruno Haible  <bruno@clisp.org>
7927         wcstok: Work around wrong signature on native Windows.
7928         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7929         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7930         REPLACE_WCSTOK.
7931         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7932         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7933         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7934         * doc/posix-functions/wcstok.texi: Mention the problem.
7936 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7938         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7939         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7940         remove workaround for GCC bug 91450 as the bug should be fixed
7941         there too.
7943 2019-11-21  Bruno Haible  <bruno@clisp.org>
7945         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7946         Reported by Christian Biesinger <cbiesinger@google.com> in
7947         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7948         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7949         non-glibc systems.
7950         * lib/locale.in.h (localeconv, setlocale): Likewise.
7951         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7952         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7953         rint, round, trunc): Likewise.
7954         * lib/monetary.in.h (strfmon_l): Likewise.
7955         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7956         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7957         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7958         pthread_spin_destroy): Likewise.
7959         * lib/signal.in.h (raise, signal): Likewise.
7960         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7961         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7962         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7963         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7964         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7965         Likewise.
7966         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7967         Likewise.
7968         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7969         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7970         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7971         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7972         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7973         wcsftime): Likewise.
7974         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7976 2019-11-21  Bruno Haible  <bruno@clisp.org>
7978         Fix various errors in _GL_CXXALIAS_SYS invocations.
7979         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7980         _GL_CXXALIAS_SYS.
7981         * lib/pthread.in.h (pthread_mutexattr_gettype,
7982         pthread_mutexattr_getrobust): Likewise.
7983         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7984         * lib/sys_socket.in.h (recv, send): Likewise.
7985         * lib/unistd.in.h (getdtablesize): Likewise.
7986         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7987         'struct timeval'.
7989 2019-11-21  Bruno Haible  <bruno@clisp.org>
7991         math tests: Update after 2019-08-28 change.
7992         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7993         return type of 'bool', not 'int'.
7995 2019-11-21  Bruno Haible  <bruno@clisp.org>
7997         pthread-spin: Fix errors in C++ mode.
7998         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7999         functions as nonexistent when <pthread.h> exists but does not define
8000         the pthread_spinlock_t type.
8002 2019-11-21  Bruno Haible  <bruno@clisp.org>
8004         pthread-mutex: Fix errors in C++ mode.
8005         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
8006         pthread_mutexattr_getrobust exists. If not, define
8007         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8008         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
8009         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
8010         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8011         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
8012         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
8013         definition.
8015 2019-11-19  Bruno Haible  <bruno@clisp.org>
8017         threads-h tests: Fix typo.
8018         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
8020 2019-11-19  Bruno Haible  <bruno@clisp.org>
8022         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
8023         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
8024         to 'const pthread_attr_t *'.
8025         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
8026         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
8028 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8030         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
8031         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
8032         work around GCC bug 91450 as the bug should be fixed there.
8034 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8036         glob: get closer to glibc glob.c
8037         Omit differences from glibc when the differences don’t matter.
8038         * lib/glob.c [_LIBC]: Include shlib-compat.h.
8039         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
8040         (glob_lstat): New function.
8041         (glob_in_dir): Use it.
8042         (GLOB_ATTRIBUTE): Define to empty if not already defined.
8043         Use changed.
8045 2019-11-18  Bruno Haible  <bruno@clisp.org>
8047         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
8048         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
8049         UINTPTR_MAX): Consider _WIN64.
8050         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
8051         a pointer.
8053 2019-11-18  Bruno Haible  <bruno@clisp.org>
8055         stdint: Fix value of WINT_MAX when we override wint_t.
8056         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
8057         when GNULIB_OVERRIDES_WINT_T is 1.
8059 2019-11-18  Bruno Haible  <bruno@clisp.org>
8061         vcs-to-changelog: New module.
8062         * modules/vcs-to-changelog: New file.
8063         * MODULES.html.sh (func_all_modules): Add it.
8065 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8067         vcs-to-changelog: New script to generate ChangeLog-like output.
8068         Discussion:
8069         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
8070         * build-aux/vcs_to_changelog.py: New file.
8071         * build-aux/vcstocl/frontend_c.py: New file.
8072         * build-aux/vcstocl/misc_util.py: New file.
8073         * build-aux/vcstocl/vcs_git.py: New file.
8075 2019-11-18  Bruno Haible  <bruno@clisp.org>
8077         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
8078         Reported by Keith Marshall <keith@users.osdn.me> in
8079         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
8080         and <https://osdn.net/projects/mingw/ticket/39677>.
8081         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
8082         already been defined by mingw's <crtdefs.h>.
8084 2019-11-18  Bruno Haible  <bruno@clisp.org>
8086         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
8087         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
8088         conditionally enabled.
8090 2019-11-18  Bruno Haible  <bruno@clisp.org>
8092         gc: Mirror libgcrypt.m4 from libgcrypt.
8093         * config/srclistvars.sh (LIBGCRYPT): New variable.
8094         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
8096 2019-11-17  Bruno Haible  <bruno@clisp.org>
8098         locale, localename: Improve z/OS support.
8099         Reported by Daniel Richard G. in
8100         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
8101         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
8102         gl_LOCALE_H.
8103         (gl_LOCALE_H): Require it.
8104         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
8105         defined, don't even check for newlocale, duplocale, freelocale.
8106         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
8107         locale_t is not defined.
8109 2019-11-17  Bruno Haible  <bruno@clisp.org>
8111         havelib: Make libdirstems processing more flexible.
8112         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
8113         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
8114         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
8115         patch from 2017-02-19).
8116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
8117         libdirs, even when the first one exists as a directory.
8119 2019-11-17  Bruno Haible  <bruno@clisp.org>
8121         havelib: Match the bitness when searching for libraries.
8122         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
8123         acl_is_expected_elfclass.
8124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
8125         file exists, in ELF, also test whether it has the ELF class that
8126         corresponds to the host's bitness.
8128 2019-11-17  Bruno Haible  <bruno@clisp.org>
8130         host-cpu-c-abi: Add support for unknown CPUs.
8131         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
8132         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
8133         32-bit or 64-bit.
8135 2019-11-17  Bruno Haible  <bruno@clisp.org>
8137         havelib: Remove redundant code.
8138         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
8139         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
8141 2019-11-17  Bruno Haible  <bruno@clisp.org>
8143         havelib: Fix a bug in dependency processing.
8144         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
8145         of .la files, don't overwrite the value of additional_libdir for the
8146         next rounds.
8148 2019-11-16  Bruno Haible  <bruno@clisp.org>
8150         wctype-h: When overriding wint_t, override also the related functions.
8151         Reported by Christian Biesinger <cbiesinger@google.com> in
8152         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
8153         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
8154         REPLACE_ISWCNTRL to 1.
8155         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
8156         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
8157         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
8158         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
8159         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
8160         on mingw.
8161         * doc/posix-headers/wctype.texi: Likewise.
8163 2019-11-16  Bruno Haible  <bruno@clisp.org>
8165         time_r: Fix for mingw.
8166         Reported by Christian Biesinger <cbiesinger@google.com> in
8167         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
8168         * lib/time.in.h: On mingw, include <unistd.h>.
8169         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
8170         <time.h>. Test for localtime_r in a way that works when it is defined
8171         as an inline function.
8173 2019-11-13  Bruno Haible  <bruno@clisp.org>
8175         havelib: Revert last change.
8176         * build-aux/config.rpath: Revert last change. We can add msys2 support
8177         when it has been added to libtool.m4 upstream.
8179 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8181         config: add msys support
8182         Requested by Arnold Robbins in:
8183         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
8184         He also requested a change to config.guess, which I’ll forward
8185         upstream.
8186         * build-aux/ar-lib (func_file_conv):
8187         * build-aux/compile (func_file_conv):
8188         * build-aux/config.rpath (wl, with_gnu_ld)
8189         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
8190         Treat msys like cygwin.
8192 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8194         regex: now back in sync with glibc
8195         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
8196         regexec.c got merged into glibc and are now copies again.
8198 2019-10-27  Bruno Haible  <bruno@clisp.org>
8200         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
8201         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
8202         statement.
8203         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
8204         32-bit CPUs.
8206 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8208         timespec-add, timespec-sub: simplify
8209         * lib/timespec-add.c (timespec_add):
8210         * lib/timespec-sub.c (timespec_sub):
8211         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8212         work on unsigned integers.
8214 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8216         nstrftime: speed up integer overflow checking
8217         * lib/nstrftime.c: Include intprops.h.
8218         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
8219         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
8220         instead of doing it by hand.
8221         * modules/nstrftime (Depends-on): Add intprops.
8223         Port better to GCC under macOS
8224         Work around macOS header that has ‘#define __has_builtin(x) 0’
8225         when compiled by GCC.  Apple really, really doesn’t want you to
8226         use GCC, apparently.  Rroblem reported by Akim Demaille in:
8227         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
8228         The fix is to not trust __has_builtin when being compiled by
8229         recent-enough GCC.
8230         * lib/intprops.h (__has_builtin)
8231         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8232         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
8233         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
8234         Remove.  All uses removed.
8235         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
8236         directly, if defined and if not newer GCC.
8237         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
8238         New macro, that use __has_builtin directly, if defined and if
8239         not newer GCC.
8240         (assume): Use them.
8242 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
8244         maintainer-makefile: update rule for argmatch.
8245         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
8247 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
8249         bitset: let freeing functions accept NULL.
8250         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
8251         given NULL.
8252         * lib/bitset.h: Document that.
8253         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
8255 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
8257         inttypes: use more-robust test for int range
8258         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
8259         Problem reported by Dagobert Michelsen in:
8260         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
8261         * lib/inttypes.in.h: Rely only on limits.h when checking
8262         int range.
8264 2019-10-15  Bruno Haible  <bruno@clisp.org>
8266         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
8267         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
8268         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
8269         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
8270         term_ostream_set_hyperlink): New functions.
8271         (term_styled_ostream_get_hyperlink_ref,
8272         term_styled_ostream_get_hyperlink_id,
8273         term_styled_ostream_set_hyperlink): New function aliases.
8275 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8277         update-copyright: use en dashes in .texi ranges
8278         * build-aux/update-copyright: Match year ranges like "1998--2019",
8279         which are used in the Autoconf manual.  Also, update ranges in
8280         .tex, .texi, and .texinfo files to use en dashes instead of
8281         hyphens.
8283 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8285         * config/srclist.txt: Remove posix/regex_internal.c for now.
8287 2019-10-13  Bruno Haible  <bruno@clisp.org>
8289         git-version-gen: Allow 'snapshot' as .tarball-version contents.
8290         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
8291         contents to the empty string.
8293 2019-10-12  Bruno Haible  <bruno@clisp.org>
8295         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
8296         * tests/test-intprops.c (main): Disable two more tests when using
8297         HP-UX cc.
8299 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8301         Simplify and regularize regex use of ‘assert’
8302         Also, tell GCC about the asserts even when compiling without
8303         debugging, to give it further optimization opportunities.
8304         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
8305         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
8306         (parse_expression, parse_bracket_exp):
8307         * lib/regex_internal.c (build_wcs_buffer)
8308         (build_wcs_upper_buffer, re_string_reconstruct)
8309         (re_string_context_at):
8310         * lib/regexec.c (re_search_stub, re_copy_regs)
8311         (re_search_internal, prune_impossible_nodes, check_matching)
8312         (check_halt_state_context, set_regs, sift_states_backward)
8313         (build_sifted_states, transit_state_mb, transit_state_bkref)
8314         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
8315         (match_ctx_add_subtop):
8316         Use it instead of plain ‘assert’.
8318 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8320         regex: omit debug assignment when not debugging
8321         * lib/regexec.c (re_search_internal) [!DEBUG]:
8322         Remove unnecessary assignment.
8324         regex: tell compiler there’s at most 256 arcs out
8325         Partly this is to help the reader (and maybe help GCC);
8326         partly this is to pacify Coverity.
8327         * lib/regex_internal.h: Include verify.h.
8328         * lib/regexec.c (group_nodes_into_DFAstates):
8329         Tell the compiler that ndests cannot exceed SBC_MAX.
8330         * modules/regex (Depends-on): Add ‘verify’.
8332         regex: simplify by assuming C99
8333         * config/srclist.txt: Comment out regex_internal.h and regexec.c
8334         temporarily.
8335         * lib/regex_internal.h (lock_define, re_match_context_t):
8336         Simplify by assuming C99 macros and const.
8337         * lib/regexec.c (re_search_internal): Simplify by assuming C99
8338         initializers.  Remove unnecessary assignment, as mctx is now
8339         safely initialized earlier.
8341         regex: avoid copying of uninitialized storage
8342         * config/srclist.txt: Comment out regcomp.c temporarily.
8343         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
8344         Initialize even when not checking for lint, as the behavior is
8345         arguably undefined otherwise and Coverity warns about it.
8347 2019-10-06  Bruno Haible  <bruno@clisp.org>
8349         access tests: Fix test failure when run as root.
8350         * tests/test-access.c: Include root-uid.h.
8351         (geteuid): Define fallback.
8352         (main): Don't expect that writing to a read-only file would fail when
8353         running as root. Also, remove the created files at the end.
8354         * modules/access-tests (Depends-on): Add root-uid.
8355         (configure.ac): Test whether geteuid exists.
8357 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8359         users.txt: add GNU nano
8360         Nano has been making use of gnulib since March 2017, version 2.8.0.
8362 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8364         bootstrap: simplify debugging of wget failures
8365         Problem reported by Tim Rühsen in:
8366         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
8367         * build-aux/bootstrap (po_download_command_format):
8368         Invoke wget with -nv instead of -q, to make debugging easier.
8370 2019-09-29  Bruno Haible  <bruno@clisp.org>
8372         avltree-list: Fix compilation warning (introduced on 2014-09-16).
8373         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
8374         'const' attribute.
8376 2019-09-29  Bruno Haible  <bruno@clisp.org>
8378         fbufmode: Fix compilation error on glibc >= 2.28 systems.
8379         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
8381 2019-09-28  Bruno Haible  <bruno@clisp.org>
8383         Update comments that refer to POSIX.
8384         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
8385         sentence about trailing slashes.
8386         * lib/fflush.c: Clarify the reasoning.
8387         * tests/test-fflush2.c: Cite the relevant sentence.
8389 2019-09-28  Bruno Haible  <bruno@clisp.org>
8391         access: Document limitations on Windows.
8392         Suggested by Zaretskii <eliz@gnu.org>.
8393         * doc/posix-functions/access.texi: Mention two limitations on Windows.
8395 2019-09-28  Bruno Haible  <bruno@clisp.org>
8397         findprog-in: Fix comment.
8398         Reported by Eli Zaretskii <eliz@gnu.org>.
8399         * lib/findprog.h (find_in_given_path): Extend description of EACCES
8400         condition.
8401         * lib/stat.c (rpl_stat): Fix typo in comment.
8402         * lib/utime.c (_gl_utimens_windows): Likewise.
8404 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8406         Update URLs and associated text
8407         (Thanks to Bruno Haible for proofreading this patch.)
8408         Prefer https: to http: in URLs where either will do, for the usual
8409         security reasons.  I also updated broken and/or moved URLs
8410         discovered during the process. In a few places I had to resort to
8411         archive.org, since I didn't find the originals elsewhere.
8413 2019-09-15  Paul Smith  <psmith@gnu.org>
8414             Bruno Haible  <bruno@clisp.org>
8416         findprog-in: Set errno when the search fails.
8417         * lib/findprog-in.c: Include <errno.h>.
8418         (find_in_given_path): Set errno before returning NULL.
8419         * lib/findprog.h (find_in_given_path): Update comment accordingly.
8420         Define the term "slash".
8422 2019-09-15  Bruno Haible  <bruno@clisp.org>
8424         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
8425         * modules/findprog (Depends-on): Add access.
8426         * modules/findprog-lgpl (Depends-on): Likewise.
8427         * modules/findprog-in (Depends-on): Likewise.
8429 2019-09-15  Bruno Haible  <bruno@clisp.org>
8431         access: Add tests.
8432         * tests/test-access.c: New file.
8433         * modules/access-tests: New file.
8435         access: New module.
8436         * lib/unistd.in.h (access): New declaration.
8437         * lib/access.c: New file.
8438         * m4/access.m4: New file.
8439         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
8440         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
8441         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
8442         REPLACE_ACCESS.
8443         * modules/access: New file.
8444         * tests/test-unistd-c++.cc (access): Check signature.
8445         * doc/posix-functions/access.texi: Mention the new module.
8447 2019-09-15  Bruno Haible  <bruno@clisp.org>
8449         fcntl-h: Fix compilation error of creat.c on MSVC.
8450         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
8451         defined.
8453 2019-09-15  Bruno Haible  <bruno@clisp.org>
8455         creat: Add tests.
8456         * tests/test-creat.c: New file, based on tests/test-open.h.
8457         * modules/creat-tests: New file.
8459         creat: New module.
8460         * lib/fcntl.in.h (creat): New declaration.
8461         * lib/creat.c: New file, based on lib/open.c.
8462         * m4/creat.m4: New file.
8463         * m4/open-slash.m4: New file, extracted from m4/open.m4.
8464         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
8465         Invoke gl_OPEN_TRAILING_SLASH_BUG.
8466         * modules/open (Files): Add m4/open-slash.m4.
8467         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
8468         REPLACE_CREAT.
8469         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
8470         * modules/creat: New file.
8471         * tests/test-fcntl-h-c++.cc (creat): Check signature.
8472         * doc/posix-functions/creat.texi: Mention the new module.
8474 2019-09-15  Bruno Haible  <bruno@clisp.org>
8476         open tests: Enhance test.
8477         * tests/test-open.h (test_open): Test the creation of an executable
8478         regular file. Also improve initial cleanup.
8480 2019-09-15  Bruno Haible  <bruno@clisp.org>
8482         intprops tests: Avoid build failure with HP-UX cc.
8483         * tests/test-intprops.c: Disable a check that makes HP cc choke with
8484         "error 4018: Macro param too large after substitution - use -H option.".
8486 2019-09-14  Bruno Haible  <bruno@clisp.org>
8488         Make autoconf tests work with -Werror=implicit-function-declaration.
8489         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
8490         towupper() declaration.
8491         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
8492         declaration.
8494 2019-09-14  Bruno Haible  <bruno@clisp.org>
8496         findprog-in: Better mimic the system on native Windows.
8497         Reported by Paul Smith <psmith@gnu.org>.
8498         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
8499         non-empty suffixes when the file name already contains a '.'.
8501 2019-09-10  Bruno Haible  <bruno@clisp.org>
8503         wctob: Fix autoconf test.
8504         Based on patch by Florian Weimer <fweimer@redhat.com>.
8505         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
8507 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
8509         xhash: provide hash_xinitialize.
8510         Suggested by Egor Pugin <egor.pugin@gmail.com>
8511         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
8512         * modules/xhash, lib/xhash.c: New.
8513         * lib/hash.h (hash_xinitialize): New.
8515 2019-09-09  Bruno Haible  <bruno@clisp.org>
8517         findprog-in: Make exec optimization optional.
8518         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
8519         (find_in_given_path): Add optimize_for_exec parameter.
8520         * lib/findprog-in.c (find_in_given_path): Likewise.
8522 2019-09-08  Bruno Haible  <bruno@clisp.org>
8524         Add option to assume the best, not the worst, when cross-compiling.
8525         Suggested by Jonas Termansen <sortie@maxsi.org>.
8526         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
8527         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
8528         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
8529         lt_cv_sys_argz_works.
8530         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
8531         ac_cv_func_calloc_0_nonnull.
8532         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
8533         --enable-cross-guesses for gl_cv_func_realpath_works.
8534         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
8535         gl_cv_func_cbrtl_ieee.
8536         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
8537         gl_cv_func_ceil_ieee.
8538         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
8539         gl_cv_func_ceilf_ieee.
8540         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
8541         gl_cv_func_ceill_ieee.
8542         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
8543         ac_cv_func_chown_works.
8544         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
8545         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
8546         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
8547         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
8548         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
8549         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
8550         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
8551         gl_cv_func_expl_works.
8552         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
8553         gl_cv_func_expm1_ieee.
8554         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
8555         gl_cv_func_expm1l_works.
8556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
8557         gl_cv_func_open_directory_works.
8558         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
8559         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
8560         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
8561         gl_cv_func_fchownat_empty_filename_works.
8562         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
8563         gl_cv_func_fdopendir_works.
8564         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
8565         gl_cv_func_floor_ieee.
8566         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
8567         gl_cv_func_floorf_ieee.
8568         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
8569         gl_cv_func_fma_works.
8570         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
8571         gl_cv_func_fmaf_works.
8572         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
8573         gl_cv_func_fmal_works.
8574         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
8575         gl_cv_func_fmod_ieee.
8576         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
8577         gl_cv_func_fmodf_ieee.
8578         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
8579         gl_cv_func_fmodl_ieee.
8580         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
8581         gl_cv_func_fpurge_works.
8582         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
8583         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
8584         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
8585         gl_cv_func_getcwd_null.
8586         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
8587         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
8588         gl_cv_func_working_getdelim.
8589         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8590         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
8591         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8592         gl_cv_func_getgroups_works.
8593         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
8594         am_cv_func_working_getline.
8595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
8596         for gl_cv_func_getopt_gnu.
8597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
8598         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
8599         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
8600         gl_cv_func_hypot_ieee.
8601         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
8602         gl_cv_func_hypotf_ieee.
8603         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
8604         gl_cv_func_hypotl_ieee.
8605         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
8606         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
8607         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
8608         gl_cv_func_link_works.
8609         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
8610         gl_cv_func_linkat_slash.
8611         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
8612         gl_cv_func_log_ieee.
8613         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
8614         gl_cv_func_logf_ieee.
8615         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
8616         gl_cv_func_logl_works.
8617         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
8618         gl_cv_func_log10_ieee.
8619         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
8620         gl_cv_func_log10f_ieee.
8621         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
8622         gl_cv_func_log10l_works.
8623         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
8624         gl_cv_func_log1p_ieee.
8625         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
8626         gl_cv_func_log1pf_ieee.
8627         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
8628         gl_cv_func_log1pl_ieee.
8629         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
8630         gl_cv_func_log2_ieee.
8631         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
8632         gl_cv_func_log2f_ieee.
8633         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
8634         --enable-cross-guesses for
8635         gl_cv_func_lstat_dereferences_slashed_symlink.
8636         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
8637         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8638         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
8639         gl_cv_C_locale_sans_EILSEQ.
8640         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
8641         gl_cv_func_memchr_works.
8642         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
8643         gl_cv_func_memmem_works_always.
8644         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
8645         gl_cv_func_memmem_works_fast.
8646         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
8647         gl_cv_func_mkdir_trailing_slash_works,
8648         gl_cv_func_mkdir_trailing_dot_works.
8649         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
8650         gl_cv_func_mkfifo_works.
8651         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
8652         gl_cv_func_mknod_works.
8653         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
8654         gl_cv_func_working_mkstemp.
8655         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
8656         gl_cv_func_working_mktime.
8657         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
8658         gl_cv_func_modf_ieee.
8659         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
8660         gl_cv_func_modff_ieee.
8661         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
8662         gl_cv_func_modfl_ieee.
8663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
8664         gl_cv_func_nanosleep.
8665         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
8666         gl_cv_func_perror_works.
8667         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8668         gl_cv_func_printf_sizes_c99.
8669         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8670         gl_cv_func_printf_infinite.
8671         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8672         gl_cv_func_printf_infinite_long_double.
8673         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8674         gl_cv_func_printf_directive_a.
8675         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8676         gl_cv_func_printf_directive_f.
8677         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8678         gl_cv_func_printf_flag_zero.
8679         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8680         gl_cv_func_printf_enomem.
8681         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8682         gl_cv_func_snprintf_truncation_c99.
8683         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8684         gl_cv_func_snprintf_retval_c99.
8685         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8686         gl_cv_func_snprintf_directive_n.
8687         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8688         gl_cv_func_vsnprintf_zerosize_c99.
8689         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8690         gl_cv_func_pselect_detects_ebadf.
8691         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8692         Obey --enable-cross-guesses for
8693         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8694         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8695         gl_cv_func_ptsname_sets_errno.
8696         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8697         gl_cv_func_svid_putenv.
8698         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8699         gl_cv_func_readlink_works.
8700         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8701         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8702         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8703         gl_cv_func_re_compile_pattern_working.
8704         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8705         gl_cv_func_remainder_ieee.
8706         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8707         gl_cv_func_remainderf_ieee.
8708         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
8709         gl_cv_func_remainderl_ieee.
8710         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
8711         gl_cv_func_rintl_works.
8712         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
8713         gl_cv_func_rmdir_works.
8714         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
8715         gl_cv_func_round_ieee.
8716         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
8717         gl_cv_func_roundf_ieee.
8718         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
8719         gl_cv_func_roundl_ieee.
8720         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
8721         gl_cv_func_select_detects_ebadf.
8722         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
8723         gl_cv_func_setenv_works.
8724         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
8725         gl_cv_func_unsetenv_works.
8726         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
8727         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
8728         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
8729         gl_cv_func_sleep_works.
8730         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
8731         gl_cv_func_stat_file_slash.
8732         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
8733         gl_cv_func_stpncpy.
8734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
8735         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
8736         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
8737         gl_cv_func_strcasestr_linear.
8738         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
8739         gl_cv_func_working_strerror.
8740         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
8741         gl_cv_func_strerror_0_works.
8742         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
8743         --enable-cross-guesses for gl_cv_func_strerror_r_works.
8744         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
8745         gl_cv_func_strstr_works_always.
8746         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
8747         gl_cv_func_strstr_linear.
8748         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
8749         gl_cv_func_strtod_works.
8750         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
8751         gl_cv_func_strtold_works.
8752         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
8753         gl_cv_func_symlink_works.
8754         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
8755         gl_cv_func_symlinkat_works.
8756         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
8757         gl_cv_func_trunc_ieee.
8758         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
8759         gl_cv_func_truncf_ieee.
8760         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
8761         gl_cv_func_truncl_ieee.
8762         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
8763         gl_cv_func_tzset_clobber.
8764         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
8765         gl_cv_func_ungetc_works.
8766         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
8767         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
8768         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
8769         gl_cv_func_usleep_works.
8770         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
8771         gl_cv_func_futimesat_works.
8772         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
8773         gl_cv_func_working_utimes.
8774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
8775         gl_cv_func_wcwidth_works.
8776         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
8777         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
8778         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
8779         links for testing. Obey --enable-cross-guesses for
8780         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
8781         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
8783 2019-09-08  Bruno Haible  <bruno@clisp.org>
8785         Clarify that cross-compilation guesses are guesses.
8786         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
8787         cross-compiling.
8789 2019-09-08  Bruno Haible  <bruno@clisp.org>
8791         chown: Fix configure output (regression from 2019-03-23).
8792         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
8793         gl_cv_func_chown_follows_symlink variable.
8795 2019-09-08  Bruno Haible  <bruno@clisp.org>
8797         findprog-in: New module.
8798         Suggested by Paul Smith <psmith@gnu.org>.
8799         * lib/findprog.h (find_in_given_path): New declaration.
8800         * lib/findprog-in.c: New file, based on lib/findprog.c.
8801         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
8802         * modules/findprog-in: New file.
8804 2019-09-08  Bruno Haible  <bruno@clisp.org>
8806         findprog: Remove unused dependency.
8807         * modules/findprog (Depends-on): Remove strdup.
8809 2019-09-08  Bruno Haible  <bruno@clisp.org>
8811         findprog: Remove test that is obsolete since 2006-04-24.
8812         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8814 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8816         bitset: style changes
8817         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8818         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8819         xzalloc to xcalloc.
8820         Suggested by Paul Eggert.
8822 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8824         bitset: check memory allocation
8825         Reported by 江 祖铭 (Zu-Ming Jiang).
8826         With help from Paul Eggert.
8827         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8828         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8829         instead of realloc.
8830         When shrinking, accept failures.
8831         * lib/bitset/vector.c (vbitset_resize): Likewise.
8833 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8835         scratch_buffer: sync from glibc
8836         * config/srclist.txt: Add the scratch_buffer source
8837         code from glibc, since these should be in sync.
8838         Autoupdate.
8840 2019-09-07  Bruno Haible  <bruno@clisp.org>
8842         doc: Update for glibc 2.30.
8843         * doc/glibc-functions/gettid.texi: New file.
8844         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8845         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8846         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8847         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8848         * doc/glibc-functions/sem_clockwait.texi: New file.
8849         * doc/glibc-functions/tgkill.texi: New file.
8850         * doc/glibc-functions/twalk_r.texi: New file.
8851         * doc/gnulib.texi: Include them.
8852         (Glibc semaphore.h): New section.
8853         * doc/pastposix-functions/h_errno.texi: Update.
8854         * doc/posix-functions/*.texi: Likewise.
8856 2019-09-06  Bruno Haible  <bruno@clisp.org>
8858         symlink tests: Avoid test failure on Linux with Lustre file system.
8859         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8860         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8861         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8863 2019-09-01  Bruno Haible  <bruno@clisp.org>
8865         gitsub.sh: Add support for shallow-cloning of subdirectories.
8866         * top/gitsub.sh (func_usage): Document allowed git options with
8867         'git pull'.
8868         (func_pull): Accept GIT_OPTIONS argument.
8869         (pull): Parse git options before complaining about too many arguments.
8870         Pass the git options to func_pull.
8872 2019-08-29  Bruno Haible  <bruno@clisp.org>
8874         lock: Fix cross-compilation guesses.
8875         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8876         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8877         platforms.
8879 2019-08-28  Bruno Haible  <bruno@clisp.org>
8881         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8882         Reported by Martin Storsjö <martin@martin.st> in
8883         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8884         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8885         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8886         files from GCC 6 or newer, use an override through '#define', because
8887         the inline definitions in the platform's <cmath> cannot be overridden
8888         in another way.
8890 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8892         Revert macOS INT_MULTIPLY_WRAPV patch
8893         Problem reported by Bruno Haible in:
8894         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8895         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8896         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8897         Go back to working around the Clang bug on macOS.
8899 2019-08-27  Bruno Haible  <bruno@clisp.org>
8901         libtool-next-version: Fix error output.
8902         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8903         name.
8905 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8907         Speed up INT_MULTIPLY_WRAPV on macOS
8908         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8909         Mattias Engdegård says it’s safe to assume the relevant library
8910         is always available there.
8911         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8912         New temporary internal macro.
8913         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8914         No need to work around the Clang bug on macOS.
8916 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8918         intprops.h, verify.h: port better to clang
8919         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8920         with Clang.  Problem reported privately by Mattias Engdegård.
8921         Also, insulate intprops.h and verify.h better against each other’s
8922         definitions of __has_builtin on non-Clang hosts.
8923         * lib/intprops.h (__has_builtin): Define a temporary substitute
8924         if __has_builtin is not already defined.
8925         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8926         New temporary internal macros.
8927         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8928         Now two separate macros, replacing the old
8929         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8930         __builtin_mul_overflow is like the rest.  All uses changed.
8931         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8932         Adjust to above changes.
8933         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8934         longer relevant.  All uses changed.
8935         * lib/verify.h (__has_builtin): Treat like intprops.h,
8936         so that the two .h files do not collide with each other.
8937         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8938         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8940 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8942         intprops: say why not Clang __builtin_add_overflow
8943         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8944         Mention Clang in comment, responding to a query from
8945         Mattias Engdegård.
8947 2019-08-24  Bruno Haible  <bruno@clisp.org>
8949         doc: Document most of the files outside of modules.
8950         * doc/gnulib.texi (Build Infrastructure Files,
8951         Release Management Files): New chapters.
8953 2019-08-24  Bruno Haible  <bruno@clisp.org>
8955         bootstrap: Keep in sync with the 'gettext' module.
8956         Reported by Assaf Gordon in
8957         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8958         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8959         * build-aux/po/remove-potcdate.sin: Likewise.
8961 2019-08-24  Bruno Haible  <bruno@clisp.org>
8963         crypto/gc-sha512: Add tests.
8964         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8965         * modules/crypto/gc-sha512-tests: New file.
8967         crypto/gc-sha256: Add tests.
8968         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8969         * modules/crypto/gc-sha256-tests: New file.
8971         crypto/gc-sha256, crypto/gc-sha512: New modules.
8972         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8973         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8974         (MAX_DIGEST_SIZE): Set to 64.
8975         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8976         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8977         (gc_sha256, gc_sha512): New functions.
8978         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8979         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8980         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8982 2019-08-24  Bruno Haible  <bruno@clisp.org>
8984         crypto/gc-sha1 tests: Improve output when the test fails.
8985         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8986         output.
8988 2019-08-24  Bruno Haible  <bruno@clisp.org>
8990         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8991         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8992         LIBGCRYPT_HAS_MD_SM3.
8993         * lib/gc-libgcrypt.c: Include sm3.h.
8994         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8995         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8996         implementation if libgcrypt does not support SM3.
8998 2019-08-24  Bruno Haible  <bruno@clisp.org>
9000         crypto/gc-md2: Optimize and clarify code.
9001         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
9002         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
9003         is not needed.
9005 2019-08-24  Bruno Haible  <bruno@clisp.org>
9007         crypto/gc-md2: Add comment.
9008         * lib/gc-libgcrypt.c: Add comment.
9010 2019-08-24  Bruno Haible  <bruno@clisp.org>
9012         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
9013         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
9014         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
9015         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
9016         variable.
9018 2019-08-24  Bruno Haible  <bruno@clisp.org>
9020         crypto/gc: Fix link error with --with-libgcrypt.
9021         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
9022         AC_LIB_HAVE_LINKFLAGS invocation.
9024 2019-08-24  Bruno Haible  <bruno@clisp.org>
9026         crypto/gc: Access the module indicators correctly.
9027         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
9028         * lib/gc-libgcrypt.c: Likewise.
9030 2019-08-24  Bruno Haible  <bruno@clisp.org>
9032         crypto/gc: Fix configuration with --with-libgcrypt.
9033         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
9034         * modules/crypto/gc (Files): Add it.
9035         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
9037 2019-08-24  Bruno Haible  <bruno@clisp.org>
9039         Remove unused file.
9040         * m4/stat-macros.m4: Remove file.
9042 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9044         New strip-trailing-space option for srclist-update
9045         * config/srclist-update (fixfile): Support new option.
9046         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
9047         Use it.
9049 2019-08-20  Eric Blake  <eblake@redhat.com>
9051         accept4: Support SOCK_NONBLOCK, if defined
9052         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
9054         accept4: Fix compilation when native accept4() exists.
9055         Reported by Richard W.M. Jones <rjones@redhat.com> in
9056         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
9057         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
9059 2019-08-18  Bruno Haible  <bruno@clisp.org>
9061         Defeat -flto GCC optimization in math autoconf tests.
9062         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
9063         at <https://savannah.gnu.org/bugs/?56109>.
9064         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
9065         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
9066         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9067         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9068         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9069         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
9070         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9071         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
9072         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
9073         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9074         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9075         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9077 2019-08-17  Bruno Haible  <bruno@clisp.org>
9079         windows-spin: Implement declared functions.
9080         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
9081         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
9082         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
9083         name.
9085 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9087         intprops: port to Oracle Developer Studio 12.6
9088         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
9089         typos that were in a section not compiled by GCC.
9091 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9093         intprops: support uchar, ushort _WRAPV dests
9094         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
9095         when __builtin_add_overflow etc. and _Generic are not used.
9096         (_GL_INT_OP_WRAPV): Use it to support destinations that
9097         are unsigned char or unsigned short, even in compilers
9098         that lack __typeof__ and are not C11-compatible.
9100         intprops: pacify picky GCC
9101         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
9102         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
9103         possibly-incorrect result.
9104         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
9105         about (A) used as a boolean, when A is an expression like 3 * 4.
9107         intprops: support unsigned *_WRAPV results
9108         Add support for unsigned, unsigned long, and unsigned long long
9109         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
9110         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
9111         bug with unsigned inputs reported by Eli Zaretskii in:
9112         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
9113         * config/srclist.txt: Break the glibc connection for intprops.h
9114         temporarily, while more testing is done in Gnulib-using apps.
9115         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9116         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
9117         Support unsigned results no narrower than unsigned int.  Report
9118         overflow correctly if some arguments are unsigned.
9119         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
9120         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
9121         the right thing with narrow args.
9122         (_GL_INT_OP_CALC1): Remove.  All callers removed.
9123         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
9124         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
9125         * tests/test-intprops.c: Check for bugs and test new behavior.
9127 2019-08-14  Bruno Haible  <bruno@clisp.org>
9129         get_progname_of: New module.
9130         * lib/get_progname_of.h: New file.
9131         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
9132         * lib/getprogname.c (getprogname): Tweak coding style.
9133         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
9134         * modules/get_progname_of: New file.
9136 2019-08-14  Bruno Haible  <bruno@clisp.org>
9138         get_ppid_of: New module.
9139         * lib/get_ppid_of.h: New file.
9140         * lib/get_ppid_of.c: New file.
9141         * modules/get_ppid_of: New file.
9143 2019-08-13  Bruno Haible  <bruno@clisp.org>
9145         libtextstyle-optional tests: Support the NO_COLOR environment variable.
9146         * tests/test-libtextstyle.c (main): Do not emit styling when the
9147         environment variable NO_COLOR is set.
9149 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9151         verify: improve diagnostic quality in recent GCC
9152         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
9153         useful line number containing the top-level caller of the macro.
9154         So, bring back the older way of issuing a diagnostic containing
9155         the top-level call’s arg, so that it is easier to diagnose
9156         ‘verify’ failures with recent GCC.
9157         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
9158         Bring back DIAGNOSTIC arg.  All callers changed.
9159         (verify): Just use _GL_VERIFY.
9161 2019-08-11  Bruno Haible  <bruno@clisp.org>
9163         localcharset: Add more aliases for OS/2.
9164         Based on patch by KO Myung-Hun <komh78@gmail.com> in
9165         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
9166         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
9168 2019-08-10  Eric Blake  <eblake@redhat.com>
9170         configmake: Update advice on usage.
9171         * modules/configmake (Include): No longer necessary to include
9172         last, since configmake.h itself worries about collision avoidance.
9174 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
9176         parse-datetime: fix 'T' military timezone handling
9177         * lib/parse-datetime.y (zone):
9178         follow-up to the previous commit: the 'T' case is handled outside the
9179         conversion table (used as either military timezone UTC-7 or ISO8601
9180         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
9181         timezone letters.
9183 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9185         parse-datetime: fix military timezone letters
9186         Problem and trivial fix reported by Neil Hoggarth in:
9187         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
9188         * lib/parse-datetime.y (military_table):
9189         Do it the right way, not the RFC 822 way.
9191 2019-08-08  Eric Blake  <eblake@redhat.com>
9193         configmake: Avoid namespace pollution issue on mingw.
9194         * modules/configmake (Makefile.am): If the project uses
9195         <winsock2.h>, include that header before defining DATADIR.
9197 2019-07-28  Bruno Haible  <bruno@clisp.org>
9199         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
9200         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9202 2019-07-24  Bruno Haible  <bruno@clisp.org>
9204         pthread-h: Fix definitions of types and macros on mingw.
9205         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
9206         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
9207         not in use.
9208         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
9209         'pthread-once' is not in use.
9210         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
9211         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
9212         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
9213         in use.
9214         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
9215         Define also when module 'pthread-rwlock' is not in use.
9216         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
9217         also when module 'pthread-cond' is not in use.
9218         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
9219         'pthread-tss' is not in use.
9220         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
9221         use.
9223 2019-07-24  Simon Josefsson  <simon@josefsson.org>
9225         crypto/gc: Cope with libgcrypt without SM3.
9226         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
9228 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9230         backupfile: fix resource leak on memory failure
9231         Problem found by Coverity (CID 1484214).
9232         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
9234 2019-07-22  Bruno Haible  <bruno@clisp.org>
9236         Avoid missing-declarations warning in various tests.
9237         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
9238         test6, test_optional, test7, test8, test9, test10, test11, test12,
9239         test13, test14, test15, test_fun): Declare static.
9240         * tests/test-cnd.c (test_cnd_wait): Likewise.
9241         * tests/test-cond.c (test_cond): Likewise.
9243 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
9245         pthread tests: Avoid missing-declarations warning.
9246         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
9248 2019-07-19  Bruno Haible  <bruno@clisp.org>
9250         parse-datetime: Avoid warnings from bison versions >= 3.3.
9251         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
9252         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
9254 2019-07-19  Bruno Haible  <bruno@clisp.org>
9256         parse-datetime: Require Bison 2.4 or newer.
9257         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
9258         Code taken from gettext's intl.m4.
9259         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
9260         of YACC.
9262 2019-07-19  Bruno Haible  <bruno@clisp.org>
9264         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
9265         * lib/areadlink-with-size.c: Include <string.h>.
9266         * lib/areadlinkat-with-size.c: Likewise.
9267         * lib/xgethostname.c: Likewise.
9268         * lib/xgetdomainname.c: Likewise.
9270 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
9272         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
9273         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
9274         "%pure-parser".  The former is available since Bison 2.3b (2008),
9275         while the latter is marked as obsolete since version 3.4 (May 2019).
9277 2019-07-16  Bruno Haible  <bruno@clisp.org>
9279         update-copyright: Make it work again (regression from 2019-06-15).
9280         Reported by Brian C. Lane <bcl@redhat.com>.
9281         * build-aux/update-copyright: Add back the -0777, -p, -i options.
9283 2019-07-14  Bruno Haible  <bruno@clisp.org>
9285         doc: Update info about <pthread.h>.
9286         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
9287         of 'pthread'.
9289 2019-07-14  Bruno Haible  <bruno@clisp.org>
9291         pthread_sigmask tests: Use new multithread modules.
9292         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
9293         glthread/thread.h.
9294         (main_thread, killer_thread): Change type to pthread_t.
9295         (main): Update accordingly.
9296         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
9297         thread.
9299 2019-07-14  Bruno Haible  <bruno@clisp.org>
9301         pthread-tss: Add tests.
9302         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
9303         tests/test-tss.c.
9304         * modules/pthread-tss-tests: New file.
9306 2019-07-14  Bruno Haible  <bruno@clisp.org>
9308         pthread-cond: Add tests.
9309         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
9310         tests/test-cnd.c.
9311         * modules/pthread-cond-tests: New file.
9313 2019-07-14  Bruno Haible  <bruno@clisp.org>
9315         pthread-rwlock: Add tests.
9316         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
9317         * modules/pthread-rwlock-tests: New file.
9319 2019-07-14  Bruno Haible  <bruno@clisp.org>
9321         pthread-mutex: Add tests.
9322         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
9323         tests/test-mtx.c.
9324         * modules/pthread-mutex-tests: New file.
9326 2019-07-14  Bruno Haible  <bruno@clisp.org>
9328         pthread-once: Add tests.
9329         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
9330         tests/test-call_once.c.
9331         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
9332         tests/test-mtx.c.
9333         * modules/pthread-once-tests: New file.
9335 2019-07-14  Bruno Haible  <bruno@clisp.org>
9337         pthread-thread: Add tests.
9338         * tests/test-pthread-thread.c: New file, based on
9339         tests/test-thread_create.c and tests/test-thrd_create.c.
9340         * modules/pthread-thread-tests: New file.
9342 2019-07-14  Bruno Haible  <bruno@clisp.org>
9344         pthread: Turn into a convenience module.
9345         * lib/pthread.in.h: Remove declarations for extern inline functions.
9346         * lib/pthread.c: Remove file.
9347         * modules/pthread (Files): Remove it.
9348         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
9349         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
9350         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
9351         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
9352         GNULIB_PTHREAD.
9353         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
9355 2019-07-14  Bruno Haible  <bruno@clisp.org>
9357         pthread-spin: New module.
9358         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
9359         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
9360         inline definitions.
9361         * lib/pthread-spin.c: New file.
9362         * m4/pthread-spin.m4: New file.
9363         * modules/pthread-spin: New file.
9364         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
9365         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
9366         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
9367         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
9368         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
9370 2019-07-14  Bruno Haible  <bruno@clisp.org>
9372         pthread-tss: New module.
9373         * lib/pthread-tss.c: New file.
9374         * m4/pthread-tss.m4: New file.
9375         * modules/pthread-tss: New file.
9376         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
9377         * doc/posix-functions/pthread_setspecific.texi: Likewise.
9378         * doc/posix-functions/pthread_getspecific.texi: Likewise.
9379         * doc/posix-functions/pthread_key_delete.texi: Likewise.
9381 2019-07-14  Bruno Haible  <bruno@clisp.org>
9383         pthread-cond: New module.
9384         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
9385         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
9386         * lib/pthread-cond.c: New file.
9387         * m4/pthread-cond.m4: New file.
9388         * modules/pthread-cond: New file.
9389         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
9390         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
9391         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
9392         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
9393         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
9394         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
9395         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
9396         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
9398 2019-07-14  Bruno Haible  <bruno@clisp.org>
9400         pthread-rwlock: New module.
9401         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
9402         * m4/pthread-rwlock.m4: New file.
9403         * modules/pthread-rwlock: New file.
9404         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
9405         and the Android problem.
9406         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
9407         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
9408         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
9409         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
9410         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
9411         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
9412         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
9413         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
9414         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
9415         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
9417 2019-07-14  Bruno Haible  <bruno@clisp.org>
9419         pthread-mutex: New module.
9420         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
9421         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
9422         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
9423         pthread_mutex_unlock): Remove inline definitions.
9424         * lib/pthread-mutex.c: New file.
9425         * m4/pthread-mutex.m4: New file.
9426         * modules/pthread-mutex: New file.
9427         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
9428         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
9429         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
9430         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
9431         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9432         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9433         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
9434         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
9435         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
9436         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
9437         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
9438         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
9440 2019-07-14  Bruno Haible  <bruno@clisp.org>
9442         pthread-once: New module.
9443         * lib/pthread-once.c: New file.
9444         * m4/pthread-once.m4: New file.
9445         * modules/pthread-once: New file.
9446         * doc/posix-functions/pthread_once.texi: Mention the new module.
9448 2019-07-14  Bruno Haible  <bruno@clisp.org>
9450         pthread-thread: New module.
9451         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
9452         inline definitions.
9453         * lib/pthread-thread.c: New file.
9454         * m4/pthread-thread.m4: New file.
9455         * modules/pthread-thread: New file.
9456         * doc/posix-functions/pthread_create.texi: Mention the new module.
9457         * doc/posix-functions/pthread_attr_init.texi: Likewise.
9458         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
9459         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
9460         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
9461         * doc/posix-functions/pthread_self.texi: Likewise.
9462         * doc/posix-functions/pthread_equal.texi: Likewise.
9463         * doc/posix-functions/pthread_detach.texi: Likewise.
9464         * doc/posix-functions/pthread_join.texi: Likewise.
9465         * doc/posix-functions/pthread_exit.texi: Likewise.
9467 2019-07-14  Bruno Haible  <bruno@clisp.org>
9469         pthread-h: Prepare for adding new modules.
9470         * lib/pthread.in.h: Define the types and macros for each of the
9471         facilities separately.
9472         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
9473         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9474         HAVE_PTHREAD_PROCESS_SHARED.
9475         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
9476         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9477         HAVE_PTHREAD_PROCESS_SHARED.
9478         * modules/pthread-h (Makefile.am): Substitute
9479         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
9480         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
9482 2019-07-14  Bruno Haible  <bruno@clisp.org>
9484         pthread-h: Add declarations of essential pthread functions.
9485         * lib/pthread.in.h: Include snippets.
9486         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
9487         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
9488         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
9489         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
9490         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
9491         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
9492         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
9493         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
9494         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
9495         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
9496         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
9497         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
9498         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
9499         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
9500         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
9501         pthread_key_create, pthread_setspecific, pthread_getspecific,
9502         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
9503         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
9504         declarations.
9505         (pthread_mutex_timedlock): Move declaration.
9506         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
9507         declared.
9508         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
9509         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
9510         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
9511         HAVE_* and REPLACE_* variables for the new functions.
9512         * modules/pthread-h (Depends-on): Add snippet/c++defs,
9513         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
9514         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
9515         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
9516         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
9517         variables for the new functions. Split the sed script, to avoid the
9518         limit of 99 commands of HP-UX sed.
9519         * tests/test-pthread-c++.cc: Check the signature of the new functions.
9521 2019-07-14  Bruno Haible  <bruno@clisp.org>
9523         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
9524         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
9525         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
9526         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
9527         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
9528         * modules/pthread-h (Depends-on): Add threadlib.
9529         (Link): Change to $(LIBTHREAD).
9530         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
9531         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
9533 2019-07-14  Bruno Haible  <bruno@clisp.org>
9535         pthread-h: Add C++ tests.
9536         * tests/test-pthread-c++.cc: New file.
9537         * modules/pthread-h-c++-tests: New file.
9539 2019-07-14  Bruno Haible  <bruno@clisp.org>
9541         pthread-h: Add tests.
9542         * tests/test-pthread.c: New file.
9543         * modules/pthread-h-tests: New file.
9545 2019-07-14  Bruno Haible  <bruno@clisp.org>
9547         pthread-h: New module.
9548         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
9549         is 1.
9550         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
9551         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
9552         <pthread.h> pollutes the namespace; instead, prepare for generating a
9553         pthread.h always. Substitute HAVE_PTHREAD_H here.
9554         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
9555         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
9556         * modules/pthread-h: New file, based on modules/pthread.
9557         * modules/pthread: Rely on 'pthread-h'.
9558         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
9559         Update.
9560         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
9561         pthread.
9563 2019-07-14  Bruno Haible  <bruno@clisp.org>
9565         sched_yield: New module.
9566         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
9567         (sched_yield): New declaration.
9568         * lib/sched_yield.c: New file.
9569         * m4/sched_yield.m4: New file.
9570         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
9571         provide a replacement sched.h always. Test whether sched_yield is
9572         declared.
9573         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
9574         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
9575         (Makefile.am): Provide a replacement sched.h always. Substitute
9576         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
9577         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
9578         * modules/sched_yield: New file.
9579         * doc/posix-functions/sched_yield.texi: Mention the new module.
9581 2019-07-14  Bruno Haible  <bruno@clisp.org>
9583         windows-spin: New module.
9584         * lib/windows-spin.h: New file.
9585         * lib/windows-spin.c: New file.
9586         * modules/windows-spin: New file.
9588 2019-07-14  Bruno Haible  <bruno@clisp.org>
9590         windows-timedrwlock: New module.
9591         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
9592         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
9593         windows-cond.c.
9594         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
9595         redefinition conflict with windows-timedrwlock.h.
9596         * modules/windows-timedrwlock: New file.
9598 2019-07-14  Bruno Haible  <bruno@clisp.org>
9600         windows-rwlock: New module.
9601         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
9602         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
9603         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
9604         windows-initguard.h.
9605         (gl_rwlock_t): Define using glwthread_rwlock_t.
9606         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
9607         (glthread_rwlock_init): Define using glwthread_rwlock_init.
9608         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
9609         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
9610         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
9611         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
9612         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
9613         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
9614         glthread_rwlock_destroy_func): Remove declarations.
9615         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
9616         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
9617         gl_waitqueue_notify_all, glthread_rwlock_init_func,
9618         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
9619         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
9620         functions.
9621         * modules/windows-rwlock: New file.
9622         * modules/lock (Depends-on): Add windows-rwlock.
9624 2019-07-14  Bruno Haible  <bruno@clisp.org>
9626         windows-thread: Add support for creating a thread in detached state.
9627         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
9628         (glwthread_thread_create): Add attr argument.
9629         * lib/windows-thread.c (glwthread_thread_create): Likewise.
9630         * lib/glthread/thread.h (glthread_create): Update.
9631         * lib/thrd.c (thrd_create): Update.
9633 2019-07-14  Bruno Haible  <bruno@clisp.org>
9635         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
9636         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
9637         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
9638         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
9639         * lib/windows-mutex.h: Update.
9640         * lib/windows-recmutex.h: Likewise.
9641         * lib/windows-timedmutex.h: Likewise.
9642         * lib/windows-timedrecmutex.h: Likewise.
9643         * lib/windows-cond.h: Likewise.
9644         * lib/glthread/lock.h: Likewise.
9645         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
9646         lib/windows-spinlock.h.
9647         * modules/windows-recmutex (Files): Likewise.
9648         * modules/windows-timedmutex (Files): Likewise.
9649         * modules/windows-timedrecmutex (Files): Likewise.
9650         * modules/windows-cond (Files): Likewise.
9651         * modules/threads-h (Files): Likewise.
9653 2019-07-14  Bruno Haible  <bruno@clisp.org>
9655         doc: Fix info about pthread API in HP-UX.
9656         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
9658 2019-07-14  Bruno Haible  <bruno@clisp.org>
9660         threads-h: Fix generation of threads.h.
9661         * modules/threads-h (Makefile.am): Insert the required header file
9662         snippets.
9664 2019-07-09  Bruno Haible  <bruno@clisp.org>
9666         striconveh test: Fix a compilation failure when iconv is not available.
9667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9668         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9669         HAVE_ICONV.
9671 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9673         argmatch: adjust columns for help2man.
9674         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9675         requires column 20 or more, return 20.
9677 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9679         areadlink-with-size: avoid realloc when size==0
9680         * lib/areadlink-with-size.c (areadlink_with_size):
9681         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9682         Reallocate at the end to the actual size, to avoid memory waste,
9683         as suggested by Bruno Haible.  But when the guessed size is zero -
9684         useful when the size is unknown - do the initial small readlink
9685         into the stack, to avoid that realloc in the usual case.
9687 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9689         areadlink-with-size: guess a buffer size with 0 size
9690         The size is usually taken from st_size, which can be zero,
9691         resulting in inefficient operation.
9692         Instead let zero select an initial memory allocation
9693         of 128 bytes, which most symlinks fit within.
9694         * lib/areadlink-with-size.c (areadlink_with_size):
9695         Start with a 128 byte buffer, for SIZE == 0.
9696         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9698 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9700         Replace manually crafted hex regexes with [:xdigit:]
9701         * build-aux/gitlog-to-changelog (parse_amend_file)
9702         (git_dir_option):
9703         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9704         This patch is backported from Emacs (Bug#36167).
9706 2019-07-06  Bruno Haible  <bruno@clisp.org>
9708         error: Fix documentation.
9709         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
9710         module provides.
9711         * doc/glibc-functions/error_message_count.texi: Likewise.
9712         * doc/glibc-functions/error_one_per_line.texi: Likewise.
9713         * doc/glibc-functions/error_print_progname.texi: Likewise.
9715 2019-07-06  Bruno Haible  <bruno@clisp.org>
9717         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
9718         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
9719         and older is unsupported.
9720         * doc/**/*.texi: Update.
9722 2019-07-06  Bruno Haible  <bruno@clisp.org>
9724         doc: Remove documentation of Linux libc5 as a supported platform.
9725         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
9726         to Linux libc5.
9727         * doc/posix-functions/iswalpha.texi: Likewise.
9728         * doc/posix-functions/iswblank.texi: Likewise.
9729         * doc/posix-functions/iswcntrl.texi: Likewise.
9730         * doc/posix-functions/iswdigit.texi: Likewise.
9731         * doc/posix-functions/iswgraph.texi: Likewise.
9732         * doc/posix-functions/iswlower.texi: Likewise.
9733         * doc/posix-functions/iswprint.texi: Likewise.
9734         * doc/posix-functions/iswpunct.texi: Likewise.
9735         * doc/posix-functions/iswspace.texi: Likewise.
9736         * doc/posix-functions/iswupper.texi: Likewise.
9737         * doc/posix-functions/iswxdigit.texi: Likewise.
9738         * doc/posix-functions/snprintf.texi: Likewise.
9739         * doc/posix-functions/vsnprintf.texi: Likewise.
9741 2019-07-06  Bruno Haible  <bruno@clisp.org>
9743         doc: Remove documentation of Tandem/NSK as a supported platform.
9744         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
9745         Tandem/NSK.
9746         * doc/**/*.texi: Update.
9748 2019-07-06  Bruno Haible  <bruno@clisp.org>
9750         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
9751         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
9752         and older is unsupported.
9753         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
9754         Mac OS X 10.4 and older.
9755         * doc/posix-functions/asinl.texi: Likewise.
9756         * doc/posix-functions/atanl.texi: Likewise.
9757         * doc/posix-functions/cosl.texi: Likewise.
9758         * doc/posix-functions/expl.texi: Likewise.
9759         * doc/posix-functions/frexpl.texi: Likewise.
9760         * doc/posix-functions/gettimeofday.texi: Likewise.
9761         * doc/posix-functions/logl.texi: Likewise.
9762         * doc/posix-functions/mkstemp.texi: Likewise.
9763         * doc/posix-functions/sinl.texi: Likewise.
9764         * doc/posix-functions/sqrtl.texi: Likewise.
9765         * doc/posix-functions/tanl.texi: Likewise.
9766         * doc/posix-functions/wcswidth.texi: Likewise.
9767         * doc/**/*.texi: Update.
9769 2019-07-06  Bruno Haible  <bruno@clisp.org>
9771         doc: Remove documentation of AIX 4 as a supported platform.
9772         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
9773         unsupported.
9774         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
9775         workarounds.
9776         * doc/posix-functions/strnlen.texi: Likewise.
9777         * doc/posix-headers/inttypes.texi: Likewise.
9778         * doc/**/*.texi: Update.
9780 2019-07-06  Bruno Haible  <bruno@clisp.org>
9782         doc: Remove documentation of HP-UX 10 as a supported platform.
9783         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
9784         unsupported.
9785         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
9786         workarounds.
9787         * doc/posix-functions/gmtime_r.texi: Likewise.
9788         * doc/posix-functions/localtime_r.texi: Likewise.
9789         * doc/posix-functions/mkstemp.texi: Likewise.
9790         * doc/**/*.texi: Update.
9792 2019-07-06  Bruno Haible  <bruno@clisp.org>
9794         doc: Remove documentation of Interix 3.5 as a supported platform.
9795         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
9796         unsupported.
9797         * doc/posix-functions/select.texi: Don't mention Interix specific
9798         workarounds.
9799         * doc/posix-headers/signal.texi: Likewise.
9800         * doc/**/*.texi: Update.
9802 2019-07-06  Bruno Haible  <bruno@clisp.org>
9804         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
9805         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9806         unsupported.
9807         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9808         workarounds.
9809         * doc/posix-functions/nl_langinfo.texi: Likewise.
9810         * doc/posix-functions/remainder.texi: Likewise.
9811         * doc/posix-functions/towlower.texi: Likewise.
9812         * doc/posix-functions/towupper.texi: Likewise.
9813         * doc/posix-functions/vsnprintf.texi: Likewise.
9814         * doc/posix-functions/wcscat.texi: Likewise.
9815         * doc/posix-functions/wcschr.texi: Likewise.
9816         * doc/posix-functions/wcscmp.texi: Likewise.
9817         * doc/posix-functions/wcscpy.texi: Likewise.
9818         * doc/posix-functions/wcscspn.texi: Likewise.
9819         * doc/posix-functions/wcslen.texi: Likewise.
9820         * doc/posix-functions/wcsncat.texi: Likewise.
9821         * doc/posix-functions/wcsncmp.texi: Likewise.
9822         * doc/posix-functions/wcsncpy.texi: Likewise.
9823         * doc/posix-functions/wcspbrk.texi: Likewise.
9824         * doc/posix-functions/wcsrchr.texi: Likewise.
9825         * doc/posix-functions/wcsspn.texi: Likewise.
9826         * doc/posix-headers/langinfo.texi: Likewise.
9827         * doc/posix-headers/signal.texi: Likewise.
9828         * doc/posix-headers/wchar.texi: Likewise.
9829         * doc/posix-headers/wctype.texi: Likewise.
9830         * doc/**/*.texi: Update.
9832 2019-07-05  Bruno Haible  <bruno@clisp.org>
9834         doc: Remove documentation of OSF/1 as supported platform.
9835         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9836         unsupported.
9837         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9838         workarounds.
9839         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9840         * doc/glibc-functions/ptsname_r.texi: Likewise.
9841         * doc/posix-functions/ceil.texi: Likewise.
9842         * doc/posix-functions/ceilf.texi: Likewise.
9843         * doc/posix-functions/ceill.texi: Likewise.
9844         * doc/posix-functions/fchdir.texi: Likewise.
9845         * doc/posix-functions/floor.texi: Likewise.
9846         * doc/posix-functions/floorf.texi: Likewise.
9847         * doc/posix-functions/fmod.texi: Likewise.
9848         * doc/posix-functions/fmodf.texi: Likewise.
9849         * doc/posix-functions/fmodl.texi: Likewise.
9850         * doc/posix-functions/log.texi: Likewise.
9851         * doc/posix-functions/logf.texi: Likewise.
9852         * doc/posix-functions/logl.texi: Likewise.
9853         * doc/posix-functions/log10.texi: Likewise.
9854         * doc/posix-functions/log10f.texi: Likewise.
9855         * doc/posix-functions/log10l.texi: Likewise.
9856         * doc/posix-functions/log2.texi: Likewise.
9857         * doc/posix-functions/log2f.texi: Likewise.
9858         * doc/posix-functions/log2l.texi: Likewise.
9859         * doc/posix-functions/mbrtowc.texi: Likewise.
9860         * doc/posix-functions/recv.texi: Likewise.
9861         * doc/posix-functions/recvfrom.texi: Likewise.
9862         * doc/posix-functions/remainder.texi: Likewise.
9863         * doc/posix-functions/remainderf.texi: Likewise.
9864         * doc/posix-functions/remainderl.texi: Likewise.
9865         * doc/posix-functions/round.texi: Likewise.
9866         * doc/posix-functions/roundf.texi: Likewise.
9867         * doc/posix-functions/roundl.texi: Likewise.
9868         * doc/posix-functions/send.texi: Likewise.
9869         * doc/posix-functions/sendto.texi: Likewise.
9870         * doc/posix-functions/setenv.texi: Likewise.
9871         * doc/posix-functions/snprintf.texi: Likewise.
9872         * doc/posix-functions/tcgetsid.texi: Likewise.
9873         * doc/posix-functions/trunc.texi: Likewise.
9874         * doc/posix-functions/truncf.texi: Likewise.
9875         * doc/posix-functions/truncl.texi: Likewise.
9876         * doc/posix-functions/ttyname_r.texi: Likewise.
9877         * doc/posix-functions/unsetenv.texi: Likewise.
9878         * doc/posix-functions/wcsrtombs.texi: Likewise.
9879         * doc/posix-headers/sys_select.texi: Likewise.
9880         * doc/posix-headers/wchar.texi: Likewise.
9881         * doc/posix-headers/wctype.texi: Likewise.
9882         * doc/**/*.texi: Update.
9884 2019-07-05  Bruno Haible  <bruno@clisp.org>
9886         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9887         * doc/**/*.texi: Update.
9889 2019-07-05  Bruno Haible  <bruno@clisp.org>
9891         doc: Remove documentation of Solaris 8 and older as supported platforms.
9892         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9893         unsupported.
9894         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9895         workarounds.
9896         * doc/posix-functions/memcmp.texi: Likewise.
9897         * doc/posix-functions/rename.texi: Likewise.
9898         * doc/posix-functions/tzset.texi: Likewise.
9899         * doc/posix-headers/wctype.texi: Likewise.
9900         * doc/**/*.texi: Update.
9902 2019-07-05  Bruno Haible  <bruno@clisp.org>
9904         doc: Remove documentation of Interix 3.5 as a supported platform.
9905         * doc/**/*.texi: Update.
9907 2019-07-05  Bruno Haible  <bruno@clisp.org>
9909         doc: Remove documentation of BeOS as a supported platform.
9910         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9911         unsupported.
9912         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9913         * doc/posix-functions/getdelim.texi: Likewise.
9914         * doc/**/*.texi: Update.
9916 2019-07-05  Bruno Haible  <bruno@clisp.org>
9918         thread, lock, cond, tls: Remove support for Pth threads.
9919         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9920         --enable-threads=pth any more.
9921         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9922         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9923         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9924         threads and ISO C11 threads.
9925         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9926         * lib/glthread/lock.h: Likewise.
9927         * lib/glthread/lock.c: Likewise.
9928         * lib/glthread/cond.h: Likewise.
9929         * lib/glthread/cond.c: Likewise.
9930         * lib/glthread/tls.h: Likewise.
9931         * lib/glthread/tls.c: Likewise.
9932         * lib/glthread/yield.h: Likewise.
9933         * lib/regex_internal.h: Likewise.
9934         * tests/test-thread_create.c: Likewise.
9935         * tests/test-lock.c: Likewise.
9936         * tests/test-cond.c: Likewise.
9937         * tests/test-tls.c: Likewise.
9938         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9939         (main): Sleep without calling gl_thread_yield.
9941 2019-07-05  Bruno Haible  <bruno@clisp.org>
9943         thread, lock, cond, tls: Remove support for old Solaris threads.
9944         Solaris >= 2.5.1 has POSIX threads.
9945         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9946         --enable-threads=solaris any more.
9947         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9948         * lib/glthread/thread.c: Update comment.
9949         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9950         * lib/glthread/lock.h: Likewise.
9951         * lib/glthread/lock.c: Likewise.
9952         * lib/glthread/cond.h: Likewise.
9953         * lib/glthread/cond.c: Likewise.
9954         * lib/glthread/tls.h: Likewise.
9955         * lib/glthread/tls.c: Likewise.
9956         * lib/glthread/yield.h: Likewise.
9957         * lib/regex_internal.h: Likewise.
9958         * tests/test-thread_create.c: Likewise.
9959         * tests/test-lock.c: Likewise.
9960         * tests/test-cond.c: Likewise.
9961         * tests/test-tls.c: Likewise.
9963 2019-07-05  Bruno Haible  <bruno@clisp.org>
9965         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9966         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9967         needed size is equal to the allocated size.
9968         * lib/getcwd.c (__getcwd): Likewise.
9970 2019-07-05  Bruno Haible  <bruno@clisp.org>
9972         xgetdomainname: Don't return an excessive memory allocation.
9973         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9974         before returning it.
9976 2019-07-05  Bruno Haible  <bruno@clisp.org>
9978         xgethostname: Don't return an excessive memory allocation.
9979         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9980         returning it.
9982 2019-07-05  Bruno Haible  <bruno@clisp.org>
9984         areadlinkat-with-size: Don't return an excessive memory allocation.
9985         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9986         before returning it.
9988 2019-07-05  Bruno Haible  <bruno@clisp.org>
9990         areadlink-with-size: Don't return an excessive memory allocation.
9991         Reported by Andreas Dilger <adilger@whamcloud.com>.
9992         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9993         before returning it.
9995 2019-07-03  Bruno Haible  <bruno@clisp.org>
9997         renameatu: Fix test failure on MSVC.
9998         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9999         empty string.
10001 2019-07-03  Bruno Haible  <bruno@clisp.org>
10003         mbrtowc: Fix invalid use of mbtowc() on MSVC.
10004         * lib/mbrtowc.c: Include glthread/lock.h.
10005         (mbtowc_lock): New variable.
10006         (mbrtowc): Treat UTF-8 encoding without locking. For the other
10007         encodings, explicitly reset the internal state of mbtowc, and protect
10008         this through a lock.
10009         * modules/mbrtowc (Depends-on): Add lock.
10011 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
10013         argmatch: don't define _ in the header.
10014         Reported by Jim Meyering.
10015         * lib/argmatch.h (N_, _): Don't define.
10016         Use gettext instead.
10017         * lib/argmatch.h (_): Define.
10018         * tests/test-argmatch.c (N_): Define.
10020 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10022         verify: document ‘assume’ better
10023         * lib/verify.h: Reword doc (Bug#36370).
10025 2019-07-02  Bruno Haible  <bruno@clisp.org>
10027         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
10028         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
10029         "CPutf8".
10030         * lib/nl_langinfo.c (ctype_codeset): Likewise.
10032 2019-07-02  Bruno Haible  <bruno@clisp.org>
10034         getcwd: Fix crash when invoked with size = 0 on MSVC.
10035         * lib/getcwd.c: Include msvc-inval.h.
10036         (getcwd_nothrow): New function/macro.
10037         (getcwd_system): New macro.
10038         (__getcwd): Use it instead of getcwd.
10039         * modules/getcwd (Depends-on): Add msvc-inval.
10040         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
10042 2019-07-02  Bruno Haible  <bruno@clisp.org>
10044         nonblocking-pipe tests: Fix test failure on MSVC.
10045         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
10046         native Windows.
10048 2019-07-02  Bruno Haible  <bruno@clisp.org>
10050         usleep: Implement with millisecond resolution on native Windows.
10051         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
10052         * doc/pastposix-functions/usleep.texi: Update accordingly.
10054 2019-07-02  Bruno Haible  <bruno@clisp.org>
10056         lstat tests: Fix test failure on MSVC.
10057         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
10058         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10060 2019-07-02  Bruno Haible  <bruno@clisp.org>
10062         stat tests: Fix test failure on MSVC.
10063         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
10064         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10066 2019-07-02  Bruno Haible  <bruno@clisp.org>
10068         getaddrinfo tests: Fix test failure on MSVC.
10069         * tests/test-getaddrinfo.c: Include sockets.h.
10070         (main): Invoke gl_sockets_startup.
10071         * modules/getaddrinfo-tests (Depends-on): Add sockets.
10073 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
10075         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
10076         * lib/poll.c: Call Windows native select() with Windows native timeval.
10078 2019-06-30  Bruno Haible  <bruno@clisp.org>
10080         argmatch: Fix compilation errors.
10081         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
10082         * tests/test-argmatch.c (main): Update after last-minute function names
10083         change.
10085 2019-06-30  Bruno Haible  <bruno@clisp.org>
10087         Include <stdlib.h> when needed.
10088         * lib/cnd.c: Include <stdlib.h>, needed for abort().
10089         * lib/fcntl.c: Likewise.
10090         * lib/mbscasestr.c: Likewise.
10091         * lib/mbssep.c: Likewise.
10092         * lib/mbsstr.c: Likewise.
10093         * lib/openat.c: Include <stdlib.h>, needed for free().
10094         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
10095         abort().
10097 2019-06-30  Bruno Haible  <bruno@clisp.org>
10099         Include <stdlib.h> when needed.
10100         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
10101         * lib/faccessat.c: Likewise.
10102         * lib/fchmodat.c: Likewise.
10103         * lib/fchownat.c: Likewise.
10104         * lib/fstatat.c: Likewise.
10105         * lib/mkfifoat.c: Likewise.
10106         * lib/mknodat.c: Likewise.
10107         * lib/readlinkat.c: Likewise.
10108         * lib/symlinkat.c: Likewise.
10109         * lib/utimensat.c: Likewise.
10110         * lib/mkdirat.c: Likewise. Include also the specification header.
10112 2019-06-30  Bruno Haible  <bruno@clisp.org>
10114         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
10115         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
10116         from gl_PREREQ_SYS_H_SOCKET.
10117         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
10118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
10119         gl_PREREQ_SYS_H_WS2TCPIP.
10120         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
10121         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
10122         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
10124 2019-06-30  Bruno Haible  <bruno@clisp.org>
10126         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
10127         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
10128         REPLACE_INET_NTOP to 1 always.
10129         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
10130         REPLACE_INET_PTON to 1 always.
10132 2019-06-30  Bruno Haible  <bruno@clisp.org>
10134         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
10135         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
10136         not REPLACE_INET_NTOP.
10138 2019-06-30  Bruno Haible  <bruno@clisp.org>
10140         poll: Add comment.
10141         * lib/poll.c: Add comment about WSAPoll.
10143 2019-06-30  Bruno Haible  <bruno@clisp.org>
10145         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
10146         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
10147         * lib/poll.in.h: Include <winsock2.h>.
10148         (POLL*, pollfd): Override on native Windows.
10149         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10150         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
10151         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10153 2019-06-28  Bruno Haible  <bruno@clisp.org>
10155         accept4: Fix compilation error on OpenIndiana.
10156         Reported by Michal Nowak <mnowak@startmail.com>
10157         via Mark H Weaver <mhw@netris.org>.
10158         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
10159         whether it exists as a function.
10161 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
10163         strverscmp: sync from glibc
10164         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
10165         comments, include libc-config.h, define __strverscmp to be
10166         strverscmp, and don’t assume types line uint8_t and int8_t that
10167         that C99 doesn’t guarantee.
10168         [!_LIBC]: Include libc-config.h; define __strverscmp.
10169         Include stdint.h.
10170         (__strverscmp): Assume C99.  Use uint_least8_t
10171         and int_least8_t instead of unsigned char and signed char.
10172         * modules/strverscmp (Depends-on): Add libc-config, stdint.
10174 2019-06-25  Bruno Haible  <bruno@clisp.org>
10176         tss tests: Add tests for destructors and races.
10177         * tests/test-tss.c (worker_thread): Fix typo in debug message.
10178         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
10179         functions.
10180         (main): Invoke them.
10181         * modules/tls-tests (Depends-on): Add mtx.
10183 2019-06-25  Bruno Haible  <bruno@clisp.org>
10185         tls tests: Add tests for destructors and races.
10186         * tests/test-tls.c: Include glthread/lock.h.
10187         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
10188         functions.
10189         (main): Invoke them.
10190         * modules/tls-tests (Depends-on): Add lock.
10192 2019-06-25  Bruno Haible  <bruno@clisp.org>
10194         windows-tls: Implement TLS key destructors for native Windows.
10195         * lib/windows-tls.h (glwthread_tls_process_destructors): New
10196         declaration.
10197         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
10198         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
10199         (dtor_table_init_once, dtor_table_lock: New variables.
10200         (struct dtor): New type.
10201         (dtor_table, dtors_count, dtors_used, dtors_allocated,
10202         dtor_processing_threads): New variables.
10203         (dtor_table_initialize, dtor_table_ensure_initialized,
10204         dtor_table_shrink_used, glwthread_tls_process_destructors): New
10205         functions.
10206         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
10207         handle non-NULL destructors.
10208         * modules/windows-tls (Depends-on): Add windows-once.
10209         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
10210         Use the functions declared in windows-tls.h.
10211         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
10212         GLWTHREAD_DESTRUCTOR_ITERATIONS.
10213         * lib/windows-thread.c: Include windows-tls.h.
10214         (wrapper_func, glwthread_thread_exit): Invoke
10215         glwthread_tls_process_destructors.
10216         * modules/windows-thread (Depends-on): Add windows-tls.
10218 2019-06-25  Bruno Haible  <bruno@clisp.org>
10220         threadlib: Avoid autoconf warning "was expanded before it was required".
10221         * modules/threadlib (configure.ac): Require gl_THREADLIB.
10223 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
10225         argmatch: remove duplicate const qualifier
10226         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
10228 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10230         unistd: stddef.h and sys/types.h namespace cleanup
10231         * lib/unistd.in.h [__GLIBC__]:
10232         Do not include stddef.h or sys/types.h.
10233         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
10234         supposed to declare off_t and ssize_t.  Problem found when looking
10235         at why @GNULIB_PWRITE@ was different from the newly-added
10236         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
10238 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10240         maintainer-makefile: restore portability to non-GNU awks
10241         Reported by Tim Rühsen.
10242         * top/maint.mk (AWK): New variable.  Use it.
10243         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
10245 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10247         Document setvbuf _IOLBF problem
10248         * doc/posix-functions/setvbuf.texi (setvbuf):
10249         Document MS-Windows portability problem with _IOLBF.
10251         Document lseek SEEK_DATA/SEEK_HOLE
10252         * doc/posix-functions/lseek.texi (lseek):
10253         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
10255 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10257         argmatch: put all the docs member last.
10258         Reported by Bruno Haible.
10259         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
10260         member before the docs done.
10261         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
10263 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
10265         argmatch: add support to generate the usage message.
10266         * lib/argmatch.c: Move some #includes and gettext support to...
10267         * lib/argmatch.h: here.
10268         (ARGMATCH_DEFINE_GROUP): New macro.
10269         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
10270         (argmatch_backup_group): New.
10271         (CHECK): New.
10272         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
10273         argmatch_backup_argument and argmatch_backup_usage.
10274         * modules/argmatch: We depend on c99.
10275         * doc/argmatch.texi (Recognizing Option Arguments): New.
10276         * doc/gnulib.texi: Use it.
10278 2019-06-21  Bruno Haible  <bruno@clisp.org>
10280         thrd: Add comment.
10281         * lib/thrd.c (pthread_main_func): Add comment.
10283 2019-06-21  Bruno Haible  <bruno@clisp.org>
10285         threads-h: Define 'thread_local' if and only if it actually works.
10286         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
10287         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
10288         Oracle Solaris Studio C. Compile a simple program, to see whether
10289         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
10290         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
10291         * lib/threads.in.h (thread_local): Undefine if it does not work.
10292         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
10293         (Link): Mention LIBTHREADLOCAL.
10294         * tests/test-threads.c: Don't check that thread_local is defined.
10295         * tests/test-thread_local.c: New file.
10296         * modules/threads-h-tests (Files): Add it and macros.h.
10297         (Depends-on): Add thrd and stdint.
10298         (configure.ac): Test whether 'alarm' is declared.
10299         (Makefile.am): Arrange to build and link test-thread_local.
10300         * doc/posix-headers/threads.texi: Mention the platforms that don't
10301         support 'thread_local'.
10303 2019-06-20  Bruno Haible  <bruno@clisp.org>
10305         threads-h: Simplify link dependencies.
10306         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
10307         Don't set LTLIBSTDTHREAD.
10308         * modules/thrd (Link): Simplify accordingly.
10309         * modules/mtx (Link): Likewise.
10310         * modules/cnd (Link): Likewise.
10311         * modules/tss (Link): Likewise.
10312         * modules/threads (Link): Likewise.
10314 2019-06-20  Bruno Haible  <bruno@clisp.org>
10316         threads-h: Fix link error on FreeBSD 11.
10317         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
10318         also with -lpthread.
10320 2019-06-20  Bruno Haible  <bruno@clisp.org>
10322         threadlib: Fix typo (regression from today).
10323         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
10325 2019-06-20  Bruno Haible  <bruno@clisp.org>
10327         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
10328         * lib/windows-thread.c: Include <errno.h>.
10329         * lib/windows-tls.c: Likewise.
10331 2019-06-20  Bruno Haible  <bruno@clisp.org>
10333         tss tests: Small improvement.
10334         * tests/test-tss.c (test_tss): Pass a different id to each thread.
10336 2019-06-20  Bruno Haible  <bruno@clisp.org>
10338         threads: New module.
10339         * modules/threads: New file.
10341 2019-06-20  Bruno Haible  <bruno@clisp.org>
10343         tss: Add tests.
10344         * tests/test-tss.c: New file, based on tests/test-tls.c.
10345         * modules/tss-tests: New file.
10347 2019-06-20  Bruno Haible  <bruno@clisp.org>
10349         cnd: Add tests.
10350         * tests/test-cnd.c: New file, based on tests/test-cond.c.
10351         * modules/cnd-tests: New file.
10353 2019-06-20  Bruno Haible  <bruno@clisp.org>
10355         mtx: Add tests.
10356         * tests/test-mtx.c: New file, based on tests/test-lock.c.
10357         * tests/test-call_once.c: New file, based on tests/test-once.c.
10358         * modules/mtx-tests: New file.
10360 2019-06-20  Bruno Haible  <bruno@clisp.org>
10362         thrd: Add tests.
10363         * tests/test-thrd_create.c: New file, based on
10364         tests/test-thread_create.c.
10365         * tests/test-thrd_current.c: New file, based on
10366         tests/test-thread_self.c.
10367         * modules/thrd-tests: New file.
10369 2019-06-20  Bruno Haible  <bruno@clisp.org>
10371         tss: New module.
10372         * lib/tss.c: New file.
10373         * modules/tss: New file.
10374         * doc/posix-functions/tss_create.texi: Mention the new module.
10375         * doc/posix-functions/tss_set.texi: Likewise.
10376         * doc/posix-functions/tss_get.texi: Likewise.
10377         * doc/posix-functions/tss_delete.texi: Likewise.
10379 2019-06-20  Bruno Haible  <bruno@clisp.org>
10381         cnd: New module.
10382         * lib/cnd.c: New file.
10383         * modules/cnd: New file.
10384         * doc/posix-functions/cnd_init.texi: Mention the new module.
10385         * doc/posix-functions/cnd_wait.texi: Likewise.
10386         * doc/posix-functions/cnd_timedwait.texi: Likewise.
10387         * doc/posix-functions/cnd_signal.texi: Likewise.
10388         * doc/posix-functions/cnd_broadcast.texi: Likewise.
10389         * doc/posix-functions/cnd_destroy.texi: Likewise.
10391 2019-06-20  Bruno Haible  <bruno@clisp.org>
10393         mtx: New module.
10394         * lib/mtx.c: New file.
10395         * modules/mtx: New file.
10396         * doc/posix-functions/call_once.texi: Mention the new module.
10397         * doc/posix-functions/mtx_init.texi: Likewise.
10398         * doc/posix-functions/mtx_lock.texi: Likewise.
10399         * doc/posix-functions/mtx_trylock.texi: Likewise.
10400         * doc/posix-functions/mtx_timedlock.texi: Likewise.
10401         * doc/posix-functions/mtx_unlock.texi: Likewise.
10402         * doc/posix-functions/mtx_destroy.texi: Likewise.
10404 2019-06-20  Bruno Haible  <bruno@clisp.org>
10406         thrd: New module.
10407         * lib/thrd.c: New file.
10408         * m4/thrd.m4: New file.
10409         * modules/thrd: New file.
10410         * doc/posix-functions/thrd_current.texi: Mention the new module.
10411         * doc/posix-functions/thrd_detach.texi: Likewise.
10412         * doc/posix-functions/thrd_equal.texi: Likewise.
10413         * doc/posix-functions/thrd_exit.texi: Likewise.
10414         * doc/posix-functions/thrd_sleep.texi: Likewise.
10415         * doc/posix-functions/thrd_yield.texi: Likewise.
10416         * doc/posix-functions/thrd_create.texi: Mention the new module and the
10417         AIX bug.
10418         * doc/posix-functions/thrd_join.texi: Mention the new module and the
10419         AIX and Solaris bugs.
10421 2019-06-20  Bruno Haible  <bruno@clisp.org>
10423         threads-h: Add tests.
10424         * tests/test-threads.c: New file.
10425         * modules/threads-h-tests: New file.
10426         * tests/test-threads-c++.cc: New file.
10427         * modules/threads-h-c++-tests: New file.
10429 2019-06-20  Bruno Haible  <bruno@clisp.org>
10431         threads-h: New module.
10432         * lib/threads.in.h: New file.
10433         * m4/threads.m4: New file.
10434         * m4/yield.m4 (gl_YIELD): Update comment.
10435         * modules/threads-h: New file.
10436         * modules/yields (configure.ac): Use AC_REQUIRE.
10437         * doc/posix-headers/threads.texi: Mention the new module and the AIX
10438         bugs.
10440 2019-06-20  Bruno Haible  <bruno@clisp.org>
10442         windows-thread: New module.
10443         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
10444         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
10445         * lib/glthread/thread.h: Include windows-thread.h.
10446         (gl_thread_t): Define using glwthread_thread_t.
10447         (glthread_create): Define using glwthread_thread_create.
10448         (glthread_join): Define using glwthread_thread_join.
10449         (gl_thread_self): Define using glwthread_thread_self.
10450         (gl_thread_exit): Define using glwthread_thread_exit.
10451         (glthread_create_func, glthread_join_func, gl_thread_self_func,
10452         gl_thread_exit_func): Remove declarations.
10453         * lib/glthread/thread.c (self_key): Remove variable.
10454         (do_init_self_key, init_self_key): Remove functions.
10455         (struct gl_thread_struct): Remove type.
10456         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
10457         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
10458         functions.
10459         * modules/windows-thread: New file.
10460         * modules/thread (Depends-on): Add windows-thread.
10462 2019-06-20  Bruno Haible  <bruno@clisp.org>
10464         windows-tls: New module.
10465         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
10466         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
10467         * lib/glthread/tls.h: Include windows-tls.h.
10468         (gl_tls_key_t): Define using glwthread_tls_key_t.
10469         * modules/windows-tls: New file.
10470         * modules/tls (Depends-on): Add windows-tls.
10472 2019-06-20  Bruno Haible  <bruno@clisp.org>
10474         windows-cond: New module.
10475         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
10476         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
10477         * lib/glthread/cond.h: Include windows-cond.h.
10478         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
10479         (gl_cond_t): Define using glwthread_cond_t.
10480         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
10481         (glthread_cond_init): Define using glwthread_cond_init.
10482         (glthread_cond_wait): Define using glwthread_cond_wait.
10483         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
10484         (glthread_cond_signal): Define using glwthread_cond_signal.
10485         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
10486         (glthread_cond_destroy): Define using glwthread_cond_destroy.
10487         (glthread_cond_init_func, glthread_cond_wait_func,
10488         glthread_cond_timedwait_func, glthread_cond_signal_func,
10489         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10490         declarations.
10491         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
10492         types.
10493         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10494         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
10495         glthread_cond_init_func, glthread_cond_wait_func,
10496         glthread_cond_timedwait_func, glthread_cond_signal_func,
10497         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10498         functions.
10499         * modules/windows-cond: New file.
10500         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
10502 2019-06-20  Bruno Haible  <bruno@clisp.org>
10504         windows-timedrecmutex: New module.
10505         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
10506         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
10507         * modules/windows-timedrecmutex: New file.
10509 2019-06-20  Bruno Haible  <bruno@clisp.org>
10511         windows-timedmutex: New module.
10512         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
10513         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
10514         * modules/windows-timedmutex: New file.
10516 2019-06-20  Bruno Haible  <bruno@clisp.org>
10518         windows-recmutex: New module.
10519         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
10520         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
10521         * lib/glthread/lock.h: Include windows-recmutex.h.
10522         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
10523         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
10524         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
10525         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
10526         (glthread_recursive_lock_unlock): Define using
10527         glwthread_recmutex_unlock.
10528         (glthread_recursive_lock_destroy): Define using
10529         glwthread_recmutex_destroy.
10530         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
10531         glthread_recursive_lock_unlock_func,
10532         glthread_recursive_lock_destroy_func): Remove declarations.
10533         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
10534         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
10535         glthread_recursive_lock_destroy_func): Remove functions.
10536         * modules/windows-recmutex: New file.
10537         * modules/lock (Depends-on): Add windows-recmutex.
10539 2019-06-20  Bruno Haible  <bruno@clisp.org>
10541         windows-mutex: New module.
10542         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
10543         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
10544         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
10545         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
10546         (gl_spinlock_t): Remove type.
10547         (gl_lock_t): Define using glwthread_mutex_t.
10548         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
10549         (glthread_lock_init): Define using glwthread_mutex_init.
10550         (glthread_lock_lock): Define using glwthread_mutex_lock.
10551         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
10552         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
10553         (glthread_lock_init_func, glthread_lock_lock_func,
10554         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10555         declarations.
10556         Use glwthread_spinlock_t instead of gl_spinlock_t.
10557         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
10558         GLWTHREAD_SPINLOCK_INIT.
10559         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
10560         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10561         functions.
10562         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
10563         gl_spinlock_t.
10564         * modules/windows-mutex: New file.
10565         * modules/lock (Depends-on): Add windows-mutex.
10567 2019-06-20  Bruno Haible  <bruno@clisp.org>
10569         windows-once: New module.
10570         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
10571         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
10572         * lib/glthread/lock.h: Include windows-once.h.
10573         (gl_once_t): Define using glwthread_once_t.
10574         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
10575         (glthread_once): Define using glwthread_once.
10576         (glthread_once_func): Remove declaration.
10577         * lib/glthread/lock.c (glthread_once_func): Remove function.
10578         * modules/windows-once: New file.
10579         * modules/lock (Depends-on): Add windows-once.
10581 2019-06-20  Bruno Haible  <bruno@clisp.org>
10583         lock, cond: Avoid possible counter wraparound on Windows.
10584         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
10585         field of the guard unchanged if it was already positive.
10586         (glthread_rwlock_rdlock_func): Likewise.
10587         (glthread_rwlock_wrlock_func): Likewise.
10588         (glthread_recursive_lock_lock_func): Likewise.
10589         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
10590         (glthread_cond_timedwait_func): Likewise.
10592 2019-06-20  Bruno Haible  <bruno@clisp.org>
10594         cond: Make glthread_cond_timedwait more reliable on Windows.
10595         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
10596         condition variable before looking at the current time.
10598 2019-06-20  Bruno Haible  <bruno@clisp.org>
10600         pthread_mutex_timedlock: New module.
10601         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
10602         new declaration.
10603         * lib/pthread_mutex_timedlock.c: New file.
10604         * m4/pthread_mutex_timedlock.m4: New file.
10605         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
10606         whether pthread_mutex_timedlock is declared.
10607         (gl_PTHREAD_MODULE_INDICATOR): New macro.
10608         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10609         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10610         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
10611         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10612         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10613         * modules/pthread_mutex_timedlock: New file.
10614         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
10615         module.
10617 2019-06-20  Bruno Haible  <bruno@clisp.org>
10619         thread, lock, cond, tls: Recognize C11 multithreaded applications.
10620         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
10621         * lib/glthread/thread.h (c11_threads_in_use): New macro.
10622         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10623         * lib/glthread/lock.h (c11_threads_in_use): New macro.
10624         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10625         * lib/glthread/cond.h (c11_threads_in_use): New macro.
10626         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10627         * lib/glthread/tls.h (c11_threads_in_use): New macro.
10628         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10630 2019-06-20  Bruno Haible  <bruno@clisp.org>
10632         tls tests: Small improvements.
10633         * tests/test-tls.c: Include <stdint.h>.
10634         (worker_thread): Avoid gcc warning on 64-bit mingw.
10635         (test_tls): Pass a different id to each thread.
10636         * modules/tls-tests (Depends-on): Add stdint.
10638 2019-06-20  Bruno Haible  <bruno@clisp.org>
10640         cond tests: Simplify.
10641         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
10643 2019-06-20  Bruno Haible  <bruno@clisp.org>
10645         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
10646         * tests/test-lock.c (test_once): Don't reference fire_signal if
10647         !ENABLE_LOCKING.
10649 2019-06-19  Bruno Haible  <bruno@clisp.org>
10651         nanosleep: Relicense under LGPLv2+.
10652         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
10653         * modules/nanosleep (License): Change to LGPLv2+.
10655 2019-06-19  Bruno Haible  <bruno@clisp.org>
10657         Reorder pieces of header in perl scripts.
10658         The desired order is
10659         - Prologue part 1 (2 lines with #!)
10660         - Program short description
10661         - Copyright and license notice
10662         - Written-by notice
10663         - Program short description (optional)
10664         - Program long description (optional)
10665         - Prologue part 2
10666         - Time stamp
10667         - Code
10668         Reported by Paul Eggert.
10669         * build-aux/announce-gen: Reorder header.
10670         * build-aux/gitlog-to-changelog: Likewise.
10671         * build-aux/useless-if-before-free: Likewise.
10672         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10673         description.
10674         * build-aux/update-copyright: Likewise. Add short description. Bump
10675         time-stamp-line-limit to 200.
10677 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10679         verify-tests: work around xlc bug
10680         Problem reported by Bruno Haible in:
10681         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10682         * tests/test-verify.c (item): Move the arithmetic inside the
10683         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10685 2019-06-16  Bruno Haible  <bruno@clisp.org>
10687         Restore Emacs time-stamp hook applicability.
10688         Reported by Darshit Shah <darnir@gnu.org>.
10689         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
10690         * build-aux/announce-gen: Likewise.
10691         * build-aux/gitlog-to-changelog: Likewise.
10692         * build-aux/prefix-gnulib-mk: Likewise.
10693         * build-aux/update-copyright: Likewise.
10695 2019-06-15  Bruno Haible  <bruno@clisp.org>
10697         Fix scripts to have valid executable format on Alpine Linux.
10698         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10699         Idea by Paul Eggert.
10700         * build-aux/useless-if-before-free: Use a prologue that starts with
10701         '#!/bin/sh'.
10702         * build-aux/announce-gen: Likewise.
10703         * build-aux/gitlog-to-changelog: Likewise.
10704         * build-aux/prefix-gnulib-mk: Likewise.
10705         * build-aux/update-copyright: Likewise.
10706         * tests/test-update-copyright.sh: Update test program accordingly.
10708 2019-06-10  Bruno Haible  <bruno@clisp.org>
10710         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
10711         Reported by Nikita Ermakov <arei@altlinux.org> in
10712         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
10713         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
10714         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
10716 2019-06-10  Bruno Haible  <bruno@clisp.org>
10718         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
10719         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10720         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
10721         a copy of the path argument.
10722         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10723         it.
10725 2019-06-10  Bruno Haible  <bruno@clisp.org>
10727         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
10728         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
10729         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10730         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
10731         a copy of the path argument.
10732         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10733         it.
10735 2019-06-10  Bruno Haible  <bruno@clisp.org>
10737         posix_spawn_file_actions_addfchdir: Add tests.
10738         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
10739         * tests/test-posix_spawn5.c: New file.
10740         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
10742 2019-06-10  Bruno Haible  <bruno@clisp.org>
10744         posix_spawn_file_actions_addfchdir: New module.
10745         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
10746         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
10747         union member 'fchdir_action'.
10748         * lib/spawn_faction_addfchdir.c: New file.
10749         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
10750         * m4/posix_spawn_faction_addfchdir.m4: New file.
10751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
10752         'posix_spawn_file_actions_addfchdir' is present and whether
10753         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
10754         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
10755         posix_spawn_file_actions_addfchdir is declared.
10756         (gl_SPAWN_H_DEFAULTS): Initialize
10757         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10758         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10759         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10760         * modules/spawn (Makefile.am): Substitute
10761         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10762         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10763         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10764         * modules/posix_spawn_file_actions_addfchdir: New file.
10765         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
10766         signature.
10767         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10768         * doc/posix-functions/posix_spawnp.texi: Likewise.
10769         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
10770         Likewise.
10772 2019-06-10  Bruno Haible  <bruno@clisp.org>
10774         doc: Document existence of posix_spawn_file_actions_addchdir module.
10775         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
10776         the posix_spawn_file_actions_addchdir module.
10778 2019-06-10  Bruno Haible  <bruno@clisp.org>
10780         posix_spawn-internal: Fix module description.
10781         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
10782         from here...
10783         * modules/posix_spawnp (configure.ac): ... and here...
10784         * modules/posix_spawn-internal (configure.ac): ... to here.
10786 2019-06-10  Bruno Haible  <bruno@clisp.org>
10788         doc: Update and improve documentation of glibc functions.
10789         This is a series of commits that
10790         - updates the documentation to the state of glibc 2.29,
10791         - adds references to Linux man pages and glibc documentation,
10792         - marks Linux specific functions as such.
10793         These are the commits:
10794         doc: Update after removal of crypt functions from glibc 2.28.
10795         doc: Remove mention of function vm86 (does not exist on x86_64).
10796         doc: Remove mention of functions that are gone from glibc.
10797         doc: Mention that glibc no longer provides h_errno.
10798         doc: Mention the availability of specific functions in glibc versions.
10799         doc: Mention eaccess.
10800         doc: Add references to Linux man pages.
10801         doc: Add references to glibc documentation.
10802         doc: Mention inotify_* functions.
10803         doc: Mention ppoll.
10804         doc: Mention sched_getcpu.
10805         doc: Mention sync_file_range.
10806         doc: Mention epoll_pwait.
10807         doc: Mention eventfd, eventfd_read, eventfd_write.
10808         doc: Mention signalfd.
10809         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10810         doc: Mention epoll_create1.
10811         doc: Mention getauxval.
10812         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10813         doc: Mention nextdown, nextup.
10814         doc: Mention more ISO TS 18661-1 <math.h> functions.
10815         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10816         doc: Mention getrandom, getentropy.
10817         doc: Mention strfromf, strfromd, strfroml.
10818         doc: Mention preadv2, pwritev2.
10819         doc: Mention copy_file_range.
10820         doc: Mention memfd_create.
10821         doc: Mention mlock2.
10822         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10823         doc: Mention more ISO TS 18661-1 <math.h> functions.
10824         doc: Mention renameat2.
10825         doc: Mention statx.
10826         doc: Mention the ISO C11 multithreading header and functions.
10827         doc: Mention getcpu.
10828         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10829         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10830         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10831         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10832         doc: Some glibc functions also exist on Solaris 11.
10833         doc: Some glibc functions also exist on Solaris 11.4.
10834         doc: Some glibc functions also exist on FreeBSD.
10835         doc: Some glibc functions also exist on BeOS.
10836         doc: Some glibc functions also exist on Haiku.
10837         doc: Mark functions which exist only on Linux.
10838         doc: Mark functions which exist only on Linux and illumos.
10840 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10842         copy-file: fix typo
10843         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10845         copy-file-range: simplify into a stub
10846         Based on a comment by Florian Weimer in:
10847         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10848         It turns out that Emacs (which will use this module) won’t need an
10849         emulation and I suspect other programs won’t either, because these
10850         programs will need to fall back on read+write anyway.  Perhaps I
10851         am wrong and other programs will be able to use an emulation; if
10852         so, this patch can be reverted.
10853         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10854         Just call it copy_file_range.
10855         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10856         Check via AC_LINK_IFELSE.
10857         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10859 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10861         copy-file: prefer copy_file_range
10862         * lib/copy-file.c: Do not include xalloc.h.
10863         (qcopy_file_preserving): Allocate a buffer only if
10864         copy_file_range does not suffice.  If the allocation fails
10865         don't give up; just use a small stack-based buffer.
10866         Prefer copy_file_range if it works.
10867         * modules/copy-file (Depends-on): Add copy-file-range.
10868         Remove xalloc.
10870         copy-file-range: new module
10871         * MODULES.html.sh: Add copy-file-range.
10872         * lib/copy-file-range.c, m4/copy-file-range.m4:
10873         * modules/copy-file-range: New files.
10874         * lib/unistd.in.h (copy_file_range): Declare.
10875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10876         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10877         * modules/unistd (unistd.h): Substitute them.
10879 2019-05-28  Bruno Haible  <bruno@clisp.org>
10881         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10882         Reported by KO Myung-Hun <komh78@gmail.com> in
10883         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10884         * lib/binary-io.h (__gl_setmode_check): Remove function.
10885         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10886         * lib/binary-io.c (__gl_setmode_check): Remove function.
10887         (set_binary_mode): Define here on DJGPP and EMX. Inline
10888         __gl_setmode_check. In case of a tty, don't return an error code.
10890 2019-05-28  James Youngman  <jay@gnu.org>
10892         dirent-safer: Make opendir_safer usable from C++.
10893         * lib/dirent-safer.h: use extern "C".
10895 2019-05-28  James Youngman  <jay@gnu.org>
10897         canonicalize: Make canonicalize_filename_mode usable from C++.
10898         * lib/canonicalize.h: use extern "C".
10900 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10902         prefix-gnulib-mk: Fix CPPFLAGS migration.
10903         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10904         _a part of the library name.
10906 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10908         flexmember: update comments again
10909         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10911         flexmember: update comment
10912         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10914 2019-05-20  Bruno Haible  <bruno@clisp.org>
10916         setlocale: Improve fallback on macOS.
10917         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10918         invocation.
10919         (locales_with_principal_territory): New array.
10920         (langcmp, get_main_locale_with_same_language): New functions.
10921         (locales_with_principal_language): New array.
10922         (terrcmp, get_main_locale_with_same_territory): New functions.
10923         (rpl_setlocale): When setlocale_single failed, try again with a locale
10924         that is more likely to exist. Don't warn if the environment variable
10925         SETLOCALE_VERBOSE is not set.
10927 2019-05-19  Bruno Haible  <bruno@clisp.org>
10929         localename: Fix default on macOS.
10930         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10931         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10932         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10933         HAVE_CFLOCALECOPYCURRENT.
10934         * lib/localename.h (gl_locale_name_default): Update.
10936 2019-05-19  Karl Berry  <karl@freefriends.org>
10938         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10939         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10940         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10942 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10944         maintainer-makefile: catch uses of $< in non-implicit rules
10945         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10947 2019-05-18  Bruno Haible  <bruno@clisp.org>
10949         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10950         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10951         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10952         gl_use_threads accordingly.
10954 2019-05-18  Bruno Haible  <bruno@clisp.org>
10956         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10957         Reported by Tim Rühsen in
10958         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10959         and Michele Locati in
10960         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10961         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10962         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10963         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10964         in use and regardless which threads API is chosen.
10966 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10968         close-stream, closein, closeout: simplify
10969         I noticed this opportunity for simplification while drafting a
10970         new, related module that I haven’t had time to finish yet.
10971         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10972         * modules/close-stream (Files): Remove m4/close-stream.m4.
10973         (configure.ac): Omit gl_CLOSE_STREAM.
10974         * modules/closein (Files): Remove m4/closein.m4
10975         (configure.ac): Omit gl_CLOSEIN.
10976         * modules/closeout (Files): Remove m4/closeout.m4.
10977         (configure.ac): Omit gl_CLOSEOUT.
10979 2019-05-12  Bruno Haible  <bruno@clisp.org>
10981         libtool-next-version: New program.
10982         * build-aux/libtool-next-version: New file.
10984 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10985             Bruno Haible  <bruno@clisp.org>
10987         version-etc: Ease translation.
10988         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10989         URLs and formatting newlines out of translatable string.
10991 2019-05-11  Bruno Haible  <bruno@clisp.org>
10993         gnupload: Explain how to create symlinks.
10994         * build-aux/gnupload (usage): Add an example that creates symlinks.
10996 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10998         fpucw: port to gcc -pedantic
10999         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
11000         Use __extension__ if using ({ ... }).
11002         crypto/af_alg: port to strict C compilers
11003         * lib/af_alg.c: Include af_alg.h regardless, so that the
11004         compilation unit is nonempty.
11006 2019-05-10  Bruno Haible  <bruno@clisp.org>
11008         base64: Avoid false positive warning from Coverity.
11009         Reported by Kamil Dudka <kdudka@redhat.com>.
11010         Idea by Paul Eggert.
11011         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
11012         '& 0x3f' to the array index expressions. This convinces Coverity that
11013         there is no out-of-bounds array reference, regardless of the input.
11015 2019-05-09  Bruno Haible  <bruno@clisp.org>
11017         gettext: Update to gettext 0.20.
11018         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
11019         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
11020         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
11021         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
11022         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
11023         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
11024         (configure.ac): Request infrastructure compatible with gettext 0.20.
11025         * m4/glibc2.m4: Remove file.
11026         * m4/intdiv0.m4: Remove file.
11027         * m4/intl.m4: Remove file.
11028         * m4/intldir.m4: Remove file.
11029         * m4/intmax.m4: Remove file.
11030         * m4/printf-posix.m4: Remove file.
11031         * m4/uintmax_t.m4: Remove file.
11032         * m4/gettext.m4: Update from gettext 0.20.
11033         * m4/po.m4: Likewise.
11035 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11037         verify: remove verify_true
11038         * NEWS: Mention this.
11039         * lib/verify.h (verify_true): Remove.
11040         * tests/test-verify.c (item): Test verify_expr, not verify_true.
11042         Support C2X and C++17 static_assert
11043         C2X and C++17 finally added support for a simple, single-argument
11044         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
11045         doing back in 2005.  Implement static_assert on older platforms.
11046         The only remaining advantage of ‘verify’ is a shorter name.
11047         * doc/posix-headers/assert.texi (assert.h):
11048         * doc/verify.texi (Compile-time Assertions):
11049         Modernize for C2X and C++17.
11050         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
11051         New macros.
11052         (_GL_HAVE__STATIC_ASSERT): Remove.
11053         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
11054         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
11055         string.  All callers changed.
11056         (_GL_VERIFY): Require 3 or more args, of which only the first 2
11057         are used.  All callers changed.
11058         (_Static_assert): Allow either 1 or 2 args, and define if
11059         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
11060         !_GL_HAVE__STATIC_ASSERT.
11061         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
11062         of defining if !_GL_HAVE_STATIC_ASSERT.
11063         (verify_expr, verify): Don’t bother trying to copy the expression
11064         into the diagnostic, since 1-argument static_assert doesn’t.
11065         (verify): Prefer 1-argument _Static_assert if it works.
11066         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
11068 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11070         Fix _GL_HAVE__STATIC_ASSERT typo
11071         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
11072         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
11074 2019-05-05  Bruno Haible  <bruno@clisp.org>
11076         wcwidth: Ensure width 1, not 2, for ambiguous characters.
11077         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
11078         via Akim Demaille <akim.demaille@gmail.com>.
11079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
11080         en_US.UTF-8 locale, since that is more likely to be present than an
11081         fr_FR.UTF-8 locale.
11082         * tests/test-wcwidth.c (main): Check the width of U+2202.
11083         * doc/posix-functions/wcwidth.texi: Mention the issue.
11085 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11087         Port manywarnings to GCC 9
11088         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
11089         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
11090         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
11091         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
11092         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
11093         --help=warnings output.
11094         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
11095         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
11096         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
11098 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11100         Sync lib/mktime-internal.h from glibc
11101         * config/srclist.txt: Add entry for lib/mktime-internal.h.
11102         * lib/mktime-internal.h: Autoupdate.
11104 2019-04-28  Bruno Haible  <bruno@clisp.org>
11106         tls tests: Prevent that the test takes too long.
11107         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
11108         (main): Let the test fail if it takes more than 10 minutes.
11109         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
11111 2019-04-27  Bruno Haible  <bruno@clisp.org>
11113         lock tests: Prevent that the test takes too long.
11114         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
11115         (main): Let the test fail if it takes more than 10 minutes.
11116         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
11118 2019-04-27  Bruno Haible  <bruno@clisp.org>
11120         localename: Fix crash on mingw (regression from 2018-11-23).
11121         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
11122         locale name that is null.
11124 2019-04-27  Bruno Haible  <bruno@clisp.org>
11126         Fix gcc warnings on 64-bit mode mingw.
11127         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
11128         * lib/gl_array_list.c: Likewise.
11129         * lib/gl_array_map.c: Likewise.
11130         * lib/gl_array_set.c: Likewise.
11131         * lib/gl_carray_list.c: Likewise.
11132         * lib/gl_sublist.c: Likewise.
11133         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
11134         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
11135         * lib/gl_hash_map.c (uintptr_t): Likewise.
11136         * lib/gl_hash_set.c (uintptr_t): Likewise.
11137         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
11138         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
11139         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
11140         * lib/iconv.c (uintptr_t): Likewise.
11141         * lib/iconv_close.c (uintptr_t): Likewise.
11142         * tests/test-lock.c: Include <stdint.h>.
11143         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
11144         'long'.
11145         * modules/clean-temp (Depends-on): Add stdint.
11146         * modules/array-list (Depends-on): Likewise.
11147         * modules/array-map (Depends-on): Likewise.
11148         * modules/array-set (Depends-on): Likewise.
11149         * modules/carray-list (Depends-on): Likewise.
11150         * modules/sublist (Depends-on): Likewise.
11151         * modules/lock-tests (Depends-on): Likewise.
11153 2019-04-27  Bruno Haible  <bruno@clisp.org>
11155         error: Tweak indentation.
11156         * lib/error.c: Correct indentation.
11158 2019-04-27  Bruno Haible  <bruno@clisp.org>
11160         term-style-control: Fix gcc warning on mingw.
11161         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
11162         of i.
11164 2019-04-26  Bruno Haible  <bruno@clisp.org>
11166         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
11167         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
11169 2019-04-26  Bruno Haible  <bruno@clisp.org>
11171         relocatable-prog: Fix gcc warning on mingw.
11172         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
11173         on EMX.
11175 2019-04-02  Bruno Haible  <bruno@clisp.org>
11177         gitsub.sh: New file.
11178         * top/gitsub.sh: New file.
11180 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
11182         argmatch: use void* for raw memory pointers
11183         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
11184         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
11185         to "values", keep char* for strings.
11187 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
11189         prefix-gnulib-mk: fix the support for gnulib-po
11190         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
11191         Don't touch HAVE_* variables.
11192         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
11194 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
11196         di-set: allow free with 'ino_map' being NULL.
11197         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
11198         is NULL.  Bug introduced in commit 3703dbbe88dd.
11199         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
11200         as a test.
11202 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11204         * lib/str-two-way.h: Fix comment typo.
11206 2019-04-13  Bruno Haible  <bruno@clisp.org>
11208         x-to-1: Restore ability to use original calling convention.
11209         * build-aux/x-to-1.in: Add comments. Accept the original form of
11210         HELP2MAN argument as well as the form expected since 2012-12-12.
11212 2019-04-13  Bruno Haible  <bruno@clisp.org>
11214         x-to-1: Avoid failure due to missing perl modules.
11215         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
11216         needs are installed.
11218 2019-04-13  Bruno Haible  <bruno@clisp.org>
11220         openmp-init: New module.
11221         * modules/openmp-init: New file.
11222         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
11223         the changes from 2019-04-09.
11225 2019-04-12  Bruno Haible  <bruno@clisp.org>
11227         signbit: Fix compilation error when gnulib's math.h exists twice.
11228         * lib/math.in.h (GNULIB_defined_signbit): New macro.
11230 2019-04-12  Bruno Haible  <bruno@clisp.org>
11232         openmp: Fix compilation error on platforms without OpenMP.
11233         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
11235 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
11237         mountlist: make parsing /proc/self/mountinfo more robust
11238         Cater for the following issues with mountinfo parsing (the first
11239         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
11240         in <https://bugs.gnu.org/35137>).
11241         1. The fields source, target, mntroot and fstype may contain characters
11242         like '\r'; sscanf(3) fails to read such values with the %s format
11243         specifier because it would stop at such characters.
11244         Example: "mount -t tmpfs tmpfs /foo^Mbar".
11245         The only true separator in that file is the ' ' character.
11246         2. The source field may be an empty string, which happens e.g. with
11247         "mount -t tmpfs '' /target".
11248         3. The fstype field may contain mangled characters as well which need
11249         unescaping.
11250         * lib/mountlist.c (terminate_at_blank): Add utility function.
11251         (read_file_system_list): In the block trying to read the mountinfo file,
11252         avoid using sscanf(3) with %s format; instead, parse the above fields
11253         separated by spaces one by one.
11254         This also handles the case when the source field is an empty string.
11255         Unescape the fstype field.
11257 2019-04-09  Bruno Haible  <bruno@clisp.org>
11259         openmp: Add workaround for 32-bit programs on AIX.
11260         * lib/omp.in.h: New file.
11261         * lib/omp-init.c: New file, based on lib/nproc.c.
11262         * m4/omp_h.m4: New file.
11263         * modules/openmp (Files): Add them.
11264         (Depends-on): Add include_next, c-ctype, setenv.
11265         (configure.ac): Invoke gl_OMP_H.
11266         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
11267         (Include): Mention <omp.h>.
11269 2019-04-09  Bruno Haible  <bruno@clisp.org>
11271         nproc: Fix return value for privileged processes.
11272         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
11273         getpid().
11275 2019-04-07  Bruno Haible  <bruno@clisp.org>
11277         Add copyright notices in several files.
11278         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
11279         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
11280         * lib/libunistring.valgrind: Likewise.
11281         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
11282         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
11283         * lib/memchr.valgrind: Likewise.
11284         * lib/memchr2.valgrind: Likewise.
11285         * lib/rawmemchr.valgrind: Likewise.
11286         * lib/relocatable.valgrind: Likewise.
11287         * lib/strchrnul.valgrind: Likewise.
11289 2019-03-25  Bruno Haible  <bruno@clisp.org>
11291         term-style-control tests: Fix link error.
11292         Reported by Tom G. Christensen in
11293         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
11294         * modules/term-style-control-tests (Makefile.am): Link
11295         test-term-style-control-hello and test-term-style-control-yes against
11296         LIBINTL.
11298 2019-03-24  Bruno Haible  <bruno@clisp.org>
11300         term-style-control: Add tests.
11301         * tests/test-term-style-control-hello.c: New file.
11302         * tests/test-term-style-control-yes.c: New file.
11303         * modules/term-style-control-tests: New file.
11305         term-style-control: New module.
11306         * lib/term-style-control.h: New file, based on libtextstyle's
11307         term-ostream.oo.h and term-ostream.oo.c.
11308         * lib/term-style-control.c: New file, based on libtextstyle's
11309         term-ostream.oo.c.
11310         * modules/term-style-control: New file.
11312 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11314         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
11315         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
11316         C++98 appears to be supported by Clang, but not by GCC nor ICC.
11318 2019-03-23  Bruno Haible  <bruno@clisp.org>
11320         Support cross-compilation to musl libc.
11321         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
11322         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
11323         musl libc.
11324         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11325         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
11326         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11327         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11328         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11329         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
11330         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11331         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11332         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11333         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11334         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11335         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
11336         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11337         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11338         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11339         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11340         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11341         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11342         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
11343         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11344         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11345         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11346         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
11347         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11349         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11350         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11351         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11352         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
11353         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11354         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11355         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11356         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11357         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11358         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11359         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
11360         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11361         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11362         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11363         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11364         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11365         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
11366         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11367         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11368         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11369         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11370         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11371         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11372         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
11373         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
11374         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
11375         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
11376         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11377         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11378         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11379         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
11380         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11381         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11382         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11383         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11384         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11386         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11387         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
11388         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11389         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11391         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
11392         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11393         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
11394         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11395         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11396         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11397         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11398         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11399         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11400         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11403 2019-03-23  Bruno Haible  <bruno@clisp.org>
11405         posix_spawn_file_actions_*: Document musl libc bugs.
11406         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11407         the bug.
11408         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
11409         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
11410         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
11411         cross-compiling to a musl system, guess no.
11412         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
11413         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11415 2019-03-23  Bruno Haible  <bruno@clisp.org>
11417         futimens: Document musl libc bug.
11418         * doc/posix-functions/futimens.texi: Mention the bug.
11419         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
11420         cross-compiling, guess no on glibc and musl systems.
11422 2019-03-23  Bruno Haible  <bruno@clisp.org>
11424         Clarify that cross-compilation guesses are guesses.
11425         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
11426         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
11427         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
11428         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
11429         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
11430         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
11431         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
11432         gl_cv_glob_lists_symlinks.
11433         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
11434         'guessing ' to ac_cv_func_malloc_0_nonnull.
11435         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
11436         'guessing ' to ac_cv_func_realloc_0_nonnull.
11437         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
11438         'guessing ' to gl_cv_func_poll.
11439         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
11440         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
11441         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
11443 2019-03-23  Bruno Haible  <bruno@clisp.org>
11445         strtold: Fix typo.
11446         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
11448 2019-03-23  Bruno Haible  <bruno@clisp.org>
11450         noreturn: In C++ mode with clang, use _Noreturn as fallback.
11451         Reported by Akim Demaille.
11452         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
11453         [[noreturn]] would not work, use _Noreturn instead.
11455 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11457         libtextstyle-optional: Fix compiler warnings.
11458         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
11459         as unused.
11461 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11463         bitset: fix memory leaks
11464         Reported by Bruno Haible.
11465         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
11466         * lib/bitset/vector.c (vbitset_free): New.
11467         (vbitset_vtable): Use it.
11469 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11471         bitset: minor changes
11472         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
11473         * lib/bitset/table.c: Formatting changes.
11474         Remove useless braces.
11475         Prefer using else in cascades of if/else-if with returns.
11476         * lib/bitset/vector.c: Reduce scopes.
11478 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11480         bitset: expose bitset_resize
11481         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
11482         * tests/test-bitset.c (check_attributes): Check bitset_resize.
11483         (main): Use a variable bitset as reference, since fixed does not support resize.
11485 2019-03-19  Bruno Haible  <bruno@clisp.org>
11487         doc: Document the 'stdnoreturn' and 'noreturn' modules.
11488         Reported by Akim Demaille.
11489         * doc/noreturn.texi: New file.
11490         * doc/gnulib.texi: Include it.
11492 2019-03-19  Bruno Haible  <bruno@clisp.org>
11494         doc: Document how to use 'static inline'.
11495         * doc/static-inline.texi: New file.
11496         * doc/gnulib.texi: Include it.
11498 2019-03-19  Bruno Haible  <bruno@clisp.org>
11500         libtextstyle-optional: Add tests.
11501         * tests/test-libtextstyle.c: New file, based on libtextstyle's
11502         adhoc-tests/hello.c.
11503         * tests/test-libtextstyle-default.css: New file, copied from
11504         libtextstyle's adhoc-tests/hello-default.css.
11505         * modules/libtextstyle-optional-tests: New file.
11507         libtextstyle-optional: New module.
11508         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
11509         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
11510         * modules/libtextstyle-optional: New file.
11512 2019-03-19  Bruno Haible  <bruno@clisp.org>
11514         c-stack: Make signal handlers more reliable.
11515         * lib/c-stack.c (progname): New variable.
11516         (die): Use it.
11517         (c_stack_action): Initialize it.
11518         (segv_handler): Save and restore errno.
11520 2019-03-19  Bruno Haible  <bruno@clisp.org>
11522         Help making signal handlers more reliable.
11523         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
11524         _GL_ASYNC_SAFE into config.h.
11525         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
11526         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
11527         argument.
11528         * lib/fatal-signal.c (action_t, uninstall_handlers,
11529         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
11530         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
11531         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
11532         _GL_ASYNC_SAFE.
11533         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
11534         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
11536 2019-03-18  Bruno Haible  <bruno@clisp.org>
11538         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
11539         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
11540         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
11542 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11544         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
11545         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
11546         GCC 4.8.
11548 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
11550         fts: minor simplification
11551         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
11553 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11555         bitset, timevar: Depend on c99.
11556         Reported by Bruno Haible.
11557         * modules/bitset, modules/timevar (Depends-on): Add c99.
11559 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11561         bitset: a bit (...) more tests
11562         * tests/test-bitset.c (check_attributes): Check zero and ones.
11564 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11566         bitset: fix overflows.
11567         Reported by Bruno Haible.
11568         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
11569         * lib/bitset/table.c (tbitset_test): last_bit is the position of
11570         the bit in the array of bitset_word, so be sure to take its modulo
11571         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
11572         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
11574 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
11576         bitset: style changes.
11577         * lib/bitset/table.c: Use NULL, not 0, for pointers.
11578         Formatting changes.
11579         (tbitset_list): Reduce scopes.
11581 2019-03-16  Bruno Haible  <bruno@clisp.org>
11583         fatal-signal: Pass the signal number to the action.
11584         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
11585         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
11586         (fatal_signal_handler): Pass the signal number to the action.
11587         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
11588         signal number as parameter.
11589         (create_temp_dir): Update.
11590         * lib/wait-process.c (cleanup_slaves_action): New function.
11591         (register_slave_subprocess): Update at_fatal_signal invocation.
11592         * NEWS: Mention the change.
11594 2019-03-16  Bruno Haible  <bruno@clisp.org>
11596         fatal-signal: Add function that lists the fatal signals.
11597         * lib/fatal-signal.h (get_fatal_signals): New declaration.
11598         * lib/fatal-signal.c (get_fatal_signals): New function.
11600 2019-03-14  Bruno Haible  <bruno@clisp.org>
11602         isatty: Make it return true in Cygwin consoles on native Windows.
11603         * lib/isatty.c: Include <string.h>.
11604         (GetProcAddress): New macro.
11605         (GetNamedPipeClientProcessIdFuncType): New type.
11606         (GetNamedPipeClientProcessIdFunc): New variable.
11607         (QueryFullProcessImageNameFuncType): New type.
11608         (QueryFullProcessImageNameFunc): New variable.
11609         (initialized): New variable.
11610         (initialize): New function.
11611         (IsCygwinConsoleHandle): New function.
11612         (isatty): Invoke it.
11613         * doc/posix-functions/isatty.texi: Mention the issue.
11615 2019-03-14  Bruno Haible  <bruno@clisp.org>
11617         all: Update URLs to msdn.microsoft.com.
11618         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
11619         was moved to docs.microsoft.com.
11621 2019-03-13  Bruno Haible  <bruno@clisp.org>
11623         gnulib-tool: Clarify the coding style.
11624         Suggested by Pavel Raiskup <praiskup@redhat.com>.
11625         * gnulib-tool: Add comment about coding style.
11627 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
11629         strtod: fix clash with strtold
11630         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
11631         * lib/strtod.c (compute_minus_zero, minus_zero):
11632         Simplify by remving the macro / external variable,
11633         and having just a function.  User changed.  This avoids
11634         the need for an external variable that might clash.
11636 2019-03-10  Bruno Haible  <bruno@clisp.org>
11638         alloca-opt: Fix conflict mingw's new <alloca.h> file.
11639         Reported by Eli Zaretskii <eliz@gnu.org>.
11640         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
11641         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
11642         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
11644 2019-03-10  Bruno Haible  <bruno@clisp.org>
11646         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
11647         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
11648         is in use.
11649         * tests/test-printf-posix2.c: Likewise.
11651 2019-03-10  Bruno Haible  <bruno@clisp.org>
11653         uninorm tests: Free allocated memory.
11654         * tests/uninorm/test-u32-normalize-big.h
11655         (struct normalization_test_file): Remove 'const' from allocated member.
11656         (free_normalization_test_file): New declaration.
11657         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
11658         memory.
11659         (free_normalization_test_file): New function.
11660         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
11661         'struct normalization_test_file' contents.
11662         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
11663         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
11664         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
11666 2019-03-10  Bruno Haible  <bruno@clisp.org>
11668         di-set: Fix memory leak.
11669         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11670         not free().
11672 2019-03-10  Bruno Haible  <bruno@clisp.org>
11674         tests: Free allocated memory.
11675         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11676         * tests/test-astrxfrm.c (main): Free allocated memory.
11677         * tests/test-bitset.c (compare, check_attributes): Free allocated
11678         bitsets.
11679         * tests/test-filenamecat.c (main): Free allocated memory.
11680         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11681         * tests/test-freadptr.c (main): Likewise.
11682         * tests/test-freadptr2.c (main): Free allocated memory.
11683         * tests/test-freadseek.c (main): Likewise.
11684         * tests/test-gc-arcfour.c (main): Close allocated context.
11685         * tests/test-gc-arctwo.c (main): Likewise.
11686         * tests/test-gc-des.c (main): Close all allocated contexts.
11687         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11688         * tests/test-pipe-filter-ii1.c (main): Likewise.
11689         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11690         allocated file actions.
11691         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11692         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11693         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11694         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11695         * tests/test-strfmon_l.c (main): Free allocated locales.
11696         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11697         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11698         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11699         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11700         * tests/unistr/test-chr.h (main): Free input32.
11701         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11703 2019-03-10  Bruno Haible  <bruno@clisp.org>
11705         tests: Prepare for using valgrind.
11706         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11707         * tests/*/*.sh: Likewise.
11708         * tests/test-freadptr.c (main): Update accordingly.
11709         * tests/test-freadseek.c (main): Likewise.
11711 2019-03-09  Bruno Haible  <bruno@clisp.org>
11713         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
11714         * lib/get-rusage-as.c (get_rusage_as): When compiled by
11715         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
11716         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
11717         before exiting.
11719 2019-03-09  Jim Meyering  <meyering@fb.com>
11721         test-userspec.c: don't print NULL
11722         * tests/test-userspec.c (main): A test release of gcc,
11723         9.0.1 20190310, warned that this test would attempt to
11724         print a NULL pointer via a %s printf format.  Fix that
11725         and remove the unnecessary preceding "!diag" conjunct.
11726         Also add a comment.
11728 2019-03-03  Bruno Haible  <bruno@clisp.org>
11730         getloadavg: Write NULL for the null pointer.
11731         Reported by Michal Privoznik <mprivozn@redhat.com>.
11732         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
11734 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
11736         alloca, tsearch-tests: Write NULL for the null pointer.
11737         * lib/alloca.c (i00afunc): Write NULL instead of 0.
11738         * tests/test-tsearch.c (mangle_tree): Likewise.
11740 2019-03-09  Bruno Haible  <bruno@clisp.org>
11742         strfmon_l: Fix -fsanitize=address finding.
11743         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
11744         <string.h>.
11745         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
11746         (directive_t, directives_t): New types.
11747         (fmon_parse): New function.
11748         (rpl_strfmon_l): Don't call va_arg more often than needed for the
11749         format string. Consume 'long double' arguments in places where the
11750         format string indicates so.
11751         * modules/strfmon_l (Depends-on): Add 'stdbool'.
11753 2019-03-09  Bruno Haible  <bruno@clisp.org>
11755         crypto/des: Fix undefined behaviour.
11756         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
11757         shift operations on 'int'.
11759 2019-03-09  Bruno Haible  <bruno@clisp.org>
11761         Fix undefined behaviour.
11762         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
11763         'unsigned int', to avoid shift operations on 'int'.
11764         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
11765         * tests/test-count-leading-zeros.c (main): Use a random number that has
11766         as many bits as TYPE, not only 2*15 or 2*31 bits.
11767         * tests/test-count-trailing-zeros.c (main): Likewise.
11768         * tests/test-count-one-bits.c (main): Likewise.
11769         * tests/test-memmem.c: Don't include "null-ptr.h".
11770         (main): Use zerosize_ptr() instead of null_ptr().
11771         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
11773 2019-03-08  Bruno Haible  <bruno@clisp.org>
11775         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
11776         Reported by Jeffrey Walton <noloader@gmail.com>.
11777         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
11778         invoke memset with a zero size.
11779         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
11780         Likewise.
11781         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
11782         Adjust accordingly.
11784 2019-03-08  Bruno Haible  <bruno@clisp.org>
11786         unistr/*, uniconv/*: Fix undefined behaviour.
11787         Reported by Jeffrey Walton <noloader@gmail.com>.
11788         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
11789         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
11790         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11791         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11793 2019-03-08  Bruno Haible  <bruno@clisp.org>
11795         unistr/u8-cmp: Fix undefined behaviour.
11796         Reported by Jeffrey Walton <noloader@gmail.com>.
11797         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
11799 2019-03-08  Bruno Haible  <bruno@clisp.org>
11801         unictype/numeric: Fix undefined behaviour.
11802         Reported by Jeffrey Walton <noloader@gmail.com>.
11803         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
11804         on shift overflow, caught by "gcc -fsanitize=undefined".
11805         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11806         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11807         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11809 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11811         git-version-gen: fix --version copyright year
11812         * build-aux/git-version-gen, build-aux/move-if-change (version):
11813         --version output copyright year is now taken from script year,
11814         so that it no longer needs to be updated by hand.
11816 2019-03-04  Bruno Haible  <bruno@clisp.org>
11818         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11819         This approach supports relocatable installation of shared libraries
11820         which depend on other shared libraries from the same package.
11821         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11822         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11823         wrapper around the original LIBTOOL.
11824         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11825         token '@loader_path' instead of '$ORIGIN'.
11826         * build-aux/libtool-reloc: New file.
11827         * modules/relocatable-prog (Files): Add it.
11828         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11829         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11830         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11831         Makefile.am, not in configure.ac.
11833 2019-03-04  Bruno Haible  <bruno@clisp.org>
11835         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11836         * build-aux/install-reloc: Revert change.
11837         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11839 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11841         nstrftime: support the ‘+’ flag
11842         * lib/nstrftime.c (add, __strftime_internal):
11843         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11844         (__strftime_internal): New arg ‘width’.  All uses changed.
11845         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11847 2019-02-24  Bruno Haible  <bruno@clisp.org>
11849         relocatable-prog: Improve verbose output.
11850         * build-aux/install-reloc (func_verbose): Escape characters that would
11851         be interpreted by the shell.
11853 2019-02-24  Bruno Haible  <bruno@clisp.org>
11855         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11856         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11857         "sys/stat.h".
11858         * lib/lstat.c: Likewise.
11859         * lib/fstat.c: Likewise.
11860         * lib/fstatat.c: Likewise.
11862 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11864         long-options: add parse_gnu_standard_options_only
11865         Discussed in https://bugs.gnu.org/33468 .
11867         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11868         (parse_gnu_standard_options_only): Add function to process
11869         the GNU default options --help and --version and fail for
11870         any other unknown long or short option. See
11871         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11872         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11873         * modules/long-options (depends-on): Add stdbool, exitfail.
11874         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11875         syntax-check rule, add new function name.
11877 2019-02-23  Bruno Haible  <bruno@clisp.org>
11879         relocatable-prog: Update documentation.
11880         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11881         the recent changes.
11883 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11885         nstrftime: tweak arg order
11886         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11887         All callers changed.  Suggested by TAMUKI Shoichi in:
11888         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11890 2019-02-23  Bruno Haible  <bruno@clisp.org>
11892         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11893         Reported by Paul Smith <psmith@gnu.org>.
11894         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11895         (func_relativize): New function, from gnulib-tool.
11896         Handle mode 'macosx' through invocations of 'otool' and
11897         'install_name_tool'.
11898         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11899         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11900         'install-reloc' invocation with mode 'macosx'.
11902 2019-02-23  Bruno Haible  <bruno@clisp.org>
11904         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11905         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11906         Hurd with glibc >= 2.27.
11908 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11910         nstrftime: merge glibc strftime changes
11911         This incorporates:
11912         2019-02-11 Fix a few whitespace arrangement inconsistencies
11913         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11914         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11915         2019-01-11 strftime: use the "L_" macro with character literals
11916         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11917         callers changed.  Default width of %Ey is now 2.  This is needed
11918         for proper handling of Japanese dates starting on 2019-05-01.
11920 2019-02-19  Bruno Haible  <bruno@clisp.org>
11922         relocatable-prog: Use $ORIGIN trick on more platforms.
11923         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11924         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11925         Solaris >= 10, Haiku. But don't use it on Android.
11926         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11927         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11929 2019-02-19  Bruno Haible  <bruno@clisp.org>
11931         progreloc: Speed up executable lookup on various platforms.
11932         * lib/progreloc.c: Include <errno.h>.
11933         (safe_read, full_read): New functions.
11934         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11935         prefer the information from the /proc file system to a PATH search.
11937 2019-02-19  Bruno Haible  <bruno@clisp.org>
11939         progreloc: Simplify code for Android.
11940         * lib/progreloc.c (executable_fd): Don't define on Android.
11941         (maybe_executable, find_executable): Don't use executable_fd on Android.
11943 2019-02-15  Bruno Haible  <bruno@clisp.org>
11945         gnulib-tool: Support --import with just a few tests, not --with-tests.
11946         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11947         'inctests' when generating files; use 'inctests' only for computing the
11948         transitive closure.
11950 2019-02-14  Bruno Haible  <bruno@clisp.org>
11952         gnulib-tool: Improve handling of multiple --local-dir options.
11953         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11954         options work.
11955         * gnulib-tool (func_path_prepend): Remove function.
11956         (func_path_foreach): Make IFS handling more robust.
11957         (local_gnulib_path): Collect --local-dir values using func_path_append,
11958         not func_path_prepend.
11959         (func_determine_path_separator): Make IFS handling more robust.
11960         (func_lookup_file_cb): New function.
11961         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11962         func_lookup_local_file. Apply the patches in the reverse order of their
11963         origin in $local_gnulib_path.
11964         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11965         * NEWS: Mention that the first --local-dir option is the one with
11966         highest priority.
11968 2019-02-10  Bruno Haible  <bruno@clisp.org>
11970         libtextstyle: New module.
11971         * m4/libtextstyle.m4: New file.
11972         * modules/libtextstyle: New file.
11974 2019-02-05  Bruno Haible  <bruno@clisp.org>
11976         declared.sh: Fix bug with variables of pointer type.
11977         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11978         before the symbol to be omitted if the preceding character is a '*'.
11980 2019-02-04  Bruno Haible  <bruno@clisp.org>
11982         Add script for running tests under valgrind.
11983         * build-aux/run-test: New file, from GNU libunistring.
11984         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11985         as well.
11987 2019-02-04  Bruno Haible  <bruno@clisp.org>
11989         declared.sh: Fix --version output.
11990         * build-aux/declared.sh (func_version): Update package name.
11992 2019-02-03  Bruno Haible  <bruno@clisp.org>
11994         Add script for determining the set of symbols to export from a library.
11995         * build-aux/declared.sh: New file, from GNU libunistring.
11996         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11997         Mention it.
11999 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12001         vla: add commentary about VLA_ELEMS
12002         * lib/vla.h (VLA_ELEMS): Add commentary,
12003         some inspired by Bruno Haible’s proposal in:
12004         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
12006         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
12007         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
12008         assume the C99 signatures for strtod and strtold.  Programs that
12009         require stricter adherence to C99 should also use the strtod and
12010         strtold modules as needed, and we no longer need the
12011         HAVE_C99_STRTOLD macro.
12012         * NEWS: Mention this.
12013         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
12014         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
12015         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
12016         (Files): Remove m4/c-strtod.m4.
12017         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
12018         exists.
12020 2019-02-02  Bruno Haible  <bruno@clisp.org>
12022         fma: Improve code style.
12023         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
12025 2019-02-02  Colin Watson  <cjwatson@debian.org>
12027         *-map tests: Fix compilation error.
12028         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
12029         * tests/test-hash_map.c: Likewise.
12030         * tests/test-linkedhash_map.c: Likewise.
12032 2019-01-31  Bruno Haible  <bruno@clisp.org>
12034         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
12035         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
12036         GNULIB_defined_strtold_function): New macros.
12037         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
12038         (STRTOD): Ignore HAVE_C99_STRTOLD.
12039         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
12040         deemed buggy. But do use it on platforms where uselocale exists and is
12041         usable.
12042         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
12043         deemed buggy. On platforms where uselocale exists and is usable, use
12044         uselocale and strtod/strtold.
12045         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
12046         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
12047         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
12048         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
12049         (Depends-on): Add strtod.
12050         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
12051         (Depends-on): Add strtold.
12053 2019-01-31  Bruno Haible  <bruno@clisp.org>
12055         strtod, strtold: Use the locale's decimal point.
12056         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
12057         (decimal_point_char): New function, copied from lib/vasnprintf.c.
12058         (parse_number): Add a radixchar argument. Use it instead of '.'.
12059         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
12060         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
12061         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
12062         * tests/test-strtod1.c: New file.
12063         * tests/test-strtod1.sh: New file.
12064         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
12065         locale-fr.m4 and its dependencies.
12066         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12067         (Makefile.am): Arrange to compile test-strtod1.c and run
12068         test-strtod1.sh.
12069         * tests/test-strtold1.c: New file.
12070         * tests/test-strtold1.sh: New file.
12071         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
12072         locale-fr.m4 and its dependencies.
12073         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12074         (Makefile.am): Arrange to compile test-strtold1.c and run
12075         test-strtold1.sh.
12077 2019-01-31  Bruno Haible  <bruno@clisp.org>
12079         strtod, strtold tests: Simplify tests.
12080         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
12081         * tests/test-strtold.c (main): Likewise.
12083 2019-01-31  Bruno Haible  <bruno@clisp.org>
12085         strtod, strtold: Avoid unnecessary rounding errors.
12086         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
12087         decimal to DOUBLE conversion.
12089 2019-01-31  Bruno Haible  <bruno@clisp.org>
12091         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
12092         * lib/strtod.c (STRTOD): When there is an extra character after the
12093         exponent marker 'p', reparse the number.
12094         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
12095         * doc/posix-functions/strtold.texi: Likewise.
12097 2019-01-29  Bruno Haible  <bruno@clisp.org>
12099         strtold: Add tests.
12100         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
12101         * modules/strtold-tests: New file.
12103 2019-01-29  Bruno Haible  <bruno@clisp.org>
12105         strtold: New module.
12106         * lib/stdlib.in.h (strtold): New declaration.
12107         * lib/strtold.c: New file.
12108         * lib/strtod.c: Consider USE_LONG_DOUBLE.
12109         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
12110         USE_LDEXP): New macros.
12111         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
12112         USE_LONG_DOUBLE.
12113         (underlying_strtod): Remove function. Replace with some macros.
12114         Re-add the code for a missing underlying function that was removed on
12115         2013-02-19.
12116         * m4/strtold.m4: New file.
12117         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
12118         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
12119         REPLACE_STRTOLD.
12120         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
12121         REPLACE_STRTOLD.
12122         * modules/strtold: New file.
12123         * doc/posix-functions/strtold.texi: Document the new module.
12125 2019-01-29  Bruno Haible  <bruno@clisp.org>
12127         strtod: Fix compilation error on IRIX 6.5.
12128         * modules/strtod (Depends-on): Add 'math'.
12130 2019-01-28  Bruno Haible  <bruno@clisp.org>
12132         Fix build error when building a shared libunistring on Android.
12133         * tests/uninorm/test-nfc.c (n): Don't define on Android.
12134         (main): Add 'volatile', to defeat a GCC optimization that would
12135         eliminate the reference.
12136         * tests/uninorm/test-nfd.c (n): Don't define on Android.
12137         (main): Add 'volatile', to defeat a GCC optimization that would
12138         eliminate the reference.
12139         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
12140         (main): Add 'volatile', to defeat a GCC optimization that would
12141         eliminate the reference.
12142         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
12143         (main): Add 'volatile', to defeat a GCC optimization that would
12144         eliminate the reference.
12146 2019-01-27  Bruno Haible  <bruno@clisp.org>
12148         Avoid build errors due to wrong references between modules.
12149         * lib/uninorm/canonical-decomposition.c: Include
12150         "uninorm/decomposition-table.h", not "decomposition-table.h".
12151         * lib/uninorm/decomposition.c: Likewise.
12152         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
12153         not "decompose-internal.h".
12154         * lib/uninorm/u16-normalize.c: Likewise.
12155         * lib/uninorm/u32-normalize.c: Likewise.
12156         * lib/uninorm/uninorm-filter.c: Likewise.
12157         * lib/uninorm/nfkc.c: Likewise.
12158         * lib/uninorm/nfkd.c: Likewise.
12159         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
12160         "caseprop.h".
12161         * lib/unicase/u8-ct-totitle.c: Likewise.
12162         * lib/unicase/u8-prefix-context.c: Likewise.
12163         * lib/unicase/u8-suffix-context.c: Likewise.
12164         * lib/unicase/u16-casemap.c: Likewise.
12165         * lib/unicase/u16-ct-totitle.c: Likewise.
12166         * lib/unicase/u16-prefix-context.c: Likewise.
12167         * lib/unicase/u16-suffix-context.c: Likewise.
12168         * lib/unicase/u32-casemap.c: Likewise.
12169         * lib/unicase/u32-ct-totitle.c: Likewise.
12170         * lib/unicase/u32-prefix-context.c: Likewise.
12171         * lib/unicase/u32-suffix-context.c: Likewise.
12172         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
12173         "unicasemap.h".
12174         * lib/unicase/u8-toupper.c: Likewise.
12175         * lib/unicase/u8-ct-tolower.c: Likewise.
12176         * lib/unicase/u8-ct-toupper.c: Likewise.
12177         * lib/unicase/u16-tolower.c: Likewise.
12178         * lib/unicase/u16-toupper.c: Likewise.
12179         * lib/unicase/u16-ct-tolower.c: Likewise.
12180         * lib/unicase/u16-ct-toupper.c: Likewise.
12181         * lib/unicase/u32-tolower.c: Likewise.
12182         * lib/unicase/u32-toupper.c: Likewise.
12183         * lib/unicase/u32-ct-tolower.c: Likewise.
12184         * lib/unicase/u32-ct-toupper.c: Likewise.
12185         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
12186         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
12187         * lib/unicase/u16-ct-casefold.c: Likewise.
12188         * lib/unicase/u32-ct-casefold.c: Likewise.
12190 2019-01-27  Bruno Haible  <bruno@clisp.org>
12192         gperf: Fix error when this module is required by some test module.
12193         * modules/gperf (Applicability): Set to 'all'.
12195 2019-01-27  Bruno Haible  <bruno@clisp.org>
12197         tmpfile: Add support for Android.
12198         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
12199         works.
12200         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
12201         Android.
12202         * modules/tmpfile (Depends-on): Add 'stdbool'.
12203         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
12204         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
12206 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
12208         bitsetv: allow free on NULL.
12209         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
12211 2019-01-27  Bruno Haible  <bruno@clisp.org>
12213         test-framework-sh: Improve maintainability.
12214         * tests/init.sh: Clarify what belongs together. Reorder definitions.
12216 2019-01-27  Bruno Haible  <bruno@clisp.org>
12218         tests: Don't assume that /tmp exists.
12219         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
12220         * tests/test-copy-acl-1.sh: Likewise.
12221         * tests/test-file-has-acl-1.sh: Likewise.
12222         * tests/test-copy-file-1.sh: Likewise.
12224 2019-01-27  Bruno Haible  <bruno@clisp.org>
12226         tests: Accommodate a shell that is not in /bin/sh.
12227         * tests/init.sh (setup_): Set srcdir and builddir.
12228         (BOURNE_SHELL): New variable.
12229         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
12230         * modules/file-has-acl-tests (Depends-on): Likewise.
12231         * modules/copy-file-tests (Depends-on): Likewise.
12232         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
12233         scripts through $BOURNE_SHELL.
12234         * tests/test-set-mode-acl-2.sh: Likewise.
12235         * tests/test-copy-acl-1.sh: Likewise.
12236         * tests/test-copy-acl-2.sh: Likewise.
12237         * tests/test-file-has-acl-1.sh: Likewise.
12238         * tests/test-file-has-acl-2.sh: Likewise.
12239         * tests/test-copy-file-1.sh: Likewise.
12240         * tests/test-copy-file-2.sh: Likewise.
12241         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
12242         invoker.
12243         * tests/test-copy-acl.sh (builddir): Likewise.
12244         * tests/test-file-has-acl.sh (builddir): Likewise.
12245         * tests/test-copy-file.sh (builddir): Likewise.
12246         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
12247         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
12248         * tests/test-vc-list-files-git.sh: Likewise.
12250 2019-01-27  Bruno Haible  <bruno@clisp.org>
12252         tests: Fix some "unused variable" warnings.
12253         * tests/test-fts.c (fts_dealloc): Remove unused variable.
12254         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
12255         * tests/test-striconveh.c (main): Move some variable into the
12256         '#if HAVE_ICONV'.
12257         * tests/test-striconveha.c (main): Likewise.
12258         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12259         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12260         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12261         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
12262         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12263         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12264         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12265         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12266         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12267         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
12268         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
12269         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
12270         * tests/test-tsearch.c (main): Move some variable into the
12271         '#if HAVE_INITSTATE'.
12273 2019-01-27  Bruno Haible  <bruno@clisp.org>
12275         unigbrk/uc-grapheme-breaks: Fix build failure.
12276         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
12277         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
12279 2019-01-27  Bruno Haible  <bruno@clisp.org>
12281         mountlist: Merge two .m4 files.
12282         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
12283         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
12284         * m4/ls-mntd-fs.m4: Remove file.
12285         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
12287 2019-01-27  Bruno Haible  <bruno@clisp.org>
12289         tests: Enable Linux specific tests on Android.
12290         * tests/test-flock.c (main): Treat Android like Linux.
12291         * tests/test-openat-safer.c (main): Likewise.
12293 2019-01-27  Bruno Haible  <bruno@clisp.org>
12295         relocatable-prog: Use Linux code on Android.
12296         * lib/progreloc.c: Treat Android like Linux.
12298 2019-01-26  Bruno Haible  <bruno@clisp.org>
12300         getloadavg: Add support for Android.
12301         * lib/getloadavg.c: Treat Android like Linux.
12303 2019-01-26  Bruno Haible  <bruno@clisp.org>
12305         vma-iter: Add support for Android.
12306         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
12307         * lib/vma-iter.c: Treat Android like Linux.
12308         * lib/get-rusage-data.c (get_rusage_data): Likewise.
12310 2019-01-26  Bruno Haible  <bruno@clisp.org>
12312         fts: Optimize on Android.
12313         * lib/fts.c: Treat Android like Linux.
12315 2019-01-26  Bruno Haible  <bruno@clisp.org>
12317         fts: Add support for Android.
12318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
12319         defined by this module and the ones in libc.
12320         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
12322 2019-01-26  Bruno Haible  <bruno@clisp.org>
12324         mountlist: Use Linux code on Android.
12325         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
12326         (unescape_tab, read_file_system_list): Enable Linux code on Android
12327         as well.
12328         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
12329         and endmntent.
12330         * modules/mountlist (Depends-on): Add 'getline'.
12332 2019-01-26  Bruno Haible  <bruno@clisp.org>
12334         localename tests: Fix test failure on Android.
12335         * modules/localename-tests (Depends-on): Add 'setlocale'.
12337 2019-01-26  Bruno Haible  <bruno@clisp.org>
12339         mountlist: Port better to Android.
12340         * lib/mountlist.c (MOUNTED): Redefine on Android.
12341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
12342         Android.
12344 2019-01-26  Bruno Haible  <bruno@clisp.org>
12346         striconveh: Fix use of uninitialized iconv_t.
12347         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
12348         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
12349         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
12351 2019-01-26  Bruno Haible  <bruno@clisp.org>
12353         nonblocking-socket-tests: Fix test failure on Android 4.3.
12354         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
12355         also on Android.
12357 2019-01-26  Bruno Haible  <bruno@clisp.org>
12359         sh-filename: Add support for Android 4.3.
12360         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
12362 2019-01-26  Bruno Haible  <bruno@clisp.org>
12364         ptsname_r: Work around bug on Android 4.3.
12365         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
12366         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
12367         correct.
12368         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
12369         is defined, just fix the return value.
12370         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
12371         The behaviour of musl libc is nothing to be "fixed", since it is
12372         compliant with the next POSIX standard.
12374 2019-01-26  Bruno Haible  <bruno@clisp.org>
12376         ttyname_r: Work around bug on Android 4.3.
12377         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
12378         * lib/ttyname_r.c (ttyname_r): Implement for Android.
12379         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
12380         * doc/posix-functions/ttyname.texi: Likewise.
12382 2019-01-25  Bruno Haible  <bruno@clisp.org>
12384         getprogname: Port to Android 4.3.
12385         * lib/getprogname.c (getprogname): On Android, take only the last
12386         component of __progname.
12388 2019-01-25  Bruno Haible  <bruno@clisp.org>
12390         wcrtomb: Work around bug on Android 4.3.
12391         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
12392         the C locale.
12393         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
12394         which does not have the 'wctomb' function.
12395         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
12396         * tests/test-wcrtomb.c (main): Accept argument '5'.
12397         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
12399 2019-01-25  Bruno Haible  <bruno@clisp.org>
12401         setlocale: Work around bug on Android 4.3.
12402         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
12403         the "C" locale.
12404         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
12405         * doc/posix-functions/setlocale.texi: Mention the Android bug.
12407 2019-01-24  Bruno Haible  <bruno@clisp.org>
12409         memchr: Work around bug on Android <= 5.0.
12410         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
12411         * doc/posix-functions/memchr.texi: Mention the Android bug.
12413 2019-01-24  Bruno Haible  <bruno@clisp.org>
12415         random: Fix compilation error on Android 4.3.
12416         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
12417         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
12418         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
12419         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
12420         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
12422         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12423         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
12424         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12425         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
12426         REPLACE_INITSTATE, REPLACE_SETSTATE.
12427         * doc/posix-functions/random.texi: Correct the description of the
12428         situation on Android.
12429         * doc/posix-functions/srandom.texi: Likewise.
12430         * doc/posix-functions/rand.texi: Likewise.
12431         * doc/posix-functions/srand.texi: Likewise.
12433 2019-01-24  Bruno Haible  <bruno@clisp.org>
12435         mbtowc: Fix compilation error on Android 4.3.
12436         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
12437         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
12438         HAVE_MBTOWC.
12439         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
12440         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
12441         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
12442         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
12443         * doc/posix-functions/mbtowc.texi: Mention the change.
12445 2019-01-24  Bruno Haible  <bruno@clisp.org>
12447         fdatasync: Fix compilation error on Android 4.3.
12448         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
12449         test whether fdatasync() exists.
12451 2019-01-24  Bruno Haible  <bruno@clisp.org>
12453         unlinkat: Fix compilation error on Android 4.3.
12454         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
12455         also on Android.
12456         * doc/posix-functions/unlinkat.texi: Mention the issue.
12458 2019-01-24  Bruno Haible  <bruno@clisp.org>
12460         renameat: Fix compilation error on Android 4.3.
12461         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
12462         * doc/posix-functions/renameat.texi: Mention the issue.
12464 2019-01-24  Bruno Haible  <bruno@clisp.org>
12466         fchownat: Fix compilation error on Android 4.3.
12467         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
12468         use.
12469         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
12470         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
12471         * doc/posix-functions/fchownat.texi: Mention the issue.
12473 2019-01-23  Bruno Haible  <bruno@clisp.org>
12475         gnulib-tool: Support running testdirs on Android.
12476         * build-aux/test-driver.diff: New file.
12477         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
12478         build-aux/test-driver after running automake.
12480 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12482         relocatable-prog: avoid warnings from Automake
12483         * modules/relocatable-prog: Don't declare PHONY dependencies in
12484         Automake conditionals.
12486 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12488         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
12489         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
12491 2019-01-23  Bruno Haible  <bruno@clisp.org>
12493         threadlib: Revert commit from 2018-06-25. We now have a better fix.
12494         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
12495         preceding -Wl,--as-needed option. Don't check whether the linker
12496         supports --as-needed/--no-as-needed and --push-state/--pop-state.
12498 2019-01-23  Bruno Haible  <bruno@clisp.org>
12500         thread: Force linking with -lpthread, even when --as-needed is in use.
12501         Reported by Richard W.M. Jones <rjones@redhat.com> in
12502         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
12503         * lib/glthread/thread.h (pthread_create): Don't declare weak.
12505 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
12506             Bruno Haible  <bruno@clisp.org>
12508         relocatable: avoid compiler warnings (-Wshadow)
12509         * lib/relocatable.c (compute_curr_prefix): Rename local variables
12510         to avoid name collisions with global variables.
12512 2019-01-22  Bruno Haible  <bruno@clisp.org>
12514         vasnprintf: Don't use %n on Android.
12515         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
12516         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
12517         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
12519 2019-01-22  Bruno Haible  <bruno@clisp.org>
12521         *printf: Support cross-compilation to Android.
12522         * m4/printf.m4: Add cross-compilation guesses for Android.
12524 2019-01-21  Bruno Haible  <bruno@clisp.org>
12526         diacrit: Mark deprecated.
12527         * modules/diacrit (Status, Notice): Mark as deprecated.
12528         * NEWS: Mention it.
12530 2019-01-20  Bruno Haible  <bruno@clisp.org>
12532         rintl: Override broken implementation on NetBSD.
12533         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
12534         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
12535         REPLACE_RINTL.
12536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
12537         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
12538         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
12539         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
12541 2019-01-20  Bruno Haible  <bruno@clisp.org>
12543         log10l: Work around inaccurate implementation on NetBSD.
12544         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
12545         * lib/log10l.c: Comment out too simplistic override.
12546         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
12548 2019-01-20  Bruno Haible  <bruno@clisp.org>
12550         logl: Work around inaccurate implementation on NetBSD.
12551         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
12552         * lib/logl.c: Comment out unused code.
12553         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
12555 2019-01-20  Bruno Haible  <bruno@clisp.org>
12557         expm1l: Work around inaccurate implementation on NetBSD.
12558         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
12559         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
12560         REPLACE_EXPM1L.
12561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
12562         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
12563         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
12564         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
12566 2019-01-20  Bruno Haible  <bruno@clisp.org>
12568         expl: Work around inaccurate implementation on NetBSD.
12569         * lib/math.in.h (expl): Test also REPLACE_EXPL.
12570         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
12571         REPLACE_EXPL.
12572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
12573         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
12574         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
12575         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
12577 2019-01-20  Bruno Haible  <bruno@clisp.org>
12579         exp2l: Work around inaccurate implementation on NetBSD.
12580         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
12581         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
12583 2019-01-20  Bruno Haible  <bruno@clisp.org>
12585         floor, floorl: Avoid autoconf warnings.
12586         * modules/floor (configure.ac): Use AC_REQUIRE.
12587         * modules/floorl (configure.ac): Likewise.
12589 2019-01-20  Bruno Haible  <bruno@clisp.org>
12591         Defeat current GCC optimizations in math autoconf tests.
12592         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
12593         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12594         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12595         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12596         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12597         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12598         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12599         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12600         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12601         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12602         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12603         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12604         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12605         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12606         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12607         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12608         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
12609         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12610         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12611         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12612         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12613         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12614         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12615         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12616         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12617         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12618         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12619         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12620         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12621         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12622         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12623         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12624         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12626         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12627         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12628         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12629         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12631 2019-01-19  Pádraig Brady  <P@draigBrady.com>
12633         gettext: support disabling use of VLAs
12634         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
12636 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12638         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
12639         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
12641 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12643         fcntl: Fix syntax error (regression from 2018-10-05).
12644         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
12646 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12648         relocatable: improve documentation.
12649         * doc/relocatable-maint.texi (Supporting Relocation): For
12650         substitutions performed by config.status, we need more variables
12651         (for instance datarootdir defaults to '${prefix}/share' so we need
12652         prefix).
12654 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12656         backup: update dependencies
12657         * modules/backup-rename (Depends-on): It now depends on opendirat
12658         instead of opendir.  It also uses stdint, and xalloc-oversized.
12659         But no longer dirfd.
12660         * modules/backupfile (Depends-on): Add xalloc-oversized.
12662 2019-01-13  Bruno Haible  <bruno@clisp.org>
12664         getcwd: Fix test failure when building on a Linux 9p file system.
12665         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
12666         EINVAL from mkdir like ENAMETOOLONG.
12667         * tests/test-getcwd.c (test_long_name): Likewise.
12669 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12671         Fix typos found by codespell.
12672         * lib/*.[hc]: Fix typos in comments.
12673         * pygnulib/*.py: Fix typos in error messages and comments.
12675 2019-01-12  Bruno Haible  <bruno@clisp.org>
12677         doc: Fix documentation about container data types.
12678         Reported by Werner Lemberg <wl@gnu.org>.
12679         * doc/containers.texi (Container data types): Fix typo.
12681 2019-01-10  Bruno Haible  <bruno@clisp.org>
12683         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12684         Reported by Reuben Thomas <rrt@sc3d.org>.
12685         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12687 2019-01-06  Bruno Haible  <bruno@clisp.org>
12689         maintainer-makefile: Make the configure.ac section optional.
12690         * top/maint.mk (GREP, SED): Define if not defined.
12692 2019-01-06  Bruno Haible  <bruno@clisp.org>
12694         localename: Assume setlocale function.
12695         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12696         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12698 2019-01-06  Bruno Haible  <bruno@clisp.org>
12700         doc: Add documentation about container data types.
12701         * doc/containers.texi: New file.
12702         * doc/gnulib.texi (Particular Modules): Include it.
12704 2019-01-06  Bruno Haible  <bruno@clisp.org>
12706         doc: Update documentation about 'progname' module.
12707         * doc/progname.texi: Rename from doc/error.texi. Change node name and
12708         title. Rewrite.
12709         * doc/gnulib.texi (Particular Modules): Update.
12711 2019-01-06  Bruno Haible  <bruno@clisp.org>
12713         doc: Document the xstdopen and *-safer modules.
12714         * doc/xstdopen.texi: New file.
12715         * doc/gnulib.texi (Particular Modules): Include it.
12717 2019-01-06  Bruno Haible  <bruno@clisp.org>
12719         xstdopen: Add tests.
12720         * tests/test-xstdopen.c: New file.
12721         * tests/test-xstdopen.sh: New file.
12722         * modules/xstdopen-tests: New file.
12724         xstdopen: New module.
12725         * lib/xstdopen.h: New file.
12726         * lib/xstdopen.c: New file.
12727         * modules/xstdopen: New file.
12729 2019-01-06  Bruno Haible  <bruno@clisp.org>
12731         stdopen: Fix compilation error with IRIX cc.
12732         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
12734 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12736         xfreopen need not include stdio--.h
12737         * lib/xfreopen.c: Do not include stdio--.h.
12739         xfreopen need not depend on freopen-safer
12740         * modules/xfreopen (Depends-on):
12741         Depend on freopen, not freopen-safer.
12743         stdopen: modernize and simplify
12744         * lib/stdopen.c: Update copyright date
12745         Do not include sys/types.h; no longer needed these days.
12746         (stdopen): Use C99-style decl in loop.  Return int errno
12747         value, rather than just a bool.  Do not worry about fd mismatches,
12748         since the caller cares only if 0, 1, 2 are occupied.
12749         * lib/stdopen.h: No need to include <stdbool.h>.
12750         * m4/stdopen.m4: Remove.
12751         * modules/stdopen: New file.
12753         stdopen: copy from last use in coreutils
12754         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
12755         New files, taken from their last commit in coreutils
12756         2007-07-23T12:35:58Z!jim@meyering.net
12757         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
12759 2019-01-05  Bruno Haible  <bruno@clisp.org>
12761         argp: Don't pass an invalid argument to dgettext().
12762         Reported by He X <xw897002528@gmail.com>.
12763         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
12764         dgettext().
12766 2019-01-05  Bruno Haible  <bruno@clisp.org>
12768         argp: Don't pass an invalid argument to dgettext().
12769         Reported by He X <xw897002528@gmail.com>.
12770         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
12771         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
12772         dgettext().
12774 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12776         stdioext: port to newer 32-bit Android
12777         Problem reported by Tom Yan in:
12778         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
12779         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
12780         (fp_) [__ANDROID__]: Use it.
12782 2019-01-04  Bruno Haible  <bruno@clisp.org>
12784         lock: Fix link error with --enable-threads=pth.
12785         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
12786         Mark as weak.
12788 2019-01-04  Bruno Haible  <bruno@clisp.org>
12790         Fix link errors in unit tests.
12791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12792         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
12793         * modules/array-map-tests (Makefile.am): Link test-array_map against
12794         libintl.
12795         * modules/array-set-tests (Makefile.am): Link test-array_set against
12796         libintl.
12797         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
12798         libintl.
12799         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
12800         libintl.
12801         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
12802         against libintl.
12803         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
12804         against libintl.
12806 2019-01-04  Bruno Haible  <bruno@clisp.org>
12808         Fix incorrect 'Link' sections.
12809         * modules/regex (Link): Mention the link requirement of module 'lock'.
12810         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12812 2019-01-04  Bruno Haible  <bruno@clisp.org>
12814         Fix some 'Link' sections.
12815         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12816         dependency.
12817         * modules/getaddrinfo (Link): Likewise.
12819 2019-01-04  Bruno Haible  <bruno@clisp.org>
12821         Remove redundant 'Link' sections.
12822         * modules/canon-host (Link): Remove section.
12823         * modules/timevar (Link): Likewise.
12825 2019-01-04  Bruno Haible  <bruno@clisp.org>
12827         Remove incorrect 'Link' sections.
12828         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12829         the dependencies instead.
12830         * modules/crypto/md5 (Link): Likewise.
12831         * modules/crypto/sha1 (Link): Likewise.
12832         * modules/crypto/sha256 (Link): Likewise.
12833         * modules/crypto/sha512 (Link): Likewise.
12834         * modules/faccessat (Link): Likewise.
12835         * modules/fdutimensat (Link): Likewise.
12836         * modules/iconv_open-utf (Link): Likewise.
12837         * modules/propername (Link): Likewise.
12838         * modules/qacl (Link): Likewise.
12839         * modules/unicodeio (Link): Likewise.
12840         * modules/utimecmp (Link): Likewise.
12841         * modules/utimensat (Link): Likewise.
12842         * modules/xstriconv (Link): Likewise.
12843         * modules/xstriconveh (Link): Likewise.
12845 2019-01-04  Bruno Haible  <bruno@clisp.org>
12847         gnulib-tool: New option --extract-recursive-link-directive.
12848         * gnulib-tool (func_usage): Document the new options
12849         --extract-recursive-dependencies, --extract-recursive-link-directive.
12850         (func_verify_module): Document output variables.
12851         (func_get_dependencies_recursively): New function.
12852         (func_get_link_directive_recursively): New function.
12853         Use them to implement the new options
12854         --extract-recursive-dependencies, --extract-recursive-link-directive.
12855         * doc/gnulib-tool.texi (Link-time requirements): New section.
12857 2019-01-04  Bruno Haible  <bruno@clisp.org>
12859         Clarify meaning of 'Link' section in module description.
12860         * doc/gnulib.texi (Module description): Clarify the meaning of the
12861         'Link' section versus the one of the dependencies.
12862         * NEWS: Mention the change.
12864 2019-01-04  Bruno Haible  <bruno@clisp.org>
12866         pselect: Fix module description.
12867         * modules/pselect (Link): Put one link option per line.
12869 2019-01-04  Bruno Haible  <bruno@clisp.org>
12871         cosl: Fix module description.
12872         * modules/cosl (Link): Fix typo.
12873         * modules/mathl (configure.ac): Likewise.
12875 2019-01-04  Bruno Haible  <bruno@clisp.org>
12877         c-xvasprintf: Fix module dependencies.
12878         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12880 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12882         bootstrap: die when some submodules are not initialized
12883         * build-aux/bootstrap: Make sure all submodules are initialized.
12885 2019-01-04  Bruno Haible  <bruno@clisp.org>
12887         bitsetv: Fix module dependencies.
12888         * lib/bitsetv.c: Include xalloc.h.
12889         * modules/bitsetv (Depends-on): Add 'xalloc'.
12891 2019-01-04  Bruno Haible  <bruno@clisp.org>
12893         xmemdup0: Remove redundant code.
12894         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12896 2019-01-04  Bruno Haible  <bruno@clisp.org>
12898         backupfile: Fix module dependencies.
12899         * modules/backupfile (Depends-on): Add 'xalloc'.
12901 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12903         bitset, crypto/gc: fix conflicts with Solaris 11
12904         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12905         avoid clash with Solaris 11 <sys/bitset.h>.
12906         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12907         with Solaris 11 <xorg/gc.h>.
12909 2019-01-04  Bruno Haible  <bruno@clisp.org>
12911         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12912         Reported by Andy Fiddaman <andy@omniosce.org>.
12913         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12915 2019-01-03  Eric Blake  <eblake@redhat.com>
12917         maintainer-makefile: fix typo in previous patch
12918         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12919         of Roman's work.
12921 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12923         maintainer-makefile: prefer $(GREP) over grep
12924         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12925         defined.
12926         * top/maint.mk: Use it everywhere.
12928         maintainer-makefile: split long argument lines
12929         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12930         it would be too long for exec limits on BSD.
12932 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12934         mkfifo: bring back HAVE_MKFIFO macro
12935         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12936         Problem reported by Andrew Janke in:
12937         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12939 2018-12-21  Bruno Haible  <bruno@clisp.org>
12941         Assume Autoconf >= 2.63.
12942         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12943         versions < 2.60.
12945 2018-12-21  Bruno Haible  <bruno@clisp.org>
12947         memcmp: Mention the clang bug.
12948         * tests/test-memcmp.c: Add comment about a known test failure.
12949         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12951 2018-12-20  Jim Meyering  <meyering@fb.com>
12953         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12954         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12955           echo '123-x'|LC_ALL=C grep -E '.\bx'
12956         The goal is to revert the first, but reverting it requires to restore
12957         the function deleted in the second. I ran this to restore the deleted
12958         function:
12959           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12960             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12961             | patch -R -p1
12962         * lib/dfa.c (charclass_context): Restore deleted function.
12963         Reverting the primary commit removes this change:
12964         dfa: Simplify a building state
12965         * lib/dfa.c (build_state): Simplify a building state.
12967 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12969         version-etc: allow zero authors
12970         * lib/version-etc.c (version_etc_arn): If no authors are given,
12971         omit authorship info instead of dumping core.
12973 2018-12-19  Bruno Haible  <bruno@clisp.org>
12975         lchown tests: Be more permissive regarding errno values.
12976         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12977         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12978         alternative to ENOSYS.
12979         * modules/lchown-tests (Depends-on): Add 'errno'.
12980         * modules/fchownat-tests (Depends-on): Likewise.
12982 2018-12-18  Bruno Haible  <bruno@clisp.org>
12984         duplocale: Avoid test failure on AIX 7.
12985         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12986         (configure.ac): Invoke gt_FUNC_USELOCALE.
12987         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12988         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12989         works.
12991 2018-12-18  Bruno Haible  <bruno@clisp.org>
12993         localename: Fix test failure on AIX 7.
12994         Reported by Assaf Gordon in
12995         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12996         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12997         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12998         instead of ac_cv_func_uselocale.
12999         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
13000         HAVE_USELOCALE.
13001         * lib/localename-table.h: Likewise.
13002         * lib/localename-table.c: Likewise.
13003         * tests/test-localename.c: Likewise.
13004         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
13006 2018-12-18  Bruno Haible  <bruno@clisp.org>
13008         localename: Update comments regarding Cygwin.
13009         * lib/localename.c: Update comment.
13010         * doc/posix-functions/uselocale.texi: Update platforms list.
13011         * doc/posix-functions/newlocale.texi: Likewise.
13012         * doc/posix-functions/duplocale.texi: Likewise.
13013         * doc/posix-functions/freelocale.texi: Likewise.
13015 2018-12-16  Bruno Haible  <bruno@clisp.org>
13017         c-stack: Fix for Linux/sparc.
13018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
13019         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
13021 2018-12-16  Bruno Haible  <bruno@clisp.org>
13023         localename: Avoid test failure on some glibc systems.
13024         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
13025         Unset environment variables that might disturb the first setlocale call,
13026         and verify that this setlocale call succeeds.
13028 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
13030         random: Fix build error on native Windows (regression from 2018-06-21).
13031         * lib/random.c (__srandom, __initstate, __setstate, __random,
13032         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
13033         to the symbols without '__' prefix.
13035 2018-12-16  Bruno Haible  <bruno@clisp.org>
13037         obstack, libc-config: Support HP-UX cc in C99 mode.
13038         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
13039         compiler, even when in C99 mode.
13040         * lib/cdefs.h (__flexarr): Likewise.
13041         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
13043 2018-12-16  Bruno Haible  <bruno@clisp.org>
13045         localename: Fix test failure on OpenBSD >= 6.2.
13046         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
13047         locale system. Define HAVE_FAKE_LOCALES in this case.
13048         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
13049         HAVE_USELOCALE.
13050         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
13051         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
13052         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
13053         platforms list.
13054         * doc/posix-functions/newlocale.texi: Likewise.
13055         * doc/posix-functions/duplocale.texi: Update platforms list.
13056         * doc/posix-functions/freelocale.texi: Likewise.
13058 2018-12-16  Bruno Haible  <bruno@clisp.org>
13060         duplocale tests: Re-enable the test on platforms without <monetary.h>.
13061         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
13062         of the test, on platforms without <monetary.h>.
13064 2018-12-16  Bruno Haible  <bruno@clisp.org>
13066         localename: Update comments.
13067         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
13069 2018-12-15  Jim Meyering  <meyering@fb.com>
13071         regex: fix indentation
13072         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
13074 2018-12-15  Bruno Haible  <bruno@clisp.org>
13076         openat-safer tests: Avoid test failure on NetBSD 8.
13077         * tests/test-openat-safer.c (main): Execute a Linux specific test only
13078         on Linux.
13080 2018-12-15  Jim Meyering  <meyering@fb.com>
13082         regex: work around a bug in glibc-2.27 and prior
13083         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
13084         assertion for /0|()0|\1|0/.
13085         * tests/test-regex.c (main): Add the same test here.
13087 2018-12-15  Bruno Haible  <bruno@clisp.org>
13089         localename: Fix use of uninitialized shell variable.
13090         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
13091         gt_cv_locale_solaris114 always before use. Remove assignment without
13092         effect.
13094 2018-12-15  Bruno Haible  <bruno@clisp.org>
13096         dfa tests: Avoid test failure on Alpine Linux.
13097         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
13098         command found on Alpine Linux.
13100 2018-12-15  Jim Meyering  <meyering@fb.com>
13102         dfa: avoid new warnings from gcc
13103         These would prevent building with -Werror and a Dec snapshot of gcc.
13104         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
13105         Rename each inner instance to "p".
13106         (charclass_context): Remove unused static function.
13108 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13110         mkdir-p: improve diagnostic for FUSE mounts
13111         Problem reported by Niklas Hambüchen in:
13112         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
13113         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
13114         errno to mkdir errno if the stat errno is likely more interesting.
13116 2018-12-14  Bruno Haible  <bruno@clisp.org>
13118         hash-map: Add tests.
13119         * tests/test-hash_map.c: New file.
13120         * modules/hash-map-tests: New file.
13122         linkedhash-map: Add tests.
13123         * tests/test-linkedhash_map.c: New file.
13124         * modules/linkedhash-map-tests: New file.
13126         array-map: Add tests.
13127         * tests/test-array_map.c: New file.
13128         * modules/array-map-tests: New file.
13130         xmap: New module.
13131         * lib/gl_xmap.h: New file.
13132         * lib/gl_xmap.c: New file.
13133         * modules/xmap: New file.
13135         hash-map: New module.
13136         * lib/gl_hash_map.h: New file.
13137         * lib/gl_hash_map.c: New file.
13138         * modules/hash-map: New file.
13140         linkedhash-map: New module.
13141         * lib/gl_linkedhash_map.h: New file.
13142         * lib/gl_linkedhash_map.c: New file.
13143         * lib/gl_anyhash1.h: Update comments.
13144         * lib/gl_anyhash2.h: Likewise.
13145         * modules/linkedhash-map: New file.
13147         array-map: New module.
13148         * lib/gl_array_map.h: New file.
13149         * lib/gl_array_map.c: New file.
13150         * modules/array-map: New file.
13152         map: New module.
13153         * lib/gl_map.h: New file.
13154         * lib/gl_map.c: New file.
13155         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
13156         conflict with gl_map.h.
13157         * modules/map: New file.
13159 2018-12-13  Bruno Haible  <bruno@clisp.org>
13161         select tests: Avoid test failure on Cygwin.
13162         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
13164 2018-12-13  Bruno Haible  <bruno@clisp.org>
13166         localtime-buffer: Avoid endless recursion in localtime and gmtime.
13167         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
13169 2018-12-13  Bruno Haible  <bruno@clisp.org>
13171         localeconv tests: Avoid test failure on Cygwin.
13172         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
13173         'mon_grouping' tests.
13175 2018-12-11  Bruno Haible  <bruno@clisp.org>
13177         omap: Don't dispose the old value when the function returns it.
13178         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
13179         here.
13180         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13181         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13182         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
13183         here.
13185         array-omap, avltree-omap, rbtree-omap: Tweak style.
13186         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
13187         false.
13188         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
13190         rbtree-omap: Add tests.
13191         * tests/test-rbtree_omap.c: New file.
13192         * modules/rbtree-omap-tests: New file.
13194         avltree-omap: Add tests.
13195         * tests/test-avltree_omap.c: New file.
13196         * modules/avltree-omap-tests: New file.
13198         array-omap: Add tests.
13199         * tests/test-array_omap.c: New file.
13200         * modules/array-omap-tests: New file.
13202         xomap: New module.
13203         * lib/gl_xomap.h: New file.
13204         * lib/gl_xomap.c: New file.
13205         * modules/xomap: New file.
13207         rbtree-omap: New module.
13208         * lib/gl_rbtree_omap.h: New file.
13209         * lib/gl_rbtree_omap.c: New file.
13210         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
13211         Parameterize.
13212         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
13213         * modules/rbtree-omap: New file.
13214         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
13215         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
13217         avltree-omap: New module.
13218         * lib/gl_avltree_omap.h: New file.
13219         * lib/gl_avltree_omap.c: New file.
13220         * lib/gl_avltree_ordered.h: Code moved to here from
13221         lib/gl_avltree_oset.c. Parameterize.
13222         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
13223         * lib/gl_anytree_omap.h: New file.
13224         * modules/avltree-omap: New file.
13225         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
13226         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
13228         array-omap: New module.
13229         * lib/gl_array_omap.h: New file.
13230         * lib/gl_array_omap.c: New file.
13231         * modules/array-omap: New file.
13233         omap: New module.
13234         * lib/gl_omap.h: New file.
13235         * lib/gl_omap.c: New file.
13236         * modules/omap: New file.
13238 2018-12-11  Bruno Haible  <bruno@clisp.org>
13240         hash-set, linkedhash-set: Reduce code duplication.
13241         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
13242         lib/gl_anyhash_set1.h.
13243         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
13244         lib/gl_anyhash_set2.h. Parameterize.
13245         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
13246         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
13247         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
13248         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
13249         * lib/gl_rbtreehash_list.c: Likewise.
13250         * lib/gl_linkedhash_list.c: Likewise.
13251         (hash_resize_after_add): Remove function.
13252         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
13253         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
13254         * gl_hash_set.c: Likewise.
13255         * modules/avltreehash-list (Files, Makefile.am): Update file list.
13256         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
13257         * modules/linkedhash-list (Files, Makefile.am): Likewise.
13258         * modules/linkedhash-set (Files, Makefile.am): Likewise.
13259         * modules/hash-set (Files, Makefile.am): Likewise.
13261 2018-12-11  Bruno Haible  <bruno@clisp.org>
13263         array-set: Optimize.
13264         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
13265         outside the loop, not inside the loop.
13267 2018-12-11  Bruno Haible  <bruno@clisp.org>
13269         times: Fix tests.
13270         * tests/test-times.c (doublecmp): Implement a total order.
13272 2018-12-11  Bruno Haible  <bruno@clisp.org>
13274         array-set, linkedhash-set, hash-set: Fix tests.
13275         * tests/test-array_set.c (cmp_objects_in_array): New function.
13276         (check_equals): Use it.
13277         * tests/test-hash_set.c: Likewise.
13278         * tests/test-linkedhash_set.c: Likewise.
13280 2018-12-08  Bruno Haible  <bruno@clisp.org>
13282         Fix comments.
13283         * lib/gl_list.h (gl_list_free): Clarify what it does.
13284         * lib/gl_oset.h (gl_oset_free): Likewise.
13285         * lib/gl_set.h (gl_set_free): Likewise.
13286         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
13287         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
13288         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
13289         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
13291 2018-12-03  Bruno Haible  <bruno@clisp.org>
13293         hash-set: Add tests.
13294         * tests/test-hash_set.c: New file.
13295         * modules/hash-set-tests: New file.
13297         linkedhash-set: Add tests.
13298         * tests/test-linkedhash_set.c: New file.
13299         * modules/linkedhash-set-tests: New file.
13301         array-set: Add tests.
13302         * tests/test-array_set.c: New file.
13303         * modules/array-set-tests: New file.
13305         xset: New module.
13306         * lib/gl_xset.h: New file.
13307         * lib/gl_xset.c: New file.
13308         * modules/xset: New file.
13310         hash-set: New module.
13311         * lib/gl_hash_set.h: New file.
13312         * lib/gl_hash_set.c: New file.
13313         * modules/hash-set: New file.
13315         linkedhash-set: New module.
13316         * lib/gl_linkedhash_set.h: New file.
13317         * lib/gl_linkedhash_set.c: New file.
13318         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
13319         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
13320         * lib/gl_anyhash_primes.h: New file, extracted from
13321         lib/gl_anyhash_list2.h.
13322         * lib/gl_anyhash_list2.h: Include it.
13323         (primes, next_prime): Remove definitions.
13324         * modules/linkedhash-set: New file.
13325         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
13326         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13327         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
13328         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13329         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
13330         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13332         array-set: New module.
13333         * lib/gl_array_set.h: New file.
13334         * lib/gl_array_set.c: New file.
13335         * modules/array-set: New file.
13337         set: New module.
13338         * lib/gl_set.h: New file.
13339         * lib/gl_set.c: New file.
13340         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
13341         gl_set.h.
13342         * modules/set: New file.
13344 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
13346         bison: don't force the Yacc mode
13347         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
13348         errors when Bison features are used in the grammar file.  Some of
13349         these features (such as %expect) were flagged non-yacc recently.  Most
13350         of the time, -y is actually used to please Automake's ylwrap which
13351         expects the output to be y.tab.c.
13352         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
13354 2018-12-01  Bruno Haible  <bruno@clisp.org>
13356         gnupload: Document short options.
13357         * build-aux/gnupload (usage): Document the short options.
13359 2018-11-28  Ben Elliston  <bje@gnu.org>
13361         gnupload: Support option -h as alias of --help.
13362         * build-aux/gnupload: Support -h.
13364 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13366         memrchr: port better to clang
13367         * lib/memrchr.c (__memrchr): Cast to void * instead of to
13368         longword *, to pacify clang -Wcast-align (Bug#33544).
13370 2018-11-29  Eric Blake  <eblake@redhat.com>
13372         docs: mention printf %m considerations
13373         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
13374         is not portable, and is easy enough to work around.
13375         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
13376         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
13377         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
13378         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13379         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13380         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13381         * doc/posix-functions/printf.texi (printf): Likewise.
13382         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13383         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13384         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
13385         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13386         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13387         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13388         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13389         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13390         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13391         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
13392         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13393         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13395 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
13397         bitset: rename ebitset/expandable.* as tbitset/table.*
13398         See
13399         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
13400         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
13401         * lib/bitset/table.h, lib/bitset/table.c: these.
13402         Rename all the ebitset* symbols as tbitset*.
13403         Adjust dependencies.
13405 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13407         bitset: check the operations
13408         * tests/test-bitset.c (bitset_random): New.
13409         Use it.
13410         * lib/bitset/expandable.c (ebitset_not): Fix typo.
13412 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13414         bitset: properly use false/true instead of 0/1 for Booleans
13415         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
13416         0/1, as Booleans.
13418 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13420         bitset: rename BITSET_VARRAY as BITSET_VECTOR
13421         For consistency with the name of the file.
13422         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
13423         * lib/bitset/stats.c, lib/bitset/vector.c
13424         (BITSET_VARRAY): Rename as...
13425         (BITSET_VECTOR): this.
13427 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13429         strerror_r-posix: memmove, not memcpy
13430         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
13431         since the source and destination might overlap in the call
13432         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
13433         Simplify.
13435 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13437         bitsetv: new module
13438         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
13440 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13442         bitset: add tests and doc
13443         First stabs at providing a documentation and test for the bitset
13444         module.
13445         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
13447 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13449         bitset: new module
13450         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
13451         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
13452         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
13453         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
13454         * lib/bitset/vector.h, modules/bitset:
13455         New.
13457 2018-11-23  Bruno Haible  <bruno@clisp.org>
13459         localename: Fix gettext test failures on mingw.
13460         * lib/localename.c (gl_locale_name_posix): Convert the result of
13461         gl_locale_name_environ to XPG syntax.
13463 2018-11-23  Karl Berry  <karl@freefriends.org>
13465         * config/srclistvars.txt,
13466         * config/srclist.txt: remove all gettext references;
13467         the gettext maintainers will sync as needed.
13469 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13471         mktime: add libc-config dependency
13472         I missed this when we synced from glibc.
13473         * modules/mktime (Depends-on): Add libc-config.
13475 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13477         longlong: fix comment typo
13478         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
13480 2018-11-11  Bruno Haible  <bruno@clisp.org>
13482         havelib: Remove the need to include asm-underscore.m4.
13483         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
13484         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
13485         gl_HOST_CPU_C_ABI.
13486         * modules/havelib (Files): Add host-cpu-c-abi.m4.
13487         (Depends-on): Remove host-cpu-c-abi.
13489 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13491         parse-datetime: simplify test for mktime failure
13492         * lib/parse-datetime.y (mktime_ok): Simplify.
13493         Remove args TZ and T; no longer needed.  Callers changed.
13495         posixtm: simplify test for mktime failure
13496         * lib/posixtm.c (posixtime): Simplify.
13498         nstrftime: simplify test for mktime failure
13499         * lib/nstrftime.c (__strftime_internal): Simplify.
13501 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13503         gnulib-common.m4: port _Noreturn to C++
13504         Problem reported by Akim Demaille in:
13505         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
13506         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
13507         Merge adjustments from _Noreturn.h and from glibc into the non-C++
13508         version.
13509         * lib/_Noreturn.h: Match gnulib-common.
13511 2018-10-30  Bruno Haible  <bruno@clisp.org>
13513         gnu-make: Fix for NetBSD 8 'make'.
13514         Reported by Reuben Thomas in
13515         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
13516         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
13517         output, ignoring exit codes.
13519 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
13521         maintainer-makefile: fix syntax-check rule for "same.h"
13522         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
13523         for 'same_nameat', too.
13525 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13527         havelib: fix nested ‘configure’ chatter
13528         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
13529         AC_CACHE_CHECK calls, which resulted in confusing output like
13530         “checking for the common suffixes of directories in the library
13531         search path... checking for 64-bit host... no lib,lib”.
13533         backupfile: tweak for better code
13534         * lib/backupfile.c: Sort include directives, and remove
13535         unnecessary <limits.h> include.
13536         (FALLTHROUGH): New macro, copied from other modules.
13537         (backupfile_internal): Use it to avoid code duplication.
13538         This lets GCC 8.2.1 generate better code by inlining the
13539         call to check_extension.
13541 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13543         backupfile: new dir_fd args
13544         New module opendirat with code taken from fts.
13545         Use this module to let backupfile use a directory file descriptor.
13546         * NEWS: Document the incompatible change.
13547         * lib/backup-find.c (find_backup_file_name):
13548         * lib/backup-rename.c (backup_file_rename):
13549         New arg DIR_FD.
13550         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
13551         (SIZE_MAX): Remove.
13552         Include opendirat.h rather than dirent--.h.
13553         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
13554         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
13555         (backupfile_internal): New arg DIR_FD.  All callers changed.
13556         * lib/fts.c: Include opendirat.h.
13557         (opendirat): Move to opendirat.c.
13558         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
13559         * modules/backupfile (Depends-on): Remove dirfd, opendir.
13560         Add opendirat.
13561         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
13562         Add opendirat.
13564 2018-10-23  Bruno Haible  <bruno@clisp.org>
13566         localename: Simplify support for per-thread locales on Solaris 11.4.
13567         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
13568         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
13569         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
13570         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
13571         specific code.
13572         * lib/localename-table.h: Update comments.
13573         * lib/localename-table.c: Update comments.
13574         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
13575         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
13576         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
13577         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
13578         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
13579         HAVE_NAMELESS_LOCALES here.
13580         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
13581         m4/intlsolaris.m4.
13582         * modules/gettext (Files): Likewise.
13584 2018-10-22  Bruno Haible  <bruno@clisp.org>
13586         std-gnu11: Support Autoconf versions < 2.64.
13587         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
13588         when _AC_DO_LIMIT does not exist.
13590 2018-10-22  Bruno Haible  <bruno@clisp.org>
13592         Assume Autoconf >= 2.63.
13593         * DEPENDENCIES: Mention the requirement.
13595         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
13596         (func_get_filelist): Don't list m4/onceonly.m4 any more.
13597         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
13598         * m4/onceonly.m4: Remove file.
13600         * m4/openmp.m4: Remove file.
13601         * modules/openmp (Files): Remove m4/openmp.m4.
13603         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
13604         htmldir, dvidir, pdfdir, psdir, localedir.
13605         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
13607         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
13608         Autoconf < 2.60.
13609         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
13610         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
13612         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
13613         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
13614         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
13616         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
13617         exists.
13618         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
13620         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
13621         Autoconf < 2.61.
13623         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
13624         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
13625         Autoconf >= 2.52.
13627         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
13628         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
13629         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
13631 2018-10-22  Bruno Haible  <bruno@clisp.org>
13633         Assume Automake >= 1.11.
13634         * m4/configmake.m4: Update comments.
13635         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
13636         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
13637         of 'eval'.
13638         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
13639         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
13640         requires Automake >= 1.11.
13642 2018-10-22  Bruno Haible  <bruno@clisp.org>
13644         localename: Fix typo in comment.
13645         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
13647 2018-10-22  Bruno Haible  <bruno@clisp.org>
13649         Fix failure of 'gnulib-tool --create-testdir' with all modules.
13650         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
13652 2018-10-21  Bruno Haible  <bruno@clisp.org>
13654         locale: Ease integration with GNU libintl.
13655         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
13656         GNULIB_defined_freelocale): New macros.
13658 2018-10-21  Bruno Haible  <bruno@clisp.org>
13660         localename: Fine-tune support for per-thread locales on Solaris 11.4.
13661         * lib/localename-table.h: New file, extracted from lib/localename.c.
13662         * lib/localename-table.c: Likewise.
13663         * lib/localename.c: Include localename-table.h.
13664         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
13665         locale_hash_function instead of pointer_hash.
13666         * modules/localename (Files): Add lib/localename-table.h,
13667         lib/localename-table.c.
13668         (lib_SOURCES): Add localename-table.c.
13669         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13670         for Solaris 11.4 locale system only on Solaris. Test for it
13671         independently whether getlocalename_l exists.
13672         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13673         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13674         HAVE_NAMELESS_LOCALES.
13675         * modules/gettext (Files): Add m4/intlsolaris.m4.
13677 2018-10-21  Bruno Haible  <bruno@clisp.org>
13679         Small update from gettext.
13680         * m4/intl.m4: Update from gettext:
13681         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13682         mode on AIX.
13683         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13684         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13686 2018-10-16  Bruno Haible  <bruno@clisp.org>
13688         mountlist: Remove support for Cray with UNICOS 9.
13689         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13690         MOUNTED_LISTMNTENT.
13691         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13693 2018-10-16  Bruno Haible  <bruno@clisp.org>
13695         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13696         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13697         STAT_STATFS2_FS_DATA.
13698         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13699         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13700         MOUNTED_GETMNT.
13701         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13702         * lib/getloadavg.c (decstation): Remove definition and case.
13703         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13704         * lib/getgroups.c: Likewise.
13705         * doc/posix-functions/getgroups.texi: Likewise.
13706         * lib/time.in.h: Update comments.
13708 2018-10-16  Bruno Haible  <bruno@clisp.org>
13710         getloadavg: Remove support for ConvexOS.
13711         * lib/getloadavg.c: Remove convex case.
13713 2018-10-16  Bruno Haible  <bruno@clisp.org>
13715         getloadavg: Remove support for Sony NEWS.
13716         * lib/getloadavg.c: Remove sony_news case.
13718 2018-10-16  Bruno Haible  <bruno@clisp.org>
13720         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
13721         * lib/fsusage.c: Remove _SEQUENT_ case.
13722         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13723         * lib/mountlist.c: Don't test for MNTTABNAME.
13724         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
13725         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
13726         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
13727         * lib/stat-size.h: Don't mention the Sequent bug.
13728         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13730 2018-10-16  Bruno Haible  <bruno@clisp.org>
13732         fsusage: Remove support for AIX 3.
13733         * lib/fsusage.c: Remove code for AIX 3.
13734         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
13736 2018-10-16  Bruno Haible  <bruno@clisp.org>
13738         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
13739         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
13740         * lib/fsusage.c: Remove code for AIX PS/2.
13741         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
13742         * lib/getloadavg.c: Likewise.
13744 2018-10-16  Bruno Haible  <bruno@clisp.org>
13746         getloadavg: Remove support for HP-UX on m68k.
13747         * lib/getloadavg.c: Remove hp9000s300 case.
13749 2018-10-16  Bruno Haible  <bruno@clisp.org>
13751         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
13752         * lib/fsusage.c: Remove DOLPHIN case.
13753         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13754         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
13756 2018-10-16  Bruno Haible  <bruno@clisp.org>
13758         getloadavg: Remove support for Alliant FX/2800.
13759         * lib/getloadavg.c: Remove alliant case.
13761 2018-10-16  Bruno Haible  <bruno@clisp.org>
13763         getloadavg: Remove support for tek4300.
13764         * lib/getloadavg.c: Remove tek4300 case.
13766 2018-10-16  Bruno Haible  <bruno@clisp.org>
13768         getloadavg: Remove support for Ardent.
13769         * lib/getloadavg.c: Remove ardent case.
13771 2018-10-16  Bruno Haible  <bruno@clisp.org>
13773         mountlist: Remove support for SVR2.
13774         Reported by Andrew Borodin <aborodin@vmail.ru> in
13775         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
13776         * lib/mountlist.c: Remove MOUNTED_FREAD case.
13777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13778         MOUNTED_FREAD.
13780 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13782         libc-config: merge from glibc
13783         * lib/cdefs.h (__glibc_has_attribute): New macro.
13785         regex: depend on libc-config
13786         * modules/regex (Depends-on): Add libc-config.
13787         This is needed after the recent autoupdate from glibc.
13789 2018-10-14  Bruno Haible  <bruno@clisp.org>
13791         localename: Add support for per-thread locales on Solaris 11.4.
13792         * lib/locale.in.h (newlocale, freelocale): New declarations.
13793         (duplocale): Declare also when the 'localename' module requests it.
13794         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
13795         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
13796         (struniq): Update.
13797         (struct locale_categories_names, struct locale_hash_node): New types.
13798         (LOCALE_HASH_TABLE_SIZE): New constant.
13799         (locale_hash_table, locale_lock): New variables.
13800         (pointer_hash, get_locale_t_name): New functions.
13801         (newlocale, duplocale, freelocale): New overridden functions.
13802         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
13803         * m4/intlsolaris.m4: New file.
13804         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
13805         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13806         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13807         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13808         declared.
13809         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13810         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13811         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13812         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13813         * modules/localename (Files): Add intlsolaris.m4.
13814         (Depends-on): Add 'locale'.
13815         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13816         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13817         the signatures.
13819 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13821         timevar: use gethrxtime to get wall clock time
13822         clock_gettime is not portable.  gethrxtime takes the best available
13823         option to get the wall clock time, including clock_gettime (monotonic
13824         clock), and gettime (non monotonic).
13825         Also, using xtime_t instead of float preserves the precision.
13826         Suggested by Bruno Haible.
13827         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13828         * modules/timevar (Depends-on): We need gethrxtime.
13829         We no longer use times().
13830         (Link): Update.
13831         * lib/timevar.h (timevar_time_def): Use xtime_t.
13832         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13833         (timevar_print): Instead of checking whether the timings themselves
13834         are large enough for the timevar to be printed, check the percentages.
13836 2018-10-14  Bruno Haible  <bruno@clisp.org>
13838         wcsnrtombs: Work around Solaris 11.4 bug.
13839         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13840         macro.
13841         (gl_FUNC_WCSNRTOMBS): Invoke it.
13842         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13844 2018-10-14  Bruno Haible  <bruno@clisp.org>
13846         mbsnrtowcs: Work around Solaris 11.4 bug.
13847         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13848         macro.
13849         (gl_FUNC_MBSNRTOWCS): Invoke it.
13850         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13852 2018-10-14  Bruno Haible  <bruno@clisp.org>
13854         doc: Update for Solaris 11.4.
13855         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13856         mention Solaris 11.4.
13857         * m4/printf.m4: Update comments about Solaris.
13858         * m4/log.m4: Likewise.
13859         * m4/log10.m4: Likewise.
13860         * m4/logb.m4: Likewise.
13861         * m4/logbf.m4: Likewise.
13862         * m4/logbl.m4: Likewise.
13863         * m4/rename.m4: Likewise.
13864         * m4/wcrtomb.m4: Likewise.
13865         * m4/hostent.m4: Likewise.
13866         * m4/servent.m4: Likewise.
13868 2018-10-14  Bruno Haible  <bruno@clisp.org>
13870         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13871         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13872         pointer.
13873         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13874         pointer.
13875         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13876         pointer.
13877         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13878         pointer.
13879         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13880         pointer.
13882 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13884         bootstrap: fix wget command for po files.
13885         * build-aux/bootstrap (po_download_command_format): Fix comment,
13886         and adjust callers.
13888 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13890         timevar: improve the output format
13891         Suggested by Bruno Haible.
13892         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13893         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13894         wall, since its resolution is much higher.
13896 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13898         timevar: expect that getrusage is available.
13899         Don't keep both times and getrusage as backend: both are guaranteed by
13900         gnulib, a single one suffices.  Using getrusage is open to possibly
13901         tracking other types of resources in the future.
13902         * modules/timevar (Depends-on): Add getrusage.
13903         (configure.ac): Remove gl_TIMEVAR.
13904         (Files): Remove m4/timevar.m4.
13905         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13906         * lib/timevar.h (timevar_enabled): Clarify documentation.
13907         * lib/timevar.c: Remove all the code about times.
13908         Remove all the CPP guards about getrusage: expect it to be present
13909         (courtesy of gnulib).
13911 2018-10-12  Bruno Haible  <bruno@clisp.org>
13913         mountlist: Improve support for Solaris in 64-bit mode.
13914         Reported by David Wood <David.Wood@deshaw.com> in
13915         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13916         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13917         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13918         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13920 2018-10-12  Bruno Haible  <bruno@clisp.org>
13922         mountlist: Add support for Minix.
13923         Reported by Assaf Gordon in
13924         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13925         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13926         AC_CHECK_FUNCS to check for 'getmntinfo'.
13927         * lib/mountlist.c: Update comments.
13929 2018-10-12  Bruno Haible  <bruno@clisp.org>
13931         Make better use of Autoconf.
13932         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13933         * m4/manywarnings.m4: Likewise.
13934         * m4/manywarnings-c++.m4: Likewise.
13935         * m4/socklen.m4: Likewise.
13936         * m4/sockpfaf.m4: Likewise.
13937         * m4/stdarg.m4: Likewise.
13938         * m4/visibility.m4: Likewise.
13939         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13940         indentation.
13941         * m4/ls-mntd-fs.m4: Likewise.
13943 2018-10-11  Bruno Haible  <bruno@clisp.org>
13945         mountlist: Modernize platform lists.
13946         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13947         platforms, deemphasizing the obsolete ones.
13948         * lib/mountlist.c: Likewise.
13950 2018-10-11  Bruno Haible  <bruno@clisp.org>
13952         getprogname: Add support for 32-bit programs on HP-UX.
13953         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13954         try the similar functions 32-bit programs on 64-bit HP-UX.
13956 2018-10-11  Bruno Haible  <bruno@clisp.org>
13958         getprogname: Work around program name truncation when possible.
13959         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13960         possibly use pst_cmd instead.
13962 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13964         fts: cleanup after FTS_NOATIME removal
13965         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13966         (FTS_STOP): Shrink to minimal values.  We don’t need to
13967         worry about binary compatibility in Gnulib, and the old way
13968         of doing things had a hole in the user options that caused
13969         FTS_OPTIONMASK to not work as desired.
13971 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13973         fts: remove FTS_NOATIME
13974         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13975         We cannot guarantee that O_NOATIME works: e.g. openat fails
13976         with EPERM if the effective user ID of the caller does not match
13977         the owner of the file and the caller is not privileged.
13978         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13979         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13980         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13981         (FTS_OPTIONMASK): Adjust.
13982         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13983         (fd_ring_check): Likewise.
13985 2018-10-08  Bruno Haible  <bruno@clisp.org>
13987         csharpcomp*, csharpexec*: Remove support for pnet.
13988         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13989         HAVE_CSCC.
13990         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13991         Don't test HAVE_CSCC.
13992         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13993         (compile_csharp_class): Don't invoke it.
13994         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13995         HAVE_ILRUN.
13996         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13997         Don't test HAVE_ILRUN.
13998         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13999         (execute_csharp_program): Don't invoke it.
14000         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
14001         any more.
14003 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
14005         renameatu: prefer renameat2 to syscall
14006         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
14007         Use renameat2 instead of syscall (Bug#32796).
14008         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
14010 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14012         bootstrap, gnulib-tool: use https instead of insecure rsync
14013         * build-aux/bootstrap (download_po_files, po_download_command_format):
14014         Don't try using rsync; always use wget over https to fetch PO files.
14015         * gnulib-tool (func_import): Likewise.
14016         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14018 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14020         bootstrap, gnulib-tool: correct the translations wget command
14021         * build-aux/bootstrap (po_download_command_format2): Restrict
14022         recursion to a single level.
14023         * gnulib-tool (func_import): Likewise.
14024         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14026 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14028         doc: the gnulib snapshots are not maintained
14029         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
14031 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14033         timevar: add to lib_SOURCES
14034         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
14036 2018-10-07  Bruno Haible  <bruno@clisp.org>
14038         dirent: Update documentation.
14039         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
14041 2018-10-05  Bruno Haible  <bruno@clisp.org>
14043         strpbrk: Make it possible to namespace the defined symbol.
14044         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
14046 2018-10-05  Bruno Haible  <bruno@clisp.org>
14048         strcspn: Make it possible to namespace the defined symbol.
14049         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
14051 2018-10-05  Bruno Haible  <bruno@clisp.org>
14053         raise: Make it possible to namespace the defined symbol.
14054         * lib/raise.c (raise): Undefine only after the replacement function has
14055         been defined.
14056         (raise): Renamed from rpl_raise.
14057         (raise_nothrow): Move to the end of the compilation unit.
14059 2018-10-05  Bruno Haible  <bruno@clisp.org>
14061         memcmp: Make it possible to namespace the defined symbol.
14062         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
14064 2018-10-05  Bruno Haible  <bruno@clisp.org>
14066         explicit_bzero: Make it possible to namespace the defined symbol.
14067         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
14068         glibc.
14070 2018-10-05  Bruno Haible  <bruno@clisp.org>
14072         mkdir-p: Depend on 'mkdir'.
14073         * modules/mkdir-p (Depends-on): Add 'mkdir'.
14075 2018-10-05  Bruno Haible  <bruno@clisp.org>
14077         tempname: Depend on 'mkdir'.
14078         Reported by Maarten Bosmans <mkbosmans@gmail.com>
14079         at <https://savannah.gnu.org/bugs/?33379>.
14080         * modules/tempname (Depends-on): Add 'mkdir'.
14082 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
14084         timevar: rely on gnulib modules for time portability.
14085         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
14086         * m4/timevar.m4: Don't check for clock_t and struct tms,
14087         guaranteed by gnulib.
14088         * lib/timevar.h: Use extern "C" protection.
14089         Include <stdio.h> for FILE.
14090         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
14091         they are guaranteed by gnulib.
14092         Remove uses of clock as (now useless) fallback.
14094 2018-10-04  Bruno Haible  <bruno@clisp.org>
14096         sh-filename: New module.
14097         * m4/sh-filename.m4: New file.
14098         * modules/sh-filename: New file.
14099         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
14100         "/bin/sh".
14101         * tests/test-posix_spawn1.c (main): Likewise.
14102         * tests/test-posix_spawn2.c (main): Likewise.
14103         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
14104         is_envjavac_gcj43): Likewise.
14105         * lib/javaexec.c (execute_java_class): Likewise.
14106         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
14107         * modules/posix_spawnp-tests (Depends-on): Likewise.
14108         * modules/javacomp (Depends-on): Likewise.
14109         * modules/javaexec (Depends-on): Likewise.
14111 2018-10-04  Bruno Haible  <bruno@clisp.org>
14113         spawn-pipe tests: Avoid test failure on native Windows.
14114         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
14115         that fd 2 is closed.
14117 2018-10-04  Bruno Haible  <bruno@clisp.org>
14119         fcntl: Make it possible to namespace the defined symbol.
14120         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
14121         been defined.
14122         (fcntl): Renamed from rpl_fcntl.
14123         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
14124         from fcntl.
14125         (klibc_fcntl): Move to the end of the compilation unit.
14127 2018-10-02  Bruno Haible  <bruno@clisp.org>
14129         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
14130         * tests/test-vasnprintf.c (test_function): Change the test added on
14131         2018-09-23 to check only the 18 most significant digits.
14133         vasnprintf tests: Avoid test failure on Cygwin.
14134         * tests/test-vasnprintf.c (test_function): Change the test added on
14135         2018-09-23 to check only the 42 most significant digits.
14137 2018-10-01  Bruno Haible  <bruno@clisp.org>
14139         mkostemp, mkostemps: Update documentation.
14140         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
14141         * doc/glibc-functions/mkostemps.texi: Likewise.
14143 2018-10-01  Tom Tromey  <tom@tromey.com>
14145         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
14146         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
14147         on OS X.
14149 2018-09-30  Pádraig Brady  <P@draigBrady.com>
14151         hmac-*: refactor to remove repetitive code
14152         * lib/hmac.c: A new parameterized single implementation.
14153         * lib/hmac-md5.c: Define parameters and include implementation.
14154         * lib/hmac-sha1.c: Likewise.
14155         * lib/hmac-sha256.c: Likewise.
14156         * lib/hmac-sha512.c: Likewise.
14157         * modules/crypto/hmac-md5: Reference the new implementation file.
14158         * modules/crypto/hmac-sha1: Likewise.
14159         * modules/crypto/hmac-sha256: Likewise.
14160         * modules/crypto/hmac-sha512: Likewise.
14161         * tests/test-hmac-md5.c: Refactor common code to a single function.
14162         * tests/test-hmac-sha1.c: Likewise.
14163         * tests/test-hmac-sha256.c: Likewise.
14164         * tests/test-hmac-sha512.c: Likewise.
14166 2018-09-30  Zhang Qing  <zhangqingl@126.com>
14168         hmac-sha512: fix hash for keys > blocksize (128 bytes)
14169         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
14170         key length to that output by sha512, not the blocksize.
14171         Otherwise uninitialized data from the stack
14172         is used when computing the hash.
14173         * tests/test-hmac-sha512.c: Add a shortened key test case.
14174         Reported at https://github.com/coreutils/gnulib/pull/5
14176 2018-09-30  Bruno Haible  <bruno@clisp.org>
14178         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
14179         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
14180         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
14181         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
14182         'unsigned int' before comparison with an unsigned value.
14184 2018-09-30  Bruno Haible  <bruno@clisp.org>
14186         grantpt: Remove unnecessary dependency.
14187         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
14189 2018-09-30  Bruno Haible  <bruno@clisp.org>
14191         timevar: Small tweaks.
14192         * lib/timevar.h: Fix comments. Add parameter names to function
14193         declarations.
14194         * lib/timevar.c: Include timevar.h immediately after config.h.
14195         * lib/timevar.def: Fix comments.
14196         * modules/timevar (Maintainer): List Akim Demaille.
14198 2018-09-30  Bruno Haible  <bruno@clisp.org>
14200         timevar: Include documentation in gnulib manual.
14201         * doc/timevar.texi: Change node and section name to 'Profiling of
14202         program phases'.
14203         In the code snippets, tweak the #includes and use GNU coding style.
14204         * doc/gnulib.texi: Include timevar.texi.
14206 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
14208         timevar: import from Bison.
14209         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
14210         New files.
14211         * lib/timevar.def: New file.
14212         * doc/timevar.texi: New file.
14214 2018-09-26  Bruno Haible  <bruno@clisp.org>
14216         javacomp-script, javacomp: Add preliminary support for Java 12..17.
14217         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
14218         * lib/javacomp.c (default_target_version): Likewise.
14220 2018-09-26  Bruno Haible  <bruno@clisp.org>
14222         javacomp-script, javacomp: Add support for Java 11.
14223         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
14224         target-version 11.
14225         * lib/javaversion.h: Update comments.
14226         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14227         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14228         TARGET_VERSION_BOUND, target_version_index,
14229         corresponding_classfile_version): Accept source_version 11 and
14230         target_version 11.
14231         * lib/javacomp.h: Update comments accordingly.
14233 2018-09-23  Bruno Haible  <bruno@clisp.org>
14235         vasnprintf: Fix heap memory overrun bug.
14236         Reported by Ben Pfaff <blp@cs.stanford.edu> in
14237         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
14238         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
14239         memory.
14240         * tests/test-vasnprintf.c (test_function): Add another test.
14242 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14244         maint: mktime.c now shared with glibc
14245         * config/srclist.txt: intprops.h, timegm.c and mktime.c
14246         are now the same in Gnulib and glibc.
14248         mktime: fix _LIBC typo
14249         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
14251 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14253         dfa: optimization for state merge
14254         * lib/dfa.c (merge2): New function.
14255         (merge_nfa_state): Use it.
14257 2018-09-18  Jim Meyering  <meyering@fb.com>
14259         dfa: trivial comment fix: s/is/if/
14260         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
14262 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14264         dfa: use more-informative function name
14265         * lib/dfa.c (maybe_disable_superset_dfa):
14266         Rename from dfautf8noss.  Use change.
14268         dfa: tweak allocation performance
14269         * lib/dfa.c (merge_nfa_state, dfaoptimize):
14270         Prefer ptrdiff_t for indexes some more.
14271         Use char for flags, as it’s wide enough.
14272         Allocate queue and flags together, with one malloc call.
14273         No need to use xnmalloc since the multiplication and
14274         addition cannot overflow (it’s already been checked by
14275         earlier allocation).  Prefer memset to open-coding.
14277         dfa: prune states as we go
14278         * lib/dfa.c (prune): Remove.
14279         dfa: reorder enum for efficiency
14280         (merge_nfa_state): Prune as we go instead of at the end.
14281         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
14283         * lib/dfa.c (END): Now -1 again.  Reorder other elements
14284         of the enumeration to make it easier for GCC to generate
14285         efficient code by using fewer comparisons to check for
14286         ranges of values.
14287         (atom): Take advantage of the reordering.
14289 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14291         dfa: optimize alternation in NFA
14292         Even when similar states exist in alternation, the DFA treats them
14293         as separate items, which may complicate the transition in NFA and
14294         cause slowdown.  This change assembles the states into one.  For
14295         example, ab|ac is changed into a(b|c).  This change speeds-up
14296         matching for many branched patterns.  For example, grep speeds up
14297         more than 30× in:
14299           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
14300           time -p env LC_ALL=C grep -vf in in
14302         * lib/dfa.c (prune): New function.
14303         (merge_nfa_state): New function.  It merges similar NFA states.
14304         (dfaoptimize): New function.  It seeks merged and removed nodes.
14305         (dfaanalyze): Call new function.
14306         (dfautf8noss): Change name from dfaoptimize because of addition of new
14307         function.
14308         (dfacomp): Update caller.
14310         dfa: simplify initial state
14311         Simplifying the initial state enables easier optimization of the NFA.
14312         * lib/dfa.c (enum token): Add new element BEG.
14313         (prtok): Adjust due to adding element BEG.
14314         (dfaparse): Put BEG at a head of tokens.
14315         (state_index): Adjust due to adding element BEG.
14316         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
14317         build initial state.
14318         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
14320 2018-09-18  Bruno Haible  <bruno@clisp.org>
14322         file-has-acl: Fix test failure on Cygwin 2.9.
14323         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
14324         * lib/acl-internal.h: Likewise.
14325         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
14326         * lib/acl-internal.c: Update comments regarding Cygwin.
14327         * lib/acl_entries.c: Likewise.
14328         * lib/file-has-acl.c: Likewise.
14329         (file_has_acl): For Cygwin, use a different way to determine whether
14330         the "default" ACL of a directory is nontrivial.
14331         * lib/get-permissions.c: Update comments regarding Cygwin.
14332         * lib/set-permissions.c: Likewise.
14334 2018-09-18  Bruno Haible  <bruno@clisp.org>
14336         stat-time tests: Fix test failure on Cygwin.
14337         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
14339 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14341         doc: OS X 10.11 lacked ns time functions
14342         According to <https://github.com/zeromq/libzmq/issues/2175>,
14343         nanosecond-resolution timestamp functions were introduced
14344         in macOS 10.12, so document the last version (OS X 10.11)
14345         where they were absent.
14347         gettime: nanotime never existed
14348         Problem reported by Bruno Haible in:
14349         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
14350         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
14351         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
14353 2018-09-18  Bruno Haible  <bruno@clisp.org>
14355         doc: Update statement about target platforms.
14356         Reported by Simon Sobisch.
14357         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
14358         restrictions on MSVC versions.
14360 2018-09-18  Bruno Haible  <bruno@clisp.org>
14362         posix_spawn tests: Fix link error on 64-bit Cygwin.
14363         * tests/test-posix_spawn1.c (environ): Remove declaration.
14364         * tests/test-posix_spawn2.c (environ): Likewise.
14365         * tests/test-posix_spawn3.c (environ): Likewise.
14366         * tests/test-posix_spawn4.c (environ): Likewise.
14367         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
14368         * modules/posix_spawnp-tests (Depends-on): Likewise.
14370 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14372         timespec: new function current_timespec
14373         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
14374         and don’t worry about it failing on a CLOCK_REALTIME arg.
14375         POSIX requires it to succeed and I don’t know of any
14376         counterexamples where the fallbacks would work.
14377         (current_timespec): New function, taken from Emacs.  It is more
14378         convenient than gettime, and can help register allocation.
14379         * lib/timespec.h: Include arg-nonnull.h.
14380         (current_timespec): New declaration.
14381         (gettime, settime): Declare args to be nonnull.
14382         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
14384 2018-09-16  Bruno Haible  <bruno@clisp.org>
14386         setlocale: Improve locale handling on macOS 10.12 or newer.
14387         * lib/setlocale.c: Include header files for CoreFoundation. Declare
14388         gl_locale_name_canonicalize.
14389         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
14390         and LC_MESSAGES.
14391         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
14393 2018-09-16  Bruno Haible  <bruno@clisp.org>
14395         Update list of locale names with scripts on macOS.
14396         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
14397         match Mac OS X 10.13 and recent glibc.
14399 2018-09-16  Bruno Haible  <bruno@clisp.org>
14401         gettext: Use newer macOS APIs when possible.
14402         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
14403         CFLocaleCopyPreferredLanguages.
14405 2018-09-16  Bruno Haible  <bruno@clisp.org>
14407         localename: Revisit macOS specific code.
14408         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
14409         Fix comments about Mac OS X versions.
14411 2018-09-15  Bruno Haible  <bruno@clisp.org>
14413         setlocale: Improve support for locales not supported by libc.
14414         Reported by Dapeng Gao <peter@dpgao.cc> at
14415         <https://savannah.gnu.org/bugs/?54479>.
14416         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
14417         (libintl_setlocale): Use a more error-tolerant strategy when the locale
14418         to be set is not supported by libc: Emit warnings instead of failing.
14420 2018-09-15  Bruno Haible  <bruno@clisp.org>
14422         strstr, strcasestr: Add workaround against glibc-2.28 bug.
14423         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
14424         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
14425         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
14426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
14427         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
14428         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
14429         * doc/glibc-functions/strcasestr.texi: Likewise.
14431 2018-09-14  Bruno Haible  <bruno@clisp.org>
14433         doc: Fix bottom of top-level page.
14434         Reported by Akim Demaille <akim.demaille@gmail.com> in
14435         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
14436         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
14437         mode.
14438         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
14439         accordingly.
14441 2018-09-12  Bruno Haible  <bruno@clisp.org>
14443         Add test case from a recent glibc bug.
14444         * tests/test-strstr.c (main): Add test of long needle.
14445         * tests/test-strcasestr.c (main): Likewise.
14446         * tests/test-c-strstr.c (main): Likewise.
14447         * tests/test-c-strcasestr.c (main): Likewise.
14448         * tests/test-memmem.c (main): Likewise.
14450 2018-09-12  Bruno Haible  <bruno@clisp.org>
14452         Apply Eric Blake's improvements from 2011-02-25 to more tests.
14453         * tests/test-c-strstr.c (main): Add the same tests here as well.
14455 2018-09-12  Bruno Haible  <bruno@clisp.org>
14457         Apply Jim Meyering's fix from 2015-01-11 to more tests.
14458         * tests/test-memmem.c (main): Free haystack.
14459         * tests/test-strcasestr.c (main): Likewise.
14460         * tests/test-c-strcasestr.c (main): Likewise.
14462 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14464         xstrtol: fix missing-TYPE_SIGNED typo
14465         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
14467 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14469         timespec: fix resolution confusion
14470         In normal usage, clock resolution is given in seconds, but the
14471         code was mistakenly using inverse seconds and calling it
14472         “resolution”.  Fix this, partly by renaming two identifiers.
14473         The old names will be kept for a bit, to ease transition.
14474         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
14475         New constants, replacing TIMESPEC_RESOLUTION and
14476         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
14477         All uses changed.
14479 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
14481         mktime: simplify in prep for glibc merge
14482         * lib/mktime.c, lib/timegm.c [_LIBC]:
14483         Include mktime-internal.h (a small file just for glibc)
14484         instead of using a typedef.
14486 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
14488         intprops: minor clarification of code
14489         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
14490         Use _GL_INT_CONVERT rather than reinventing it.
14492 2018-09-07  Bruno Haible  <bruno@clisp.org>
14494         Fix a comment.
14495         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
14497 2018-09-07  Bruno Haible  <bruno@clisp.org>
14499         posix_spawn_file_actions_addchdir: Add tests.
14500         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
14501         * tests/test-posix_spawn4.c: New file.
14502         * modules/posix_spawn_file_actions_addchdir-tests: New file.
14504 2018-09-07  Bruno Haible  <bruno@clisp.org>
14506         posix_spawn_file_actions_addchdir: New module.
14507         Suggested by Eric Blake in
14508         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
14509         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
14510         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
14511         union member 'chdir_action'.
14512         * lib/spawn_faction_addchdir.c: New file.
14513         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
14514         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
14515         HAVE_WORKING_POSIX_SPAWN.
14516         * lib/spawn_faction_adddup2.c: Likewise.
14517         * lib/spawn_faction_addopen.c: Likewise.
14518         * m4/posix_spawn_faction_addchdir.m4: New file.
14519         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14520         'posix_spawn_file_actions_addchdir' is present and whether
14521         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
14522         instead of HAVE_WORKING_POSIX_SPAWN.
14523         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14524         posix_spawn_file_actions_addchdir is declared.
14525         (gl_SPAWN_H_DEFAULTS): Initialize
14526         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14527         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14528         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14529         * modules/spawn (Makefile.am): Substitute
14530         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14531         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14532         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14533         * modules/posix_spawn_file_actions_addchdir: New file.
14534         * modules/posix_spawn_file_actions_addclose (Depends-on,
14535         configure.ac): Test also REPLACE_POSIX_SPAWN.
14536         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
14537         configure.ac): Likewise.
14538         * modules/posix_spawn_file_actions_addopen (Depends-on,
14539         configure.ac): Likewise.
14540         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
14541         signature.
14542         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14543         * doc/posix-functions/posix_spawnp.texi: Likewise.
14545 2018-09-06  Bruno Haible  <bruno@clisp.org>
14547         stddef: Override max_align_t on NetBSD 8.0/x86.
14548         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
14549         the value of __alignof__ (max_align_t).
14550         * doc/posix-headers/stddef.texi: Mention the issue.
14552 2018-09-06  Bruno Haible  <bruno@clisp.org>
14554         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
14555         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
14556         system fcntl.
14557         * doc/posix-functions/fcntl.texi: Document the issue.
14559 2018-09-06  Bruno Haible  <bruno@clisp.org>
14561         count-trailing-zeros tests: Rely on limits-h module.
14562         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
14563         definition.
14564         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
14566 2018-09-06  Bruno Haible  <bruno@clisp.org>
14568         count-leading-zeros tests: Rely on limits-h module.
14569         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
14570         definition.
14571         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
14573 2018-09-06  Bruno Haible  <bruno@clisp.org>
14575         count-one-bits tests: Rely on limits-h module.
14576         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
14577         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
14579 2018-09-06  Bruno Haible  <bruno@clisp.org>
14581         xstrtoll: Rely on limits-h module.
14582         * lib/xstrtol.c: Don't include intprops.h.
14583         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14584         * modules/xstrtol (Depends-on): Remove 'intprops'.
14585         * modules/xstrtoll (Depends-on): Add 'limits-h'.
14587 2018-09-06  Bruno Haible  <bruno@clisp.org>
14589         strtoll, strtoull: Rely on limits-h module.
14590         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
14591         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14592         * modules/strtoll (Depends-on): Add limits-h.
14593         * modules/strtoull (Depends-on): Likewise.
14595 2018-09-06  Bruno Haible  <bruno@clisp.org>
14597         intprops tests: Fix compilation error with pre-C99 compiler.
14598         * tests/test-intprops.c (verify_stmt): New macro.
14599         (VERIFY, main): Use it.
14601 2018-09-06  Bruno Haible  <bruno@clisp.org>
14603         limits-h: Provide numerical limits macros.
14604         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
14605         IRIX and for GCC.
14606         (WORD_BIT, LONG_BIT): Define.
14607         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
14608         <limits.h> does not define LLONG_MAX or WORD_BIT.
14609         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
14610         TYPE_MAXIMUM): New macros, from intprops.h.
14611         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
14612         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
14613         provides.
14615 2018-09-05  Bruno Haible  <bruno@clisp.org>
14617         fcntl: Don't access nonexistent optional argument.
14618         Reported by Frank Busse <f.busse@imperial.ac.uk> in
14619         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
14620         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
14621         don't consume an argument. For actions that take an 'int' argument,
14622         consume an 'int' argument.
14624 2018-09-05  Eric Blake  <eblake@redhat.com>
14626         doc: mention environ pitfall
14627         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14628         environ is a glibc extension.
14630 2018-09-03  Bruno Haible  <bruno@clisp.org>
14632         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
14633         Reported by Antoine Luong <antoine.luong@c-s.fr> in
14634         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
14635         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
14636         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
14637         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
14639 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14641         mktime: fix unlikely race+overflow bug
14642         Problem reported by Alexandre Oliva in:
14643         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
14644         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
14645         to avoid an unlikely race if the compiler delays a load and
14646         if this cascades into a signed integer overflow.
14648 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14650         mktime, timegm: simplify glibc time64_t
14651         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
14652         Now long int, not time_t, since long int is the longstanding type
14653         for this in glibc and there is no need to change it even if time_t
14654         becomes 64 bits - even int would do, though this would be a change
14655         to the glibc generated code.  When this change is merged into
14656         glibc, it should simplify the time_t vs time64_t situation.
14658         mktime, timegm: simplify merge to glibc
14659         Move code around to make a merge to glibc easier to audit.
14660         This should not change behavior.
14661         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
14662         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
14663         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
14664         simplify later conditionals; default the others to zero.  In uses
14665         of these conditionals, explicitly spell out how _LIBC affects
14666         things, so it’s easier to review from a glibc viewpoint.
14667         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14668         compartmentalize tzset issues.  Move system-dependent tzsettish
14669         code here from mktime.
14670         (mktime): Move tzsettish code to my_tzset, and move
14671         localtime_offset to within mktime so that it doesn’t
14672         need a separate ifdef.
14674 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14676         intprops: avoid evaluation of some expressions
14677         This makes EXPR_SIGNED (e) easier to use, as it no longer
14678         evaluates the expression E.  Formerly, E was required to be free
14679         of side effects.
14680         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14681         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14682         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14684 2018-08-23  Bruno Haible  <bruno@clisp.org>
14686         getcwd: Add cross-compilation guesses.
14687         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14688         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14689         Based on a patch by Paul Eggert.
14690         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14691         guesses for all GNU systems.
14693 2018-08-19  Bruno Haible  <bruno@clisp.org>
14695         glob-h: Formalize side effects from other modules.
14696         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14697         * m4/glob.m4 (gl_GLOB): Invoke it.
14699         fnmatch-h: Formalize side effects from other modules.
14700         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14701         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14703         limits-h: Formalize side effects from other modules.
14704         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14705         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14707 2018-08-19  Bruno Haible  <bruno@clisp.org>
14709         getpass: Move declaration to <unistd.h>.
14710         * lib/unistd.in.h (getpass): New declaration.
14711         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
14712         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
14713         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
14714         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
14715         On glibc systems, don't set REPLACE_GETPASS to 1.
14716         * modules/getpass (Depends-on): Add 'unistd'.
14717         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
14718         (Include): Specify <unistd.h> instead of "getpass.h".
14719         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
14720         (configure.ac): Sync with the configure.ac section of modules/getpass.
14721         (Include): Specify <unistd.h> instead of "getpass.h".
14722         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
14723         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
14724         REPLACE_GETPASS.
14725         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
14726         REPLACE_GETPASS.
14727         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
14728         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
14729         and musl.
14730         * NEWS: Mention the change.
14732 2018-08-19  Bruno Haible  <bruno@clisp.org>
14734         glob: Fix over-optimization due to attribute __nonnull__.
14735         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
14737 2018-08-19  Bruno Haible  <bruno@clisp.org>
14739         glob: Fix another compilation error when glob.h is not replaced.
14740         Reported by Reuben Thomas <rrt@sc3d.org> in
14741         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
14742         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
14743         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
14745 2018-08-18  Bruno Haible  <bruno@clisp.org>
14747         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
14748         Reported by Reuben Thomas <rrt@sc3d.org> in
14749         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
14750         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
14751         in config.h.
14753 2018-08-18  Bruno Haible  <bruno@clisp.org>
14755         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
14756         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
14757         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
14758         Solution proposed by Eli Zaretskii.
14759         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
14760         * lib/gettimeofday.c (GetProcAddress): Likewise.
14761         * lib/link.c (GetProcAddress): Likewise.
14762         * lib/physmem.c (GetProcAddress): Likewise.
14763         * lib/poll.c (GetProcAddress): Likewise.
14764         * lib/select.c (GetProcAddress): Likewise.
14765         * lib/stat-w32.c (GetProcAddress): Likewise.
14767 2018-08-18  Bruno Haible  <bruno@clisp.org>
14769         glob: Fix another compilation error when glob.h is not replaced.
14770         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
14771         * lib/globfree.c: Include <libc-config.h>.
14773 2018-08-18  Bruno Haible  <bruno@clisp.org>
14775         glob: Fix compilation error when glob.h is not replaced.
14776         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
14777         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
14778         * lib/glob_pattern_p.c: Include <libc-config.h>.
14779         * modules/glob (Depends-on): Add libc-config.
14781 2018-08-18  Bruno Haible  <bruno@clisp.org>
14783         scratch_buffer: Add tests.
14784         * tests/test-scratch-buffer.c: New file.
14785         * modules/scratch_buffer-tests: New file.
14787 2018-08-18  Bruno Haible  <bruno@clisp.org>
14789         scratch_buffer: Fix include file.
14790         Reported by Reuben Thomas <rrt@sc3d.org> in
14791         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
14792         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
14793         double-inclusion guard.
14795 2018-08-18  Bruno Haible  <bruno@clisp.org>
14797         glob-h: Revert Paul Eggert's revert.
14798         * m4/glob_h.m4: Revert to previous state.
14799         * modules/glob-h: Likewise.
14801 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14803         glob-h: always build glob.h
14804         This works around a problem reported by Reuben Thomas in:
14805         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14806         This workaround always builds glob.h, even on platforms that
14807         do not need it; perhaps this could be improved someday.
14808         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14809         is always created now.
14810         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14812 2018-08-13  Bruno Haible  <bruno@clisp.org>
14814         monetary: Simplify m4 code.
14815         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14816         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14818 2018-08-13  Bruno Haible  <bruno@clisp.org>
14820         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14821         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14822         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14823         and by Paul J. Lucas <paul@lucasmail.org> in
14824         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14825         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14827 2018-08-11  Bruno Haible  <bruno@clisp.org>
14829         setlocale: Trivial simplification.
14830         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14832 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14834         verify: port 'assume' to traditional tools
14835         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14836         and other tools that use /*NOTREACHED*/ comments.
14838 2018-08-10  Bruno Haible  <bruno@clisp.org>
14840         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14841         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14842         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14843         'fnmatch-gnu' is in use.
14845 2018-08-07  Bruno Haible  <bruno@clisp.org>
14847         glob-h: Add tests.
14848         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14849         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14850         tests/test-glob-h.c.
14851         * modules/glob-h-tests: New file.
14852         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14853         conditions.
14854         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14855         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14857 2018-08-07  Bruno Haible  <bruno@clisp.org>
14859         glob-h: New module.
14860         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14861         replacements.
14862         * lib/glob.c: Include <config.h>.
14863         * m4/glob_h.m4: New file.
14864         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14865         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14866         REPLACE_GLOB_PATTERN_P as appropriate.
14867         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14868         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14869         * modules/glob-h: New file.
14870         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14871         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14872         lstat, sys_stat. Change conditions.
14873         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14874         REPLACE_GLOB_PATTERN_P. Set module indicator.
14875         (Makefile.am): Remove code that is moved to glob-h.
14876         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14877         * modules/posixcheck (Depends-on): Add glob-h.
14879 2018-08-06  Bruno Haible  <bruno@clisp.org>
14881         Force generation of substitute .h file when C++ support is enabled.
14882         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14883         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14884         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14885         FNMATCH_H to non-empty.
14886         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14887         ICONV_H to non-empty.
14888         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14889         MONETARY_H to non-empty.
14890         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14891         non-empty.
14893 2018-08-06  Bruno Haible  <bruno@clisp.org>
14895         fnmatch-h: Fix test compilation error on mingw (regression from today).
14896         * lib/fnmatch.in.h: Fix conditions.
14898 2018-08-06  Bruno Haible  <bruno@clisp.org>
14900         sys_resource: Relicense under LGPLv2+.
14901         John Malmberg's approval is in
14902         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14903         * modules/sys_resource (License): Change to LGPLv2+.
14905 2018-08-06  Bruno Haible  <bruno@clisp.org>
14907         fnmatch-h: Add tests.
14908         * tests/test-fnmatch-h.c: New file.
14909         * modules/fnmatch-h-tests: New file.
14910         * tests/test-fnmatch-h-c++.cc: New file.
14911         * modules/fnmatch-h-c++-tests: New file.
14913 2018-08-06  Bruno Haible  <bruno@clisp.org>
14915         fnmatch-h: New module.
14916         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14917         replacements.
14918         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14919         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14920         'posixcheck' warning.
14921         * m4/fnmatch_h.m4: New file.
14922         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14923         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14924         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14925         as appropriate.
14926         * modules/fnmatch-h: New file.
14927         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14928         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14929         conditions.
14930         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14931         indicator.
14932         (Makefile.am): Remove code that is moved to fnmatch-h.
14933         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14934         REPLACE_FNMATCH.
14935         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14936         * modules/posixcheck (Depends-on): Add fnmatch-h.
14938 2018-08-06  Bruno Haible  <bruno@clisp.org>
14940         Enable more C++ tests.
14941         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14942         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14943         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14944         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14945         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14947 2018-08-06  Bruno Haible  <bruno@clisp.org>
14949         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14950         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14951         getopt.h.
14952         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14954 2018-08-05  Bruno Haible  <bruno@clisp.org>
14956         utime-h: Generate header file when module 'posixcheck' is in use.
14957         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14958         UTIME_H to non-empty.
14960 2018-08-05  Bruno Haible  <bruno@clisp.org>
14962         monetary: Generate header file when module 'posixcheck' is in use.
14963         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14964         use, set MONETARY_H to non-empty.
14966 2018-08-05  Bruno Haible  <bruno@clisp.org>
14968         iconv-h: Generate header file when module 'posixcheck' is in use.
14969         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14970         set ICONV_H to non-empty.
14972 2018-08-05  Bruno Haible  <bruno@clisp.org>
14974         Optimize the "checking whether ... is declared without a macro" checks.
14975         Suggested by Paul Eggert in
14976         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14977         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14978         Gnulib module 'posixcheck' is not in use.
14980 2018-08-05  Bruno Haible  <bruno@clisp.org>
14982         iconv-h: Enable 'posixcheck' warnings.
14983         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14984         iconv_open.
14985         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14987 2018-08-05  Bruno Haible  <bruno@clisp.org>
14989         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14990         * m4/extern-inline.m4: Add more comments.
14991         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14992         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14993         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14995 2018-08-04  Bruno Haible  <bruno@clisp.org>
14997         New module 'posixcheck'.
14998         * modules/posixcheck: New file.
14999         * m4/posixcheck.m4: New file.
15000         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
15001         (Which modules?): Reference it.
15003 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
15005         dfa: fix memory leak
15006         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
15008 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
15010         ieee754-h: new module
15011         It looks like Emacs can use this for some NaN processing.
15012         Emacs uses it only on double NaNs so it should be safe.
15013         * MODULES.html.sh (func_all_modules): Add ieee754-h.
15014         * config/srclist.txt: Mention ieee754.h in a comment.
15015         * doc/glibc-headers/ieee754.texi (ieee754.h):
15016         Gnulib now has a substitute that should work
15017         except for long double and for non-IEEE platforms.
15018         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
15019         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
15021 2018-07-27  Bruno Haible  <bruno@clisp.org>
15023         iswcntrl: Mention minor problem on macOS.
15024         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
15026 2018-07-26  Colin Watson  <cjwatson@debian.org>
15028         bootstrap, gnulib-tool: fix translations rsync
15029         Previously, we created files such as $pobase/Makefile.in.in and then the
15030         subsequent rsync would immediately delete them.
15031         * build-aux/bootstrap (po_download_command_format): Avoid deleting
15032         non-.po files in target directory when rsyncing translations.
15033         * gnulib-tool (func_import): Likewise.
15034         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15036 2018-07-25  Jim Meyering  <meyering@fb.com>
15038         bootstrap: reinstate definition fo gnulib_mk.
15039         That variable is used at least by cppi.
15040         * build-aux/bootstrap (gnulib_mk): Restore definition.
15041         This reverts the deletion from v0.1-1844-gc66dba9ba.
15043 2018-07-23  Bruno Haible  <bruno@clisp.org>
15045         doc: For module names, use texinfo markup @code{} or @samp{}.
15046         * doc/alloca.texi: Mark gnulib module names with @code.
15047         * doc/alloca-opt.texi: Likewise.
15048         * doc/quote.texi: Likewise.
15049         * doc/posix-functions/freopen.texi: Likewise.
15050         * doc/posix-functions/open.texi: Likewise.
15051         * doc/posix-functions/readlink.texi: Likewise.
15052         * doc/posix-functions/readlinkat.texi: Likewise.
15053         * doc/posix-functions/stdout.texi: Likewise.
15054         * doc/posix-functions/stderr.texi: Likewise.
15055         * doc/posix-functions/unlink.texi: Likewise.
15056         * doc/posix-functions/unlinkat.texi: Likewise.
15057         * doc/posix-functions/utime.texi: Likewise.
15058         * doc/posix-functions/utimensat.texi: Likewise.
15059         * doc/posix-functions/utimes.texi: Likewise.
15060         * doc/posix-headers/stdint.texi: Likewise.
15061         * doc/glibc-functions/futimesat.texi: Likewise.
15062         * doc/glibc-functions/lutimes.texi: Likewise.
15063         * doc/glibc-functions/memmem.texi: Likewise.
15065 2018-07-23  Werner LEMBERG  <wl@gnu.org>
15067         doc: Avoid some overfull lines in the TeX output.
15068         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
15069         @example.
15070         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
15071         newline before the long URL.
15072         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
15073         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
15074         Add line breaks in code snippets.
15076 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15078         hard-locale: simplify by removing hard-locale.m4
15079         * m4/hard-locale.m4: Remove.
15080         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
15081         (configure.ac): Do not call gl_HARD_LOCALE.
15083         gnulib-tool: limit line length for git send-email
15084         * gnulib-tool (func_import): Break actioncmd log line
15085         into multiple lines.
15087 2018-07-16  Bruno Haible  <bruno@clisp.org>
15089         ffs: Ensure declaration on mingw.
15090         Reported by Daniel P. Berrangé <berrange@redhat.com>
15091         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
15092         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
15093         also declared.
15095 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15097         regex-tests: add dependency
15098         * modules/regex-tests (Depends-on): Add gettext-h.
15099         This is needed given the recent changes to regex,
15100         which no longer depends on gettext-h.
15102 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15104         regex: now in sync with glibc
15105         * config/srclist.txt: Gnulib and glibc regex code
15106         are synchronized again.
15108 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15110         renameatu: rename from renameat2
15111         It's looking like Glibc will add a renameat2 function
15112         that is incompatible with Gnulib renameat2; see:
15113         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
15114         To help avoid future confusion, rename renameat2 to something else.
15115         Use the name 'renameatu', as the Gnulib function is close to the
15116         Glibc function.  Perhaps someday there will also be a renameat2
15117         Gnulib module, which mimicks the future glibc renameat2, but that
15118         can wait as nobody seems to need such a module now.
15119         * NEWS: Mention this.
15120         * lib/renameatu.c: Rename from lib/renameat2.c.
15121         * lib/renameatu.h: Rename from lib/renameat2.h.
15122         * modules/renameatu: Rename from modules/renameat2.
15123         * modules/renameatu-tests: Rename from modules/renameat2-tests.
15124         All uses of "renameat2" in identifiers or file name
15125         changed to "renameatu", except for two instances in
15126         lib/renameatu.c that deal with the Linux kernel's
15127         renameat2 syscall.
15129 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15131         gnulib-tool: minor tweaks for --gnu-make
15132         * gnulib-tool: Do not allow --gnu-make in test modes,
15133         since they all require automake.
15134         (func_emit_lib_Makefile_am): Don’t emit automake comment
15135         if --gnu-make.
15137         regex: work around conditional-dependencies glitch
15138         * modules/regex (Depends-on): Add langinfo.
15139         Without this change, I had problems building an experimental
15140         version of GNU Emacs.  The symptom of the bug was a message
15141         ‘./configure: line 12726: test: =: unary operator expected’.
15142         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
15143         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
15144         was unset.  Although gl_FUNC_NL_LANGINFO has
15145         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
15146         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
15147         --conditional-dependencies sometimes arranges for the
15148         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
15149         code.  Since the regex code includes <langinfo.h> it should be
15150         depending on the langinfo module anyway, and this happens to work
15151         around the bug, so install that as a workaround for now.  To
15152         reproduce the original problem, run the following shell script on
15153         the version of Gnulib just before this patch was installed.
15154                 rm -fr foo
15155                 mkdir foo
15156                 cat >foo/configure.ac <<'EOF'
15157                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
15158                 gl_EARLY
15159                 gl_INIT
15160                 AC_OUTPUT
15161                 EOF
15162                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
15163                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
15164                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
15165                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
15166                 cd foo
15167                 aclocal -I m4
15168                 autoconf
15169                 ./configure --with-included-regex
15171 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15173         wchar: fix bug when checking for ‘inline’
15174         I discovered this when looking into using the regex module
15175         with Emacs.
15176         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
15177         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
15178         conftest1.c and conftest2.c but these files were not created.
15179         As far as I can see, this check never worked and nobody reported
15180         it until now, which is a bit worrisome.
15182 2018-06-30  Jim Meyering  <meyering@fb.com>
15184         bootstrap: s/--option val/--option=val/
15185         * build-aux/bootstrap (gnulib_tool_options): Change the
15186         spelling of "--option val" pairs to "--option=val", for
15187         aesthetics, and also so that this file no longer triggers
15188         a common help2man syntax-check warning when copied into
15189         projects like grep, gzip, etc.
15191 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15193         manywarnings: omit -Wswitch-default
15194         This should make things more consistent, as we already ignore
15195         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
15196         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
15197         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
15198         Add -Wswitch-default.
15199         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
15200         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15201         Remove -Wswitch-default.
15203         regex: revert most trimming
15204         Problems reported by Bruno Haible in:
15205         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
15206         * modules/regex (Depends-on): Add lock, memcmp, memmove,
15207         and wctype back in.  lock because regex users shouldn’t
15208         need to know that regex needs locking, and the rest because
15209         gnulib-tool should ordinarily ignore them anyway.
15211 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15213         regex: trim module dependencies
15214         * modules/regex (Depends-on): Remove gettext-h and lock,
15215         since the regex code should work OK without these modules,
15216         and Emacs uses it that way.  Also remove memcmp, memmove,
15217         and wctype, as these modules are obsolete and should not be
15218         needed any more.
15220 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
15222         regex: glibc does not use intprops.h
15223         Maybe we can talk glibc into using intprops.h someday, but
15224         now doesn’t seem to be a good time.
15225         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
15226         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
15227         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
15229 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
15231         regex: port to recently proposed glibc regex merge
15232         This patch is inspired by Adhemerval Zanella's recent proposal
15233         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
15234         to merge glibc and Gnulib regex.  It aims to simplify the merge on
15235         the glibc side, without keeping Gnulib portable.
15236         * lib/regex.h: Fix a problem with glibc installed-header checking,
15237         as follows:
15238         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
15239         (_Restrict_arr_): Prefer __restrict_arr if defined,
15240         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
15241         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
15242         (build_wcs_upper_buffer, build_upper_buffer)
15243         (re_string_translate_buffer, re_string_context_at):
15244         Move decls here from lib/regex_internal.h, for glibc internal tests.
15245         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
15246         glibc BZ #18496.
15247         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
15248         -Wunused-value.
15249         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
15250         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
15251         (bitset_mask): Now static inline, and without any __attribute__
15252         ((unused)) decoration, for glibc internal tests.
15254 2018-06-25  Bruno Haible  <bruno@clisp.org>
15256         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
15257         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
15258         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
15259         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
15260         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
15261         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
15262         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
15263         / -lthread / -lpth does not get optimized away by a preceding
15264         --as-needed option.
15266 2018-06-25  Bruno Haible  <bruno@clisp.org>
15268         Continue to use spaces for indentation, not tabs.
15269         * MODULES.html.sh: Untabify.
15270         * doc/regex.texi: Likewise.
15271         * lib/acl-internal.c: Likewise.
15272         * lib/dfa.c: Likewise.
15273         * lib/exclude.c: Likewise.
15274         * lib/exclude.h: Likewise.
15275         * lib/get-permissions.c: Likewise.
15276         * lib/gettimeofday.c: Likewise.
15277         * lib/parse-datetime.y: Likewise.
15278         * lib/pselect.c: Likewise.
15279         * lib/set-permissions.c: Likewise.
15280         * lib/time.in.h: Likewise.
15281         * m4/canonicalize.m4: Likewise.
15282         * m4/gc.m4: Likewise.
15283         * m4/gnulib-common.m4: Likewise.
15284         * m4/pthread_sigmask.m4: Likewise.
15285         * m4/vararrays.m4: Likewise.
15286         * tests/test-digest.h: Likewise.
15287         * tests/test-fcntl-h.c: Likewise.
15288         * tests/test-timespec.c: Likewise.
15289         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
15291 2018-06-25  Bruno Haible  <bruno@clisp.org>
15293         manywarnings: Don't enable -Wjump-misses-init warnings by default.
15294         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
15295         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
15296         -Wjump-misses-init.
15298 2018-06-25  Jim Meyering  <meyering@fb.com>
15300         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
15301         * lib/acl-internal.h (free_permission_context): Remove that
15302         attribute directive.  Otherwise, it would provoke this from GCC 9:
15303         lib/acl-internal.h:300:3: error: 'const' attribute on function \
15304           returning 'void' [-Werror=attributes]
15306 2018-06-24  Jim Meyering  <meyering@fb.com>
15308         parse-datetime: accommodate gcc-4.8.5
15309         Bruno Haible reported the build failure in
15310         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
15311         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
15312         on declaration of new local.
15314 2018-06-24  Bruno Haible  <bruno@clisp.org>
15316         af_alg: Fail in continuable manner on Linux/powerpc64le.
15317         Reported by Assaf Gordon <assafgordon@gmail.com>
15318         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
15319         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
15320         byte send() as the first round.
15322 2018-06-24  Bruno Haible  <bruno@clisp.org>
15324         af_alg: Fix state of stream after sendfile() succeeds.
15325         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
15326         the stream is correctly positioned afterwards.
15327         * modules/crypto/af_alg (Depends-on): Add fflush.
15328         * tests/test-digest.h (test_digest_on_files): Verify that after the
15329         operation the stream is positioned at end of file.
15331 2018-06-24  Jim Meyering  <meyering@fb.com>
15333         canon-host: take GCC9's advice rather than ignoring warning
15334         Pádraig Brady suggested not to ignore this GCC9 advice.
15335         * lib/canon-host.c: Undo preceding change.
15336         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
15338         parse-datetime.y: avoid spurious GCC 9 warning
15339         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
15340         a function local prior to the first "goto fail".  The prior use would
15341         evoke this:
15342         parse-datetime.y: In function 'parse_datetime2':
15343         parse-datetime.y:1791:19: error: jump skips variable initialization \
15344           [-Werror=jump-misses-init]
15345         parse-datetime.y:2385:2: note: label 'fail' defined here
15346         parse-datetime.y:188:43: note: '({anonymous})' declared here
15347         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
15349         canon-host.c: avoid spurious GCC 9 warning
15350         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
15352         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
15353         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
15354         * m4/manywarnings.m4: Remove them.
15355         Otherwise, building coreutils, I would see this:
15356         cc1: error: deprecated command line option '-Wchkp' [-Werror]
15357         cc1: error: -Wabi won't warn about anything [-Werror=abi]
15358         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
15359           which is also used by default
15360         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
15362 2018-06-24  Bruno Haible  <bruno@clisp.org>
15364         af_alg tests: Add another test.
15365         * tests/test-digest.h (test_digest_on_files): Also check a large file
15366         with a skipped header.
15367         * tests/test-md5.c: Include macros.h.
15368         * tests/test-sha1.c: Likewise.
15369         * tests/test-sha256.c: Likewise.
15370         * tests/test-sha512.c: Likewise.
15371         * modules/crypto/md5-tests (Files): Add tests/macros.h.
15372         * modules/crypto/sha1-tests (Files): Likewise.
15373         * modules/crypto/sha256-tests (Files): Likewise.
15374         * modules/crypto/sha512-tests (Files): Likewise.
15376 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15378         maint: clarify comments about sticky EOF
15379         * lib/af_alg.c: Be more direct that we can't
15380         assume stickiness of EOF for portability reasons.
15381         * lib/md5.c: Clarify that this isn't just a glibc issue.
15382         * lib/sha1.c: Likewise.
15383         * lib/sha256.c: Likewise.
15384         * lib/sha512.c: Likewise.
15386 2018-06-24  Bruno Haible  <bruno@clisp.org>
15388         af_alg: Comment and style improvements.
15389         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
15390         (afalg_buffer, afalg_stream): Improve comments.
15392 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15394         af_alg: disable kernel hash functions by default
15395         All the kernel routines were seen to be significantly slower
15396         with these relatively recent components on an i3-2310M system:
15397           kernel-4.10.6-200.fc25.x86_64
15398           openssl-1.0.2m-1.fc25.x86_64
15399         sha1 was nearly twice as slow in the kernel for example.
15400         Further considerations why this should not be the default, at:
15401         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
15403         * m4/af_alg.m4: Require --with-linux-crypto to enable.
15404         * m4/gl-openssl.m4: Tweak accordingly.
15406 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15408         af_alg: avoid hangs when reading from streams
15409         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
15410         and thus avoid doing a fread() when feof() is set.
15411         * lib/md5.c: Ensure feof() is called before fread().
15412         * lib/sha1.c: Likewise.
15413         * lib/sha256.c: Likewise.
15414         * lib/sha512.c: Likewise.
15416 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15418         af_alg: fix error handling when hash not returned
15419         * lib/af_alg.c (afalg_stream): Handle the case where we've
15420         successfully written data to the kernel in the read/write loop,
15421         but the kernel doesn't respond with the hash.
15423 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
15425         libc-config: merge from glibc
15426         * lib/cdefs.h (__inline, __restrict):
15427         Copy from current glibc.  This fixes glibc bug 17721,
15428         which Gnulib had already fixed in a different way.
15429         (__nonnull): Lessen the distance from glibc by using the
15430         glibc definition inside an ‘#ifndef __nonnull’.
15431         (__attribute_nonstring__): New macro, copied from
15432         current glibc.
15433         * lib/libc-config.h (__attribute_nonstring__): New undef.
15434         (__restrict): Remove; workaround no longer needed.
15435         Keep the __inline workaround, though, as it uses HAVE___INLINE to
15436         support more compilers than the glibc __inline can.
15438 2018-06-24  Bruno Haible  <bruno@clisp.org>
15440         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
15441         * lib/mbrtowc.c (enc_t): New enum type.
15442         (locale_enc, locale_enc_cached): New functions.
15443         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
15444         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
15445         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
15446         instead.
15447         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
15448         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
15449         * modules/wcwidth (configure.ac): Invoke it.
15451 2018-06-24  Bruno Haible  <bruno@clisp.org>
15453         wchar-single: Fix test failure in wcwidth tests.
15454         * tests/test-wcwidth.c (main): If the wchar-single module is present,
15455         skip the tests in the C locale.
15457 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15459         crypto: mention --without-linux-crypto in --with-openssl --help
15460         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
15461         routines take precedence in --with-openssl help output.
15463 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15465         wchar-single: a new module to enable optimizations in wchar replacements
15466         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
15467         GNULIB_WCHAR_SINGLE is enabled.
15468         * lib/wcwidth.c (wcwidth): Likewise.
15470 2018-06-23  Bruno Haible  <bruno@clisp.org>
15472         libc-config: Fix conflict with FreeBSD include files.
15473         * lib/cdefs.h (__nonnull): Remove definition.
15474         * lib/libc-config.h (__nonnull): Remove undefinition.
15476 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15478         random_r: do not crash if state is unaligned
15479         Problem reported by Bruce Korb in:
15480         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
15481         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
15482         with 'cc -O2 -xmemalign=8s'.
15483         * lib/random_r.c: Include string.h, for memcpy.
15484         (get_int32, set_int32): New functions.
15485         (__srandom_r, __initstate_r, __setstate_r, __random_r):
15486         Use them to avoid assumption that state pointer is aligned.
15487         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
15488         * tests/test-random_r.c (test_failed): New function.
15489         (main): Use it, to test for alignment bugs.
15491         random_r: omit unnecessary include
15492         * lib/random_r.c: Do not include limits.h.
15494         random, random_r: merge from glibc
15495         * lib/random.c, lib/random_r.c:
15496         Include libc-config.h if !_LIBC, not config.h unilaterally.
15497         * lib/random.c:
15498         Do not include stdint.h or time.h; not needed.
15499         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
15500         (unsafe_state): Rename from generator.  All uses changed.
15501         Use C99-style initializers.
15502         (__random, __srandom, __initstate, __setstate): Rename from
15503         non-underscored version, but define it to non-underscored version
15504         on Gnulib.  Add a lock.
15505         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
15506         Likewise.
15507         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
15508         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
15509         (__srandom_r): Use int32_t instead of long int where int32_t will do.
15510         (__random_r): Use uint32 to fix glibc bug 17343.
15511         * modules/random, modules/random_r (Depends-on): Add libc-config.
15512         Depend on stdint only if $HAVE_RANDOM = 0.
15514 2018-06-19  Jim Meyering  <meyering@fb.com>
15516         README-release: also run any check-very-expensive tests
15517         * top/README-release: Adjust instructions so they run the
15518         check-very-expensive tests when there is such a target.
15520 2018-06-18  Bruno Haible  <bruno@clisp.org>
15522         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
15523         * m4/pthread_rwlock_rdlock.m4: Add comment.
15524         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
15525         are reader-preferring in glibc.
15526         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
15527         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
15529 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15531         crypto: use byteswap
15532         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
15533         * lib/sm3.c: Include <byteswap.h>.
15534         (SWAP): Use its macros rather than reinventing the wheel.
15535         * modules/crypto/md4, modules/crypto/md5-buffer:
15536         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
15537         * modules/crypto/sha512-buffer, modules/crypto/sm3:
15538         (Depends-on): Add byteswap.
15540 2018-06-17  Pádraig Brady  <P@draigBrady.com>
15542         gendocs.sh: fix support for legacy --texi2html
15543         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
15544         to the default makeinfo invocation.
15545         Reported by Bruce Korb
15547 2018-06-17  Bruno Haible  <bruno@clisp.org>
15549         gettext po infrastructure: Update from current gettext git.
15550         Reported by Akim Demaille <akim@lrde.epita.fr>.
15551         * build-aux/po/Makefile.in.in: Update from current gettext git.
15552         * build-aux/po/remove-potcdate.sin: Likewise.
15553         * config/srclist.txt: Temporarily disable sync for these files.
15555 2018-06-17  Bruno Haible  <bruno@clisp.org>
15557         getloadavg: Return 0 on Windows without Cygwin.
15558         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
15560 2018-06-17  Paul Smith  <psmith@gnu.org>
15562         getloadavg: Allow building on Windows without Cygwin
15563         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
15564         * m4/getloadavg.m4: Check for unistd.h.
15566 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
15568         Port crypto/af_alg to GCC 4.8.4
15569         Problem reported by Peter Simons in:
15570         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
15571         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
15573 2018-05-27  Colin Watson  <cjwatson@debian.org>
15575         bootstrap: document source fetching in --help
15576         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
15578 2018-04-09  Colin Watson  <cjwatson@debian.org>
15580         bootstrap: allow non-submodule control of gnulib
15581         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
15582         bootstrap.conf when fetching gnulib using "git clone" or via
15583         GNULIB_SRCDIR.
15585 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15587         crypto: omit stream ops Emacs doesn’t need
15588         * lib/md5.c (md5_stream):
15589         * lib/sha1.c (sha1_stream):
15590         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
15591         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15592         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
15593         defined.  Emacs needs this, as it does not use the stream
15594         operations and doesn’t need all the af_alg stuff we’ve recently
15595         added.  Perhaps a similar change is needed to the other crypto
15596         modules, but this patch changes only those needed for Emacs.
15597         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
15598         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
15599         New modules, used by Emacs.
15600         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15601         * modules/crypto/sha512: Rewrite to depend on the new modules.
15603 2018-05-20  Pádraig Brady  <P@draigBrady.com>
15605         fts: avoid a memory leak edge case
15606         * lib/fts.c (fts_open): Set an appropriate fts_level
15607         so that an immediate fts_close() will free the allocation.
15608         * tests/test-fts.c (fts_dealloc): Add a test case which
15609         will trigger under valgrind or address sanitizer.
15610         Fixes https://bugs.gnu.org/31439
15612 2018-05-20  Bruno Haible  <bruno@clisp.org>
15614         wcwidth tests: Fix link error.
15615         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
15616         $(LIBUNISTRING).
15618 2018-05-20  Bruno Haible  <bruno@clisp.org>
15620         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
15621         * modules/regex (Files): Add m4/glibc21.m4.
15623 2018-05-20  Bruno Haible  <bruno@clisp.org>
15625         localcharset: Optimize.
15626         * lib/localcharset.c (alias_table): Comment out no-op mappings for
15627         platforms where these don't matter. This reduces the table size,
15628         which in turn reduces the lookup time.
15630 2018-05-19  Bruno Haible  <bruno@clisp.org>
15632         localcharset: Map the locale encodings found in newer OSes.
15633         * lib/localcharset.c (alias_table): Add mapping for locale encodings
15634         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
15635         IRIX 6.5, Minix 3.3.
15636         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
15638 2018-05-19  Bruno Haible  <bruno@clisp.org>
15640         localcharset: Move mapping tables into the code. Use a binary search.
15641         * lib/localcharset.h: Document the GNU canonical names for character
15642         encodings here.
15643         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
15644         relocatable.h, configmake.h.
15645         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
15646         macros.
15647         (charset_aliases): Remove variable.
15648         (get_charset_aliases): Remove function.
15649         (struct table_entry): New type.
15650         (alias_table, locale_table): New constants.
15651         (locale_charset): Use the alias_table or locale_table to get the
15652         canonicalized encoding name.
15653         * lib/config.charset: Remove file.
15654         * lib/ref-add.sin: Remove file.
15655         * lib/ref-del.sin: Remove file.
15656         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
15657         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
15658         * modules/localcharset (Notice): Remove.
15659         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
15660         glibc21.m4.
15661         (Depends-on): Remove configmake.
15662         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
15663         (Makefile.am): Simplify.
15664         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
15666 2018-05-19  Bruno Haible  <bruno@clisp.org>
15668         localcharset: Add a manual test.
15669         * tests/test-localcharset.c: New file.
15670         * modules/localcharset-tests: New file.
15672 2018-05-19  Bruno Haible  <bruno@clisp.org>
15674         localcharset: Remove support for obsolete platforms.
15675         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15676         Mac OS X 10.2. Comment out dubious entry for Solaris.
15678 2018-05-19  Jim Meyering  <meyering@fb.com>
15680         gnupload: adjust comment
15681         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15682         more likely we'll remove the just-added code in a year or two.
15684 2018-05-19  Bruno Haible  <bruno@clisp.org>
15686         gnupload: Fix "gpg-agent is not available in this session" error.
15687         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15689 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15691         crypto/af_alg: fix --help
15692         * m4/af_alg.m4: Avoid spurious newline in --help output.
15694 2018-05-13  Bruno Haible  <bruno@clisp.org>
15696         nl_langinfo: Fix compilation error on Android.
15697         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15698         INT_CURR_SYMBOL, etc. only if these items are defined.
15700 2018-05-13  Bruno Haible  <bruno@clisp.org>
15702         truncate: Fix compilation error on Android.
15703         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15704         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15705         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15706         HAVE_TRUNCATE.
15707         * modules/truncate: Likewise.
15708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
15709         not HAVE_TRUNCATE.
15710         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
15711         HAVE_TRUNCATE.
15712         * doc/posix-functions/truncate.texi: Mention the issue.
15714 2018-05-13  Bruno Haible  <bruno@clisp.org>
15716         pthread: Fix compilation error on Android.
15717         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
15718         recursive inclusion of this file.
15720 2018-05-13  Bruno Haible  <bruno@clisp.org>
15722         posix_spawn: Fix compilation error on Android.
15723         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
15724         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
15725         (posix_spawn_file_actions_t): Consider also the case
15726         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
15728 2018-05-13  Bruno Haible  <bruno@clisp.org>
15730         tsearch: Move from K&R C to ANSI C.
15731         * lib/tsearch.c (tfind): Convert definition to ANSI C.
15733 2018-05-13  Bruno Haible  <bruno@clisp.org>
15735         tsearch: Fix compilation error on Android.
15736         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
15737         is 0.
15738         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
15739         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
15740         GNULIB_defined_tsearch is true.
15741         (twalk): Define only if GNULIB_defined_twalk is true.
15742         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
15743         is 0.
15744         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
15745         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
15746         * modules/search (Makefile.am): Substitute HAVE_TWALK.
15748 2018-05-13  Bruno Haible  <bruno@clisp.org>
15750         imaxdiv: Fix compilation error on Android.
15751         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
15752         is not defined.
15753         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
15754         HAVE_DECL_IMAXDIV, is 0.
15755         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
15756         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
15758 2018-05-13  Bruno Haible  <bruno@clisp.org>
15760         Support selective inclusion mechanism of recent mingw.org header files.
15761         Reported by Eli Zaretskii <eliz@gnu.org>.
15762         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
15763         __need_ssize_t, or __need_time_t is defined, just include the system's
15764         <sys/types.h>.
15765         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
15766         include the system's <locale.h>.
15768 2018-05-13  Bruno Haible  <bruno@clisp.org>
15770         Avoid compilation error due to 'mmap' on Android.
15771         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
15772         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
15773         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
15774         Undefine on Android.
15776 2018-05-13  Bruno Haible  <bruno@clisp.org>
15778         Add cross-compilation guesses for Linux systems without glibc.
15779         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
15780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
15781         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15782         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15783         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
15784         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15785         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15786         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15787         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
15788         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
15789         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15790         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15791         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15792         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15793         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15794         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15795         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15796         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15798 2018-05-13  Bruno Haible  <bruno@clisp.org>
15800         getpagesize: Fix compilation error on Android.
15801         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
15802         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
15803         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
15804         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
15805         HAVE_GETPAGESIZE accordingly.
15806         * modules/getcwd (Files): Add m4/getpagesize.m4.
15808 2018-05-13  Bruno Haible  <bruno@clisp.org>
15810         tcgetsid: Fix compilation error on Android.
15811         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15812         AC_CHECK_FUNC.
15814 2018-05-13  Bruno Haible  <bruno@clisp.org>
15816         getpass: Fix configure test for Android.
15817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15818         AC_CHECK_FUNC.
15820 2018-05-13  Bruno Haible  <bruno@clisp.org>
15822         ffs: Fix compilation error on Android.
15823         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15825 2018-05-13  Bruno Haible  <bruno@clisp.org>
15827         mkfifo: Fix compilation error on Android.
15828         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15829         AC_CHECK_FUNC.
15831 2018-05-13  Bruno Haible  <bruno@clisp.org>
15833         c-strtod: Fix configure test for Android.
15834         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15835         AC_CHECK_FUNC.
15837 2018-05-13  Bruno Haible  <bruno@clisp.org>
15839         random: Fix compilation error on Android.
15840         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15841         AC_CHECK_FUNC.
15843 2018-05-13  Bruno Haible  <bruno@clisp.org>
15845         grantpt: Fix compilation error on Android.
15846         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15847         AC_CHECK_FUNC.
15849 2018-05-13  Bruno Haible  <bruno@clisp.org>
15851         stdioext: Fix compilation errors with newer Android headers.
15852         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15853         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15854         fallbacks for Android.
15855         * lib/fpending.c: Update comments.
15856         * lib/fpurge.c: Likewise.
15857         * lib/freadable.h: Likewise.
15858         * lib/freadable.c: Likewise.
15859         * lib/freadahead.c: Likewise.
15860         * lib/freading.h: Likewise.
15861         * lib/freadptr.c: Likewise.
15862         * lib/fseterr.c: Likewise.
15863         * lib/fwritable.h: Likewise.
15864         * lib/fwritable.c: Likewise.
15865         * lib/fwriting.h: Likewise.
15866         * lib/fwriting.c: Likewise.
15868 2018-05-13  Bruno Haible  <bruno@clisp.org>
15870         doc: Add info about Android versions 2.0 to 8.1.
15871         * doc/**/*.texi: Add info about functions in all released versions of
15872         Bionic.
15874 2018-05-12  Bruno Haible  <bruno@clisp.org>
15876         fseeko: On mingw, don't use the hidden function _fseeki64.
15877         Reported by Eli Zaretskii <eliz@gnu.org>.
15878         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15879         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15881 2018-05-12  Bruno Haible  <bruno@clisp.org>
15883         glob: Choose 'dirent_type' in a way that works better on mingw.
15884         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15885         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15887 2018-05-12  Bruno Haible  <bruno@clisp.org>
15889         execute, spawn-pipe: Avoid warning about redefining 'close'.
15890         Reported by Eli Zaretskii <eliz@gnu.org>.
15891         * lib/execute.c: Undefine 'close' before redefining it.
15892         * lib/spawn-pipe.c: Likewise.
15894 2018-05-12  Bruno Haible  <bruno@clisp.org>
15896         nanosleep: Avoid test failure on mingw when it has nanosleep.
15897         Reported by Eli Zaretskii <eliz@gnu.org>.
15898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15899         If it does not exist, use a simpler test program that does not call
15900         alarm().
15902 2018-05-10  Bruno Haible  <bruno@clisp.org>
15904         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15905         Reported by Devin Hussey <husseydevin@gmail.com>.
15906         Based on a patch by Paul Eggert.
15907         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15908         as witness of libpthread.
15909         * lib/glthread/cond.h (pthread_in_use): Likewise.
15910         * lib/glthread/thread.h (pthread_in_use): Likewise.
15911         * lib/glthread/tls.h (pthread_in_use): Likewise.
15913 2018-05-10  Bruno Haible  <bruno@clisp.org>
15915         cond tests: Fix compilation error on Solaris.
15916         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15917         macro.
15919 2018-05-10  Bruno Haible  <bruno@clisp.org>
15921         doc: Add partial info about Android 4.3.
15922         * doc/*-functions/*.texi: Add info about functions that were added
15923         to Bionic between Android 4.3 and Android 9.0.
15925 2018-05-10  Bruno Haible  <bruno@clisp.org>
15927         doc: Add info about Android 9.0.
15928         * doc/**/*.texi: Add info about functions and headers in Bionic from
15929         Android 9.0.
15931 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15933         af_alg: fix my typo in afalg_buffer
15934         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15935         (afalg_stream): Simplify and avoid the need for a runtime test
15936         at the end.
15938         af_alg: recover better from crypto failures
15939         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15940         input stream is seekable, by repositioning the stream back to
15941         where it was, possibly by just calling sendfile with an offset
15942         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15943         cases, which lets our callers try again with user-mode code.
15944         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15945         instead of on fflush and lseek.
15947         af_alg: distiguish I/O errors better
15948         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15949         not -EIO, if it’s OK for the caller to try again with user-mode code.
15950         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15951         some other error number) if fflush fails, as the caller should not
15952         try again that case.
15954         af_alg: avoid gotos
15955         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15956         gotos, as they were a source of unreliability and made the code a
15957         bit harder to follow.
15959         af_alg: don’t leak file descriptors into children
15960         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15961         This code should be compiled only on recent GNU/Linux platforms
15962         so we shouldn’t have to also depend on the accept4 module.
15964         af_alg: coalesce socket creation
15965         * lib/af_alg.c (alg_socket): New function.
15966         (afalg_buffer, afalg_stream): Use it.  This avoids some
15967         code duplication and gotos.
15969         af_alg: fix file descriptor leak
15970         * lib/af_alg.c (afalg_stream): Close leak.
15972         af_alg: Pacify --enable-gcc-warnings on GCC 8
15973         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15974         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15976 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15978         af_alg: Pacify --enable-gcc-warnings
15979         Problem reported by Assaf Gordon in:
15980         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15981         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15982         gcc -Wjump-misses-init.
15983         * lib/sha512.c (shaxxx_stream): Now static.
15985 2018-05-06  Bruno Haible  <bruno@clisp.org>
15987         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15988         * lib/af_alg.h (afalg_buffer): New declaration.
15989         * lib/af_alg.c (afalg_buffer): New function.
15991 2018-05-06  Bruno Haible  <bruno@clisp.org>
15993         af_alg: Avoid warnings.
15994         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15995         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15997 2018-05-06  Bruno Haible  <bruno@clisp.org>
15999         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
16000         * tests/bench-digest.h: New file.
16001         * tests/bench-md5.c: New file.
16002         * tests/bench-sha1.c: New file.
16003         * tests/bench-sha224.c: New file.
16004         * tests/bench-sha256.c: New file.
16005         * tests/bench-sha384.c: New file.
16006         * tests/bench-sha512.c: New file.
16007         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
16008         tests/bench-digest.h.
16009         (Depends-on): Add getrusage, gettimeofday.
16010         (Makefile.am): Add variables to build bench-md5.
16011         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
16012         tests/bench-digest.h.
16013         (Depends-on): Add getrusage, gettimeofday.
16014         (Makefile.am): Add variables to build bench-sha1.
16015         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
16016         tests/bench-sha256.c, tests/bench-digest.h.
16017         (Depends-on): Add getrusage, gettimeofday.
16018         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
16019         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
16020         tests/bench-sha512.c, tests/bench-digest.h.
16021         (Depends-on): Add getrusage, gettimeofday.
16022         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
16024 2018-05-06  Bruno Haible  <bruno@clisp.org>
16026         af_alg: Fix a resource leak.
16027         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
16028         New local variable 'result'.
16030 2018-05-06  Bruno Haible  <bruno@clisp.org>
16032         af_alg: Fix bug with streams that are not at position 0.
16033         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
16034         assume that the stream is positioned at position 0.
16035         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
16036         of the stream.
16037         * lib/md5.h (md5_stream): Likewise.
16038         * lib/sha1.h (sha1_stream): Likewise.
16039         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
16040         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
16041         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
16043         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
16044         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
16045         stream that is not positioned at the beginning.
16047 2018-05-06  Bruno Haible  <bruno@clisp.org>
16049         af_alg: Add configure option to enable/disable use of Linux crypto API.
16050         Suggested by Assaf Gordon <assafgordon@gmail.com>.
16051         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
16052         USE_LINUX_CRYPTO_API.
16053         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
16054         * lib/af_alg.c: Likewise.
16056 2018-05-06  Bruno Haible  <bruno@clisp.org>
16058         Followup to 'af_alg: New module.'.
16059         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
16060         * modules/crypto/sha1 (Depends-on): Likewise.
16061         * modules/crypto/sha256 (Depends-on): Likewise.
16062         * modules/crypto/sha512 (Depends-on): Likewise.
16064 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16066         crypto/{md5,sha1,sha256,sha512}: simplify
16067         * lib/md5.c (md5_stream):
16068         * lib/sha1.c (sha1_stream):
16069         * lib/sha256.c (shaxxx_stream):
16070         Simplify, partly by assuming C99.
16071         * lib/sha256.c (shaxxx_stream):
16072         New function, which implements both sha256 and sha224.
16073         Simplify, partly by assuming C99.
16074         (sha256_stream, sha224_stream):
16075         Use it to avoid code duplication, removing a FIXME.
16076         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
16077         Likewise.
16079         af_alg: Improve comments.
16080         * lib/af_alg.h: Use imperatives and tighten up wording.
16082 2018-05-05  Bruno Haible  <bruno@clisp.org>
16084         af_alg: Improve comments.
16085         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
16087 2018-05-05  Bruno Haible  <bruno@clisp.org>
16089         af_alg: New module.
16090         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
16091         * lib/af_alg.c: Include "af_alg.h" before the other header files.
16092         * lib/md5.c: Include "af_alg.h" unconditionally.
16093         (md5_stream): Invoke afalg_stream unconditionally.
16094         * lib/sha1.c: Include "af_alg.h" unconditionally.
16095         (sha1_stream): Invoke afalg_stream unconditionally.
16096         * lib/sha256.c: Include "af_alg.h" unconditionally.
16097         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
16098         * lib/sha512.c: Include "af_alg.h" unconditionally.
16099         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
16100         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
16101         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
16102         * modules/crypto/af_alg: New file.
16103         * modules/crypto/md5 (Files): Remove files that are now in the
16104         'crypto/af_alg' module.
16105         (Depends-on): Add crypto/af_alg.
16106         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16107         (Makefile.am): Don't mention af_alg.c here.
16108         * modules/crypto/sha1 (Files): Remove files that are now in the
16109         'crypto/af_alg' module.
16110         (Depends-on): Add crypto/af_alg.
16111         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16112         (Makefile.am): Don't mention af_alg.c here.
16113         * modules/crypto/sha256 (Files): Remove files that are now in the
16114         'crypto/af_alg' module.
16115         (Depends-on): Add crypto/af_alg.
16116         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16117         (Makefile.am): Don't mention af_alg.c here.
16118         * modules/crypto/sha512 (Files): Remove files that are now in the
16119         'crypto/af_alg' module.
16120         (Depends-on): Add crypto/af_alg.
16121         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16122         (Makefile.am): Don't mention af_alg.c here.
16124 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16126         crypto tests: pacify GCC
16127         * tests/test-digest.h (test_digest_on_files):
16128         Don’t assume digest size fits in int (!).
16130         af_alg: minor style improvements
16131         * lib/af_alg.c (afalg_stream): Prefer C99 style
16132         decl-after-statement, since we’re already assuming C99.  Clarify
16133         by strengthening the bind test and omit unnecessary assignment.
16135 2018-05-05  Bruno Haible  <bruno@clisp.org>
16137         af_alg: Fix bug on empty files.
16138         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
16139         stream is empty.
16141 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16143         sys-limits.h: new file for crypto and safe I/O
16144         * lib/af_alg.c: Include sys-limits.h.
16145         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
16146         (afalg_stream): Also reject negative sizes for sendfile; they
16147         should not happen and the code is a bit cleaner and faster this way.
16148         * lib/safe-read.c: Include sys-limits.h.
16149         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
16150         * lib/sys-limits.h: New file, with values and commentary derived
16151         from the old safe-read.c and from GNU Emacs sysdep.c.
16152         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16153         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
16154         Add lib/sys-limits.h to Files section.
16156 2018-05-05  Bruno Haible  <bruno@clisp.org>
16158         af_alg: Improve function signature.
16159         * lib/af_alg.h (afalg_stream): Swap second and third argument.
16160         * lib/af_alg.c (afalg_stream): Likewise.
16161         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
16163 2018-05-05  Bruno Haible  <bruno@clisp.org>
16165         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
16166         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
16167         * modules/crypto/sha1 (Depends-on): Likewise.
16168         * modules/crypto/sha256 (Depends-on): Likewise.
16169         * modules/crypto/sha512 (Depends-on): Likewise.
16171 2018-05-05  Bruno Haible  <bruno@clisp.org>
16173         crypto/{md5,sha1,sha256,sha512}: Fix module description.
16174         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
16175         * modules/crypto/sha1 (Depends-on): Likewise.
16176         * modules/crypto/sha256 (Depends-on): Likewise.
16177         * modules/crypto/sha512 (Depends-on): Likewise.
16179 2018-05-05  Bruno Haible  <bruno@clisp.org>
16181         af_alg: Add documentation.
16182         * lib/af_alg.h: Add comments.
16184 2018-05-05  Bruno Haible  <bruno@clisp.org>
16186         sha512: Add tests.
16187         * tests/test-sha512.c: New file.
16188         * modules/crypto/sha512-tests: New file.
16190 2018-05-05  Bruno Haible  <bruno@clisp.org>
16192         sha256: Add tests.
16193         * tests/test-sha256.c: New file.
16194         * modules/crypto/sha256-tests: New file.
16196 2018-05-05  Bruno Haible  <bruno@clisp.org>
16198         sha1 tests: Add test for sha1_stream.
16199         * tests/test-sha1.c: Include test-digest.h.
16200         (main): Invoke test_digest_on_files on 'sha1_stream'.
16201         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
16203 2018-05-05  Bruno Haible  <bruno@clisp.org>
16205         md5 tests: Add test for md5_stream.
16206         * tests/test-digest.h: New file.
16207         * tests/test-md5.c: Include test-digest.h.
16208         (main): Invoke test_digest_on_files on 'md5_stream'.
16209         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
16211 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16213         md5sum: Use AF_ALG when available.
16214         * lib/md5.c: Include af_alg.h.
16215         (md5_stream): Use afalg_stream when available.
16216         * modules/crypto/md5 (Files): Add the af_alg files.
16217         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16218         (Makefile.am): Add af_alg.c.
16220 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16222         sha512sum: Use AF_ALG when available.
16223         * lib/sha512.c: Include af_alg.h.
16224         (sha512_stream, sha384_stream): Use afalg_stream when available.
16225         * modules/crypto/sha512 (Files): Add the af_alg files.
16226         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16227         (Makefile.am): Add af_alg.c.
16229 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16231         sha256sum: Use AF_ALG when available.
16232         * lib/sha256.c: Include af_alg.h.
16233         (sha256_stream, sha224_stream): Use afalg_stream when available.
16234         * modules/crypto/sha256 (Files): Add the af_alg files.
16235         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16236         (Makefile.am): Add af_alg.c.
16238 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16240         sha1sum: Use AF_ALG when available.
16241         * lib/af_alg.h: New file.
16242         * lib/af_alg.c: New file.
16243         * lib/sha1.c: Include af_alg.h.
16244         (sha1_stream): Use afalg_stream when available.
16245         * m4/linux-if-alg.m4: New file.
16246         * modules/crypto/sha1 (Files): Add the new files.
16247         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16248         (Makefile.am): Add af_alg.c.
16250 2018-05-05  Bruno Haible  <bruno@clisp.org>
16252         all: Replace more http URLs by https URLs.
16253         * lib/localename.c: Use https: URL.
16254         * lib/timespec.h: Likewise.
16256 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
16258         maint: port more modules to GCC 8
16259         * lib/dirname.h (base_name):
16260         * lib/exclude.h (new_exclude):
16261         * lib/xstrndup.h (xstrndup):
16262         Add malloc attribute.
16263         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
16264         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
16265         This pacifies GCC 8.
16266         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16267         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
16269 2018-05-03  Bruno Haible  <bruno@clisp.org>
16271         Simplify code. Drop support for Borland C++ on Windows.
16272         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
16273         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
16274         'defined _WIN32'.
16275         * lib/canonicalize-lgpl.c: Likewise.
16276         * lib/classpath.c: Likewise.
16277         * lib/clean-temp.c: Likewise.
16278         * lib/csharpexec.c: Likewise.
16279         * lib/ctime.c: Likewise.
16280         * lib/dosname.h: Likewise.
16281         * lib/dup2.c: Likewise.
16282         * lib/errno.in.h: Likewise.
16283         * lib/error.c: Likewise.
16284         * lib/euidaccess.c: Likewise.
16285         * lib/execute.c: Likewise.
16286         * lib/fcntl.in.h: Likewise.
16287         * lib/fcntl.c: Likewise.
16288         * lib/filename.h: Likewise.
16289         * lib/findprog.c: Likewise.
16290         * lib/flock.c: Likewise.
16291         * lib/fopen.c: Likewise.
16292         * lib/freopen.c: Likewise.
16293         * lib/fstat.c: Likewise.
16294         * lib/fsync.c: Likewise.
16295         * lib/gc-gnulib.c: Likewise.
16296         * lib/get-rusage-data.c: Likewise.
16297         * lib/getaddrinfo.c: Likewise.
16298         * lib/getdelim.c: Likewise.
16299         * lib/getdtablesize.c: Likewise.
16300         * lib/gethostname.c: Likewise.
16301         * lib/getlogin.c: Likewise.
16302         * lib/getlogin_r.c: Likewise.
16303         * lib/getopt.c: Likewise.
16304         * lib/getpagesize.c: Likewise.
16305         * lib/getpass.c: Likewise.
16306         * lib/getrusage.c: Likewise.
16307         * lib/gettimeofday.c: Likewise.
16308         * lib/glob.c: Likewise.
16309         * lib/inttypes.in.h: Likewise.
16310         * lib/isapipe.c: Likewise.
16311         * lib/javaexec.c: Likewise.
16312         * lib/link.c: Likewise.
16313         * lib/localcharset.c: Likewise.
16314         * lib/localename.h: Likewise.
16315         * lib/localename.c: Likewise.
16316         * lib/localtime.c: Likewise.
16317         * lib/lseek.c: Likewise.
16318         * lib/mbsinit.c: Likewise.
16319         * lib/mkdir.c: Likewise.
16320         * lib/msvc-nothrow.h: Likewise.
16321         * lib/nanosleep.c: Likewise.
16322         * lib/nl_langinfo.c: Likewise.
16323         * lib/nonblocking.c: Likewise.
16324         * lib/nproc.c: Likewise.
16325         * lib/open.c: Likewise.
16326         * lib/openpty.c: Likewise.
16327         * lib/pathmax.h: Likewise.
16328         * lib/pipe-filter-aux.c: Likewise.
16329         * lib/pipe-filter-gi.c: Likewise.
16330         * lib/pipe-filter-ii.c: Likewise.
16331         * lib/pipe.c: Likewise.
16332         * lib/pipe2.c: Likewise.
16333         * lib/poll.c: Likewise.
16334         * lib/popen.c: Likewise.
16335         * lib/posix_openpt.c: Likewise.
16336         * lib/printf-parse.c: Likewise.
16337         * lib/progreloc.c: Likewise.
16338         * lib/putenv.c: Likewise.
16339         * lib/read.c: Likewise.
16340         * lib/relocatable.c: Likewise.
16341         * lib/rename.c: Likewise.
16342         * lib/same-inode.h: Likewise.
16343         * lib/secure_getenv.c: Likewise.
16344         * lib/select.c: Likewise.
16345         * lib/sethostname.c: Likewise.
16346         * lib/setlocale.c: Likewise.
16347         * lib/sigaction.c: Likewise.
16348         * lib/sigprocmask.c: Likewise.
16349         * lib/sleep.c: Likewise.
16350         * lib/spawn-pipe.h: Likewise.
16351         * lib/spawn-pipe.c: Likewise.
16352         * lib/spawni.c: Likewise.
16353         * lib/stat-time.h: Likewise.
16354         * lib/stat-w32.c: Likewise.
16355         * lib/stat.c: Likewise.
16356         * lib/stdio.in.h: Likewise.
16357         * lib/stdio-impl.h: Likewise.
16358         * lib/stdio-read.c: Likewise.
16359         * lib/stdio-write.c: Likewise.
16360         * lib/stdlib.in.h: Likewise.
16361         * lib/strerror_r.c: Likewise.
16362         * lib/strftime-fixes.c: Likewise.
16363         * lib/sys_stat.in.h: Likewise.
16364         * lib/sys_types.in.h: Likewise.
16365         * lib/sys_wait.in.h : Likewise.
16366         * lib/system-quote.h: Likewise.
16367         * lib/system-quote.c: Likewise.
16368         * lib/tmpdir.c: Likewise.
16369         * lib/tzset.c: Likewise.
16370         * lib/uname.c: Likewise.
16371         * lib/unistd.in.h: Likewise.
16372         * lib/utime.in.h: Likewise.
16373         * lib/utime.c: Likewise.
16374         * lib/utimecmp.c: Likewise.
16375         * lib/utimens.c: Likewise.
16376         * lib/vasnprintf.c: Likewise.
16377         * lib/vma-iter.h: Likewise.
16378         * lib/vma-iter.c: Likewise.
16379         * lib/wait-process.c: Likewise.
16380         * lib/wcsftime.c: Likewise.
16381         * lib/wctype.in.h: Likewise.
16382         * lib/write.c: Likewise.
16383         * tests/nap.h: Likewise.
16384         * tests/test-cloexec.c: Likewise.
16385         * tests/test-dup-safer.c: Likewise.
16386         * tests/test-dup2.c: Likewise.
16387         * tests/test-dup3.c: Likewise.
16388         * tests/test-fcntl.c: Likewise.
16389         * tests/test-get-rusage-data.c: Likewise.
16390         * tests/test-getaddrinfo.c: Likewise.
16391         * tests/test-getlogin.h: Likewise.
16392         * tests/test-isatty.c: Likewise.
16393         * tests/test-localename.c: Likewise.
16394         * tests/test-mbrtowc-w32.c: Likewise.
16395         * tests/test-nonblocking.c: Likewise.
16396         * tests/test-nonblocking-pipe-main.c: Likewise.
16397         * tests/test-nonblocking-socket-main.c: Likewise.
16398         * tests/test-nonblocking-socket.h: Likewise.
16399         * tests/test-pipe.c: Likewise.
16400         * tests/test-pipe2.c: Likewise.
16401         * tests/test-poll.c: Likewise.
16402         * tests/test-pthread_sigmask1.c: Likewise.
16403         * tests/test-select.h: Likewise.
16404         * tests/test-sethostname2.c: Likewise.
16405         * tests/test-sigprocmask.c: Likewise.
16406         * tests/test-spawn-pipe-child.c: Likewise.
16407         * tests/test-stat-time.c: Likewise.
16408         * tests/test-system-quote-main.c: Likewise.
16409         * tests/test-utimens-common.h: Likewise.
16410         * tests/test-wcrtomb-w32.c: Likewise.
16411         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
16412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16413         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
16414         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
16415         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
16416         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16417         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16418         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16419         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16420         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16421         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
16422         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
16423         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16424         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16425         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
16426         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16428 2018-05-02  Bruno Haible  <bruno@clisp.org>
16430         localename: Fix test failures on mingw.
16431         * lib/localename.c (gl_locale_name_thread): Remove code specific to
16432         native Windows.
16433         (gl_locale_name_posix): Move code specific to native Windows here.
16434         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16435         Accept result without charset suffix, as it appears on mingw.
16437 2018-04-28  Paul Smith  <psmith@gnu.org>
16439         bootstrap: Avoid gnulib operations if not needed
16440         * build-aux/bootstrap: Remove unused variable gnulib_mk.
16441         Set $gnulib_extra_files early so it can be overridden in .conf.
16442         Remove redundant --import flag from $gnulib_tool_options.
16443         Set $use_gnulib to false if no gnulib modules or files are needed.
16444         If $use_gnulib is false, don't do anything related to gnulib.
16445         A lot of this is just whitespace (indentation) changes.
16447 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16449         manywarnings: port to GCC 8.0
16450         * build-aux/gcc-warning.spec: Add -Wcatch-value,
16451         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
16452         fact that the GCC help message now mentions operands for
16453         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
16454         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
16455         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
16456         and -Wunused-const-variable.
16457         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
16458         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
16459         -Wmissing-attributes, -Wmultistatement-macros,
16460         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
16461         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
16463 2018-04-24  Bruno Haible  <bruno@clisp.org>
16465         sys_socket: Make SO_REUSEPORT available across platforms.
16466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16467         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
16468         * doc/posix-headers/sys_socket.texi: Mention the issue.
16469         * tests/test-poll.c (SO_REUSEPORT): Remove.
16470         * tests/test-select.h: Include <sys/socket.h>.
16471         (SO_REUSEPORT): Remove.
16472         * modules/select-tests (Depends-on): Add 'sys_socket'.
16474 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
16476         localcharset: short-circuit the search for an alias on a Mac
16477         * lib/localcharset.c (get_charset_aliases): Add a tautological
16478         UTF-8 entry to speed up the search for this case.
16479         Most machines default to a UTF-8 locale nowadays, so begin the
16480         list of aliases with a dummy UTF-8 entry so it will be found
16481         immediately and a time-consuming search through the rest of
16482         the list is avoided.
16484 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16486         fts: add comment
16487         * lib/fts.c (fts_build): Explain why ==, not >.
16488         See remark by Bernhard Voelker in:
16489         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
16491         fts: fix bug in find across filesystems
16492         This fixes a bug I introduced last summer.
16493         Problem reported by Kamil Dudka in:
16494         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
16495         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
16496         (leaf_optimization):
16497         New arg for file descriptor.  All callers changed.
16498         (fts_build): Check for whether inodes should be sorted
16499         before closing the directory.
16501 2018-04-07  Bruno Haible  <bruno@clisp.org>
16503         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
16504         Reported by Genki Sky <sky@genki.is>.
16505         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
16506         version 0.9.10 or newer.
16507         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
16508         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
16509         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
16510         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
16511         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
16513 2018-04-07  Bruno Haible  <bruno@clisp.org>
16515         execute: Update comment.
16516         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
16518 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16520         fts: treat CIFS like NFS
16521         Problem reported by Kamil Dudka in:
16522         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
16523         * lib/fts.c (S_MAGIC_CIFS): New macro.
16524         (dirent_inode_sort_may_be_useful, leaf_optimization):
16525         Treat CIFS like NFS.
16527 2018-03-28  Bruno Haible  <bruno@clisp.org>
16529         c-stack: Fix possible build failure on some platforms.
16530         * lib/c-stack.c (die): Define whenever this function is referenced.
16532 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
16534         time_rz: fix workaround for Mac OS X 10.6 infloop
16535         Problems reported by Charles A. Roelli (Bug#27736#117).
16536         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
16537         Also, discard output, which clutters the 'configure' log.
16539 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16541         havelib: port to Solaris 10 /bin/sh
16542         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
16543         instead of '! test EXPR'.
16545 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
16547         time_rz: work around Mac OS X 10.6 infloop
16548         * doc/posix-functions/localtime.texi:
16549         * doc/posix-functions/localtime_r.texi: Mention the bug.
16550         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
16551         better to fix localtime and localtime_r instead, but that would be
16552         more work and is not needed to fix the Emacs problem.
16553         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
16555 2018-03-24  Jim Meyering  <meyering@fb.com>
16557         test-version-etc.sh: don't use diff directly: use init.sh's compare
16558         We'd rather not sacrifice readable "diff -u" output even for
16559         "diff -c" output (not supported by busybox) or for even less
16560         readable ed-style "diff" output.  So use init.sh's compare function
16561         * tests/test-version-etc.sh: Source init.sh and add "." to path.
16562         Remove "./" from invocation of test-version-etc, so we use path.
16563         And s/diff/compare/.
16564         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
16565         to get init.sh.
16566         Prompted by Eric Blake's comments in
16567         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
16569 2018-03-24  Bruno Haible  <bruno@clisp.org>
16571         javacomp-script, javacomp: Add support for Java 10.
16572         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
16573         target-version 10.
16574         * lib/javaversion.h: Update comments.
16575         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16576         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16577         TARGET_VERSION_BOUND, target_version_index,
16578         corresponding_classfile_version): Accept source_version 10 and
16579         target_version 10.
16580         * lib/javacomp.h: Update comments accordingly.
16582 2018-03-24  Bruno Haible  <bruno@clisp.org>
16584         javacomp-script, javacomp: Update comments.
16585         * m4/javacomp.m4: Update comments regarding gcj.
16586         * lib/javacomp.h: Likewise.
16588 2018-03-24  Bruno Haible  <bruno@clisp.org>
16590         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
16591         * lib/javaversion.h: Update comments.
16592         * lib/javacomp.h: Likewise.
16593         * lib/javacomp.c (default_target_version, source_version_index,
16594         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
16595         "1.9".
16596         (TARGET_VERSION_BOUND): Bump to 9.
16597         (target_version_index, corresponding_classfile_version): Recognize "9"
16598         instead of "1.9".
16599         (get_source_version_for_javac): New function.
16600         (is_envjavac_nongcj_usable, is_javac_usable): Add
16601         source_version_for_javac argument.
16602         (compile_java_class): Determine and pass source_version_for_javac.
16603         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
16604         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
16605         appropriate.
16607 2018-03-23  Jim Meyering  <meyering@fb.com>
16609         test-version-etc.sh: port to diff without -c
16610         * tests/test-version-etc.sh: Don't use diff's -c option.
16611         This caused spurious test failure on Alpine Linux, which
16612         uses busybox's diff. Reported by Assaf Gordon in
16613         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
16615 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16617         c-stack: port to recent GCC build
16618         Problem reported by The Fireplace (Bug#30913).
16619         * lib/c-stack.c (die): Define only if used.
16621 2018-03-20  Bruno Haible  <bruno@clisp.org>
16623         euidaccess: Port to native Windows.
16624         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
16625         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
16627 2018-03-19  Bruno Haible  <bruno@clisp.org>
16629         javacomp: Add support for Java 7, 8, 9.
16630         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16631         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16632         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
16633         and target_version 1,7, 1.8, 1.9.
16634         * lib/javacomp.h: Update comments accordingly.
16636 2018-03-19  Bruno Haible  <bruno@clisp.org>
16638         javacomp-script: Add support for Java 9.
16639         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
16640         target-version 1.9.
16642 2018-03-16  Bruno Haible  <bruno@clisp.org>
16644         glob: Don't compile replacements on recent glibc systems.
16645         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
16646         REPLACE_GLOB is 0, include the system's <glob.h> and use
16647         _GL_CXXALIAS_SYS.
16648         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
16649         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
16650         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
16651         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
16652         Remove snippet/warn-on-use.
16653         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
16654         (Makefile.am): Create glob.h always. Update list of substitutions in
16655         glob.h. Don't depend on $(WARN_ON_USE_H).
16657 2018-03-16  Bruno Haible  <bruno@clisp.org>
16659         glob: Fix link error on native Windows.
16660         * modules/glob (Depends-on): Add 'lstat'.
16662 2018-03-15  Bruno Haible  <bruno@clisp.org>
16664         glob: Fix compilation error in C++ mode.
16665         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16667 2018-03-15  Bruno Haible  <bruno@clisp.org>
16669         host-cpu-c-abi: Support for RISC-V CPU.
16670         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16671         riscv32 and riscv64 ABIs.
16672         References:
16673         https://github.com/riscv/riscv-toolchain-conventions
16674         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16675         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16677 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16679         fflush: be more paranoid about libio.h change
16680         Suggested by Eli Zaretskii in:
16681         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16682         * lib/fbufmode.c (fbufmode):
16683         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16684         (disable_seek_optimization, rpl_fflush):
16685         * lib/fpending.c (__fpending):
16686         * lib/fpurge.c (fpurge):
16687         * lib/freadable.c (freadable):
16688         * lib/freadahead.c (freadahead):
16689         * lib/freading.c (freading):
16690         * lib/freadptr.c (freadptr):
16691         * lib/freadseek.c (freadptrinc):
16692         * lib/fseeko.c (fseeko):
16693         * lib/fseterr.c (fseterr):
16694         * lib/fwritable.c (fwritable):
16695         * lib/fwriting.c (fwriting):
16696         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16698 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16700         maint: write-file-hooks -> before-save-hook
16701         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16702         it's time to use the recommended replacement.
16703         Problem reported by Glenn Morris in:
16704         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16705         * build-aux/announce-gen, build-aux/bootstrap:
16706         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16707         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
16708         * build-aux/gnu-web-doc-update, build-aux/gnupload:
16709         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
16710         * build-aux/update-copyright, build-aux/useless-if-before-free:
16711         * build-aux/vc-list-files:
16712         Update hook usage for files where Gnulib is the canonical source.
16714 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16716         binary-io: pacify gcc -Wunused-parameter
16717         Problem reported by Reuben Thomas in:
16718         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
16719         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
16720         Use _GL_UNUSED where appropriate.
16722         fflush: adjust to glibc 2.28 libio.h removal
16723         Problem reported by Daniel P. Berrangé in:
16724         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
16725         * lib/fbufmode.c (fbufmode):
16726         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16727         (disable_seek_optimization, rpl_fflush):
16728         * lib/fpending.c (__fpending):
16729         * lib/fpurge.c (fpurge):
16730         * lib/freadable.c (freadable):
16731         * lib/freadahead.c (freadahead):
16732         * lib/freading.c (freading):
16733         * lib/freadptr.c (freadptr):
16734         * lib/freadseek.c (freadptrinc):
16735         * lib/fseeko.c (fseeko):
16736         * lib/fseterr.c (fseterr):
16737         * lib/fwritable.c (fwritable):
16738         * lib/fwriting.c (fwriting):
16739         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
16740         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
16741         Define if not already defined.
16743 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
16745         environ: fix link error on 32-bit Cygwin
16746         Problem reported for GNU Emacs by Ken Brown in:
16747         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
16748         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
16750 2018-02-24  Bruno Haible  <bruno@clisp.org>
16752         mbrtowc tests: Fix regression on glibc.
16753         Reported by Bernhard Voelker.
16754         * tests/test-mbrtowc.c (main): Fix expected value of wc.
16756 2018-02-24  Bruno Haible  <bruno@clisp.org>
16758         striconveha, uniconv/*: Avoid test failures on musl libc.
16759         * tests/iconvsupport.c: New file.
16760         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
16761         does not support the ISO-2022-JP-2 encoding.
16762         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16763         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16764         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16765         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16766         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16767         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16768         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
16769         (Makefile.am): Link test-striconveha with iconvsupport.o.
16770         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
16771         tests/iconvsupport.c.
16772         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
16773         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
16774         tests/iconvsupport.c.
16775         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
16776         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
16777         tests/iconvsupport.c.
16778         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
16779         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
16780         tests/iconvsupport.c.
16781         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
16782         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
16783         tests/iconvsupport.c.
16784         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
16785         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
16786         tests/iconvsupport.c.
16787         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
16789 2018-02-24  Bruno Haible  <bruno@clisp.org>
16791         localename: Add support for musl libc.
16792         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
16793         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
16794         on Linux platforms which define NL_LOCALE_NAME.
16796 2018-02-24  Bruno Haible  <bruno@clisp.org>
16798         mbrtowc tests: Don't make assumptions about the charset the C locale.
16799         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
16800         particular mapping in the C locale.
16802 2018-02-24  Bruno Haible  <bruno@clisp.org>
16804         ptsname_r: Don't expect that this function sets errno.
16805         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16806         from ptsname_r().
16807         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16809 2018-02-23  Bruno Haible  <bruno@clisp.org>
16811         xmalloca: pacify gcc -Wbad-function-cast
16812         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16814 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16816         nl_langinfo: pacify gcc -Wunused-function
16817         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16818         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16819         this case.  Without this change, I got a diagnostic when building
16820         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16822         same: pacify gcc -Wunused-variable
16823         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16824         Omit unused variable.
16826         malloca: pacify gcc -Wbad-function-cast
16827         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16828         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16829         To pacify GCC, I had to cast alloca’s result to some type other
16830         than void * before casting that to uintptr_t.
16832 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16834         utimecmp: new function utimecmpat
16835         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16836         Do not include utimens.h.
16837         (utimecmpat): New function, generalizing utimecmp.
16838         (utimecmp): Now a thin layer around utimecmpat.
16839         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16840         utimensat instead of on lstat and utimens.
16842         same: new function same_nameat
16843         * lib/same.c: Include fcntl.h.
16844         * lib/same.c (same_nameat): New function, generalizing same_name.
16845         (same_name): Now a thin layer around same_nameat.
16846         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16847         * modules/same (Depends-on): Depend on fstatat, openat.
16849 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16851         warnings: Add support for Objective C.
16852         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16853         macro.
16855 2018-02-17  Bruno Haible  <bruno@clisp.org>
16857         lock: Fix test-once1 crash on FreeBSD11.
16858         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16859         'pthread_create', not 'pthread_cancel'.
16861 2018-02-17  Bruno Haible  <bruno@clisp.org>
16863         lock: Add test of gl_once.
16864         * tests/test-once.c: New file.
16865         * modules/lock-tests (Files): Add it.
16866         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16868 2018-02-17  Bruno Haible  <bruno@clisp.org>
16870         thread: Fix compilation error on IRIX.
16871         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16872         needed; include it outside the C++ extern "C" {} block.
16873         * doc/posix-headers/pthread.texi: Mention the problem with
16874         pthread_atfork on IRIX.
16876 2018-02-04  Bruno Haible  <bruno@clisp.org>
16878         nl_langinfo: Override the system's nl_langinfo() when needed.
16879         Reported by Jim Meyering.
16880         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16881         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16883 2018-02-04  Bruno Haible  <bruno@clisp.org>
16885         signal-h, monetary, strings: Fix build failure in some cases.
16886         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16887         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16888         as delimiter in sed command, not '|'.
16889         * modules/monetary (Makefile.am): Likewise.
16890         * modules/strings (Makefile.am): Likewise.
16892 2018-02-03  Jim Meyering  <meyering@fb.com>
16894         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16895         * top/maint.mk (sc_file_system): Don't complain about
16896         "/proc/filesystems".
16898 2018-02-03  Bruno Haible  <bruno@clisp.org>
16900         stdlib: Fix compilation error on OpenIndiana.
16901         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16902         <sys/time.h>.
16903         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16904         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16906 2018-02-03  Bruno Haible  <bruno@clisp.org>
16908         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16909         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16910         and use $EGREP instead of 'grep -E'.
16911         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16912         'grep -E'.
16914 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16916         malloca: Add a compile-time verification.
16917         * lib/malloca.c (small_t): Verify that it is wide enough.
16918         * modules/malloca (Depends-on): Add verify.
16920 2018-02-02  Bruno Haible  <bruno@clisp.org>
16922         malloca: Add an argument check.
16923         Suggested by Paul Eggert.
16924         * lib/malloca.c (freea): Check against an invalid argument.
16926 2018-02-02  Bruno Haible  <bruno@clisp.org>
16928         localename: Add support for OpenIndiana.
16929         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16930         Solaris 11 variants with uselocale() but without getlocalename_l().
16932 2018-02-02  Bruno Haible  <bruno@clisp.org>
16934         malloca, xmalloca: Make multithread-safe.
16935         Reported by Florian Weimer <fweimer@redhat.com>.
16936         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16937         * lib/malloca.h (malloca): In the stack allocation case, return a
16938         pointer that is a multiple of 2 * sa_alignment_max.
16939         (sa_increment): Remove enum item.
16940         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16941         a pointer that is a multiple of 2 * sa_alignment_max.
16942         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16943         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16944         HASH_TABLE_SIZE, mmalloca_results): Remove.
16945         (small_t): New type.
16946         (mmalloca, free): Rewritten.
16947         * lib/malloca.valgrind: Remove file.
16948         * modules/malloca (Files): Remove it.
16949         (Depends-on): Remove verify.
16951 2018-01-31  Bruno Haible  <bruno@clisp.org>
16953         environ: Fix link error on 64-bit Cygwin.
16954         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16955         __declspec(dllimport) attribute.
16956         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16958 2018-01-30  Bruno Haible  <bruno@clisp.org>
16960         get-rusage-data: Add support for Minix 3.
16961         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16963 2018-01-30  Bruno Haible  <bruno@clisp.org>
16965         vma-iter: Add support for Minix 3.
16966         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16967         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16969 2018-01-27  Bruno Haible  <bruno@clisp.org>
16971         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16972         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16974         _HPUX_ALT_XOPEN_SOCKET_API.
16975         * modules/accept (Depends-on): Add 'extensions'.
16976         * modules/getpeername (Depends-on): Likewise.
16977         * modules/getsockname (Depends-on): Likewise.
16978         * modules/getsockopt (Depends-on): Likewise.
16979         * modules/recvfrom (Depends-on): Likewise.
16980         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16981         * doc/posix-functions/getpeername.texi: Likewise.
16982         * doc/posix-functions/getsockname.texi: Likewise.
16983         * doc/posix-functions/getsockopt.texi: Likewise.
16984         * doc/posix-functions/recvfrom.texi: Likewise.
16986 2018-01-27  Bruno Haible  <bruno@clisp.org>
16988         getsockname tests: More tests.
16989         * tests/test-getsockname.c (open_server_socket): New function, mostly
16990         copied from test-poll.c.
16991         (main): Check that getsockname fills in addr.
16992         * modules/getsockname-tests (Depends-on): Add the necessary
16993         dependencies.
16994         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16996 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16998         manywarnings: fix maintainer comment
16999         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
17000         it does not mistakenly think that ‘-1)’ is an option.
17002 2018-01-26  Bruno Haible  <bruno@clisp.org>
17004         langinfo: Fix last commit.
17005         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17006         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
17008 2018-01-24  Bruno Haible  <bruno@clisp.org>
17010         langinfo, nl_langinfo: Add support for alternative month names.
17011         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
17012         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
17013         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
17014         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
17015         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
17016         * doc/posix-functions/nl_langinfo.texi: Likewise.
17018 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17020         Merge strftime.c changes from glibc
17021         This incorporates:
17022         2017-11-14 [BZ #10871] Implement alternative month names
17023         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
17024         2017-06-20 Use locale_t, not __locale_t, throughout glibc
17025         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
17026         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
17027         Use locale_t, not __locale_t.
17028         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
17029         (__strftime_internal): Add support for alternate months.
17031 2018-01-23  Bruno Haible  <bruno@clisp.org>
17033         doc: Mention another prerequisite for using Gnulib.
17034         Reported at <https://stackoverflow.com/questions/48378214/>.
17035         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
17036         AC_CONFIG_HEADERS.
17038 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
17040         build: GuixSD doesn't have /bin/bash
17041         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
17043 2018-01-21  Bruno Haible  <bruno@clisp.org>
17045         Avoid test failures on Microsoft Windows Subsystem for Linux.
17046         * tests/test-fcntl.c (main): Allow a different errno.
17047         * tests/test-rename.h (test_rename): Likewise.
17048         * tests/test-renameat.c (main): Likewise.
17049         * tests/test-renameat2.c (main): Likewise.
17051 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
17053         filenamecat: make base a suffix of result
17054         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
17055         (mfile_name_concat): Always make BASE a suffix of the result, as
17056         cp expects this.  To implement this, separate with '.' instead of
17057         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
17058         * tests/test-filenamecat.c (main): Adjust tests to match
17059         current behavior.  Check that BASE_IN_RESULT points to
17060         a copy of BASE and is a suffix of the resultk, and that DIR
17061         is a prefix of the result that is no longer than the prefix
17062         indicated by BASE_IN_RESULT.
17064 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
17066         update-copyright: Handle use of ©
17067         * build-aux/update-copyright ($circle_c_re): Update regex to
17068         handle use of © in headers.
17070 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
17072         Fix -Wundef warning in user-included header lib/cdefs.h.
17073         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
17075 2018-01-04  Bruno Haible  <bruno@clisp.org>
17077         pthread_sigmask: Avoid compilation error on mingw.
17078         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17079         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
17080         macro.
17082 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17084         test-framework-sh: ‘ps -ef’, not ‘ps ef’
17085         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
17086         Suggested by Bob Proulx (Bug#29968).
17087         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
17089 2018-01-02  Eric Blake  <eblake@redhat.com>
17091         stat-time: silence -Wunused-parameter regression
17092         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17093         Prefer attribute over cast-to-void.
17094         (stat_time_normalize): Mark st as potentially unused.
17096 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17098         test-framework-sh: avoid netstat
17099         Problem reported by Kristýna Streitová (Bug#29947).
17100         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
17101         deprecated on SuSE and it's not that important anyway.
17103 2018-01-01  Jim Meyering  <meyering@fb.com>
17105         update-copyright: add code to handle more special cases
17106         After running "make update-copyright" this year, five files
17107         required additional manual changes.  Automate those adjustments
17108         for next year.
17109         * Makefile (_year_and_prev): Define.
17110         (update-copyright): Add perl commands to induce this year's post-
17111         update-copyright adjustments.
17113 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17115         version-etc: new year
17116         * build-aux/gendocs.sh (version):
17117         * doc/gendocs_template:
17118         * doc/gendocs_template_min:
17119         * doc/gnulib.texi:
17120         * lib/version-etc.c (COPYRIGHT_YEAR):
17121         Update copyright dates by hand in templates and the like.
17123         maint: fix 'make update-copyright'
17124         * Makefile (update-copyright): Adjust to 2016-11-23 change
17125         to config/srclist-update, which changed the format of srclist.txt.
17127 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17129         chdir-safer: remove this module
17130         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
17131         * NEWS: Document removal.
17132         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
17133         * modules/chdir-safer: Remove these files.
17135 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
17137         Add cross-compilation results for GNU/Hurd.
17138         * m4/calloc.m4: Add GNU/Hurd guess.
17139         * m4/cbrtl.m4: Likewise.
17140         * m4/ceil.m4: Likewise.
17141         * m4/ceilf.m4: Likewise.
17142         * m4/ceill.m4: Likewise.
17143         * m4/chown.m4: Likewise.
17144         * m4/duplocale.m4: Likewise.
17145         * m4/exp2l.m4: Likewise.
17146         * m4/expm1.m4: Likewise.
17147         * m4/fchdir.m4: Likewise.
17148         * m4/floor.m4: Likewise.
17149         * m4/floorf.m4: Likewise.
17150         * m4/fmod.m4: Likewise.
17151         * m4/fmodf.m4: Likewise.
17152         * m4/fmodl.m4: Likewise.
17153         * m4/getcwd.m4: Likewise.
17154         * m4/getgroups.m4: Likewise.
17155         * m4/gettimeofday.m4: Likewise.
17156         * m4/hypot.m4: Likewise.
17157         * m4/hypotf.m4: Likewise.
17158         * m4/hypotl.m4: Likewise.
17159         * m4/link-follow.m4: Likewise.
17160         * m4/link.m4: Likewise.
17161         * m4/linkat.m4: Likewise.
17162         * m4/log.m4: Likewise.
17163         * m4/log10.m4: Likewise.
17164         * m4/log10f.m4: Likewise.
17165         * m4/log1p.m4: Likewise.
17166         * m4/log1pf.m4: Likewise.
17167         * m4/log1pl.m4: Likewise.
17168         * m4/log2.m4: Likewise.
17169         * m4/log2f.m4: Likewise.
17170         * m4/logf.m4: Likewise.
17171         * m4/lstat.m4: Likewise.
17172         * m4/malloc.m4: Likewise.
17173         * m4/mbrlen.m4: Likewise.
17174         * m4/mbrtowc.m4: Likewise.
17175         * m4/mkdir.m4: Likewise.
17176         * m4/mkfifo.m4: Likewise.
17177         * m4/mknod.m4: Likewise.
17178         * m4/mkstemp.m4: Likewise.
17179         * m4/modf.m4: Likewise.
17180         * m4/modff.m4: Likewise.
17181         * m4/modfl.m4: Likewise.
17182         * m4/printf.m4: Likewise.
17183         * m4/pselect.m4: Likewise.
17184         * m4/ptsname.m4: Likewise.
17185         * m4/putenv.m4: Likewise.
17186         * m4/readlink.m4: Likewise.
17187         * m4/realloc.m4: Likewise.
17188         * m4/remainder.m4: Likewise.
17189         * m4/remainderf.m4: Likewise.
17190         * m4/remainderl.m4: Likewise.
17191         * m4/rmdir.m4: Likewise.
17192         * m4/round.m4: Likewise.
17193         * m4/roundf.m4: Likewise.
17194         * m4/roundl.m4: Likewise.
17195         * m4/select.m4: Likewise.
17196         * m4/setenv.m4: Likewise.
17197         * m4/signbit.m4: Likewise.
17198         * m4/sleep.m4: Likewise.
17199         * m4/stat.m4: Likewise.
17200         * m4/strerror.m4: Likewise.
17201         * m4/strtok_r.m4: Likewise.
17202         * m4/symlink.m4: Likewise.
17203         * m4/symlinkat.m4: Likewise.
17204         * m4/trunc.m4: Likewise.
17205         * m4/truncf.m4: Likewise.
17206         * m4/truncl.m4: Likewise.
17207         * m4/tzset.m4: Likewise.
17208         * m4/ungetc.m4: Likewise.
17209         * m4/usleep.m4: Likewise.
17210         * m4/wcwidth.m4: Likewise.
17212 2017-12-28  Bruno Haible  <bruno@clisp.org>
17214         gnulib-tool: Make --conditional-dependencies work better.
17215         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
17216         * gnulib-tool (Options): Don't reject the combination of
17217         --conditional-dependencies with --with-tests.
17218         (func_emit_autoconf_snippets): Add argument referenceable_modules.
17219         Don't reference $modules.
17220         (func_import, func_create_testdir): Pass it.
17222 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17224         regex: use re_malloc etc. consistently
17225         Problem and original patch reported by Arnold Robbins in:
17226         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
17227         * lib/regcomp.c (re_comp):
17228         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
17229         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
17231 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
17232             Paul Eggert  <eggert@cs.ucla.edu>
17234         glob: Silence warning about void pointer arithmetic.
17235         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17236         arithmetic.
17238 2017-12-15  Bruno Haible  <bruno@clisp.org>
17240         spawn-pipe: Silence a clang warning.
17241         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17242         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
17243         in this file.
17245 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
17247         explicit_bzero: port to macOS + Clang 9.0.0
17248         Problem reported by Marcus Johnson (Bug#29658).
17249         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
17250         Don’t use asm.
17252 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17254         doc: Improve explanation of supporting relocatable libraries.
17255         * doc/relocatable-maint.texi (Supporting Relocation): Explain
17256         properly how to build the relocatable module for
17257         libraries. (Method and example code from Bruno Haible.)
17259 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17261         doc: Use better texinfo tags in a few cases.
17262         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
17263         instead of @samp in a few places.
17265 2017-12-11  Bruno Haible  <bruno@clisp.org>
17267         unistr/base: Update comment.
17268         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
17270 2017-12-10  Pádraig Brady  <P@draigBrady.com>
17272         test-faccessat.c: unlink temp file to avoid subsequent test failure
17273         * tests/test-faccessat.c: Remove the file to avoid failure
17274         to open the file on subsequent runs due to being created
17275         with no permissions.
17277 2017-12-10  Bruno Haible  <bruno@clisp.org>
17279         doc: New sect. "Modifying the build rules of a Gnulib import directory".
17280         * doc/gnulib-tool.texi (Modified build rules): New node.
17282 2017-12-10  Bruno Haible  <bruno@clisp.org>
17284         doc: Tweak wording.
17285         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
17286         "binaries".
17288 2017-12-05  Sam Steingold  <sds@gnu.org>
17289             Bruno Haible  <bruno@clisp.org>
17291         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
17292         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
17293         AC_EGREP_CPP pattern.
17295 2017-12-03  Bruno Haible  <bruno@clisp.org>
17297         all: Replace more http URLs by https URLs.
17298         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
17299         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
17300         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
17301         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
17303 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17305         Port better to CentOS 5
17306         Problems reported by Tom G. Christensen in:
17307         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
17308         * doc/glibc-functions/strverscmp.texi (strverscmp):
17309         Document strverscmp bug with glibc 2.9 and earlier.
17310         * doc/posix-functions/tzset.texi (tzset):
17311         Document that TZ with angle brackets is POSIX-2001 and later.
17312         * tests/test-nstrftime.c: Include unistd.h.
17313         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
17314         (TZ): Use it to skip tests with angle brackets in TZ,
17315         for older systems.
17317         stat: add missing module dependencies
17318         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
17319         Add stat-time.
17321 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
17323         stat: fix compilation failure on macOS Sierra
17324         Reported by Marius Schamschula <mschamschula@gmail.com> in:
17325         https://savannah.gnu.org/bugs/?52546
17326         * lib/stat.c: Add missing include of stat-time.h.
17328 2017-11-28  Jim Meyering  <meyering@fb.com>
17330         test-faccessat.c: correct BASE definition to avoid parallel test failure
17331         * tests/test-faccessat.c (BASE): Define using this file's name, not
17332         that of test-lstat.c.  Using the latter caused this test to fail
17333         sometimes when run concurrently with test-lstat.
17335 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17337         unicase: fix VPATH build
17338         * modules/unicase/special-casing (Makefile.am): Ensure that the
17339         base directory is created when generating
17340         unicase/special-casing.h.
17342 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17344         libunistring: update to Unicode 9.0.0
17345         * lib/gen-uni-tables.c (fill_properties): Recognize
17346         Sentence_Terminal and Prepended_Concatenation_Mark.
17347         (is_property_default_ignorable_code_point): Exclude U+08E2.
17348         (fill_arabicshaping): Allow missing whitespace when parsing;
17349         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
17350         (output_blocks): Increase the element size of the level1 table to
17351         accommodate more blocks.
17352         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
17353         Update each class according to the standard.
17354         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
17355         E_Base_GAZ characters.
17356         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
17357         Glue_After_Zwj, and E_Base_GAZ characters.
17358         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
17359         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
17360         enum value.
17361         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
17362         value.
17363         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
17364         LBP_ZWJ, LBP_EB, and LBP_EM.
17365         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
17366         enum value.
17367         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
17368         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
17369         declaration.
17370         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
17371         (uniwbrk_table): Implement WB14.
17372         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
17373         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
17374         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
17375         uc-is-grapheme-break.
17376         * modules/unigbrk/uc-grapheme-breaks: New module.
17377         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
17378         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
17379         enum value.
17380         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
17381         * lib/unigbrk/u-grapheme-breaks.h: New file.
17382         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
17383         u-grapheme-breaks.h instead of uc_is_grapheme_break.
17384         * lib/unigbrk/uc-grapheme-breaks.c: New file.
17385         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
17386         29.
17387         * tests/unigbrk/test-uc-gbrk-prop.c
17388         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17389         GBP_GAZ, and GBP_EBG.
17390         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
17391         * tests/unigbrk/test-uc-is-grapheme-break.c
17392         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17393         GBP_GAZ, and GBP_EBG.
17394         (main): Skip unsupported rules involving 3 or more characters,
17395         namely GB10, GB12, and GB13.
17396         * lib/uniwidth/width.c (nonspacing_table_data): Update.
17397         * all generated files under lib/uni* and tests/uni*: Regenerate.
17398         * all the affected modules: Bump version.
17400 2017-11-26  Bruno Haible  <bruno@clisp.org>
17402         strfmon_l: Fix compilation error with glibc 2.5.
17403         Reported by Tom G. Christensen <tgc@jupiterrise.com>
17404         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
17405         * lib/monetary.in.h: Include also <locale.h>.
17407 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17409         posixtm: remove PDS_LEADING_YEAR
17410         This changes the API slightly, in a hopefully-innocuous way.
17411         Without this change the code had undefined behavior when a
17412         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
17413         Problem reported by Pádraig Brady in:
17414         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
17415         * NEWS: Mention this.
17416         * lib/posixtm.c (posix_time_parse): Treat the absence of
17417         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
17418         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
17419         present, but define it as zero, for compatibility with existing
17420         source code).  All other PDS_* values moved up.
17421         * tests/test-posixtm.c (LY): New macro.
17422         (T): Use it.  Do not expect a particular numeric encoding
17423         for PDS_CENTURY etc.
17425 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
17427         stat: work around Solaris bug with tv_nsec < 0
17428         * doc/posix-functions/fstat.texi (fstat):
17429         * doc/posix-functions/fstatat.texi (fstatat):
17430         * doc/posix-functions/lstat.texi (lstat):
17431         * doc/posix-functions/stat.texi (stat):
17432         Mention Solaris 11 bug.
17433         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
17434         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
17435         * lib/lstat.c (rpl_lstat):
17436         * lib/stat.c (rpl_stat):
17437         Normalize resulting timestamps.
17438         * lib/fstatat.c (normal_fstatat): New function.
17439         (rpl_fstatat): Use it.
17440         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
17441         (stat_time_normalize): New function.
17442         * m4/fstat.m4 (gl_FUNC_FSTAT):
17443         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
17444         * m4/lstat.m4 (gl_FUNC_LSTAT):
17445         * m4/stat.m4 (gl_FUNC_STAT):
17446         Replace on Solaris.
17447         * modules/fstat (Depends-on):
17448         * modules/fstatat (Depends-on):
17449         Add stat-time.
17450         * modules/stat-time (Depends-on): Add errno, intprops.
17452 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
17454         regex: merge from glibc
17455         * lib/regcomp.c (init_word_char): Add comments.
17457 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17459         regex: merge from glibc
17460         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
17461         * lib/regex_internal.h (internal_function): Remove.
17462         All uses removed.
17464 2017-11-20  Bruno Haible  <bruno@clisp.org>
17466         crypto/gc-sm3: Fix buffer overrun.
17467         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
17468         Reported by Coverity.
17470 2017-11-12  Jim Meyering  <meyering@fb.com>
17472         maint: shorten https://lists.gnu.org/archive/html/... links
17473         Each /archive/html/ part can be replace with /r/.
17474         Run this to induce the change:
17475         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
17476         * ChangeLog: Perform that substitution.
17477         * Makefile: Likewise.
17478         * STATUS-libposix: Likewise.
17479         * build-aux/bootstrap: Likewise.
17480         * doc/maintain.texi: Likewise.
17481         * gnulib-tool: Likewise.
17482         * lib/allocator.h: Likewise.
17483         * lib/argp-ba.c: Likewise.
17484         * lib/argp-pv.c: Likewise.
17485         * lib/canon-host.c: Likewise.
17486         * lib/canonicalize-lgpl.c: Likewise.
17487         * lib/float.in.h: Likewise.
17488         * lib/fstat.c: Likewise.
17489         * lib/getdelim.c: Likewise.
17490         * lib/getprogname.c: Likewise.
17491         * lib/glthread/thread.h: Likewise.
17492         * lib/intprops.h: Likewise.
17493         * lib/mbsrtowcs-state.c: Likewise.
17494         * lib/safe-read.c: Likewise.
17495         * lib/signal.in.h: Likewise.
17496         * lib/stat.c: Likewise.
17497         * lib/stdbool.in.h: Likewise.
17498         * lib/stdio-impl.h: Likewise.
17499         * lib/stdio.in.h: Likewise.
17500         * lib/sysexits.in.h: Likewise.
17501         * lib/timespec.h: Likewise.
17502         * lib/wcsrtombs-state.c: Likewise.
17503         * m4/alloca.m4: Likewise.
17504         * m4/extern-inline.m4: Likewise.
17505         * m4/fstatat.m4: Likewise.
17506         * m4/gnulib-common.m4: Likewise.
17507         * m4/lib-ignore.m4: Likewise.
17508         * m4/printf.m4: Likewise.
17509         * m4/regex.m4: Likewise.
17510         * m4/stat-size.m4: Likewise.
17511         * m4/std-gnu11.m4: Likewise.
17512         * m4/stdbool.m4: Likewise.
17513         * m4/sys_types_h.m4: Likewise.
17514         * m4/threadlib.m4: Likewise.
17515         * m4/vararrays.m4: Likewise.
17516         * pygnulib/GLImport.py: Likewise.
17517         * tests/test-exp.h: Likewise.
17518         * tests/test-exp2.h: Likewise.
17519         * tests/test-expm1.h: Likewise.
17520         * tests/test-fflush2.c: Likewise.
17521         * tests/test-getopt_long.h: Likewise.
17522         * tests/test-intprops.c: Likewise.
17523         * tests/test-log.h: Likewise.
17524         * tests/test-log10.h: Likewise.
17525         * tests/test-log1p.h: Likewise.
17526         * tests/test-log2.h: Likewise.
17527         * tests/test-printf-posix.h: Likewise.
17528         * tests/test-regex.c: Likewise.
17529         * tests/test-snprintf-posix.h: Likewise.
17530         * tests/test-sprintf-posix.h: Likewise.
17531         * tests/test-stdalign.c: Likewise.
17532         * tests/test-stdbool.c: Likewise.
17533         * tests/test-vasnprintf-posix.c: Likewise.
17534         * tests/test-vasprintf-posix.c: Likewise.
17535         * top/maint.mk: Likewise.
17537 2017-11-12  Bruno Haible  <bruno@clisp.org>
17539         faccessat: Make the last change more robust.
17540         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
17541         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
17543 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17545         faccessat: port to macOS (Bug#29231)
17546         macOS faccessat has the same bug that lstat does: if the file
17547         name ends in '/' it ignores the trailing slash.
17548         Problem reported for Emacs by Vincent Zhang.
17549         * doc/posix-functions/faccessat.texi (faccessat): Document this.
17550         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
17551         around the initial includes.  Include errno.h, string.h, sys/stat.h.
17552         (orig_faccessat) [HAVE_FACCESSAT]: New function.
17553         Include "unistd.h" after defining it.
17554         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
17555         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
17556         Handle in the usual way.
17557         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
17558         lstat dereferences symlinks, since faccessat is likely to
17559         have the same problem.
17560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
17561         * modules/faccessat (Depends-on): Add fstatat.
17562         Depend if REPLACE_FACCESSAT is 1, too.
17563         (configure.ac): Link if REPLACE_FACCESSAT is 1.
17564         * modules/faccessat-tests (Depends-on): Add symlink.
17565         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
17566         * tests/test-faccessat.c (main): Test for the bug.
17568 2017-11-11  Bruno Haible  <bruno@clisp.org>
17570         getprogname: Fix compilation error on IRIX.
17571         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
17572         'namesize'.
17574 2017-11-11  Bruno Haible  <bruno@clisp.org>
17576         year2038: Tweak last patch.
17577         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
17579 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17581         year2038: be more insistent about 64-bit time_t
17582         Applications requiring access to arbitrary files should not be
17583         built with 32-bit time_t on hosts that have 64-bit timestamps,
17584         as this can lead to real trouble at runtime.
17585         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
17586         Check on all systems, not just MinGW.  Use a heuristic involving
17587         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
17588         output a failure or just a warning, to make it more likely that
17589         builders will select 64-bit time_t.
17591 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17593         havelib: fix typo in previous change
17594         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
17596         Don’t use AC_EGREP_CPP if affected by CFLAGS
17597         * m4/float_h.m4 (gl_FLOAT_H):
17598         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
17599         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
17600         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
17601         * m4/year2038.m4 (gl_YEAR2038):
17602         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
17603         likely to be affected by the choice of CFLAGS, since CFLAGS are
17604         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
17605         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
17607         fstatat: pacify GCC on unusual platform
17608         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
17609         Omit, as it’s unused in this case.
17611 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17613         timespec: prefer ‘assume’ to ‘assure’
17614         This avoids some runtime tests.  The rest of the module makes
17615         similar assumptions and there is little point to testing here.
17616         * lib/timespec.h: Include verify.h instead of assure.h.
17617         (timespec_cmp): Use ‘assume’, not ‘assure’.
17618         Also, remove an unnecessary cast to ‘int’, as lots of other
17619         code in this module now causes -Wconversion to complain, and
17620         this is a problem with -Wconversion not with the code.
17622         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
17624         Port recent gnulib-tool change to Dash
17625         * gnulib-tool (func_create_testdir): Don't assume that the shell
17626         retokenizes after expanding "$@" inside the call to
17627         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
17629 2017-10-27  Jim Meyering  <meyering@fb.com>
17631         timespec.h: use "assure" to avoid a spurious warning
17632         * lib/timespec.h: Include "assure.h" and use it to help
17633         gcc7's -Wstrict-overflow avoid a false positive warning
17634         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
17635         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
17636         * modules/timespec (Depends-on): Add assure.
17638 2017-10-29  Bruno Haible  <bruno@clisp.org>
17640         Avoid several test failures with traditional locales on Haiku.
17641         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
17642         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
17643         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
17644         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
17645         LOCALE_ZH_CN=none.
17647 2017-10-29  Bruno Haible  <bruno@clisp.org>
17649         strerror_r-posix: Fix behaviour and test failure on Haiku.
17650         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
17651         are positive. Work around return value 0 instead of ERANGE on Haiku.
17652         For unknown error numbers, use a format string consistent with perror().
17653         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
17654         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
17655         are positive.
17657 2017-10-29  Bruno Haible  <bruno@clisp.org>
17659         get-rusage-data: Avoid crash on Haiku.
17660         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
17662 2017-10-29  Bruno Haible  <bruno@clisp.org>
17664         get-rusage-as: Avoid crash on Haiku.
17665         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17667 2017-10-29  Bruno Haible  <bruno@clisp.org>
17669         ilogbl: Ensure replacement on Haiku.
17670         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17671         REPLACE_ILOGBL if ilogbl does not work.
17672         (gl_FUNC_ILOGBL_WORKS): New macro.
17673         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17675         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17676         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17677         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17679 2017-10-29  Bruno Haible  <bruno@clisp.org>
17681         expl: Ensure replacement on Haiku.
17682         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17683         zero.
17684         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17686 2017-10-29  Bruno Haible  <bruno@clisp.org>
17688         math: Fix test failure on Haiku.
17689         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17690         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17691         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17692         * doc/posix-headers/math.texi: Mention the Haiku problem.
17694 2017-10-29  Bruno Haible  <bruno@clisp.org>
17696         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17697         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17698         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17700 2017-10-29  Bruno Haible  <bruno@clisp.org>
17702         crypto/*: Verify that the header file is self-contained.
17703         * tests/test-gc-*.c: Include the module's header file immediately after
17704         <config.h>.
17705         * tests/test-hmac-*.c: Likewise.
17706         * tests/test-arcfour.c: Likewise.
17707         * tests/test-arctwo.c: Likewise.
17708         * tests/test-des.c: Likewise.
17709         * tests/test-md2.c: Likewise.
17710         * tests/test-md4.c: Likewise.
17711         * tests/test-md5.c: Likewise.
17712         * tests/test-rijndael.c: Likewise.
17713         * tests/test-sha1.c: Likewise.
17714         * tests/test-sm3.c: Likewise.
17716 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17717             Bruno Haible  <bruno@clisp.org>
17719         crypto/gc: fix build failure with -Werror=suggest-attribute=const
17720         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
17722 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17724         New module: crypto/gc-sm3
17725         * lib/gc.h: Declare SM3-related stuffs.
17726         * lib/gc-gnulib.c: Support sm3 in internal functions.
17727         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
17728         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
17729         * modules/crypto/gc-sm3: Define gc-sm3 module.
17730         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
17731         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
17732         * MODULES.html.sh: List gc-sm3 module.
17734 2017-10-29  Bruno Haible  <bruno@clisp.org>
17736         random, random_r: Mention different prototypes on Haiku.
17737         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
17738         * doc/glibc-functions/random_r.texi: Likewise.
17739         * doc/glibc-functions/initstate_r.texi: Likewise.
17740         * doc/glibc-functions/setstate_r.texi: Likewise.
17742 2017-10-28  Bruno Haible  <bruno@clisp.org>
17744         posix_spawn: Avoid spurious message in configure output.
17745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
17746         'cmp' command.
17748 2017-10-28  Bruno Haible  <bruno@clisp.org>
17750         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
17751         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
17752         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
17754 2017-10-28  Bruno Haible  <bruno@clisp.org>
17756         ioctl: Override non-POSIX declaration on Haiku.
17757         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
17758         * lib/sys_ioctl.in.h: Add comment about Haiku.
17759         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
17760         * doc/glibc-headers/sys_ioctl.texi: Likewise.
17762 2017-10-28  Bruno Haible  <bruno@clisp.org>
17764         crypto/sm3: Add overview documentation to the .h file.
17765         * lib/sm3.h: Add comments.
17767 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17769         New module: crypto/sm3
17770         This new module can be used to compute SM3 message digest of files or
17771         memory blocks according to the specification GM/T 004-2012
17772         Cryptographic Hash Algorithm SM3, published by State Cryptography
17773         Administration, China.
17774         The official SM3 cryptographic hash algorithm specification is
17775         available at
17776         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
17777         * lib/sm3.h: Declare the APIs of sm3 module.
17778         * lib/sm3.c: Implement SM3 hash algorithm.
17779         * m4/sm3.m4: m4 file for sm3 module.
17780         * modules/crypto/sm3: Define sm3 module.
17781         * tests/test-sm3.c: Implement SM3 test case.
17782         * modules/crypto/sm3-tests: Define sm3 test module.
17783         * MODULES.html.sh: List sm3 module.
17785 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17787         gc-libgcrypt: fix undefined enum type in switch statement
17788         Resolve the following build failure:
17789         lib/gc-libgcrypt.c: In function 'gc_hash_open':
17790         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
17791         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
17792              case 0:
17793              ^~~~
17794         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
17795         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
17797 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17799         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
17800         Resolve the following build failure:
17801         lib/gc-libgcrypt.c: In function 'gc_hash_read':
17802         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
17803         in signedness [-Werror=pointer-sign]
17804             digest = gcry_md_read (ctx->gch, 0);
17805                    ^
17806         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17808 2017-10-26  Bruno Haible  <bruno@clisp.org>
17810         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17811         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17812         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17814 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17816         glob: fix another heap buffer overflow
17817         Problem reported by Tim Rühsen in:
17818         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17819         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17821 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17823         quotearg: pacify compiler re unsigned
17824         * lib/quotearg.c (quotearg_n_options):
17825         Rewrite to avoid diagnostic from overly-picky compiler.
17826         Problem reported by Sami Kerola in:
17827         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17829         glob: fix heap buffer overflow
17830         * lib/glob.c (glob): Fix off-by-one error introduced into
17831         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17832         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17833         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17834         Fix suggested by Bruno Haible.
17836 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17838         glob: pacify fuzzer for mempcpy
17839         Problem reported by Tim Rühsen in:
17840         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17841         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17843 2017-10-12  Bruno Haible  <bruno@clisp.org>
17845         doc: Fix syntax error (regression from 2017-10-03).
17846         * doc/posix-functions/strncpy.texi: Fix syntax error.
17848 2017-10-12  Bruno Haible  <bruno@clisp.org>
17850         doc: Update for Solaris 11.3.
17851         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17852         mention Solaris 11.3.
17853         * m4/log2.m4: Fix comments.
17854         * m4/log2f.m4: Likewise.
17855         * m4/printf.m4: Update comments.
17856         * m4/rename.m4: Likewise.
17857         * m4/strncat.m4: Likewise.
17859         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17861 2017-10-10  Bruno Haible  <bruno@clisp.org>
17863         doc: Improve doc about ioctl.
17864         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17865         prototype.
17867 2017-10-09  Bruno Haible  <bruno@clisp.org>
17869         wcwidth: Don't use obsolete syntax of 'test'.
17870         Reported by Eric Blake.
17871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17872         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17874 2017-10-09  Bruno Haible  <bruno@clisp.org>
17876         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17877         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17878         and Daniel P. Berrange <berrange@redhat.com>.
17879         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17880         on glibc systems. The getopt-pfx-core.h file declares exactly what
17881         unistd.h needs, nothing more.
17883 2017-10-08  Bruno Haible  <bruno@clisp.org>
17885         vma-iter: Improve support for FreeBSD.
17886         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17887         vma_iterate.
17888         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17890 2017-10-08  Bruno Haible  <bruno@clisp.org>
17892         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17893         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17895 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17897         test-framework-sh: Fix 'invalid path dir' error.
17898         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17899         separator between a drive letter and directory parts.
17900         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17901         treated as an invalid path dir.
17902         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17903         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17904         instead of hard coded ':'.
17906 2017-10-07  Bruno Haible  <bruno@clisp.org>
17908         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17909         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17910         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17911         (rof_open): On Linux, do multiple read() calls and make sure
17912         MIN_LEFTOVER bytes are left when read() returns.
17914 2017-10-07  Bruno Haible  <bruno@clisp.org>
17916         vma-iter: Improve support for GNU/Hurd.
17917         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17918         API, not the /proc file system.
17920 2017-10-07  Bruno Haible  <bruno@clisp.org>
17922         test-framework-sh: Don't require bash on Windows and OS/2.
17923         Reported by KO Myung-Hun.
17924         * tests/test-init.sh: Use 'shopt' only when running in bash.
17926 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17928         wcwidth: check a macro version of wcwidth () as well
17929         * lib/wchar.in.h: Revert commit from 2016-01-14.
17930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17932 2017-10-06  Bruno Haible  <bruno@clisp.org>
17934         getopt-posix: Clarify copyright header.
17935         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17936         * lib/getopt-pfx-core.h: Likewise.
17937         * lib/getopt-pfx-ext.h: Likewise.
17938         * lib/getopt-cdefs.in.h: Likewise.
17940 2017-10-03  Bruno Haible  <bruno@clisp.org>
17942         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17943         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17944         gl_HOST_CPU_C_ABI.
17946 2017-10-03  Bruno Haible  <bruno@clisp.org>
17948         doc: warn about misuse of strncpy and wcsncpy.
17949         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17950         memory allocation.
17951         * doc/posix-functions/wcscpy.texi: Likewise.
17952         * doc/posix-functions/strncpy.texi: Describe what this function is not
17953         useful for.
17954         * doc/posix-functions/wcsncpy.texi: Likewise.
17956 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17958         fsuage: fix typo in previous change
17959         * lib/fsusage.c: Remove stray include of full-read.h.
17960         Problem reported by Sam Steingold for macOS (Bug#28669).
17962 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17964         fsusage: remove SVR2 support
17965         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17966         and its code was getting in the way of use of this module by
17967         Emacs, which has its own ‘read’ function anyway.
17968         * lib/fsusage.c: Do not include sys/filsys.h.
17969         (get_fs_usage): Remove SVR2-specific code.
17970         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17971         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17972         * modules/fsusage (Depends-on): Do not depend on full-read.
17974         Simplify autoupdate of licenses
17975         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17976         place.
17978 2017-10-01  Bruno Haible  <bruno@clisp.org>
17980         vma-iter: Add support for GNU/Hurd.
17981         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17982         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17984 2017-09-30  Bruno Haible  <bruno@clisp.org>
17986         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17987         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17988         fail when module 'largefile' is in use.
17989         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17990         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17991         Don't test HAVE_SYS_PROCFS_H.
17993 2017-09-30  Bruno Haible  <bruno@clisp.org>
17995         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17996         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17997         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17998         * modules/havelib (Depends-on): Add host-cpu-c-abi.
18000 2017-09-30  Bruno Haible  <bruno@clisp.org>
18002         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
18003         * lib/uniname/uniname.c (unicode_name_character): Add braces around
18004         scope of local variables.
18006 2017-09-28  Bruno Haible  <bruno@clisp.org>
18008         string: code style
18009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
18010         substitutable variables.
18011         * modules/string (Makefile.am): Likewise.
18013 2017-09-26  Bruno Haible  <bruno@clisp.org>
18015         uniname/uniname-tests: Tighten code.
18016         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
18017         local variables into one.
18019 2017-09-26  Bruno Haible  <bruno@clisp.org>
18021         vma-iter: Improvements for Linux and BSD platforms.
18022         - Add support for DragonFly BSD.
18023         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
18024         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
18025         Read the entire file into memory in a single system call.
18026         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
18027         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
18029 2017-09-26  Bruno Haible  <bruno@clisp.org>
18031         vma-iter: Provide the protection flags on FreeBSD.
18032         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
18033         skip three fields between the addresses and the protection flags.
18035 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18037         glob: remove bogus extern decl
18038         * lib/glob.c (__glob_pattern_type): Remove now-spurious
18039         extern declaration.  Problem reported by Adhemerval Zanella in:
18040         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
18042 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18044         uniname/uniname-tests: integer overflow fix
18045         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
18046         Check for integer overflow.
18048         duplocale-tests: fix unlikely crash
18049         * tests/test-duplocale.c (get_locale_dependent_values):
18050         Don’t crash with absurdly long month names.
18052         maint: fix overflow checking in nap.h
18053         * modules/chown-tests:
18054         * modules/fchownat-tests, modules/fdutimensat-tests:
18055         * modules/futimens-tests, modules/lchown-tests:
18056         * modules/stat-time-tests, modules/utime-tests:
18057         * modules/utimens-tests, modules/utimensat-tests:
18058         Depend on intprops.
18059         * tests/nap.h: Include intprops.h.
18060         (diff_timespec): Handle overflow properly.
18062         sys_types: update URL
18063         * m4/sys_types_h.m4: Use https: URL.
18065         parse-datetime: fix dependency
18066         * modules/parse-datetime (Depends-on): Depend
18067         on nstrftime, not strftime.
18069         parse-datetime, posixtm: avoid uninit access
18070         * lib/parse-datetime.y (parse_datetime2):
18071         * lib/posixtm.c (posixtime):
18072         Do not access uninitialized storage, even though the resulting
18073         value is never used.
18075 2017-09-25  Bruno Haible  <bruno@clisp.org>
18077         vma-iter: Improvements for BSD platforms.
18078         - Add support for GNU/kFreeBSD.
18079         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
18080         - Speed up on OpenBSD.
18081         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
18082         (vma_iterate_bsd): New function.
18083         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
18084         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
18085         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18086         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
18088 2017-09-23  Bruno Haible  <bruno@clisp.org>
18090         strfmon_l: New module.
18091         * modules/strfmon_l: New file.
18092         * lib/strfmon_l.c: New file.
18093         * m4/strfmon_l.m4: New file.
18094         * doc/posix-functions/strfmon_l.texi: Mention the new module.
18095         * modules/strfmon_l-tests: New file.
18096         * tests/test-strfmon_l.c: New file.
18098         monetary: New module.
18099         * modules/monetary: New file.
18100         * lib/monetary.in.h: New file.
18101         * m4/monetary_h.m4: New file.
18102         * doc/posix-headers/monetary.texi: Mention the new module.
18103         * modules/monetary-tests: New file.
18104         * tests/test-monetary.c: New file.
18105         * modules/monetary-c++-tests: New file.
18106         * tests/test-monetary-c++.cc: New file.
18107         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
18109 2017-09-23  Bruno Haible  <bruno@clisp.org>
18111         duplocale tests: Fix test crash on Linux/x86.
18112         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
18113         locale from the current thread before freeing it.
18115 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
18117         mktime: port to OpenVMS
18118         Problem reported by John E. Malmberg in:
18119         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
18120         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
18122 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18124         manywarnings: port to GCC on 64-bit MS-Windows
18125         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
18126         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
18127         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
18129 2017-09-13  Bruno Haible  <bruno@clisp.org>
18131         all: Replace many more http URLs by https URLs. Update stale URLs.
18132         * users.txt: Remove mention of 'newts'.
18133         * lib/localename.c: Update comment about LANG_SOTHO.
18135 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18137         all: Replace many http URLs by https URLs.
18139 2017-09-12  Bruno Haible  <bruno@clisp.org>
18141         doc: Prefer https URLs where possible.
18142         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
18143         * doc/ld-output-def.texi: Remove unavailable URL.
18145 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18147         maintainer-makefile: FTP -> HTTPS
18148         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
18149         of FTP, which is planned to be decommissioned on 2017-11-01.
18151 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
18153         libc-config: Fix __GNUC_PREREQ macro.
18154         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
18155         __GNUC_MINOR.
18157 2017-09-09  Bruno Haible  <bruno@clisp.org>
18159         gnulib-tool: Simplify commit from 2015-08-20.
18160         * gnulib-tool (func_add_or_update): Remove local variable
18161         is_binary_file.
18163 2017-09-08  Bruno Haible  <bruno@clisp.org>
18165         stddef: Avoid conflict with system-defined max_align_t.
18166         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
18167         Reported by Werner Lemberg <wl@gnu.org> in
18168         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
18169         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
18170         (max_align_t): Define as a macro.
18171         (GNULIB_defined_max_align_t): New macro. Guards against multiple
18172         definitions of rpl_max_align_t in different copies of gnulib-generated
18173         <stddef.h>.
18175 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18177         libc-config: port to MSVC
18178         Problems reported by Gisle Vanem in:
18179         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
18180         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
18181         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
18182         * m4/__inline.m4: New file.
18183         * modules/libc-config (Files): Add it.
18184         (Depends-on): Use it.
18186         glob: Use enum for __glob_pattern_type result
18187         From a patch proposed by Adhemerval Zanella in:
18188         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
18189         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
18190         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
18191         * lib/glob_internal.h (__glob_pattern_type):
18192         * lib/glob.c (glob):
18193         * lib/glob_pattern_p.c (__glob_pattern_p):
18194         Use them.
18196         glob: fix for use in glibc
18197         Problem reported by Adhemerval Zanella in:
18198         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
18199         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
18200         Do not redefine if _LIBC.
18202 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18204         glob: fix bugs with long login names
18205         Problem reported by Adhemerval Zanella in:
18206         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
18207         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
18208         (glob): Use the same scratch buffer for both getlogin_r and
18209         getpwnam_r.  Don’t require preallocation of the login name.  This
18210         simplifies storage allocation, and corrects the handling of
18211         long login names.
18213 2017-09-02  Bruno Haible  <bruno@clisp.org>
18215         dirent: Update doc.
18216         * doc/posix-headers/dirent.texi: More concrete list of platforms.
18218 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18220         glob: fix getpwnam_r errno typo
18221         * lib/glob.c (glob): Fix longstanding misuse of errno after
18222         getpwnam_r, which returns an error number rather than setting
18223         errno.
18225         glob: fix typo in recent change
18226         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
18227         Fix recently-introduced typo.
18229 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18231         glob: don't save and restore errno unnecessarily
18232         * lib/glob.c (glob): Don't save and restore errno
18233         merely because we have getpwnam_r.
18235         glob: don't assume getpwnam_r
18236         * lib/glob.c (glob): Port recent patches to platforms
18237         lacking getpwnam_r.
18239         scratch_buffer: don’t use private glibc API
18240         Suggested by Florian Weimer in:
18241         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
18242         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
18243         * lib/scratch_buffer_grow.c: Rename to
18244         lib/malloc/scratch_buffer_grow.c.
18245         * lib/scratch_buffer_grow_preserve.c: Rename to
18246         lib/malloc/scratch_buffer_grow_preserve.c.
18247         * lib/scratch_buffer_set_array_size.c: Rename to
18248         lib/malloc/scratch_buffer_set_array_size.c.
18249         * lib/scratch_buffer.h: New file.
18250         * modules/scratch_buffer (Files, Makefile.am):
18251         Adjust to source-file renaming.
18253 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18255         glob: use scratch_buffer instead of extend_alloca
18256         Much of the lib/glob.c part of this patch comes from a glibc patch
18257         proposed by Adhemerval Zanella in:
18258         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
18259         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
18260         included via glob.h, does this for us now.
18261         (__set_errno): Remove, as libc-config does this for us now.
18262         Include <scratch_buffer.h>.
18263         (GETPW_R_SIZE_MAX): Remove.
18264         (glob): Use struct scratch_buffer instead of extend_alloca.
18265         * lib/glob.in.h: Include libc-config.h rather than
18266         including <sys/cdefs.h> conditionally.
18267         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
18268         (__glibc_unlikely, __restrict, weak_alias):
18269         Remove, as libc-config does this for us now.
18270         * m4/glob.m4 (gl_PREREQ_GLOB):
18271         Remove sys/cdefs.h tests; no longer needed.
18272         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
18273         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
18275         scratch_buffer: new module
18276         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
18277         * lib/scratch_buffer_grow_preserve.c:
18278         * lib/scratch_buffer_set_array_size.c:
18279         New files, copied from glibc with very minor changes that can be
18280         copied back.
18281         * modules/scratch_buffer: New file.
18283         libc-config: new module
18284         * MODULES.html.sh: Add libc-config.
18285         * lib/cdefs.h: New file, copied from the GNU C Library with very
18286         minor changes that can be copied back.
18287         * lib/libc-config.h, modules/libc-config: New files.
18289 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18291         glob: match dangling symlinks
18292         This fixes a bug I inadvertently introduced to Gnulib when I
18293         merged glibc glob back into gnulib on 2007-10-16.  This fix is
18294         inspired by a patch proposed for glibc by Adhemerval Zanella in:
18295         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
18296         * doc/posix-functions/glob.texi: Update list of affected platforms.
18297         * lib/glob.c (__lstat64): New macro.
18298         (is_dir): New function.
18299         (glob, glob_in_dir): Match symlinks even if they are dangling.
18300         (link_stat, link_exists_p): Remove.  All uses removed.
18301         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
18302         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
18303         * modules/glob-tests (Depends-on): Add symlink.
18304         * tests/test-glob.c: Include errno.h, unistd.h.
18305         (BASE): New macro.
18306         (main): Test dangling symlinks, if symlinks are supported.
18308         glob, backupfile: inode 0 is a valid inode number
18309         * doc/posix-functions/readdir.texi (readdir):
18310         * doc/posix-headers/dirent.texi (dirent.h):
18311         Document more readdir portability issues.
18312         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
18313         (numbered_backup): Don’t treat inode 0 any differently from
18314         other inode values.
18315         * lib/glob.c (struct readdir_result): Remove skip_entry member.
18316         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
18317         All uses removed.
18318         * modules/glob (Depends-on): Remove d-ino.
18320         glob: simplify symlink detection
18321         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
18322         uint8_t, as C99 does not require uint8_t.
18323         (struct readdir_result): Use it.  Do not define skip_entry unless
18324         it is needed; this saves a byte on platforms lacking d_ino.
18325         (readdir_result_type, readdir_result_skip_entry):
18326         New functions, replacing ...
18327         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
18328         ... these functions, which were removed.  This makes the callers
18329         easier to read.  All callers changed.
18330         (D_INO_TO_RESULT): Now empty if there is no d_ino.
18332 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18334         fts-tests: tag as a longrunning-test so not included by default
18335         * modules/fts-tests: This test takes about 20s on current systems,
18336         and uses about 285M of space on ext4.
18338 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18340         renameat2: fix compilation on alpine linux
18341         * m4/renameat.m4: Check for <linux/fs.h> presence.
18342         * lib/renameat2.h: Only include <linux/fs.h> if present.
18343         Reported by Assaf Gordon on Alpine Linux.
18345 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18347         glob: try to port recent changes to MS-Windows
18348         Problem reported by Bruno Haible in:
18349         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
18350         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
18351         * lib/glob.in.h (__glob_pattern_p): ... to here.
18353 2017-08-24  Eric Blake  <eblake@redhat.com>
18355         warnings: fix compilation with old autoconf
18356         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
18357         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
18358         AC_DEFUN.
18359         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
18360         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
18362 2017-08-24  Bruno Haible  <bruno@clisp.org>
18364         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
18365         * modules/glob (Depends-on): Add c99.
18367 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18369         glob: fix typo that broke platforms lacking d_ino
18370         This typo also hurt performance on GNU/Linux and similar hosts.
18371         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
18372         in previous change.
18374 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18376         glob: merge from glibc with Zanella glob changes
18377         Merge glob from glibc, with changes for glob proposed
18378         by Adhemerval Zanella in the thread starting here:
18379         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
18380         plus some fixes for this merge.
18381         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
18382         New files, ported from glibc.
18383         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
18384         with __restrict.
18385         (__size_t): Remove.  All uses replaced by size_t.
18386         (size_t): Define by defining __need_size_t and including <stddef.h>.
18387         This should work even in non-glibc platforms, where any name
18388         pollution is OK.
18389         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
18390         (struct stat64): Don’t worry about __GLOB_GNULIB.
18391         (glob, globfree, glob_pattern_p): Remove macros for
18392         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
18393         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
18394         but set errno.
18395         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
18396         removed since the glibc behavior works on null pointers.
18397         Do not include stdio.h; old SunOS is irrelevant now.
18398         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
18399         Include glob_internal.h.
18400         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
18401         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
18402         worked only coincidentally.
18403         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
18404         Remove macros; now done in glob.in.h.
18405         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
18406         (glob): Properly initialize glob structure with
18407         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
18408         Remove old code using SHELL since Bash no longer
18409         uses this.
18410         (glob, prefix_array): Separate MS code better.
18411         (glob, glob_in_dir): Use C99 decls before statements when glibc
18412         does.
18413         (glob_in_dir): Remove old Amiga and VMS code.
18414         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
18415         separate files.
18416         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
18417         (__glibc_unlikely):
18418         Move here from glob.c.
18419         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
18420         (weak_alias): New macro.
18421         (__size_t): Remove.  All uses replaced by size_t.
18422         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
18423         * modules/glob (Files): Add +lib/glob_internal.h,
18424         lib/glob_pattern_p.c, lib/globfree.c.
18425         (Depends-on): Remove snippet/arg-nonnull.
18427 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18429         glob: port to clang's Undefined Sanitizer
18430         Problem reported by Tim Rühsen in:
18431         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
18432         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
18433         (glob_in_dir): Do not rely on undefined behavior in accessing
18434         struct members beyond their bounds.  Use a flexible array member
18435         instead.
18437 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18439         vc-list-files: port to Solaris 10
18440         * build-aux/vc-list-files: Don't assume test -e works.
18442 2017-08-21  Karl Berry  <karl@freefriends.org>
18444         * doc/posix-functions/srandom.texi (srandom): typo }.
18446 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18448         git-version-gen: port to Solaris 10
18449         Problem reported by Dagobert Michelsen in:
18450         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
18451         * build-aux/git-version-gen (v_from_git):
18452         Use expr instead of shell substitution.
18454 2017-08-19  Bruno Haible  <bruno@clisp.org>
18456         host-cpu-c-abi: Improve detection of MIPS ABI.
18457         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
18458         _MIPS_SIM.
18460 2017-08-17  Bruno Haible  <bruno@clisp.org>
18462         hypot tests: Fix test failure on FreeBSD 11.0/x86.
18463         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
18465 2017-08-17  Bruno Haible  <bruno@clisp.org>
18467         float: Fix LDBL_MIN value on FreeBSD/x86.
18468         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
18470 2017-08-17  Bruno Haible  <bruno@clisp.org>
18472         random: Fix test compilation failure on Cygwin 1.5.25.
18473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
18474         HAVE_DECL_SETSTATE.
18475         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
18476         declared.
18477         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
18478         HAVE_DECL_SETSTATE.
18479         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
18480         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
18481         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
18482         * doc/posix-functions/random.texi: Likewise.
18483         * doc/posix-functions/setstate.texi: Likewise.
18484         * doc/posix-functions/srandom.texi: Likewise.
18486 2017-08-16  Bruno Haible  <bruno@clisp.org>
18488         stdnoreturn: Fix test compilation failure on Cygwin.
18489         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
18490         <stdnoreturn.h> replacement.
18491         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
18492         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
18494 2017-08-16  Bruno Haible  <bruno@clisp.org>
18496         thread: Fix conflict with pthread_sigmask module.
18497         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
18498         it's defined as a macro.
18499         * modules/thread (Depends-on): Add pthread_sigmask.
18501 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18503         rename: port better to NetBSD
18504         * doc/posix-functions/rename.texi (rename): NetBSD 7
18505         does not have the link-count bug.
18506         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
18507         broken merely because rename ("a", "b") removes "a" when the two
18508         names are hard links to the same file.
18510 2017-08-16  Bruno Haible  <bruno@clisp.org>
18512         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
18513         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
18514         the target file names with '$(srcdir)/'.
18515         * modules/unicase/locale-language (Makefile.am): Likewise.
18516         * modules/unicase/special-casing (Makefile.am): Likewise.
18517         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
18518         * modules/unictype/category-byname (Makefile.am): Likewise.
18519         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
18520         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
18521         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
18522         * modules/unictype/property-byname (Makefile.am): Likewise.
18523         * modules/unictype/scripts (Makefile.am): Likewise.
18524         * modules/uninorm/composition (Makefile.am): Likewise.
18526 2017-08-16  Bruno Haible  <bruno@clisp.org>
18528         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
18529         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
18530         value for OpenBSD.
18532 2017-08-16  Bruno Haible  <bruno@clisp.org>
18534         rename, renameat: Update doc regarding NetBSD.
18535         * doc/posix-functions/rename.texi: Clarify that when using
18536         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
18537         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
18538         version.
18540 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18542         renameat2: port better to macOS
18543         * lib/renameat2.c (renameat2): Use renameatx_np if available.
18545         futimens: don’t assume struct timespec layout
18546         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
18547         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
18548         * tests/test-fdutimensat.c (main):
18549         * tests/test-futimens.h (test_futimens):
18550         * tests/test-lutimens.h (test_lutimens):
18551         * tests/test-utimens.h (test_utimens):
18552         * tests/test-utimensat.c (main):
18553         Don’t assume that struct timespec is a two-member structure in
18554         tv_sec, tv_nsec order.  Although this is true on all platforms we
18555         know about, POSIX does not guarantee it.
18557         rename: document+test NetBSD rename
18558         Test failure reported by Bruno Haible in:
18559         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
18560         This is an area where NetBSD is better-behaved than POSIX,
18561         so allow the NetBSD behavior in tests.
18562         * doc/posix-functions/rename.texi:
18563         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
18564         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
18566 2017-08-15  Bruno Haible  <bruno@clisp.org>
18568         renameat: Ensure declaration in <stdio.h> on NetBSD.
18569         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
18570         * doc/posix-functions/renameat.texi: Mention this problem.
18572 2017-08-15  Bruno Haible  <bruno@clisp.org>
18574         duplocale: Work around NetBSD 7.0 bug.
18575         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
18576         * lib/duplocale.c: Add comment about NetBSD problem.
18577         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
18579 2017-08-15  Bruno Haible  <bruno@clisp.org>
18581         duplocale tests: Verify use with *_l functions.
18582         * modules/duplocale-tests (configure.ac): Test for uselocale and
18583         some *_l functions.
18584         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
18585         from main.
18586         (get_locale_dependent_values_from, test_with_locale_parameter): New
18587         functions.
18588         (main): Test both test_with_uselocale and test_with_locale_parameter.
18590 2017-08-15  Bruno Haible  <bruno@clisp.org>
18592         extensions: Enable NetBSD specific extensions.
18593         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
18595 2017-08-14  Bruno Haible  <bruno@clisp.org>
18597         open, openat: Update doc about O_CLOEXEC.
18598         * doc/posix-functions/open.texi: More concrete list of platforms.
18599         * doc/posix-functions/openat.texi: Likewise.
18601 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18603         open: support O_CLOEXEC
18604         * NEWS, doc/posix-functions/open.texi:
18605         * doc/posix-functions/openat.texi: Document this.
18606         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
18607         (GNULIB_defined_O_CLOEXEC): New symbol.
18608         * lib/open.c: Include cloexec.h.
18609         (open): Support O_CLOEXEC.
18610         * lib/openat.c: Include cloexec.h.
18611         (rpl_openat): Support O_CLOEXEC.
18612         * lib/popen-safer.c: Do not include cloexec.h.
18613         (open_noinherit): Remove.
18614         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
18615         * lib/save-cwd.c: Do not include cloexec.h.
18616         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
18617         * m4/open-cloexec.m4: New file.
18618         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
18619         Replace 'open' if O_CLOEXEC is not present.
18620         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
18621         Replace 'openat' if O_CLOEXEC is not present.
18622         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
18623         * modules/open (Files): Add m4/open-cloexec.m4.
18624         (Depends-on): Depend on cloexec if replacing 'open'.
18625         * modules/openat (Files): Add m4/open-cloexec.m4.
18626         (Depends-on): Depend on cloexec if replacing openat.
18627         * modules/popen-safer (Depends-on): Remove cloexec.
18628         * modules/save-cwd (Depends-on): Remove cloexec, and add
18629         fd-safer-flag and 'open'.
18631 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18633         reallocarray: minor fixes
18634         * doc/glibc-functions/reallocarray.texi: Update version numbers.
18635         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
18636         * modules/reallocarray (License): Change from GPL to LGPL.
18637         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
18638         Indent properly and don't use tabs.
18640 2017-08-13  Darshit Shah  <darnir@gnu.org>
18642         reallocarray: New module
18643         reallocarray is a new function in glibc 2.26 to safely allocate an array
18644         of memory locations with integer overflow protection.
18645         * MODULES.html.sh: Add reallocarray.
18646         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
18647         * lib/reallocarray.c: New file to implement module reallocarray.
18648         * lib/stdlib.in.h: Add function declarations for reallocarray.
18649         * m4/reallocarray.m4: New file.
18650         * m4/stdlib_h.m4: Declare reallocarray.
18651         * modules/reallocarray: New file.
18652         * modules/reallocarray-test: New file.
18653         * modules/stdlib: Coerce stdlib.h to export reallocarray.
18654         * tests/test-reallocarray.c: New test.
18656 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
18658         dirent-safer: fix cloexec race
18659         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
18660         (opendir_safer): Use F_DUPFD_CLOEXEC.
18661         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
18662         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
18663         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
18664         instead of dup_safer.
18666         fts: fix cloexec races
18667         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18668         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18669         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18670         (fd_ring_check): Set cloexec flag on new file descriptors.
18671         (fts_build, fd_ring_check): While we’re at it, make sure the
18672         resulting file descriptor is not 0, 1, or 2, since that is easy.
18674 2017-08-11  Bruno Haible  <bruno@clisp.org>
18676         fts tests: Fix link error.
18677         Reported by Tom G. Christensen in
18678         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18679         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18681 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18683         fts: port recent changes to CentOS 6
18684         Problem reported by Tom G. Christensen in:
18685         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18686         * lib/fts.c (fsword): New type.
18687         (struct dev_type, filesystem_type): Use it.
18688         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18689         Also, check for f_type only if fstatfs and sys/vfs.h work.
18691 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18693         tempname: do not depend on secure_getenv
18694         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18695         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18696         * modules/tempname (Depends-on): Remove secure_getenv.
18698 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18700         extensions: add _OPENBSD_SOURCE
18701         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18703 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18704             Bruno Haible  <bruno@clisp.org>
18706         manywarnings: Add support for C++.
18707         * build-aux/g++-warning.spec: New file.
18708         * m4/manywarnings-c++.m4: New file.
18709         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
18710         redirects to manywarnings-c++.m4.
18711         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
18713 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18715         git-version-gen: another fix for tags with "-"
18716         * build-aux/git-version-gen: Improve fix for tags containing "-".
18717         Suggested by Markus Armbruster in:
18718         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
18720 2017-08-06  Bruno Haible  <bruno@clisp.org>
18722         warnings, manywarnings: Add support for multiple languages, not just C.
18723         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
18724         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
18725         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
18726         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
18727         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
18728         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
18729         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
18730         of the current language. If C++ is the current language, modify
18731         WARN_CXXFLAGS instead of WARN_CFLAGS.
18732         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
18733         gl_MANYWARN_ALL_GCC.
18734         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
18736 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
18738         git-version-gen: Fix for tags containing '-'
18740         Really old versions of git-describe (before v1.5.0, Feb 2007)
18741         don't have the number of commits in their long format output,
18742         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
18743         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
18744         recognizes both patterns, and normalizes the old format to the new one.
18746         Unfortunately, this normalization code gets confused when the tag
18747         contains '-'.  Reproducer:
18749             $ git-tag -m test v0.2-rc1
18750             $ build-aux/git-version-gen .tarball-version; echo
18751             build-aux/git-version-gen: WARNING: git rev-list failed
18752             UNKNOWN
18754         We take exact tag "v0.2-rc1" for the old format, extract the presumed
18755         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
18756         commits since tha tag.  Fails, because tag "v0.2" does not exist.
18758         * git-version-gen: We could perhaps drop support for versions from
18759         more than a decade ago.  But tightening the pattern match is easy
18760         enough, so do that.  Still breaks when you use version tags ending in
18761         something matching -g????, but you arguably get what you deserve then.
18763 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
18765         valgrind-tests: use ls, and cache
18766         * m4/valgrind-tests.m4: Test ls, not bash.
18767         Problem reported by Reuben Thomas.
18768         Also, cache the result so that it can be overridden.
18770 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
18772         manywarnings: port to 64-bit GCC builds of Emacs
18773         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
18774         object size rather than hardwiring 2147483647.  This is needed to
18775         build GNU Emacs, which has one conditional (and used
18776         only-in-theory) call to malloc with a literal greater than
18777         2147483647.
18779 2017-08-04  Bruno Haible  <bruno@clisp.org>
18781         Relax the license of some modules with no runtime code.
18782         * modules/std-gnu11 (License): Set to 'unlimited'.
18783         * modules/c99 (License): Likewise.
18784         Reported by Reuben Thomas <rrt@sc3d.org>.
18785         * modules/d-ino (License): Set to 'LGPL'.
18786         * modules/host-os (License): Likewise.
18787         * modules/longlong (License): Likewise.
18789 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18791         renameat2: port to RHEL 7 + NFS
18792         * lib/renameat2.c (renameat2) [SYS_renameat2]:
18793         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
18794         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
18796 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18798         renameat2: port to non-renameat platforms
18799         Problem reported for MSVC-2015 by Gisle Vanem in:
18800         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
18801         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
18802         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
18804 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18806         manywarnings: port to 32-bit GCC bug
18807         Problem reported by Pino Toscano in:
18808         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18809         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18810         not 2**63 - 1, to work around the following GCC bug:
18811         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18813 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18815         backupfile: new function to validate backup suffix
18816         * lib/backupfile.c (set_simple_backup_suffix): New function.
18817         (backupfile_internal): Use it.
18819         canonicalize: fix EOVERFLOW commentary
18820         Problem reported by Bruno Haible in:
18821         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18822         * lib/canonicalize.c (canonicalize_filename_mode):
18823         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18825         Don't interpret EOVERFLOW to mean nonexistence
18826         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18827         may be EOVERFLOW; this is likely more useful than reporting the
18828         stat errno.
18829         * lib/glob.c (link_stat): Rename from link_exists2_p and
18830         return -1/0 instead of 0/1.  Caller changed.
18831         * lib/glob.c (link_exists_p):
18832         * lib/renameat2.c (rename_noreplace, renameat2):
18833         * lib/tempname.c (try_nocreate):
18834         If errno == EOVERFLOW then the directory entry exists, so do not
18835         act as if it does not exist.
18837         backup-rename: new module
18838         It is like backupfile, except it avoids some race conditions,
18839         and it does not output to stderr or exit.
18840         * MODULES.html.sh: Add backup-rename.
18841         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18842         * modules/backup-rename: New files.
18843         * lib/backupfile.c: Turn this into an internals file, which
18844         contains code common to backupfile and backup_rename.  Include
18845         backupfile-internal.h instead of backupfile.h.  Do not include
18846         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18847         renameat2.h and fcntl.h.
18848         (BACKUP_NOMEM): New constant.
18849         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18850         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18851         (backupfile_internal): Rename from find_backup_file_name.
18852         Support new arg RENAME.
18853         (backup_args, backup_types, get_version, xget_version):
18854         Move to lib/backup-find.c.
18855         * lib/backupfile.h (backup_file_rename): New decl.
18856         * modules/backupfile (Files): Add lib/backup-internal.h,
18857         lib/backup-find.c.
18858         (Depends-on): Add dirfd, fcntl, renameat2.
18859         (lib_SOURCES): Add backup-find.c.
18861         renameat2: port better to older Solaris
18862         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18863         Add goto to use a label, to silence picky compilers.
18865         fts-tests: port to gcc -Wwrite-strings
18866         * tests/test-fts.c (base, base_d): New static vars.
18867         (argv, remove_tree, main): Use them.
18869 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18871         relocatable-lib{,-lgpl}: improve documentation
18872         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18873         Various other updates.
18875 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18876             Bruno Haible  <bruno@clisp.org>
18878         relocatable-lib{,-lgpl}: add Valgrind suppressions
18879         * lib/relocatable.valgrind: New file.
18880         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18881         * modules/relocatable-lib-lgpl: Likewise.
18883 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18885         relocatable: Make the license on the sources the GPL.
18886         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18887         LGPL, which was a special case so that the relocatable source files
18888         could be used without gnulib-tool, to GPL. They can still be used under
18889         the LGPL, using the --lgpl option to gnulib-tool.
18891 2017-07-30  Bruno Haible  <bruno@clisp.org>
18893         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18894         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18895         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18896         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18897         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18899 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18901         faccessat: document AT_SYMLINK_NOFOLLOW issue
18902         * doc/posix-functions/faccessat.texi: Modernize platform list.
18903         Document AT_SYMLINK_NOFOLLOW limitation.
18905         renameat2: port to Solaris 10
18906         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18907         with AT_SYMLINK_NOFOLLOW (which is not portable).
18908         (renameat): Undef before using, to avoid endless recursion when
18909         the replacement renameat calls renameat2 which calls the
18910         replacement renameat.
18911         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18912         * modules/renameat2 (Depends-on): Remove faccessat.
18913         * modules/renameat-tests (test_renameat_LDADD):
18914         * modules/renameat2-tests (test_renameat2_LDADD):
18915         Remove $(LIB_EACCESS).
18917         renameat2: new module
18918         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18919         useful to have access to its RENAME_NOREPLACE flag.
18920         * MODULES.html.sh (func_all_modules): Add renameat2.
18921         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18922         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18923         * lib/renameat.c (renameat): Move most of the implementation
18924         to renameat2, and just call renameat2.
18925         * modules/renameat (Files): Remove lib/at-func2.c.
18926         (Depends-on): Depend only on renameat2.
18927         (Include): Remove <fcntl.h>.
18928         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18929         since renameat (via renameat2) might use faccessat.
18931 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18933         vc-list-files: Adjust the script to support git worktrees
18934         * build-aux/vc-list-files: Require existence, not directory.
18936 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18938         doc: bring MODULES.html.sh up to date
18939         Somehow a few months ago we stopped updating MODULES.html.sh.
18940         I don’t recall explicitly deciding this, so I updated it now.
18941         Alternatively I suppose we could remove it.
18942         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18943         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18944         truncate, utime, utime-h, windows-stat-inodes,
18945         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18947 2017-07-26  Jim Meyering  <meyering@fb.com>
18949         fprintftime: fix build-break caused by recent renaming
18950         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18951         "strftime.c".
18952         * modules/fprintftime: Depend directly on nstrftime.
18954 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18956         regex: work with GCC7's -Werror=implicit-fallthrough=
18957         * lib/regex_internal.h (FALLTHROUGH): New macro.
18958         * lib/regcomp.c (peek_token_bracket, parse_expression):
18959         * lib/regexec.c (check_node_accept): Use it.
18961 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18963         fts: simplify fts_build
18964         * lib/fts.c (fts_build): Simplify, and be lazier about
18965         calling leaf_optimization.
18967         fts: three levels of leaf optimization
18968         * lib/fts.c (enum leaf_optimization): New type with three values.
18969         (S_MAGIC_AFS): New macro.  Sort them.
18970         (leaf_optimization): Rename from leaf_optimization_applies, and
18971         return enum leaf_optimization instead of bool.  All uses changed.
18972         Add cases for unknown type and for AFS.
18973         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18975         fts: cache dirent_inode_sort_may_be_useful too
18976         * lib/fts.c (struct dev_type): New struct.
18977         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18978         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18979         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18980         Now takes FTSENT const *, not int.  All uses changed.  Use
18981         filesystem_type to cache.
18982         (link_count_optimize_ok): Remove.  Caller changed to use
18983         leaf_optimization_applies, which now uses shared cache.
18985         fts: introduce MIN_DIR_NLINK
18986         * lib/fts.c (MIN_DIR_NLINK): New constant.
18987         Use it instead of 2, whenever we are talking about link counts.
18989         fts: nlink_t signedness fixups
18990         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18991         so that root need not be a special case later.
18992         (fts_read): Remove now-redundant test for fts_level.
18993         Do not assume that nlink_t is signed.
18994         (fts_build): Remove useless decrement of nlinks.
18995         (fts_stat): Avoid unlikely signed integer overflow later, if
18996         nlink_t is signed.
18998         fts-tests: new module
18999         * modules/fts-tests, tests/test-fts.c: New files.
19001 2017-07-23  Bruno Haible  <bruno@clisp.org>
19003         Rename module 'strftime' to 'nstrftime'.
19004         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
19005         * lib/nstrftime.c: Renamed from lib/strftime.c.
19006         * modules/nstrftime: Renamed from modules/strftime.
19007         (Files, Makefile.am): Update.
19008         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
19009         Fix comment.
19010         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
19011         (Files, Makefile.am): Update.
19012         * modules/strftime: New file, an obsolete indirection.
19013         * doc/posix-functions/strftime.texi: Update reference.
19014         * config/srclist.txt: Update info.
19015         * NEWS: Mention the change.
19017 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
19019         malloca: Silence a warning from clang's memory sanitizer.
19020         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
19021         (freea): Use it.
19023 2017-07-18  Bruno Haible  <bruno@clisp.org>
19025         host-cpu-c-abi: Fix detection of MIPS ABI.
19026         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
19027         ABI, not the CPU instruction set.
19029 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19031         explicit_bzero: new module
19032         The explicit_bzero function has been added to glibc.
19033         This module is intended to supports its use in GNU programs.
19034         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
19035         * m4/explicit_bzero.m4, modules/explicit_bzero:
19036         New files.
19037         * doc/gnulib.texi (Glibc string.h): Link to new doc.
19038         * lib/string.in.h (explicit_bzero): Declare.
19039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
19040         * modules/string (string.h): Substitute its vars.
19042 2017-07-16  Bruno Haible  <bruno@clisp.org>
19044         threadlib: Support static linking.
19045         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
19046         set gl_cv_have_weak to 'no'.
19048 2017-07-16  Bruno Haible  <bruno@clisp.org>
19050         unicase/locale-language: Fix link dependencies.
19051         * modules/unicase/locale-language (Link): New section.
19052         * modules/unicase/locale-language-tests (Makefile.am): Link
19053         test-locale-language program with $(LIBTHREAD).
19055 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19057         sys_socket: Add support for OpenVMS.
19058         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
19059         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
19061 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19063         sys_resource: Add support for OpenVMS.
19064         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
19065         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
19067 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19068             Bruno Haible  <bruno@clisp.org>
19070         math: Add support for OpenVMS.
19071         * lib/math.in.h [__VMS]: Include <fp.h>.
19072         * doc/posix-headers/math.texi: Mention OpenVMS issues.
19074 2017-07-15  Bruno Haible  <bruno@clisp.org>
19076         getdtablesize: Add minimal support for OpenVMS.
19077         Reported by John E. Malmberg <wb8tyw@qsl.net>.
19078         * modules/getdtablesize (Description): Fix.
19079         * lib/getdtablesize.c: Fix comment.
19080         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
19081         getdtablesize() function, even though the test fails.
19082         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
19083         limitation on OpenVMS.
19085 2017-07-13  Bruno Haible  <bruno@clisp.org>
19087         Revisit cross-compilation guesses.
19088         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
19090 2017-07-13  Bruno Haible  <bruno@clisp.org>
19092         Improve cross-compilation guesses for native Windows.
19093         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
19094         Windows.
19095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
19096         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
19097         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19098         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
19099         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
19100         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
19101         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19102         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19103         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19104         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19105         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19106         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
19107         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
19108         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
19109         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
19110         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19111         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
19112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19113         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19114         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19115         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
19116         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19117         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
19118         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
19119         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
19120         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
19121         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19122         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19123         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19124         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
19125         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
19127         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19128         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
19129         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
19130         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
19131         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19132         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19133         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19134         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19135         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19136         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19137         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
19138         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
19139         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
19140         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
19141         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
19142         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
19143         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
19144         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
19145         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
19146         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
19147         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
19148         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
19149         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
19150         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
19151         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
19152         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19153         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
19154         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19156         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
19157         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
19158         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19159         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19161         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
19162         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19163         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
19164         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
19165         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
19166         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19167         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19168         * m4/regex.m4 (gl_REGEX): Likewise.
19169         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19170         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
19171         gl_FUNC_REMAINDERF_WORKS): Likewise.
19172         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
19173         gl_FUNC_REMAINDERL_WORKS): Likewise.
19174         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19175         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19176         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19177         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19178         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19179         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
19180         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19181         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19182         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
19183         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19184         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
19185         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
19186         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19187         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19188         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19189         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19190         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19191         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19192         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19193         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19194         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19195         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19196         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19197         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19198         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19199         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19200         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19201         Likewise.
19202         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19203         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
19204         Windows. Enable also on Autoconf 2.70.
19205         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19206         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19207         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19208         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
19209         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19210         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
19211         for native Windows.
19212         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19213         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
19215 2017-07-13  Bruno Haible  <bruno@clisp.org>
19217         Improve cross-compilation guesses for native Windows.
19218         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
19219         Windows.
19220         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
19221         memchr.m4.
19222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19224 2017-07-13  Bruno Haible  <bruno@clisp.org>
19226         Improve cross-compilation guesses for native Windows.
19227         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
19228         native Windows.
19229         (gl_FUNC_FFLUSH): Update accordingly.
19230         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
19231         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19233 2017-07-11  Bruno Haible  <bruno@clisp.org>
19235         More systematic m4 quoting and indentation.
19236         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
19237         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19238         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19239         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19240         * m4/host-os.m4 (gl_HOST_OS): Likewise.
19241         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
19242         gl_WINSIZE_IN_PTEM): Likewise.
19243         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
19244         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19245         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19246         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
19247         Correct indentation.
19248         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
19249         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19250         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
19251         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19252         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19253         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19255 2017-07-10  Bruno Haible  <bruno@clisp.org>
19257         round, roundf: Avoid compiler warning in configure test.
19258         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
19259         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19261 2017-07-10  Bruno Haible  <bruno@clisp.org>
19263         getlogin tests: Avoid #ifdefs when sharing code between modules.
19264         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
19265         * modules/getlogin-tests (Files): Likewise. Remove
19266         tests/test-getlogin_r.c.
19267         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
19268         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
19269         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
19270         getlogin().
19272 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19274         getlogin: don’t assume one name per uid
19275         Problem reported by Wolfgang F. Muthmann (Bug#27640).
19276         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
19277         (ttyname): Remove test.
19278         * modules/getlogin_r-tests (ttyname): Remove test.
19279         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
19280         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
19281         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
19282         getlogin rather than getlogin_r.  This avoids code duplication.
19283         (main): Use isatty and fstat rather than ttyname and stat.
19284         Use getpwnam instead of getpwuid, to be portable to test platforms
19285         that have multiple login names for the same uid.
19287 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
19288             Bruno Haible  <bruno@clisp.org>
19290         glob: Fix more memory leaks.
19291         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
19292         returning.
19293         Reported by Tim Rühsen.
19295 2017-07-10  Bruno Haible  <bruno@clisp.org>
19297         Make sure $host and $host_os are defined when used.
19298         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
19299         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
19300         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19302         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19303         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19304         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19305         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
19306         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19307         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19308         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
19309         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
19310         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19311         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
19312         m4_ifdef block.
19314 2017-07-09  Bruno Haible  <bruno@clisp.org>
19316         *printf: Fix cross-compilation guess for Solaris.
19317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
19318         2010-12-21.
19320 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19321             Bruno Haible  <bruno@clisp.org>
19323         vasnprintf: port to macOS 10.13
19324         Problem reported by comex in:
19325         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
19326         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
19328 2017-07-06  Bruno Haible  <bruno@clisp.org>
19330         imaxdiv tests: Fix logic.
19331         * tests/test-imaxdiv.c (main): Use == instead of =.
19332         Reported by Coverity.
19334 2017-07-06  Bruno Haible  <bruno@clisp.org>
19336         uninorm/filter: Fix use-after-free bug.
19337         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
19338         sortbuf == filter->sortbuf invariant.
19339         Reported by Coverity.
19341 2017-07-06  Bruno Haible  <bruno@clisp.org>
19343         glob: Fix more memory leaks.
19344         * lib/glob.c (glob): Free dirname before returning.
19345         Reported by Coverity and Tim Rühsen.
19347 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19349         parse-datetime: fix uninit var bug
19350         Reported by Bruno Haible in:
19351         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
19352         * lib/parse-datetime.y (parse_datetime2): Do not use
19353         uninitialized.
19355 2017-07-05  Bruno Haible  <bruno@clisp.org>
19357         doc: Update for MSVC 14.
19358         * doc/posix-headers/*.texi: Add info about MSVC 14.
19359         * doc/posix-functions/*.texi: Likewise.
19360         * doc/pastposix-functions/*.texi: Likewise.
19361         * doc/glibc-headers/*.texi: Likewise.
19362         * doc/glibc-functions/*.texi: Likewise.
19364 2017-07-05  Bruno Haible  <bruno@clisp.org>
19366         sched: Fix build failure on native Windows (regression from 2017-06-19).
19367         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
19369 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
19371         stdioext: Port to OpenVMS.
19372         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
19373         * lib/fpending.c (fpending): Remove non-working VMS specific code.
19374         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
19375         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
19376         * lib/fpurge.c (fpurge): Likewise.
19377         * lib/freadable.c (freadable): Likewise.
19378         * lib/freadahead.c (freadahead): Likewise.
19379         * lib/freading.c (freading): Likewise.
19380         * lib/freadptr.c (freadptr): Likewise.
19381         * lib/freadseek.c (freadseek): Likewise.
19382         * lib/fseeko.c (fseeko): Likewise.
19383         * lib/fseterr.c (fseterr): Likewise.
19384         * lib/fwritable.c (fwriteable): Likewise.
19385         * lib/fwriting.c (fwriting): Likewise.
19387 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
19389         glob: Declare variables at the very start of their scope.
19390         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
19391         its separate scope, so the functions will compile on Haiku.
19393 2017-07-01  Bruno Haible  <bruno@clisp.org>
19395         logbl: Work around a glibc bug on PowerPC64LE.
19396         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
19397         numbers.
19398         * doc/posix-functions/logbl.texi: Update.
19400 2017-06-29  Bruno Haible  <bruno@clisp.org>
19402         stat, fstat: Compile stat-w32.c only on platforms that need it.
19403         Suggested by Paul Eggert.
19404         * modules/stat (configure.ac): Request stat-w32.o only on native
19405         Windows.
19406         * modules/fstat (configure.ac): Likewise.
19408 2017-06-25  Bruno Haible  <bruno@clisp.org>
19410         stat: Improve last change.
19411         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
19413 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
19415         stat: port to xlc 12.01
19416         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
19417         12.01 complains "Compilation unit is empty."
19419 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19421         xalloc-oversized: port to icc
19422         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
19423         __builtin_mul_overflow if ICC is defined, as this results in
19424         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
19425         20170213.
19427 2017-06-19  Bruno Haible  <bruno@clisp.org>
19429         classpath: Avoid including config.h twice, as it produces warnings.
19430         Reported by John E. Malmberg <wb8tyw@gmail.com>.
19431         * lib/classpath.h: Conditionalize the include of config.h.
19433 2017-06-19  Bruno Haible  <bruno@clisp.org>
19434             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
19436         sched: Fix compilation failure on OpenVMS.
19437         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
19438         test whether <pthread.h> exists and defines struct sched_param.
19439         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
19441 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19443         diffseq: port to GCC 7 with --enable-gcc-warnings
19444         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
19445         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
19446         not complain about big_snake being defined but not used.
19448 2017-06-15  Bruno Haible  <bruno@clisp.org>
19450         gettext-h: Update theoretical condition for use of variable size arrays.
19451         Reported by Paul Eggert.
19452         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
19453         to include the theoretical condition for availability of variable size
19454         arrays, if we could trust the value of __STDC_VERSION__.
19456 2017-06-12  Bruno Haible  <bruno@clisp.org>
19458         Relicense some modules under LGPLv2+.
19459         Daiki Ueno's approval is in
19460         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
19461         * modules/uniwidth/base (License): Change to LGPLv2+.
19462         * modules/uniwidth/width (License): Likewise.
19464 2017-06-11  Bruno Haible  <bruno@clisp.org>
19466         localename: Fix test failure on DragonFly BSD.
19467         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
19468         like FreeBSD.
19470 2017-06-11  Bruno Haible  <bruno@clisp.org>
19472         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
19473         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
19474         * lib/float.in.h: Likewise.
19475         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
19477 2017-06-11  Bruno Haible  <bruno@clisp.org>
19479         gnulib-tool: Clean up after autotools.
19480         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
19481         useless directory left over by the Autotools.
19483 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19485         getopt-posix: port to glibc 2.25.90
19486         Problem reported by Daniel P. Berrange in:
19487         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
19488         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
19489         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
19490         #undef if __GETOPT_PREFIX is defined.
19492 2017-06-11  Bruno Haible  <bruno@clisp.org>
19494         strtod-obsolete: Fix license.
19495         * modules/strtod-obsolete (License): Change to LGPL.
19497 2017-06-10  Jim Meyering  <meyering@fb.com>
19499         maint: update to work with GCC7's -Werror=implicit-fallthrough=
19500         * lib/savewd.c (FALLTHROUGH): Define.
19501         (savewd_save, savewd_restore): Use this, rather than a comment,
19502         whenever one switch case falls through into the next.
19504 2017-06-08  Bruno Haible  <bruno@clisp.org>
19506         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
19507         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
19508         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
19509         case.
19511 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
19513         doc: remove robots, add prereqs
19514         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
19515         builds.  Simon's robot site does not seem to be up, so remove
19516         mentions of it for now.
19518 2017-06-08  Bruno Haible  <bruno@clisp.org>
19520         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
19521         * gnulib-tool (func_symlink_target): New function, extracted from
19522         func_symlink.
19523         (func_symlink, func_symlink_if_changed): Use it.
19525 2017-06-08  Bruno Haible  <bruno@clisp.org>
19527         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
19528         * gnulib-tool (func_ln_s): Determine cp_src correctly.
19530 2017-06-07  Bruno Haible  <bruno@clisp.org>
19532         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
19533         Reported by John E. Malmberg <wb8tyw@gmail.com> in
19534         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
19535         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
19536         override, pass 2 arguments to getcwd, not 3.
19538 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19540         same-inode: port better to VMS 8.2 and later
19541         Problem reported by John E. Malmberg in:
19542         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
19543         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
19544         Use the usual POSIX definition.
19545         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
19547 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
19549         error: fix POSIX violation for va_end
19550         Problem reported by Bruno Haible in:
19551         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
19552         * lib/error.c (error_tail): Do not call va_end here.
19553         (error, error_at_line): Call it here instead.
19555 2017-05-28  Bruno Haible  <bruno@clisp.org>
19557         c-strtod: Make it usable in C++ mode.
19558         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
19560 2017-05-25  Jim Meyering  <meyering@fb.com>
19562         quotearg: fix compilation failure due to FALLTHROUGH misuse
19563         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
19564         macro back to /* fall through */ comment.  The macro can apply only
19565         to a following case statement.  Reported by Assaf Gordon.
19567 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19569         intprops: port to recent icc
19570         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
19571         but does not support __builtin_add_overflow etc.
19572         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
19573         Define to 0.
19575 2017-05-23  Karl Berry  <karl@freefriends.org>
19577         * config/srclist.txt (iconv.m4): sync broken, comment out
19578         until (hopefully) the next gettext release.
19580 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
19582         Remove repeated words in comments.
19584 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19586         fallthrough: reinstate a FALLTHROUGH instance in quotearg
19587         quotearg.c: Reinstate this instance which is significant
19588         when the if branch is not taken.
19590 2017-05-21  Bruno Haible  <bruno@clisp.org>
19592         gnulib-tool: Add options to create hard links.
19593         * gnulib-tool (func_usage): Document options --hardlink,
19594         --local-hardlink, --more-hardlinks.
19595         (func_symlink): Renamed from func_ln.
19596         (func_symlink_if_changed): Renamed from func_ln_if_changed.
19597         (func_hardlink): New function.
19598         (copymode, lcopymode): New variables.
19599         (symbolic, lsymbolic): Remove variables.
19600         (Options): Implement options --hardlink, --local-hardlink,
19601         --more-hardlinks.
19602         (func_should_link): Renamed from func_should_symlink. Set copyaction.
19603         (func_add_file, func_update_file): Update invocation of
19604         func_should_link. Invoke func_hardlink when appropriate.
19605         (func_import): Update comments.
19606         (func_create_testdir): Update invocation of func_should_link. Invoke
19607         func_hardlink when appropriate.
19608         Finally, invoke 'git update-index --refresh' to mitigate the effects of
19609         the hard links on git.
19611 2017-05-20  Bruno Haible  <bruno@clisp.org>
19613         argp: Simplify bit manipulation.
19614         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
19615         on a signed integer type.
19617 2017-05-20  Bruno Haible  <bruno@clisp.org>
19619         Avoid wrong configure results with gcc -fsanitize=address.
19620         This completes the work done on 2016-02-06 on this topic.
19621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
19622         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19623         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19624         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19625         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
19626         returning.
19627         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19628         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
19629         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19630         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19631         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19632         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19633         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
19634         free allocated memory before returning.
19635         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19636         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
19637         objects before returning.
19638         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
19639         returning.
19641 2017-05-20  Bruno Haible  <bruno@clisp.org>
19643         gnulib-tool: Don't create hard links between gnulib and its testdirs.
19644         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
19646 2017-05-20  Bruno Haible  <bruno@clisp.org>
19648         argp, tsearch tests: Fix file list.
19649         * modules/argp-tests (Files): Add tests/macros.h.
19650         * modules/tsearch-tests (Files): Likewise.
19652 2017-05-20  Bruno Haible  <bruno@clisp.org>
19654         getopt-posix tests: Remove redundant include.
19655         * tests/test-getopt.h: Don't include "macros.h". It's already included
19656         by tests/test-getopt-main.h.
19658 2017-05-19  Jim Meyering  <meyering@fb.com>
19660         dfa: two small simplifications
19661         * lib/dfa.c (build_state): Avoid repeating longer expressions.
19663 2017-05-18  Jim Meyering  <meyering@fb.com>
19665         fallthrough: update for GCC 7/8
19666         * lib/quotearg.c (FALLTHROUGH): New macro.
19667         Use it whenever one switch case falls through into the next,
19668         replacing "/* Fall through */" comments.  This exposed one
19669         instance of an unwarranted "fall through" comment: unwarranted
19670         because it preceded a "goto" label not a case statement.
19671         * lib/freopen-safer.c (freopen_safer): Likewise.
19672         * lib/fts.c (leaf_optimization_applies): Likewise.
19673         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19674         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19675         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19676         tests/macros.h for the definition.
19677         * tests/test-argp.c (group1_parser): Likewise.
19678         * tests/test-getopt.h (getopt_loop): Likewise.
19680 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19682         argp: fix shift bug
19683         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19684         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19686         argp: fix pointer-subtraction bug
19687         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19688         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19689         See the thread containing Bruno Haible’s report in:
19690         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19692 2017-05-19  Bruno Haible  <bruno@clisp.org>
19694         printf-posix tests: Avoid test failure with "gcc --coverage".
19695         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19696         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19697         than 5000000.
19698         * tests/test-fprintf-posix2.c (main): Likewise.
19700 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19702         closeout: don’t close stderr when sanitizing
19703         * NEWS: Document this.
19704         * lib/closeout.c (__has_feature): New macro, if not already defined.
19705         (SANITIZE_ADDRESS): New constant.
19706         (close_stdout): Don’t close stderr if sanitizing addresses.
19708 2017-05-19  Bruno Haible  <bruno@clisp.org>
19710         get-rusage-data tests: Avoid failure on Linux/glibc.
19711         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
19712         on glibc systems.
19714 2017-05-18  Bruno Haible  <bruno@clisp.org>
19716         localename: Include necessary header files on Cygwin.
19717         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
19718         where NL_LOCALE_NAME is defined.
19720 2017-05-18  Bruno Haible  <bruno@clisp.org>
19722         gettext: Update macros from gettext git.
19723         * m4/intldir.m4: Require Autoconf >= 2.60.
19724         * m4/progtest.m4: Fix typos in copyright notice.
19726 2017-05-18  Bruno Haible  <bruno@clisp.org>
19728         copy-file tests: Fix link error (regression from 2017-05-01).
19729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19730         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
19731         $(LIB_CLOCK_GETTIME).
19733 2017-05-18  Bruno Haible  <bruno@clisp.org>
19735         unicase/special-casing: Fix incompatibility with gperf-3.0.4
19736         (regression from 2017-02-13).
19737         * lib/unicase/special-casing.in.h: Renamed from
19738         lib/unicase/special-casing.h.
19739         * modules/unicase/special-casing (Files): Add
19740         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
19741         (Makefile.am): Add rule for generating unicase/special-casing.h.
19742         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
19743         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
19744         not "special-casing.h".
19745         * lib/unicase/u*.c: Likewise.
19747 2017-05-17  Bruno Haible  <bruno@clisp.org>
19749         README: Don't ask people to read a TeXinfo file.
19750         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19751         * README: Tell people how to read the HTML formatted manual.
19753 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19755         parse-datetime: Fix memleak
19756         * lib/parse-datetime.y (parse_datetime2): Cleanup on
19757         localtime_rz() failure.
19759 2017-05-16  Bruno Haible  <bruno@clisp.org>
19761         javacomp: Fix handle leak.
19762         Found by Coverity.
19763         * lib/javacomp.c (get_classfile_version): Close fd before returning.
19765 2017-05-16  Bruno Haible  <bruno@clisp.org>
19767         relocate: Make it easier to reclaim allocated memory.
19768         * lib/relocatable.h (relocate2): New declaration/macro.
19769         * lib/relocatable.c (relocate2): New function.
19770         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
19771         relocate2 function.
19772         * lib/localcharset.c (relocate2): Define fallback.
19773         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
19774         allocated memory.
19775         * lib/javaversion.c (relocate2): Define fallback.
19776         (javaexec_version): Invoke relocate2 instead of relocate. Free the
19777         allocated memory.
19779 2017-05-16  Bruno Haible  <bruno@clisp.org>
19781         relocate: Simplify EMX specific code.
19782         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
19783         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
19785 2017-05-16  Bruno Haible  <bruno@clisp.org>
19787         sigpipe tests: Fix file list.
19788         * modules/sigpipe-tests (Files): Add tests/macros.h.
19790 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19792         manywarnings: update for GCC 7
19793         * build-aux/gcc-warning.spec:
19794         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19795         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
19796         requires a non-comment fallthrough attribute.  This is a bit
19797         cleaner than the comment versions.
19798         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
19799         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
19800         Use it whenever one switch case falls through into the next.
19801         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
19802         Use FALLTHROUGH macro.
19804 2017-05-15  Bruno Haible  <bruno@clisp.org>
19806         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19807         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19808         @ALLOCA@, not @LTALLOCA@.
19810 2017-05-15  Bruno Haible  <bruno@clisp.org>
19812         sys_select: Avoid "was expanded before it was required" warning.
19813         * modules/sys_select (configure.ac): Require, not invoke,
19814         gl_HEADER_SYS_SELECT.
19816 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19818         gnulib-tool: improve GNU Make debugging
19819         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19820         Report autoconf diagnostics when it fails, in the output makefile.
19822 2017-05-14  Bruno Haible  <bruno@clisp.org>
19824         stat-time tests: Improve comment.
19825         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19827 2017-05-14  Bruno Haible  <bruno@clisp.org>
19829         same-inode: Adapt for windows-stat-inodes.
19830         * lib/same-inode.h: Include <sys/types.h>.
19831         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19832         * modules/same-inode (Depends-on): Add sys_types.
19834 2017-05-14  Bruno Haible  <bruno@clisp.org>
19836         windows-stat-inodes: New module.
19837         * m4/windows-stat-inodes.m4: New file.
19838         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19839         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19840         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19841         (_GL_WINDOWS_STAT_INODES): New macro.
19842         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19843         (GetFileInformationByHandleExFunc): New variable.
19844         (initialize): Initialize it.
19845         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19846         st_ino appropriately.
19847         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19848         a fallback, because it does not provide st_dev and st_ino values.
19849         * modules/fstat (Depends-on): Add 'verify'.
19850         * modules/windows-stat-inodes: New file.
19851         * doc/windows-stat-inodes.texi: New file.
19852         * doc/gnulib.texi: Include it.
19853         * doc/posix-headers/sys_stat.texi: Mention the new module.
19855 2017-05-14  Bruno Haible  <bruno@clisp.org>
19857         stat-time tests: Workaround for native Windows.
19858         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19859         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19860         New variables.
19861         (initialize_filenames): New function.
19862         (main): Invoke it.
19863         (cleanup, prepare_test): Update.
19865 2017-05-14  Bruno Haible  <bruno@clisp.org>
19867         stat-time: Adapt for windows-stat-timespec.
19868         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19869         entire st_ctim field.
19871 2017-05-13  Jim Meyering  <meyering@fb.com>
19873         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19874         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19875         file that uses the assume macro, claiming that verify.h is unused.
19877 2017-05-13  Bruno Haible  <bruno@clisp.org>
19879         Use symbolic values for _WIN32_WINNT.
19880         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19881         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19883 2017-05-13  Bruno Haible  <bruno@clisp.org>
19885         year2038: New module.
19886         * m4/year2038.m4: New file.
19887         * modules/year2038: New file.
19888         * doc/year2038.texi: New file.
19889         * doc/gnulib.texi: Include it.
19891 2017-05-13  Bruno Haible  <bruno@clisp.org>
19893         largefile: Simplify.
19894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19895         of _GL_WINDOWS_64_BIT_ST_SIZE.
19897 2017-05-13  Bruno Haible  <bruno@clisp.org>
19899         largefile: Improve and document.
19900         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19901         the mingw headers already define 'stat' appropriately.
19902         * modules/largefile (Description): Clarify.
19903         * doc/largefile.texi: New file.
19904         * doc/gnulib.texi: Include it.
19905         * doc/posix-headers/sys_types.texi: Update.
19907 2017-05-13  Bruno Haible  <bruno@clisp.org>
19909         truncate: New module.
19910         * lib/unistd.in.h (truncate): New declaration.
19911         * lib/truncate.c: New file.
19912         * m4/truncate.m4: New file.
19913         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19914         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19915         REPLACE_TRUNCATE.
19916         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19917         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19918         * modules/truncate: New file.
19919         * tests/test-unistd-c++.cc (truncate): Test signature.
19920         * doc/posix-functions/truncate.texi: Mention the new module.
19922         * tests/test-truncate.c: New file.
19923         * modules/truncate-tests: New file.
19925 2017-05-13  Bruno Haible  <bruno@clisp.org>
19927         windows-stat-timespec: New module.
19928         * modules/windows-stat-timespec: New file.
19929         * m4/windows-stat-timespec.m4: New file.
19930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19931         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19932         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19933         fields st_atim, st_mtim, st_ctim.
19934         (st_atime, st_mtime, st_ctime): Define as macros.
19935         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19936         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19937         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19938         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19939         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19940         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19941         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19942         FILETIME to 'struct timespec', not 'time_t'.
19943         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19944         FILETIME to 'struct timespec', not 'time_t'.
19945         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19946         _GL_WINDOWS_STAT_TIMESPEC.
19947         * doc/windows-stat-timespec.texi: New file.
19948         * doc/gnulib.texi: Include it.
19950 2017-05-13  Bruno Haible  <bruno@clisp.org>
19952         windows-stat-override: New module.
19953         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19954         definition. Define GNULIB_defined_struct_stat.
19955         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19956         link error if this symbol is used and the corresponding module is not
19957         in use.
19958         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19959         GNULIB_OVERRIDES_STRUCT_STAT.
19960         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19961         GNULIB_OVERRIDES_STRUCT_STAT.
19962         * modules/sys_stat (Makefile.am): Substitute
19963         GNULIB_OVERRIDES_STRUCT_STAT.
19964         * modules/windows-stat-override: New file.
19966 2017-05-13  Bruno Haible  <bruno@clisp.org>
19968         fstat: Fix module dependency conditions.
19969         * modules/fstat (Depends-on): Fix typo.
19971 2017-05-13  Bruno Haible  <bruno@clisp.org>
19973         stat, fstat: Complete removal of old native Windows code.
19974         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19975         * lib/fstat.c: Likewise.
19976         * lib/stat-w32.c: Likewise.
19978 2017-05-13  Bruno Haible  <bruno@clisp.org>
19980         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19981         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19983 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19985         getopt-posix: port to mingw
19986         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19987         Problem reported by Daniel P. Berrage in:
19988         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19990 2017-05-11  Bruno Haible  <bruno@clisp.org>
19992         gettimeofday: Increase precision on mingw.
19993         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19994         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19995         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19996         GetSystemTimePreciseAsFileTime based implementation always.
19997         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19998         mingw.
20000 2017-05-11  Bruno Haible  <bruno@clisp.org>
20002         poll: Fix confusion between SOCKETs and FDs on native Windows.
20003         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
20004         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
20006 2017-05-11  Bruno Haible  <bruno@clisp.org>
20008         doc: Clarify doc about socket functions on native Windows.
20009         This reworks doc that was added on 2008-09-29.
20010         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
20011         clearer wording.
20012         * doc/posix-functions/accept.texi: Use clearer wording.
20013         * doc/posix-functions/bind.texi: Likewise.
20014         * doc/posix-functions/connect.texi: Likewise.
20015         * doc/posix-functions/getpeername.texi: Likewise.
20016         * doc/posix-functions/getsockname.texi: Likewise.
20017         * doc/posix-functions/getsockopt.texi: Likewise.
20018         * doc/posix-functions/ioctl.texi: Likewise.
20019         * doc/posix-functions/listen.texi: Likewise.
20020         * doc/posix-functions/recv.texi: Likewise.
20021         * doc/posix-functions/recvfrom.texi: Likewise.
20022         * doc/posix-functions/send.texi: Likewise.
20023         * doc/posix-functions/sendto.texi: Likewise.
20024         * doc/posix-functions/setsockopt.texi: Likewise.
20025         * doc/posix-functions/shutdown.texi: Likewise.
20026         * doc/posix-functions/socket.texi: Likewise.
20028 2017-05-10  Bruno Haible  <bruno@clisp.org>
20030         poll: Fix link error on native Windows.
20031         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
20033 2017-05-10  Bruno Haible  <bruno@clisp.org>
20035         time: Fix missing initialization of HAVE_TIMEZONE_T.
20036         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
20037         here...
20038         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
20039         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
20040         gl_HEADER_SYS_TIME_H_DEFAULTS.
20041         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
20042         (configure.ac): Remove useless quoting.
20044 2017-05-10  Bruno Haible  <bruno@clisp.org>
20046         Implement a way to opt out from MSVC support, part 2.
20047         * modules/msvc-inval (Include): Document recommended idiom.
20048         * modules/msvc-nothrow (Include): Likewise.
20050         Implement a way to opt out from MSVC support.
20051         This is useful for Emacs.
20052         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
20053         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
20054         * lib/error.c: Likewise.
20055         * lib/fcntl.c: Likewise.
20056         * lib/flock.c: Likewise.
20057         * lib/fstat.c: Likewise.
20058         * lib/fsync.c: Likewise.
20059         * lib/ioctl.c: Likewise.
20060         * lib/isapipe.c: Likewise.
20061         * lib/lseek.c: Likewise.
20062         * lib/nonblocking.c: Likewise.
20063         * lib/poll.c: Likewise.
20064         * lib/select.c: Likewise.
20065         * lib/sockets.h: Likewise.
20066         * lib/sockets.c: Likewise.
20067         * lib/stdio-read.c: Likewise.
20068         * lib/stdio-write.c: Likewise.
20069         * lib/utimens.c: Likewise.
20070         * lib/w32sock.h: Likewise.
20071         * lib/w32spawn.h: Likewise.
20072         * tests/test-cloexec.c: Likewise.
20073         * tests/test-dup-safer.c: Likewise.
20074         * tests/test-dup2.c: Likewise.
20075         * tests/test-dup3.c: Likewise.
20076         * tests/test-fcntl.c: Likewise.
20077         * tests/test-pipe.c: Likewise.
20078         * tests/test-pipe2.c: Likewise.
20079         * lib/ftruncate.c: Likewise.
20080         (chsize_nothrow): Renamed from chsize.
20081         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
20082         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20083         * lib/close.c: Likewise.
20084         * lib/dup.c: Likewise.
20085         * lib/fclose.c: Likewise.
20086         * lib/raise.c: Likewise.
20087         * tests/test-fgetc.c: Likewise.
20088         * tests/test-fputc.c: Likewise.
20089         * tests/test-fread.c: Likewise.
20090         * tests/test-fwrite.c: Likewise.
20091         * lib/getdtablesize.c: Likewise.
20092         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
20093         * lib/isatty.c: Don't include msvc-inval.h if
20094         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20095         Include <io.h> as an alternative to msvc-nothrow.h.
20096         * lib/read.c: Likewise.
20097         * lib/write.c: Likewise.
20098         * lib/dup2.c: Likewise.
20099         (dup2_nothrow): New function.
20100         (ms_windows_dup2): Use it.
20101         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
20102         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
20103         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20104         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
20105         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
20106         * m4/read.m4 (gl_FUNC_READ): Likewise.
20107         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
20108         * doc/windows-without-msvc.texi: New file.
20109         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
20110         section.
20112 2017-05-10  Bruno Haible  <bruno@clisp.org>
20114         wait-process: Adjust native Windows support.
20115         * lib/wait-process.c: Use the usual condition for recognizing a native
20116         Windows platform.
20118 2017-05-10  Bruno Haible  <bruno@clisp.org>
20120         doc: New chapter "Native Windows Support".
20121         * doc/gnulib.texi (Native Windows Support): New chapter.
20122         * doc/windows-libtool.texi: Small wording changes.
20123         * doc/windows-sockets.texi: Small wording and formatting changes.
20125 2017-05-10  Bruno Haible  <bruno@clisp.org>
20127         doc: Move section "Library version handling".
20128         * doc/gnulib.texi: Move section "Library version handling"
20129         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
20131 2017-05-10  Bruno Haible  <bruno@clisp.org>
20133         doc: Move section "Running self-tests under valgrind".
20134         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
20135         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
20137 2017-05-10  Bruno Haible  <bruno@clisp.org>
20139         doc: New chapter "Build Infrastructure Modules".
20140         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
20142 2017-05-10  Bruno Haible  <bruno@clisp.org>
20144         Prepare for reordering sections in the manual.
20145         * doc/gnulib.texi: Move several sections to separate files. Include
20146         these files.
20147         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
20148         * doc/obsolete.texi: Likewise.
20149         * doc/extra-tests.texi: Likewise.
20150         * doc/transversal.texi: Likewise.
20151         * doc/namespace.texi: Likewise.
20152         * doc/check-version.texi: Likewise.
20153         * doc/windows-sockets.texi: Likewise.
20154         * doc/windows-libtool.texi: Likewise.
20155         * doc/licenses-texi.texi: Likewise.
20156         * doc/build-automation.texi: Likewise.
20157         * doc/c-locale.texi: Likewise.
20159 2017-05-10  Bruno Haible  <bruno@clisp.org>
20161         Fix instructions how to update manual on www.gnu.org.
20162         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
20164 2017-05-09  Bruno Haible  <bruno@clisp.org>
20166         tzset: Expand comment about TZ problem on native Windows.
20167         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
20168         Paul Eggert.
20169         * lib/ctime.c (rpl_ctime): Likewise.
20170         * lib/localtime.c (rpl_localtime): Likewise.
20171         * lib/mktime.c (mktime): Likewise.
20172         * lib/strftime-fixes.c (rpl_strftime): Likewise.
20173         * lib/wcsftime.c (rpl_wcsftime): Likewise.
20175 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20177         intprops: don’t depend on ‘verify’
20178         Problem reported by Ævar Arnfjörð Bjarmason in:
20179         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
20180         * lib/intprops.h: Do not include verify.h, and move compile-time
20181         checks from here ...
20182         * tests/test-intprops.c (main): ... to here, if they’re not here
20183         already.  Check widths of other standard integer types.
20184         * modules/intprops (Depends-on): Remove ‘verify’.
20186 2017-05-07  Bruno Haible  <bruno@clisp.org>
20188         utimens: On native Windows, support 100ns resolution also if fd < 0.
20189         * lib/utime.in.h: Include <time.h>.
20190         (_gl_utimens_windows): New declaration.
20191         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
20192         (utime): Invoke it.
20193         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
20194         instead of utime.
20195         * modules/utime (Depends-on): Add 'time'.
20197 2017-05-07  Bruno Haible  <bruno@clisp.org>
20199         utimens: Improve error code on native Windows.
20200         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
20201         error code EACCES, not EINVAL.
20203 2017-05-07  Bruno Haible  <bruno@clisp.org>
20205         utime: Handle more Windows error codes.
20206         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
20207         Based on explanations by Billy O'Neal.
20209 2017-05-05  Bruno Haible  <bruno@clisp.org>
20211         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
20212         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
20213         union.
20214         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
20215         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
20216         value of cipher->IV.
20218 2017-05-05  Bruno Haible  <bruno@clisp.org>
20220         wctype-h-c++-tests: Update.
20221         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
20223 2017-05-05  Bruno Haible  <bruno@clisp.org>
20225         wchar-c++-tests: Update.
20226         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
20228 2017-05-05  Bruno Haible  <bruno@clisp.org>
20230         utime-h-c++-tests: New module.
20231         * tests/test-utime-h-c++.cc: New file.
20232         (utime): Declare, missing since 2017-04-30.
20233         * modules/utime-h-c++-tests: New file.
20235 2017-05-05  Bruno Haible  <bruno@clisp.org>
20237         unistd-c++-tests: Update.
20238         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
20239         (read): Declare, missing since 2011-04-15.
20240         (sethostname): Declare, missing since 2011-12-03.
20242 2017-05-05  Bruno Haible  <bruno@clisp.org>
20244         time-c++-tests: Update.
20245         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
20246         (localtime, gmtime): Declare, missing since 2017-04-30.
20247         (ctime): Declare, missing since 2017-04-30.
20248         (strftime): Declare, missing since 2017-04-30.
20249         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
20250         2015-07-24.
20252 2017-05-05  Bruno Haible  <bruno@clisp.org>
20254         sys_resource-c++-tests: New module.
20255         * tests/test-sys_resource-c++.cc: New file.
20256         (getrusage): Declare, missing since 2012-04-13.
20257         * modules/sys_resource-c++-tests: New file.
20259 2017-05-05  Bruno Haible  <bruno@clisp.org>
20261         strings-c++-tests: New module.
20262         * tests/test-strings-c++.cc: New file.
20263         (ffs): Declare, missing since 2011-07-12.
20264         * modules/strings-c++-tests: New file.
20266 2017-05-05  Bruno Haible  <bruno@clisp.org>
20268         string-c++-tests: Update.
20269         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
20270         (ffsll): Declare, missing since 2011-07-15.
20272 2017-05-05  Bruno Haible  <bruno@clisp.org>
20274         stdlib-c++-tests: Update.
20275         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
20276         2011-10-18.
20277         (ptsname_r): Declare, missing since 2011-11-07.
20278         (qsort_r): Declare, missing since 2014-08-29.
20279         (random, srandom, initstate, setstate): Declare, missing since
20280         2012-01-14.
20281         (secure_getenv): Declare, missing since 2013-02-05.
20283 2017-05-05  Bruno Haible  <bruno@clisp.org>
20285         stdio-c++-tests: Update.
20286         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
20288 2017-05-05  Bruno Haible  <bruno@clisp.org>
20290         signal-h-c++-tests: Update.
20291         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
20293 2017-05-05  Bruno Haible  <bruno@clisp.org>
20295         math-c++-tests: Update.
20296         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
20297         (fma): Declare, missing since 2011-10-17.
20298         (fmal): Declare, missing since 2011-10-17.
20300 2017-05-05  Bruno Haible  <bruno@clisp.org>
20302         locale-c++-tests: Update.
20303         * tests/test-locale-c++.cc (localeconv): Declare, missing since
20304         2012-03-25.
20306 2017-05-05  Bruno Haible  <bruno@clisp.org>
20308         inttypes-c++-tests: New module.
20309         * tests/test-inttypes-c++.cc: New file.
20310         (strtoimax): Declare, missing since 2012-01-05.
20311         (strtoumax): Declare, missing since 2012-01-05.
20312         * modules/inttypes-c++-tests: New file.
20314 2017-05-05  Bruno Haible  <bruno@clisp.org>
20316         dirent-c++-tests: Update.
20317         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
20318         (rewinddir): Declare, missing since 2011-09-13.
20319         (dirfd): Declare, missing since 2010-03-08.
20321 2017-05-04  Bruno Haible  <bruno@clisp.org>
20323         argp: Fix mistake in 2017-04-23 commit.
20324         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
20325         assume that strerror_r returns 'int', not 'char *'.
20327 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
20329         argp: Fix typo.
20330         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
20332 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20334         utimens: port to Emacs + MS-Windows
20335         Skip the new MS-Windows-specific code if Emacs.
20336         * lib/utimens.c [EMACS_CONFIGUATION]:
20337         Avoid new MS-Windows-specific code.
20338         (USE_SETFILETIME): New macro.
20339         (fdutimens): Use it.
20341 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20343         tzset: update doc for TZ problems on MS-Windows
20344         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
20345         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
20346         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
20347         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
20348         * doc/posix-functions/wcsftime.texi:
20349         Mention some issues with TZ under MS-Windows.
20351 2017-05-01  Bruno Haible  <bruno@clisp.org>
20353         copy-file: Fix build error on mingw.
20354         * modules/copy-file (Depends-on): Add 'close'.
20356 2017-05-01  Bruno Haible  <bruno@clisp.org>
20358         tzset: Work around TZ problem on native Windows.
20359         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
20360         Windows, set REPLACE_TZSET to 1.
20361         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
20362         invoke '_tzset' instead of 'tzset'.
20363         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
20365         * modules/time_rz (Depends-on): Add tzset.
20366         * lib/time_rz.c (tzset): Remove fallback definition.
20367         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
20369 2017-05-01  Bruno Haible  <bruno@clisp.org>
20371         mktime: Fix dependencies.
20372         * modules/mktime (Depends-on): Add 'time'.
20374 2017-05-01  Bruno Haible  <bruno@clisp.org>
20376         New module 'localtime-buffer', split off from module 'gettimeofday'.
20377         * lib/localtime-buffer.h: New file.
20378         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
20379         * lib/time.in.h (tzset): New declaration.
20380         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
20381         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
20382         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
20383         moved to lib/localtime-buffer.c or lib/tzset.c.
20384         * m4/localtime-buffer.m4: New file.
20385         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
20386         HAVE_TZSET, REPLACE_TZSET.
20387         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
20388         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
20389         gl_LOCALTIME_BUFFER_NEEDED.
20390         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
20391         since 2007-01-18.
20392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
20393         tzset.
20394         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
20395         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
20396         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
20397         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
20398         * modules/localtime-buffer: New file.
20399         * modules/time (Depends-on): Remove 'gettimeofday'.
20400         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
20401         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
20402         * modules/tzset (Description): Enable hyperlink to POSIX spec.
20403         (Files): Add lib/tzset.c.
20404         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
20405         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
20406         gl_TIME_MODULE_INDICATOR.
20407         * modules/gettimeofday (Depends-on): Add localtime-buffer.
20409 2017-05-01  Bruno Haible  <bruno@clisp.org>
20411         copy-file: Preserve sub-second time stamps.
20412         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
20413         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
20414         transport the time stamps from the original file to the destination
20415         file.
20416         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
20417         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
20418         utime-h.
20420 2017-05-01  Bruno Haible  <bruno@clisp.org>
20422         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
20423         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
20424         also on MSVC.
20425         Reported by Eli Zaretskii <eliz@gnu.org>.
20427 2017-05-01  Bruno Haible  <bruno@clisp.org>
20429         wchar: Fix compilation error with the original mingw.org mingw.
20430         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20431         <stddef.h> instead.
20432         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
20433         gl_WCTYPE_H.
20434         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
20435         gl_TYPE_WINT_T_PREREQ instead.
20436         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
20437         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
20438         Reported by Eli Zaretskii <eliz@gnu.org>.
20440 2017-04-30  Bruno Haible  <bruno@clisp.org>
20442         utimecmp: Add support for native Windows.
20443         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
20445 2017-04-30  Bruno Haible  <bruno@clisp.org>
20447         utimens: Add support for native Windows.
20448         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
20449         (fdutimens): Provide a native Windows implementation, like utime.c with
20450         added tv_nsec support.
20451         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
20452         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
20454 2017-04-30  Bruno Haible  <bruno@clisp.org>
20456         wcsftime: New module.
20457         * lib/wchar.in.h (wcsftime): New declaration.
20458         * lib/wcsftime.c: New file.
20459         * m4/wcsftime.m4: New file.
20460         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
20461         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
20462         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
20464         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20465         * modules/wcsftime: New file.
20466         * doc/posix-functions/wcsftime.texi: Mention the new module.
20468 2017-04-30  Bruno Haible  <bruno@clisp.org>
20470         strftime-fixes: New module.
20471         * lib/time.in.h (strftime): New declaration.
20472         * lib/strftime-fixes.c: New file.
20473         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
20474         (gl_FUNC_STRFTIME): Remove macro.
20475         * m4/strftime-fixes.m4: New file.
20476         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
20477         REPLACE_STRFTIME.
20478         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
20479         REPLACE_STRFTIME.
20480         * modules/strftime-fixes: New file.
20481         * doc/posix-functions/strftime.texi: Mention the new module.
20483 2017-04-30  Bruno Haible  <bruno@clisp.org>
20485         mktime: Work around TZ problem on native Windows.
20486         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
20487         from the native Windows workaround.
20488         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
20489         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
20490         'guessing no'.
20491         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
20492         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
20493         NEED_MKTIME_WINDOWS.
20494         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
20495         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
20496         NEED_MKTIME_INTERNAL.
20497         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
20498         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
20499         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
20500         not REPLACE_MKTIME.
20501         * doc/posix-functions/mktime.texi: Mention the native Windows
20502         workaround.
20504 2017-04-30  Bruno Haible  <bruno@clisp.org>
20506         localtime: New module.
20507         * lib/time.in.h (localtime): Declare also if requested by module
20508         'localtime'.
20509         * lib/localtime.c: New file.
20510         * m4/localtime.m4: New file.
20511         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
20512         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
20513         * modules/localtime: New file.
20514         * doc/posix-functions/localtime.texi: Mention the new module.
20516 2017-04-30  Bruno Haible  <bruno@clisp.org>
20518         ctime: New module.
20519         * lib/time.in.h (ctime): New declaration.
20520         * lib/ctime.c: New file.
20521         * m4/ctime.m4: New file.
20522         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
20523         REPLACE_CTIME.
20524         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
20525         * modules/ctime: New file.
20526         * doc/posix-functions/ctime.texi: Mention the new module.
20528 2017-04-30  Bruno Haible  <bruno@clisp.org>
20530         gettimeofday: Provide higher resolution on native Windows.
20531         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
20532         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
20533         (initialize): Initialize it.
20534         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
20535         'struct timeval'. Don't use _ftime().
20536         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
20537         <sys/timeb.h> and _ftime.
20539 2017-04-30  Bruno Haible  <bruno@clisp.org>
20541         Document the problem with the Cygwin environment variable TZ.
20542         * doc/posix-functions/tzset.texi: Add note about TZ.
20543         * doc/posix-functions/ctime.texi: Likewise.
20544         * doc/posix-functions/localtime.texi: Likewise.
20545         * doc/posix-functions/mktime.texi: Likewise.
20546         * doc/posix-functions/strftime.texi: Likewise.
20547         * doc/posix-functions/wcsftime.texi: Likewise.
20548         * doc/pastposix-functions/ftime.texi: Likewise.
20550 2017-04-30  Bruno Haible  <bruno@clisp.org>
20552         utime-tests: New module.
20553         * tests/test-utime.c: New file, based on tests/test-utimens.h.
20554         * tests/test-utimens-common.h: Include <sys/stat.h>.
20555         * modules/utime-tests: New file.
20557 2017-04-29  Bruno Haible  <bruno@clisp.org>
20559         utime: New module.
20560         * lib/utime.in.h: Add comment for snippets.
20561         (utime): New declaration.
20562         * lib/utime.c: New file.
20563         * m4/utime.m4: New file.
20564         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
20565         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
20566         REPLACE_UTIME.
20567         * modules/utime-h (Depends-on): Add snippets.
20568         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
20569         Insert snippets.
20570         * modules/utime: New file.
20571         * doc/posix-functions/utime.texi: Mention the new module.
20573 2017-04-29  Bruno Haible  <bruno@clisp.org>
20575         utime-h: Modernize handling of 'struct utimbuf'.
20576         * lib/utime.in.h: Include next <utime.h> if it exists.
20577         (utimbuf): Define to _utimbuf on native Windows.
20578         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
20579         Set UTIME_H on native Windows.
20580         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
20581         * modules/utime-h (Depends-on): Add include_next.
20582         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
20583         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
20585         * lib/utimens.c (utimbuf): Remove fallback definition.
20586         * m4/utimens.m4 (gl_UTIMENS): Don't require
20587         gl_CHECK_TYPE_STRUCT_UTIMBUF.
20588         * m4/utimbuf.m4: Remove file.
20589         * modules/utimens (Files): Remove m4/utimbuf.m4.
20591 2017-04-29  Bruno Haible  <bruno@clisp.org>
20593         Make use of module 'utime-h'.
20594         * modules/copy-file (Depends-on): Add utime-h.
20595         * lib/copy-file.c: Assume that <utime.h> exists.
20596         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
20598         * modules/utimens (Depends-on): Add utime-h.
20599         * lib/utimens.c: Assume that <utime.h> exists.
20601 2017-04-29  Bruno Haible  <bruno@clisp.org>
20603         utime-h: New module.
20604         * m4/utime_h.m4: New file.
20605         * lib/utime.in.h: New file.
20606         * modules/utime-h: New file.
20607         * doc/posix-headers/utime.texi: Mention the new module.
20609         * tests/test-utime-h.c: New file.
20610         * modules/utime-h-tests: New file.
20612 2017-04-30  Bruno Haible  <bruno@clisp.org>
20614         Fix a few typos.
20615         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
20616         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
20617         * doc/posix-functions/fstat.texi: Fix a plural typo.
20618         * doc/posix-functions/stat.texi: Likewise.
20619         * m4/include_next.m4: Update comments.
20621 2017-04-29  Bruno Haible  <bruno@clisp.org>
20623         error: Fix mistake in 2017-04-23 commit.
20624         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
20625         assume that strerror_r returns 'int', not 'char *'.
20627 2017-04-29  Bruno Haible  <bruno@clisp.org>
20629         stat: Fix time_t values and other problems on native Windows platforms.
20630         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
20631         implementations of stat().
20632         * lib/stat.c: Include filename.h instead of dosname.h. Include
20633         malloca.h, stat-w32.h.
20634         (is_unc_root): New function.
20635         (rpl_stat): New implementation for native Windows. Remove
20636         REPLACE_FUNC_STAT_DIR code.
20637         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
20638         Don't define REPLACE_FUNC_STAT_DIR.
20639         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
20640         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20641         (Depends-on): Remove dosname. Add filename, malloca.
20642         (configure.ac): Also compile lib/stat-w32.c.
20644 2017-04-29  Bruno Haible  <bruno@clisp.org>
20646         fstat: Fix time_t values on native Windows platforms.
20647         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
20648         * lib/stat-w32.h: New file.
20649         * lib/stat-w32.c: New file.
20650         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
20651         stat-w32.h instead.
20652         (fstat_nothrow): Remove function.
20653         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
20654         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
20655         always.
20656         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
20657         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20658         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
20659         (configure.ac): Also compile lib/stat-w32.c.
20661 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20663         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
20664         Problem reported by Assaf Gordon and Gavin Smith in:
20665         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
20666         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20667         #define this, too.
20669 2017-04-29  Bruno Haible  <bruno@clisp.org>
20671         strerror_r-posix: Fixes for MSVC 14.
20672         * lib/strerror_r.c: Include <stdarg.h>.
20673         (strerror_r): Provide error messages for errno values 100...140.
20674         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20676 2017-04-28  Bruno Haible  <bruno@clisp.org>
20678         noreturn: New module.
20679         * lib/noreturn.h: New file.
20680         * modules/noreturn: New file.
20681         * tests/test-noreturn.c: New file.
20682         * modules/noreturn-tests: New file.
20683         * tests/test-noreturn-c++.cc: New file.
20684         * modules/noreturn-c++-tests: New file.
20686 2017-04-27  Bruno Haible  <bruno@clisp.org>
20688         wctype-h: Fix compilation error with the original mingw.org mingw.
20689         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20690         HAVE_CRTDEFS_H.
20691         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20692         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20693         <stddef.h> instead.
20694         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20696 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20698         nap.h: Fix compilation on non windows platforms
20699         * tests/nap.h: Move misplaced endif.
20701 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20702         and Paul Eggert  <eggert@cs.ucla.edu>
20704         time_rz: fix heap buffer overflow vulnerability
20705         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20706         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20707         whether there is enough buffer space available, thus avoiding
20708         the problematic promotion of signed to unsigned causing an invalid
20709         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
20710         the start of the buffer.
20711         * tests/test-parse-datetime.c (main): Add a test case written by
20712         Paul Eggert, which overwrites enough of the heap so that
20713         standard glibc will fail with "free(): invalid pointer"
20714         without the patch applied.
20716 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20718         xalloc: add missing integer overflow check
20719         * lib/xalloc.h (x2nrealloc): Also check for multiplication
20720         overflow when P is null.
20722 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20724         parse-datetime: make it standalone
20725         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
20726         (_GL_ATTRIBUTE_FORMAT): New macro.
20727         These are needed to get './gnulib-tool --test parse-datetime' to work.
20729 2017-04-23  Bruno Haible  <bruno@clisp.org>
20731         nap.h: Port to native Windows.
20732         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
20733         use nap_fd instead. On native Windows, close and reopen nap_fd.
20734         (nap_works): Don't compare the ctimes, because on native Windows, these
20735         are the creation times.
20736         (nap): Update.
20738 2017-04-23  Bruno Haible  <bruno@clisp.org>
20740         nap.h: Fix logic.
20741         * tests/nap.h (nap): Avoid signed integer overflow in loop.
20743 2017-04-23  Bruno Haible  <bruno@clisp.org>
20745         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20746         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
20747         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
20748         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
20749         * lib/argp-help.c (__argp_failure): Likewise.
20751 2017-04-23  Bruno Haible  <bruno@clisp.org>
20753         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
20754         * m4/strerror_r.m4: Revert changes since 2016-10-16.
20755         * lib/strerror_r.c: Likewise.
20757 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20759         Target a C99 subset, not a C89 subset
20760         For many years Gnulib has targeted C89 and has resisted using C99
20761         features, as some Gnulib-using programs still wanted to target
20762         C89.  As this no longer seems to be the case, relax the porting
20763         requirements to allow some C99 features.  This is merely a change
20764         to the documentation, to give other Gnulib developers a chance to
20765         weigh in on the topic.
20766         * doc/extern-inline.texi (extern inline):
20767         * doc/gnulib-readme.texi (Portability guidelines):
20768         * doc/gnulib-tool.texi (Initial import):
20769         * doc/gnulib.texi (Header files):
20770         Modernize to talk about C99 and C11 instead of C89 and C99.
20771         * doc/gnulib-readme.texi (Portability guidelines):
20772         Now a section, not merely a subsection, so that it
20773         can be split up.  Modernize a bit.
20774         (C language versions, C99 features assumed)
20775         (C99 features avoided):
20776         New sections.
20778 2017-04-23  Bruno Haible  <bruno@clisp.org>
20780         doc: New section "Modules that modify the way other modules work".
20781         * doc/gnulib.texi (Modules that modify the way other modules work): New
20782         section.
20784 2017-04-23  Bruno Haible  <bruno@clisp.org>
20786         stat-time: Update comments.
20787         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
20788         * tests/test-utimens-common.h: Add reference regarding st_ctime on
20789         Windows.
20791 2017-04-01  Bruno Haible  <bruno@clisp.org>
20793         glob: Fix more memory leaks.
20794         * lib/glob.c (glob): Free allocated memory before returning.
20795         Reported by Coverity via Tim Rühsen.
20797 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20799         poll: improve fast check for out-of-range NFD
20800         * lib/poll.c: Do not include intprops.h.
20801         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
20802         * modules/poll (Depends-on): Remove intprops.
20804         ftoastr: cite a newer paper
20805         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20806         instead of Loitsch 2010.
20808 2017-04-22  Bruno Haible  <bruno@clisp.org>
20810         poll: Enable argument check also in the Windows implementation.
20811         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20812         Reported by Paul Eggert.
20814 2017-04-22  Bruno Haible  <bruno@clisp.org>
20816         getlogin_r: Work around bug in Mac OS X 10.12.
20817         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20818         bug.
20819         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20820         given size minus 1, call getlogin_r a second time, on a larger buffer.
20821         * modules/getlogin_r (Depends-on): Add malloca.
20822         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20824 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20826         parse-datetime: fix %z and prefer signed int
20827         %z problem reported by Pádraig Brady in:
20828         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20829         While fixing it, I decided to prefer signed ints to size_t, as
20830         they are less error-prone (e.g., ubsan catches overflow).
20831         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20832         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20833         counts, since signed integers make for better debugging.
20834         (date): Don’t assume %z works in printf formats.
20835         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20836         sizes of buffers known to be small, e.g., because we’re using snprintf.
20837         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20839 2017-04-22  Bruno Haible  <bruno@clisp.org>
20841         *printf: Work around rounding bug on Mac OS X.
20842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20843         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20844         Mac OS X and FreeBSD.
20845         * doc/glibc-functions/*printf.texi: Likewise.
20847 2017-04-22  Bruno Haible  <bruno@clisp.org>
20849         vasnprintf tests: Avoid warnings.
20850         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20851         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20852         test.
20854 2017-04-22  Bruno Haible  <bruno@clisp.org>
20856         sys_file tests: Avoid warning.
20857         * tests/test-sys_file.c (main): Add a default clause to the switch
20858         statement.
20860 2017-04-22  Bruno Haible  <bruno@clisp.org>
20862         sethostname: Update doc.
20863         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20864         Mac OS X.
20866 2017-04-22  Bruno Haible  <bruno@clisp.org>
20868         quotearg tests: Avoid warnings.
20869         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20870         false.
20872 2017-04-22  Bruno Haible  <bruno@clisp.org>
20874         poll: Enable argument check.
20875         * lib/poll.c: Include intprops.h.
20876         (poll): Check value of nfd correctly.
20877         * modules/poll (Depends-on): Add intprops.
20879 2017-04-22  Bruno Haible  <bruno@clisp.org>
20881         get-rusage-data: Avoid warnings on Mac OS X.
20882         * lib/get-rusage-data.c: On Mac OS X, don't define
20883         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20884         (get_rusage_data) [Mac OS X]: Just return 0.
20886 2017-04-22  Bruno Haible  <bruno@clisp.org>
20888         xbinary-io: Fix build error.
20889         * modules/xbinary-io (Depends-on): Add gettext-h.
20890         * lib/xbinary-io.c: Include gettext.h and define _().
20891         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20892         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20894 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20896         parse-datetime: overflow and debug cleanups
20897         This long patch was triggered by this bug report from Ruediger Meier:
20898         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20899         I fixed the bug he noted, then found some others nearby, and then
20900         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20901         up some of the code to follow GNU standards while I was at it.
20902         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20903         use c_isdigit.
20904         (EPOCH_YEAR): Remove; unused.
20905         (TM_YEAR_BASE): Now an enum rather than a macro.
20906         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20907         time zone offset, since timezones now are in terms of seconds and
20908         not minutes.
20909         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20910         appropriate.  Verify that intmax_t is wide enough.
20911         (time_overflow, time_zone_str): New functions, used to deal
20912         more reliably with overflow.
20913         (dbg_printf): Add printf attribute, to help catch integer width errors.
20914         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20915         (%union, to_hour, yylex, parse_datetime2):
20916         Use intmax_t instead of long int and/or long_time_t.
20917         All uses changed.
20918         (DBGBUFSIZE): Move earlier.
20919         (relative_time, set_hhmmss, parser_control):
20920         Just use int for nanoseconds and for time zones; that’s wide enough.
20921         (parser_control): Use bool for members like year_seen that can
20922         be booleans instead of counters.  All uses changed.
20923         Remove debug_default_input_timezone; no longer needed.
20924         All uses removed.
20925         (apply_relative_time): Return a bool overflow flag.
20926         All uses changed to check for overflow.
20927         (apply_relative_time, zone, date, relunit, relunit_snumber)
20928         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20929         Check for integer overflow portably.
20930         (str_days): Use just int for N, as it’s wide enough.
20931         Prefer 2D char arrays to arrays of char * when it looks like
20932         2D is a win on typical platforms.
20933         Prefer snprintf to strncpy/strncat, for simplicity;
20934         all buffers are smaller than INT_MAX so this is safe.
20935         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20936         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20937         as this is not true on x32.  Output "." before any nanoseconds.
20938         (debug_print_current_time, parse_datetime2):
20939         Output local zones using a more-consistent format.
20940         (debug_print_current_time, date, parse_datetime2):
20941         (main) [TEST]:
20942         Don’t assume time_t is the same width as long.
20943         (print_rel_part): New function, replacing ...
20944         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20945         (debug_print_relative_time): Use bool for boolean.
20946         (local_zone): dsts_seen now counts only tDST instances.
20947         (date): Fix printf of size_t to use %z.  Do not assume numeric
20948         tokens have negative values merely because the context suggests
20949         a syntax with "-" separating tokens.
20950         (time_zone_hhmm): Return bool success indicator, which checks for
20951         overflow.  Store result into PC->time_zone instead.  All callers
20952         changed.
20953         (tm_year_str): New function.  Return a bool success indicator and
20954         store the result into a buffer.  All callers changed.  Output the
20955         numerically correct string even if adding 1900 to the year would
20956         overflow.
20957         (to_tm_year): New function, replacing the old to_year.  All
20958         callers changed.
20959         (tm_diff): Sync with glibc.
20960         (lookup_word): Use to_uchar instead of doing it by hand.
20961         (TZBUFSIZE): Now local to the only function that needs it.
20962         (debug_strfdatetime): Simplify now that time zones are int seconds.
20963         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20964         (get_effective_timezone): Remove.  All uses removed.
20965         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20966         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20967         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20968         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20969         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20970         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20971         * modules/parse-datetime (Depends-on): Add inttypes.
20973 2017-04-21  Bruno Haible  <bruno@clisp.org>
20975         gettext-h: Avoid -Wundef warning.
20976         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20977         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20978         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20980 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20982         error: Avoid "function declaration isn't a prototype" warning.
20983         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20985 2017-04-21  Bruno Haible  <bruno@clisp.org>
20987         vasnprintf: Fix for MSVC 14.
20988         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20989         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20990         of !HAVE_SNPRINTF_RETVAL_C99.
20992 2017-04-21  Bruno Haible  <bruno@clisp.org>
20994         mbrtowc tests: Fix test failures on MSVC 14.
20995         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20996         behaviour for invalid input.
20998 2017-04-21  Bruno Haible  <bruno@clisp.org>
21000         mbsinit: Fix for MSVC 14.
21001         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
21002         implementation that is in sync with mbrtowc.c. On other platforms, use
21003         an adequate ad-hoc implementation.
21005 2017-04-21  Bruno Haible  <bruno@clisp.org>
21007         Fix test-mbrtowc5.sh failure on native Windows.
21008         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
21009         "C".
21011 2017-04-21  Bruno Haible  <bruno@clisp.org>
21013         Avoid accidental use of native Windows APIs on Cygwin.
21014         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
21015         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
21016         * lib/localename.c (WINDOWS_NATIVE): Likewise.
21018 2017-04-20  Bruno Haible  <bruno@clisp.org>
21020         Remove red warnings from the generated MODULES.html.
21021         * modules/fcntl (Description): Disambiguate function references.
21022         * modules/getcwd-lgpl (Description): Likewise.
21023         * modules/hostent (Description): Likewise.
21024         * modules/servent (Description): Likewise.
21025         * modules/tempname (Description): Likewise.
21027 2017-04-20  Bruno Haible  <bruno@clisp.org>
21029         verify tests: Fix spurious failure with parallel make.
21030         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
21031         EXTRA_PROGRAMS.
21032         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
21033         * tests/test-verify-try.c: New file.
21034         * modules/verify-tests (Files): Add it.
21035         (EXTRA_PROGRAMS): Add test-verify-try.
21036         (MOSTLYCLEANFILES): Update accordingly.
21037         Reported by Adam James Stewart <ajstewart@anl.gov>.
21039 2017-04-18  Bruno Haible  <bruno@clisp.org>
21041         vma-iter: Fix compilation error on Solaris 7.
21042         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
21043         like on IRIX, OSF/1.
21044         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21046 2017-04-18  Bruno Haible  <bruno@clisp.org>
21048         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
21049         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
21050         included.
21051         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
21052         <sys/procfs.h>.
21053         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
21054         <sys/procfs.h> cannot be included.
21055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21057 2017-04-18  Bruno Haible  <bruno@clisp.org>
21059         getopt-gnu: Add comments.
21060         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
21061         * modules/getopt-gnu (configure.ac): Likewise.
21063 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
21065         regex: port better to Solaris 10
21066         Solaris 10 <locale.h> includes <libintl.h>, which #defines
21067         gettext, and this causes a double #define.
21068         Problem reported by Gavin Smith in:
21069         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
21070         * lib/regex_internal.h (gettext): #undef before #defining.
21072 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21074         intprops: improve comments
21075         * lib/intprops.h: Improve and shorten commentary.
21076         For the record, if we ever run into a pedantic compiler that
21077         behaves differently from GCC when converting an out-of-range value
21078         to a signed integer, we can work around the problem with something
21079         like the following code, where UCT is the signed counterpart of T
21080         (UCT is sometimes narrower than UT) and all callers are changed
21081         accordingly:
21082         #if __SUNPRO_C <= 0x5120
21083         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21084            ((t) ((ut) (a) op (ut) (b)))
21085         #else
21086         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21087            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
21088             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
21089                + TYPE_MINIMUM (t)) \
21090             : (t) (uct) ((ut) (a) op (ut) (b)))
21091         #endif
21093 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21095         intprops: try to avoid tickling similar bugs
21096         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
21097         needs to be the same width as T; it can be wider.
21098         Change callers so that UT is at least as wide as unsigned int,
21099         as I suspect that this is less likely to run into compiler bugs.
21101         intprops: port to Oracle Studio 12.3 x86
21102         Problem reported by Gavin Smith in:
21103         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
21104         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21105         Convert unsigned to signed via the usual rather than the standard way,
21106         to avoid a compiler bug in Oracle Studio 12.3 x86.
21108 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21110         getopt: prefer - to _ in new file names
21111         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
21112         * lib/getopt-core.h: Rename from lib/getopt_core.h.
21113         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
21114         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
21115         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
21116         All uses changed.
21118         getopt: port recent getopt changes to macOS
21119         Problem reported by Harald Maier (Bug#26398).
21120         The macOS C compiler uses __nonnull for its own purposes and that
21121         clashes with glibc's __nonnull.
21122         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
21123         * lib/getopt_cdefs.in.h (__nonnull): Remove.
21124         * lib/getopt_core.h (getopt):
21125         * lib/getopt_ext.h (getopt_long, getopt_long_only):
21126         Use _GL_ARG_NONNULL, not __nonnull.
21127         * lib/unistd.in.h: Move snippet hooks to before where the getopt
21128         .h files are included, so that _GL_ARG_NONNULL is defined in time.
21129         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
21130         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
21132 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21134         getopt-gnu: omit some duplicate code
21135         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
21136         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
21137         gnulib-tool already does this.
21138         * modules/getopt-gnu (configure.ac): Omit code duplicated from
21139         getopt-posix, which we depend on.
21141         getopt-posix: use angle-bracket include
21142         * lib/getopt1.c: Include <config.h>, not "config.h".
21144 2017-04-06  Zack Weinberg  <zackw@panix.com>
21146         getopt: annotate files with relationship to glibc
21148         As the final act in this patchset, adjust the message at the top of
21149         each file to indicate which files are synced with glibc.  (This has
21150         already been done for most of the headers.)
21152         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
21153         Mention in top-of-file boilerplate that these files are shared
21154         between glibc and gnulib.
21157         getopt: split up getopt.in.h and eliminate __need_getopt
21159         Over in glibc, all of the __need macros are being phased out in favor
21160         of small headers that declare only the necessary components, as this
21161         is much simpler and less prone to bugs.  As getopt is shared with
21162         glibc, gnulib needs to do the same for __need_getopt.
21164         __need_getopt is misnamed; what it really means is "we want only the
21165         getopt features specified in POSIX, not the GNU extensions".  glibc
21166         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
21167         these files can be shared verbatim with gnulib.  The portability
21168         wrapper, on the other hand, they have renounced altogether; glibc's
21169         getopt.h will no longer be shared with gnulib at all.  In exchange,
21170         certain glibc-specific quirks (having to do with __posix_getopt) no
21171         longer need appear in gnulib's headers at all.
21173         This patch merges getopt_core.h and getopt_ext.h from glibc, and
21174         splits up the current gnulib-side portability wrapper into three
21175         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
21176         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
21177         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
21178         unistd.in.h just use them.  All new files are clearly marked with
21179         whether they are shared with glibc.
21181         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
21182         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
21183         with glibc, and ...
21184         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
21185         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
21186         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
21187         instead of defining __need_getopt and including the full getopt.h.
21189         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
21190         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
21191         * modules/getopt-posix (Files): Add new headers and sort list.
21192         (Depends-on): No longer need snippet/arg-nonnull.
21193         (Makefile.am): Generate getopt_cdefs.h.
21196         getopt: better handling of ambiguous options
21198         glibc's getopt uses alloca to construct a linked list of possibilities
21199         for an "ambiguous" long option.  In gnulib, malloc should be used
21200         instead.  Providing for both cases complicates things a fair bit.
21202         This patch rewrites ambiguous-option handling to use a boolean vector
21203         instead of a linked list.  There is then only one allocation that
21204         might need freeing; in glibc it can honor __libc_use_alloca as usual,
21205         and in gnulib we define __libc_use_alloca to always be false, so we
21206         don't need ifdefs in the middle of the function.  This should also be
21207         slightly more efficient in the normal case of long options being fully
21208         spelled out -- I think most people aren't even aware they _can_
21209         sometimes abbreviate long options.
21211         One interesting consequence is that the list of possibilities is now
21212         printed in exactly the order they appear in the list of long options,
21213         instead of the first possibility being shuffled to the end.
21215         (The patch looks bigger than it really is because there's a fair bit
21216         of reindentation and code rearrangement.)
21218         * lib/getopt.c: When used standalone, define __libc_use_alloca
21219         as always false and alloca to abort if called.
21220         (process_long_option): Rewrite handling of ambiguous long options
21221         to use a single boolean vector, not a linked list; use
21222         __libc_use_alloca to decide whether to allocate this using alloca.
21225         getopt: refactor long-option handling
21227         There were two copies of the bulk of the code to handle long options.
21228         Now there is only one.
21230         This change temporarily removes the logic to avoid using alloca when
21231         standalone; the next patch in the series will restore it.
21233         * lib/getopt.c (process_long_option): New function split out
21234         from _getopt_internal_r.
21235         (_getopt_internal_r): Replace both copies of the long-option
21236         processing code with calls to process_long_option.
21239         getopt: tidy up _getopt_initialize a bit
21241         _getopt_data.__posixly_correct is completely redundant to
21242         _getopt_data.__ordering, and some work that logically belongs in
21243         _getopt_initialize was being done by _getopt_internal_r, making the
21244         code harder to understand.
21246         As a side effect, getenv will no longer be called if the first
21247         character of the options string is '+' or '-', which is probably a
21248         Good Thing.  (Perhaps we should have a flag character that
21249         specifically asks for the permutation behavior?)
21251         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
21252         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
21253         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
21256         getopt: merge from glibc: repetition reduction
21258         The definitions of the entry point functions 'getopt' and
21259         '__posix_getopt' can be made substantially less repetitive with a
21260         helper macro.
21262         While I was merging the const-correctness changes from gnulib into
21263         glibc I noticed there are still some unnecessary casts in
21264         _getopt_internal_r.
21266         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
21267         a macro.  Consistently cast 'argv' to 'char **' when calling
21268         _getopt_internal.
21269         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
21272         getopt: clean up error reporting
21274         getopt can print a whole bunch of error messages, and when used
21275         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
21276         cancellation point and getopt isn't, and also applying fprintf to a
21277         stream in wide-character mode is not allowed.  So every single error
21278         reporting case has an #ifdef _LIBC block in which it calls internal
21279         libc functions instead.  The counterpart patch series in glibc makes
21280         it possible to simplify all of that down to a set of #defines at the
21281         top of the file; core code is written as if it is safe to just call
21282         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
21283         call any *other* stdio functions.)
21285         * lib/getopt.c: When _LIBC is defined, define fprintf to
21286         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
21287         to _IO_funlockfile.  When neither _LIBC nor
21288         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
21289         funlockfile as no-ops.
21290         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
21291         standalone error-printing code can now be used for libc as well.
21292         Add an flockfile/funlockfile pair around one case where the error
21293         message is printed in several chunks.  Don't use fputc.
21296         getopt: fix fencepost error in ambiguous-W-option handling
21298         getopt_long contains an undocumented (AFAICT) feature in which, if you
21299         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
21300         treated as equivalent to '--foo'.  This is implemented with a partial
21301         second copy of the code for handling long options, and that code
21302         increments optind one too many times when recovering from an ambiguous
21303         abbreviated option, which can cause the main loop to walk past the end
21304         of argv and crash.
21306         I discovered this while writing a test case that tries to exercise all
21307         of getopt's error reporting paths; I wouldn't be surprised to learn
21308         that this feature is never used by real applications.
21310         * lib/getopt.c (_getopt_internal_r): Don't increment
21311         d->optind a second time when reporting ambiguous -W options.
21314         getopt: clean up getopt.c and getopt1.c file headers
21316         In getopt.c, there is no need to include wchar.h at all, and it is
21317         safe nowadays to assume that stdlib.h does declare getenv (several
21318         other gnulib modules make this assumption).
21320         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
21321         by using "" inclusions consistently, and there is no actual need to
21322         include stdlib.h (except in the #ifdef TEST block, where it should be
21323         unconditional), nor to provide a backup definition of NULL at all.
21325         * lib/getopt1.c: Simplify #ifdeffage at top of file.
21326         Move inclusion of stdlib.h to #ifdef TEST block and make
21327         unconditional.  Do not define NULL.
21328         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
21329         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
21330         * modules/getopt-gnu, modules/getopt-posix: Don't call
21331         gl_PREREQ_GETENV.
21334         getopt: harmonize comments with glibc
21336         The comments explaining how the behavior of 'getopt' varies depending
21337         on whether it's the standalone version and whether there are special
21338         characters at the beginning of the options string were inconsistent
21339         between gnulib and glibc, and also out of sync with the code.
21341         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
21344         getopt: remove USE_NONOPTION_FLAGS
21346         getopt includes code to parse an environment variable named
21347         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
21348         in decimal); but all of it has been #ifdefed out since 2001, with no
21349         official way to turn it back on.
21351         According to commentary in glibc's config.h.in, bash version 2.0
21352         set this environment variable to indicate argv elements that were
21353         the result of glob expansion and therefore should not be treated
21354         as options, but the feature was "disabled later" because "it
21355         caused problems".  According to bash's CHANGES file, "later" was
21356         release 2.01; it gives no more detail about what the problems
21357         were.
21359         Version 2.0 of bash was released on the last day of 1996, and version
21360         2.01 in June of 1997.  Twenty years later, I think it is safe to
21361         assume that this environment variable isn't coming back.
21363         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
21364         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
21365         __libc_argc and __libc_argv externs, which were only used by
21366         #ifdef USE_NONOPTION_FLAGS blocks.
21369         getopt: tabify, in preparation for merge with glibc
21371         glibc sticks to the GNU default of indenting with a mix of
21372         8-column tabs and spaces; make the gnulib copy match.
21374         getopt.h is not included because it is *not* going to be merged in its
21375         present form.
21377         * getopt.c, getopt1.c, getopt_int.h: Tabify.
21379 2017-04-02  Bruno Haible  <bruno@clisp.org>
21381         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
21382         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
21383         like it was done in modules/relocatable-lib on 2011-05-21 and in
21384         modules/relocatable-prog on 2011-08-15.
21385         Reported by Reuben Thomas <rrt@sc3d.org>.
21387 2017-03-31  Bruno Haible  <bruno@clisp.org>
21389         glob: Fix invalid free() call.
21390         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
21391         static storage to home_dir.
21392         Reported by Coverity via Tim Rühsen.
21394 2017-03-31  Bruno Haible  <bruno@clisp.org>
21396         glob: Fix memory leaks.
21397         * lib/glob.c (glob): Free allocated memory before returning.
21398         Reported by Coverity via Tim Rühsen.
21400 2017-03-31  Bruno Haible  <bruno@clisp.org>
21402         md5, sha1, sha256, sha512: Add comments regarding correctness.
21403         * lib/md5.h (buflen): Add comments regarding range.
21404         * lib/sha1.h (buflen): Likewise.
21405         * lib/sha256.h (buflen): Likewise.
21406         * lib/sha512.h (buflen): Likewise.
21407         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
21408         * lib/sha1.c (sha1_process_bytes): Likewise.
21409         * lib/sha256.c (sha256_process_bytes): Likewise.
21410         * lib/sha512.c (sha512_process_bytes): Likewise.
21411         Reported by Coverity via Tim Rühsen.
21413 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
21415         getopt: merge from glibc
21416         This does not change anything substantial; it merely simplifies
21417         hypothetical merges back to glibc.
21418         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
21419         Change copyright notice to match what is in glibc.
21420         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
21421         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
21422         __open_memstream rather than open_memstream and __glibc_likely
21423         instead of __builtin_expect.
21424         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
21426 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21428         dfa: make [0-9] faster in non-C locales
21429         Problem reported by John P. Linderman (Bug#26193).
21430         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
21431         If both ends of the range are ASCII digits, do not worry about
21432         multi-character collating sequences and the like.  Be consistent
21433         about using isalpha as a precondition for setbit_case_fold_c.
21435 2017-03-19  Bruno Haible  <bruno@clisp.org>
21437         lock: Fix compilation error with HP-UX IA64 cc.
21438         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
21439         weak on non-glibc platforms.
21441 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21443         stdalign: tweak version# and test for HP-UX IA64
21444         Problems reported by Bruno Haible in:
21445         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
21446         * lib/stdalign.in.h (_Alignas):
21447         * m4/stdalign.m4 (gl_STDALIGN_H):
21448         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
21449         used octal (as that is how they document it), but it is decimal in
21450         practice now and the ancient implementations no longer matter.
21451         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
21453 2017-03-19  Bruno Haible  <bruno@clisp.org>
21455         vma-iter: Add support for Solaris.
21456         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
21457         approach.
21458         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
21459         * lib/get-rusage-as.c: Update comment about Solaris.
21460         * lib/get-rusage-data.c: Likewise.
21462 2017-03-19  Bruno Haible  <bruno@clisp.org>
21464         vma-iter: Prefer HP-UX specific API on HP-UX.
21465         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
21466         * lib/vma-iter.h: Update.
21467         Just in case HP-UX ever implements mquery().
21469 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21471         stdalign: restore previous behavior for HP-UX IA64
21472         See Bruno Haible's email in:
21473         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21474         which cites p 150 of a manual saying that 'aligned' works on Itanium.
21475         * lib/stdalign.in.h (_Alignas):
21476         Assume the '061200' applies to Itanium, not to PA-RISC.
21477         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
21479 2017-03-17  Bruno Haible  <bruno@clisp.org>
21481         stat-time, timespec: Support use of the header files in C++ mode.
21482         * lib/stat-time.h: Add "C" linkage declaration.
21483         * lib/timespec.h: Likewise.
21485 2017-03-17  Bruno Haible  <bruno@clisp.org>
21487         stdalign: Make it work with HP-UX cc.
21488         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
21489         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
21490         for HP-UX cc.
21492 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
21494         flexmember: try to detect HP-UX 11.31 cc bug
21495         Problem reported by Bruno Haible in:
21496         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21497         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21498         Attempt to detect bug in HP-UX 11.31 cc.
21500 2017-03-16  Bruno Haible  <bruno@clisp.org>
21502         stdint: Fix test compilation failure with HP-UX 11 cc.
21503         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
21504         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
21505         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
21506         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
21508 2017-03-14  Bruno Haible  <bruno@clisp.org>
21510         gnulib-tool: Don't produce a tests directory with only snippet .h files.
21511         * gnulib-tool (func_modules_transitive_closure_separately): If
21512         testsrelated_modules ends up with no "real" modules, aside from
21513         modules with applicability 'all', set it to empty.
21515 2017-03-14  Bruno Haible  <bruno@clisp.org>
21517         vma-iter: Add support for HP-UX.
21518         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
21519         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
21520         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
21521         * lib/get-rusage-as.c: Update comment about HP-UX.
21522         * lib/get-rusage-data.c: Likewise.
21523         (get_rusage_data): Use get_rusage_data_via_setrlimit.
21525 2017-03-14  Bruno Haible  <bruno@clisp.org>
21527         limits-h: Make it work with HP-UX cc.
21528         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
21529         defined.
21531 2017-03-14  Bruno Haible  <bruno@clisp.org>
21533         Fix test failures on DragonFlyBSD.
21534         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
21535         * tests/test-select.h (test_bad_fd): Likewise.
21536         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
21538 2017-03-14  Bruno Haible  <bruno@clisp.org>
21540         freadahead: Silence warning on DragonFlyBSD.
21541         * lib/freadahead.c (__sreadahead): Declare ourselves.
21543 2017-03-14  Bruno Haible  <bruno@clisp.org>
21545         vma-iter: Add comment about AIX.
21546         * lib/vma-iter.c: Add comment about why this module is not implemented
21547         on AIX.
21549 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21551         snippets: move unadjusted snippet sources to lib
21552         Problem reported by Michal Privoznik in:
21553         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
21554         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
21555         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
21556         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
21557         * lib/unused-parameter.h: Rename from
21558         build-aux/snippet/unused-parameter.h.
21559         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
21560         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
21561         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
21562         * modules/snippet/c++defs (Files:, CXXDEFS_H):
21563         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
21564         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
21565         Adjust to file renamings.
21567 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
21569         gnulib-tool: don't automatically distribute files from top/
21570         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
21571         not distribute top/README-release by default, don't distribute files
21572         from top/ unconditionally.
21573         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
21574         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
21576 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21578         gnulib-tool: fix typo in comment output
21579         * gnulib-tool (func_import): Fix typo with previous change.
21581         snippets: work around GNU Make 3.82 VPATH
21582         When using 'gnulib-tool --gnu-make' on Emacs, and building
21583         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
21584         an out-of-source (VPATH) build failed because the sans-copyright
21585         snippet file was not built before the file that used it.
21586         Presumably this is some sort of VPATH thing.  Work around the
21587         problem by using the original snippet, i.e., don’t bother to
21588         remove its copyright notice.
21589         * modules/snippet/_Noreturn, modules/snippet/link-warning:
21590         Don’t assume Automake in comments.  Omit long-incorrect comment.
21591         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
21592         (MOSTLYCLEANFILES):
21593         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
21594         (MOSTLYCLEANFILES):
21595         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
21596         (MOSTLYCLEANFILES):
21597         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
21598         (MOSTLYCLEANFILES):
21599         Remove.
21600         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
21601         * modules/snippet/c++defs (CXXDEFS_H):
21602         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
21603         * modules/snippet/warn-on-use (WARN_ON_USE_H):
21604         Don’t bother to remove the copyright notice; just use the
21605         original snippet as-is.
21607 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
21609         gnulib-tool: minor --gnu-make fixups
21610         * gnulib-tool (func_emit_lib_Makefile_am):
21611         Remove useless code that was a blind alley during implementation.
21612         Problem reported by Thien-Thi Nguyen in:
21613         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
21614         (func_import): Note the "--gnu-make" option in the output comment.
21616 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
21618         gnulib-tool: new option --gnu-make
21619         This is for applications like GNU Emacs that use GNU Make
21620         features instead of Automake.
21621         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
21622         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
21623         Do not assume Automake.
21624         * gnulib-tool (func_determine_path_separator)
21625         (func_modules_transitive_closure, func_update_file)
21626         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21627         (func_import): Add support for --gnu-make.
21629 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21631         gnulib-common.m4: avoid aclocal.m4 bloat
21632         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
21633         Hide AM_PROG_AR from aclocal, so that aclocal does not
21634         install irrelevant macro definitions into aclocal.m4.
21636 2017-03-10  Bruno Haible  <bruno@clisp.org>
21638         vma-iter: Let callers know about error.
21639         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
21640         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
21642 2017-03-05  Bruno Haible  <bruno@clisp.org>
21644         Fix value of LD for 64-bit compilers on AIX.
21645         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
21646         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
21648 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
21650         dtotimespec: simplify
21651         * lib/dtotimespec.c (dtotimespec): Simplify.
21653 2017-03-04  Bruno Haible  <bruno@clisp.org>
21655         test-calloc-gnu: Reenable test also for GCC 7.
21656         * tests/test-calloc-gnu.c (eight): New function.
21657         (main): Don't skip test; use eight() instead.
21659 2017-03-04  Jim Meyering  <meyering@fb.com>
21661         test-calloc-gnu: port to GCC7
21662         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
21663         that attempts to calloc more than SIZE_MAX bytes, because GCC7
21664         and newer would detect that at compilation time.
21666 2017-03-04  Bruno Haible  <bruno@clisp.org>
21668         tests: Avoid compiler warning about uses of null_ptr.
21669         * tests/null-ptr.h: New file.
21670         * tests/test-canonicalize.c: Include null-ptr.h.
21671         (null_ptr): Remove function.
21672         * tests/test-canonicalize-lgpl.c: Likewise.
21673         * tests/test-memmem.c: Likewise.
21674         * tests/test-ptsname_r.c: Likewise.
21675         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21676         * modules/canonicalize-lgpl-tests: Likewise.
21677         * modules/memmem-tests: Likewise.
21678         * modules/ptsname_r-tests: Likewise.
21679         Reported by Jim Meyering.
21681 2017-03-03  Bruno Haible  <bruno@clisp.org>
21683         doc: Mention Mac OS X deficiencies regarding semaphores.
21684         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21685         * doc/posix-functions/sem_destroy.texi: Likewise.
21686         * doc/posix-functions/sem_getvalue.texi: Likewise.
21688 2017-03-03  Bruno Haible  <bruno@clisp.org>
21690         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21691         Reported by Assaf Gordon <assafgordon@gmail.com> via
21692         Pádraig Brady <P@draigBrady.com>.
21693         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21694         semaphores.
21695         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21696         (atomic_int_semaphore): New macro.
21698 2017-02-28  Bruno Haible  <bruno@clisp.org>
21700         perror tests: Tweak for z/OS.
21701         Reported by Daniel Richard G. <skunk@iskunk.org>.
21702         * tests/test-perror.sh: Don't fail z/OS style perror output.
21704 2017-02-26  Bruno Haible  <bruno@clisp.org>
21706         nproc: Refactor large function.
21707         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
21708         from num_processors.
21709         (num_processors): In this function, only deal with OMP.
21711 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21713         nproc: adjust handling of OpenMP environment variables
21714         to match the return value from omp_get_num_threads(), i.e.:
21715          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
21716          - Treat 0 as an invalid value and ignore
21717         Also remove the call to omp_get_num_threads() because
21718         it's ineffective without the omp pragmas in place.
21719         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
21720         so that it can be ignored.
21721         (num_processors): Honor OMP_THREAD_LIMIT even without
21722         OMP_NUM_THREADS being set.  Also fix a typo in the environment
21723         variable being checked, from the previous recent commit.
21725 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21727         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
21728         * lib/nproc.c (parse_omp_threads): A new function refactored
21729         from num_processors() to support parsing both of the
21730         above environment variables.
21731         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
21732         to accurately reflect the current OpenMP nesting level.
21733         Also support the OMP_THREAD_LIMIT environment variable
21734         to limit the max value determined from OMP_NUM_THREADS.
21735         * modules/nproc: Depend on minmax header.
21736         Suggested by Oliver Heimlich.
21738 2017-02-25  Bruno Haible  <bruno@clisp.org>
21740         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
21741         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
21743 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21745         ftoastr: port to -Wdouble-promotion
21746         Work around -Wdouble-promotion false alarm in recent GCCs.
21747         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
21748         (ftoastr_snprintf, FTOASTR): Use it.
21750 2017-02-21  Bruno Haible  <bruno@clisp.org>
21752         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
21753         Reported by Rene Saavedra <rennes@openmailbox.org> in
21754         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
21755         * lib/glthread/lock.h: On glibc systems without
21756         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
21757         implementation of rwlocks.
21758         * lib/glthread/lock.c: Likewise.
21760 2017-02-20  Bruno Haible  <bruno@clisp.org>
21762         lock tests: Fix build failure on z/OS.
21763         Reported by Daniel Richard G. <skunk@iskunk.org>.
21764         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
21765         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
21766         exist.
21768 2017-02-19  Bruno Haible  <bruno@clisp.org>
21770         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
21771         This helps when CC=clang.
21772         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
21773         of /usr/bin/gcc.
21775         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
21776         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
21778 2017-02-19  Bruno Haible  <bruno@clisp.org>
21780         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
21781         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
21782         --with-tests --single-configure is specified.
21784 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21786         users.txt: Update links, use HTTPS where possible
21787         * users.txt: Updated to HTTPS where possible,
21788         fixed some links to new locations.
21790 2017-02-16  Bruno Haible  <bruno@clisp.org>
21792         xbinary-io: Fix inlining.
21793         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
21795 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21797         xbinary-io: rename from xsetmode
21798         This patch is taken from suggestions by Bruno Haible in:
21799         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
21800         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
21801         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
21802         not ENOTTY, when it is an inappropriate device.
21803         * lib/binary-io.h (SET_BINARY): Resurrect.
21804         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
21805         (xset_binary_mode_error): Rename from xsetmode_error.
21806         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21807         (xset_binary_mode): Rename from xsetmode.
21808         All uses changed.
21809         * modules/xbinary-io: Rename from modules/xsetmode.
21810         Update file names.
21811         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21812         * NEWS: Update to match revised behavior.
21814 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21816         tests: Adjust to recent SET_BINARY change
21817         * tests/test-binary-io.c (main):
21818         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21819         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21820         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21821         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21823         xsetmode: new module
21824         This is to fix a problem noted by Eric Blake.
21825         Code was using xfreopen to change files to binary mode, but this
21826         fails for stdout when in append mode.  Such code should use
21827         xsetmode instead.
21828         * NEWS: Document incompatible changes to binary-io module.
21829         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21830         New function.
21831         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21832         (set_binary_mode): New function, which also checks for tty.
21833         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21835 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21837         headers: fix begin-end typos
21838         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21839         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21841         selinux-h: port to PGI 16.10
21842         * lib/se-selinux.in.h: Don't assume that include_next skips over
21843         duplicate -I DIR options.
21845         argp: port to PGI 16.10
21846         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21848 2017-02-13  Darshit Shah  <darnir@gnu.org>
21850         unicase: Update function protoype to match definition.
21851         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21852         uses 'size_t' as the datatype for the 'len' parameter in the functions
21853         it generates. Update the prototype specified here to match the newly
21854         generated function.
21856 2017-02-12  Bruno Haible  <bruno@clisp.org>
21858         times test: Avoid gcc warnings on Linux/x32.
21859         * tests/test-times.c (main): Really cast printf arguments from clock_t
21860         to 'long int'.
21862 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21864         glob: port better to emscripten
21865         Problem reported by Bruno Haible in:
21866         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21867         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21869 2017-02-11  Bruno Haible  <bruno@clisp.org>
21871         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21872         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21873         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21874         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21875         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21876         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21877         Distinguish hppa64 from hppa.
21879 2017-02-10  Bruno Haible  <bruno@clisp.org>
21881         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21882         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21883         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21884         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21886 2017-02-09  Bruno Haible  <bruno@clisp.org>
21888         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21889         * doc/gnulib.texi (Libtool and Windows): Recommend
21890         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21891         Reported by Reuben Thomas <rrt@sc3d.org>.
21893 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21895         stddef-tests: port to SIZE_MAX <= INT_MAX
21896         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21897         Do not assume that INT_MAX < SIZE_MAX.
21899 2017-02-01  Bruno Haible  <bruno@clisp.org>
21901         lock tests: Fix link error.
21902         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21905 2017-01-31  Bruno Haible  <bruno@clisp.org>
21907         lock: Fix link error (regression from 2017-01-05).
21908         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21909         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21910         pthread_rwlockattr_destroy weak.
21911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21913 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21915         Port to PGI 16.10 x86-64
21916         This patch fixes one real bug in gl_anylinked_list2.h, along with
21917         some minor glitches that are not bugs.  It does not silence PGI’s
21918         thousands of bogus warnings when compiling test-intprops.c.
21919         Fortunately, the warnings do not cause a failure.
21920         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21921         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21922         My goodness, PGI goes back a long ways - this predates C89!
21923         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21924         For example, ASYNCSAFE (const void *) should expand to
21925         ‘const void *volatile’, not to ‘volatile const void *’.
21926         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21927         * lib/verify.h (verify) [!__GNUC__]:
21928         Use shorter albeit meaningless string to bypass silly compiler limits.
21929         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21930         * tests/nan.h (NaNf, NaNd, NaNl):
21931         Use static functions to avoid misguided compiler diagnostics.
21932         Is there some reason we don’t use static functions on all platforms?
21934 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21936         parse-datetime: handle timezones reentrantly
21937         This API change was prompted by a report by Pádraig Brady in:
21938         https://bug.debian.org/851934#10
21939         To help fix the bug, make parse_datetime2 more reentrant.
21940         * NEWS: Document this incompatible change.
21941         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21942         Add two arguments, the timezone and the timezone name.
21943         All callers changed.  If TZ="..." is specified, use it for
21944         calculating defaults.
21945         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21946         this code should be usable in a library.
21947         (mktime_ok, get_effective_timezone):
21948         Accept timezone arg too.  All callers changed.
21949         (get_tz): Remove.
21950         (get_effective_timezone): Check for failures.
21952 2017-01-20  Eric Blake  <eblake@redhat.com>
21954         localename: port to cygwin 2.6
21955         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21956         Cygwin.
21957         * modules/localename (Depends-on): Add extensions, since
21958         NL_LOCALE_NAME() is not visible without it.
21960 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21962         parse-datetime: fix dependence on AC_PROG_SED
21963         * modules/parse-datetime: Use `sed` directly like all other modules.
21964         Reported by J William Piggott
21966 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21968         intprops: update doc URLs
21969         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21971 2017-01-16  Bruno Haible  <bruno@clisp.org>
21973         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21974         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21975         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21976         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21977         distinguish s390 and s390x.
21978         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21979         * NEWS: Mention the change regarding 'armel'.
21981 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21983         localeinfo: case_folded_counterparts and WEOF
21984         * NEWS: Document this.
21985         * lib/localeinfo.c (case_folded_counterparts):
21986         First arg is now wint_t, not wchar_t.  This generalizes the
21987         function to also work on WEOF, where it returns 0.
21989         dfa: port to gcc -fsanitize=undefined
21990         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21991         as this runs afoul of gcc -fsanitize=undefined.
21993 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21995         strftime: %z is -00 if unknown
21996         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21997         the caller's responsibility to set 'negative_number'.  All uses changed.
21998         (__strftime_internal): Put '-' before a zero UTC offset if the time
21999         zone abbreviation starts with "-", which is the recently-introduced
22000         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
22001         * tests/test-strftime.c: Test for this.
22003 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22005         dfa: port to older GCC
22006         Problem reported by Assaf Gordon in:
22007         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
22008         * modules/c99: New module.  This merely attempts to use the latest
22009         C version, which should be enough to solve this particular problem.
22010         The idea is to document which Gnulib modules assume C99 or later.
22011         * modules/dfa (Depends-on): Add it.
22013 2017-01-10  Bruno Haible  <bruno@clisp.org>
22015         Update DEPENDENCIES.
22016         * DEPENDENCIES: List only https URLs. Update recommended version for
22017         autoconf, automake, gperf.
22019 2017-01-10  Jim Meyering  <meyering@fb.com>
22021         maint.mk: enforce spelling of "timestamp" (i.e., no space)
22022         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
22023         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
22025 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22027         dfa: minor simplification with emptyset
22028         * lib/dfa.c (build_state): Simplify by using emptyset.
22030 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22032         dfa: shrink constraints from 4 bits to 3
22033         * lib/dfa.c (newline_constraint, letter_constraint)
22034         (other_constraint, prev_newline_dependent)
22035         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
22036         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
22037         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
22038         Constraints need only 3 bits, not 4.  Using smaller integers
22039         shrinks the code a bit and makes grep a tad faster on x86-64.
22041         dfa: omit unnecessary ptrdiff_t check
22042         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
22043         overflow, since xnmalloc does that now.
22045         dfa: omit unnecessary allocation
22046         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
22047         an all-zero follow set works just fine.
22049         dfa: omit unused local
22050         * lib/dfa.c (build_state): Fix up recent change.
22052         maint: remove stray .texi files
22053         Although these were superseded by other files like
22054         doc/posix-functions/ctime.texi, the old files were not removed.
22055         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
22057 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
22059         getprogname: fix port to IRIX
22060         * lib/getprogname.c (getprogname) [__sgi]:
22061         Don't dump core if malloc returns NULL.
22063         dfa: fix reallocation bug when matching newlines
22064         Problem reported for sed by S. Gilles (Bug#25390).
22065         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
22066         (dfastate): Reallocate before moving any newline transition ...
22067         (build_state): ... instead of reallocating here, where it is too late.
22069 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22071         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
22072         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
22074 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22076         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
22077         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
22079 2017-01-07  Bruno Haible  <bruno@clisp.org>
22081         stdioext: Port to Minix 3.2 and newer.
22082         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
22083         * lib/fseeko.c (fseeko): Likewise.
22084         Reported by Nelson Beebe via Paul Eggert.
22086 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22088         getprogname: port to IRIX
22089         * lib/getprogname.c (getprogname): Port to IRIX.
22090         Based on an idea by Bastien Roucariès at:
22091         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
22092         via code from Bruno Haible at:
22093         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22095         localename-tests: port to NetBSD 7
22096         Problem reported by Nelson H. F. Beebe.
22097         * tests/test-localename.c:
22098         Test newlocale and uselocale only if both exist.
22100         glob, intprops, xalloc: work around Clang bug
22101         Work around LLVM bug 16404, which is still not fixed.
22102         https://llvm.org/bugs/show_bug.cgi?id=16404
22103         Problem reported by Nelson H. F. Beebe.
22104         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
22105         Remove.
22106         * lib/glob.c (size_add_wrapv):
22107         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
22108         * lib/xalloc-oversized.h (xalloc_oversized):
22109         Do not use overflow builtins if Clang.
22111         dfa: fix 'return' typo
22112         Problem reported by Nelson H. F. Beebe.
22113         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
22115 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22117         parse-datetime: fix generated paths for coverage files
22118         * modules/parse-datetime: Adjust the paths for parse-datetime.y
22119         within parse-datetime.c, so that gcc generates appropriate .gcno
22120         files, allowing lcov to proceed without error.  Previously it
22121         would error trying to find "lib/lib/parse-datetime.y".
22123 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22125         maint.mk: support parallel execution of coverage
22126         * top/maint.mk (coverage): Run dependencies serially,
22127         thus supporting parallel processing of each one,
22128         particularly build-coverage, which builds and runs tests.
22130 2017-01-05  Bruno Haible  <bruno@clisp.org>
22132         lock tests: Prefer semaphore over mutex.
22133         * tests/test-lock.c (USE_SEMAPHORE): New constant.
22134         (struct atomic_int, init_atomic_int, get_atomic_int_value,
22135         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
22136         Suggested by Torvald Riegel <triegel@redhat.com>.
22138 2017-01-05  Bruno Haible  <bruno@clisp.org>
22140         lock: Provide guarantee to avoid writer starvation for rwlocks.
22141         The rationale is: 1) Read-preferring read-write locks are prone to
22142         writer starvation if the number of reader threads multiplied by the
22143         percentage of time they have the lock held is too high. 2) Write-
22144         preferring read-write locks are the only reliable way to avoid this.
22145         3) There have been reports of 'test-lock' hanging on glibc systems
22146         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
22147         and glibc indeed implements read-preferring rwlocks by default, see
22148         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
22149         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
22150         * m4/pthread_rwlock_rdlock.m4: New file.
22151         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22152         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
22153         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22154         of rwlock initialization on glibc systems without
22155         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22156         of rwlocks altogether on non-glibc systems without
22157         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22158         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
22159         * lib/glthread/lock.c [USE_POSIX_THREADS]
22160         (glthread_rwlock_init_for_glibc): New function.
22161         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
22162         comment.
22163         [USE_PTH_THREADS]: New implementation of rwlocks.
22164         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
22165         readers.
22166         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
22167         (Depends-on): Add 'extensions'.
22168         * tests/test-rwlock1.c: New file.
22169         * lock-tests (Files): Add it.
22170         (Depends-on): Add usleep.
22171         (Makefile.am): Add test-rwlock1 to the tests.
22173 2017-01-05  Bruno Haible  <bruno@clisp.org>
22175         thread: Fix pth port.
22176         * lib/glthread/thread.h (pth_init): Declare weak.
22177         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
22178         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
22179         function.
22181 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
22183         parse-datetime: fix debug message on lone year number
22184         Input dates such as
22185           date -d "Apr 11 22:59:00 2011"
22186         are parsed as date (Apr 11, with default year 2016), then time, then a
22187         number (2011). Based on the combination of previously seen tokens,
22188         'digits_to_date_time' determines 2011 to be a year value.
22189         This fixes the debug messages to correctly show the updated year.
22190         Before:
22191             $ date --debug -d 'Apr 11 22:59:00 2011'
22192             date: parsed date part: (Y-M-D) 2016-04-11
22193             date: parsed time part: 22:59:00
22194             date: parsed number part: today/this/now
22195         After:
22196             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
22197             date: parsed date part: (Y-M-D) 2016-04-11
22198             date: parsed time part: 22:59:00
22199             date: parsed number part: year: 2011
22200         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
22201         'debug_year_seen' member fields.
22202         (digits_to_date_time): Update 'year_seen' as needed.
22203         (debug_print_current_time): Inform about year updates.
22204         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
22206         parse-datetime: fix local timezone debug messages
22207         "Local timezones" are strings that affect only DST relative to the
22208         default timezone. The debug messages in parse-datetime.y printed
22209         wrong information when encountering local timezones.
22210         Examples:
22211         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
22212              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
22213              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
22214         When the default timezone relates to the zone strings, EET/EEST are
22215         parsed as local timezones (tLOCAL_ZONE), and only change the DST
22216         value (0/1, respectively):
22217              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
22218              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
22219         * lib/parse-datetime.y (debug_print_current_time): If local timezone
22220         was seen, inform about DST change, don't print actual timezone.
22221         (debug_strfdatetime): If local timezone was seen, use default timezone
22222         (and adjust as needed) instead of using incorrect timezone.
22223         (parse_datetime2): Use correct time-zone source string, and adjust
22224         default timezone as needed.
22226         parse-datetime: add debug warning about DST changes
22227         Incorrect date arithmetic due to daylight saving time (DST) are a
22228         common (false) bug report in coreutils.
22229         Detect two such cases and print a warning:
22230         1. year/month/day adjustments (performed on 'struct tm'),
22231            where 'mktime' returns a different isdst value.
22232         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
22233            where the result of 'localtime(3)' on the value will return a
22234            different isdst value.
22235         Note: DST changes could be harmless or unnoticeable.
22236         Examples (with 'TZ=America/New_York'):
22237         Unnoticeable: result is 2016-Dec-14
22238            $ date -d '2016-06-15 EDT + 6 months' +%b
22239            Dec
22240         Unnoticeable: result is 2016-Dec-15 11:00:00
22241            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
22242            2016-12-15
22243         This is unexpected:
22244            $ date -d '2016-06-01 EDT + 6 months' +%F
22245            2016-11-30
22246         The new debug warnings will show:
22247            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
22248            ...
22249            date: warning: daylight saving time changed after date adjustment
22250            ...
22251         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
22252         print an appropriate warning message.
22254         parse-datetime: add debug warning about date arithmetic
22255         Date arithmetic are done directly on the fields of 'struct tm',
22256         which can result in invalid dates. Normalization with 'mktime(3)'
22257         will then produce a different date - which might cause unexpected
22258         results.
22259         Examples:
22260           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
22261           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
22262         Note that date normalization is not inherently wrong and not rejected,
22263         as it has legitimate uses:
22264           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
22265         If the user asked to adjust months but 'mday' changed,
22266         or user asked to adjust years but 'month' changed - warn about it.
22267             $ ./src/date --debug -d '2016-10-31 - 1 month'
22268             ...
22269             date: warning: when adding relative months/years, \
22270                            it is recommended to specify the 15th of the month
22271             ...
22272             date: warning: month/year adjustment resulted in shifted dates:
22273             date:      adjusted Y M D: 2016 09 31
22274             date:    normalized Y M D: 2010 10 01
22275             ...
22276         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
22277         a warning message. Improve recommendation of when to use 15 of the
22278         month or noon for date arithmetic.
22280         parse-datetime: fix debug message of relative part after timezone
22281         Relative part (e.g '+8 days') after a timezone string was not
22282         reported (was only reported after a timezone number). Due to the
22283         parser's structure, timezone strings with numbers were handled
22284         separately.
22285         before:
22286              # Timezone number + relative part: OK
22287              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
22288              ...
22289              date: parsed relative part: -8 day(s)
22290              # Timezone string + relative part: missing
22291              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
22292              [ missing message ]
22293         After: messages are printed in both cases.
22294         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
22296         parse-datetime: fix incorrect debug message on lone number
22297         A lone number is an absolute value, not a relative time part.
22298         before:
22299            $ date --debug -d '20130101'
22300            date: parsed number part: today/this/now
22301         After:
22302            $ ./src/date --debug -d '20130101'
22303            date: parsed number part: (Y-M-D) 2013-01-01
22304         * lib/parse-datetime.y ('item'/'number' tokens): Call
22305         'debug_print_current_time' instead of 'debug_print_relative_time'.
22307 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
22309         doc: modernize for C11 etc.
22310         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
22311         for C11, MinGW, etc.  This responds to Paul Smith's question in:
22312         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
22314         dfa: prefer functions to FETCH_WC macro
22315         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
22316         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
22317         wint_t result into DFA->lex.wctok instead of to a separate arg.
22318         All callers changed.  Move more local decls closer to where
22319         they're used.
22321         dfa: narrow more local var scopes
22322         * lib/dfa.c: Move more local decls to be more local.
22324         dfa: remove duplicate assignment
22325         Problem reported by Bruno Haible in:
22326         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
22327         * lib/dfa.c (parse_bracket_exp): Simplify.
22329 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22331         dfa: simplify constraint-dependency checking
22332         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
22333         (prev_other_constraint): Remove.
22334         (prev_newline_dependent, prev_letter_dependent):
22335         Simplify, to avoid an unnecessary bitwise AND operation.
22337         dfa: prefer functions and constants to macros
22338         * lib/dfa.c: Prefer constants to macros where either will do.
22339         (streq, isasciidigit, newline_constraint)
22340         (letter_constraint, other_constraint, succeeds_in_context)
22341         (prev_newline_constraint, prev_letter_constraint)
22342         (prev_other_constraint, prev_newline_dependent)
22343         (prev_letter_dependent, accepting, accepts_in_context):
22344         Now static functions instead of function-like macros.
22345         Use lower-case names accordingly.  All uses changed.
22347         dfa: narrow more local var scopes
22348         * lib/dfa.c: Move some more local decls down to nearer where
22349         they're needed.
22351 2016-12-31  Jim Meyering  <meyering@fb.com>
22353         dfa: narrow the scope of many local variables
22354         * lib/dfa.c: Now that we are no longer constrained to c89, move
22355         declarations of many variables (often indices) "down" into the
22356         scope(s) where used or to the point of definition.  This is a
22357         no-semantic-change diff.
22359 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22361         version-etc: new year
22362         * build-aux/gendocs.sh (version):
22363         * doc/gendocs_template:
22364         * doc/gendocs_template_min:
22365         * doc/gnulib.texi:
22366         * lib/version-etc.c (COPYRIGHT_YEAR):
22367         Update copyright dates by hand in templates and the like.
22368         * all files: Run 'make update-copyright'.
22370 2016-12-31  Eric Blake  <eblake@redhat.com>
22372         do-release-commit-and-tag: avoid shell syntax error
22373         * build-aux/do-release-commit-and-tag (curr_br): $branch can
22374         contain spaces when rebasing.
22376         maint.mk: hoist gnulib_dir definition earlier
22377         * top/maint.mk (gnulib_dir): Move near top of file.
22379 2016-12-31  Jim Meyering  <meyering@fb.com>
22381         maint.mk: do not always evaluate intprops-related shell
22382         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
22383         using gnulib_dir undefined (gnulib_dir is defined later in the
22384         file, which will be fixed separately), and besides, there is no
22385         need to incur the cost of this shell invocation for every single
22386         use of this .mk file.  Reported by Eric Blake in
22387         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
22389 2016-12-30  Jim Meyering  <meyering@fb.com>
22391         maint.mk: improve sc_prohibit_intprops_without_use
22392         * top/maint.mk (_intprops_names): Don't hard-code the list of
22393         symbol names.  Instead, derive it on the fly.
22395 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
22397         dfa: shorten sbit, success
22398         * lib/dfa.c (struct regex_syntax.sbit):
22399         (struct dfa.success): Use char, not int, for array elements, since
22400         they are all in the range 0..7.
22402         dfa: simplify multibyte_prop etc.
22403         This follows up on a change made when dfa.c was in grep, namely grep
22404         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
22405         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
22406         That earlier simplification allows for some more simplification
22407         and trimming down here.
22408         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
22409         (struct lexer_state): New mamber brack.
22410         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
22411         since they must be in the range 0..3 now.
22412         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
22413         the brack member now supersedes them.
22414         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
22415         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
22416         (dfaparse): Remove unnecessary initializations of already-0 storage.
22417         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
22418         (dfassbuild): No need to clear sup->mbcsets.
22420         dfa: minor performance tweak
22421         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
22423         dfa: wrap charclass inside a struct
22424         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
22425         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
22426         about 5% faster, where list.txt is generated by 'aspell dump
22427         master | head -n 100000 >list.txt'.  See Bug#22239.
22428         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
22429         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
22430         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
22431         Adjust to this, e.g., by using charclass * rather than charclass.
22432         All callers changed as needed.
22433         (copyset): Remove.  All uses changed to simple assignment.
22434         (parse_bracket_exp): Use zeroset instead of memset.
22436 2016-12-30  Jim Meyering  <meyering@fb.com>
22438         maint.mk: update list of intprops.h symbol names
22439         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
22440         This avoids a false failure of the sc_prohibit_intprops_without_use
22441         rule in grep.
22443 2016-12-29  Eric Blake  <eblake@redhat.com>
22445         getopt: fix parallel test failure
22446         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
22447         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
22448         * tests/test-getopt-main.h (main): Use different file names
22449         in case test-getopt-gnu and test-getopt-posix run in parallel.
22451 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22453         xalloc: x2nrealloc check for ptrdiff_t overflow
22454         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
22455         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
22457 2016-12-24  Bruno Haible  <bruno@clisp.org>
22459         lock test: Fix performance problem on multi-core machines.
22460         * tests/test-lock.c (USE_VOLATILE): New macro.
22461         (struct atomic_int): New type.
22462         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
22463         functions.
22464         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
22465         as 'struct atomic_int'.
22466         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
22467         reclock_checker_thread, test_recursive_lock): Use the new functions.
22468         Reported by Eric Blake in
22469         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
22470         and by Pádraig Brady in
22471         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
22473 2016-12-19  Bruno Haible  <bruno@clisp.org>
22475         vma-iter: Fix endless loop on 64-bit Windows.
22476         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
22477         'unsigned long'.
22479 2016-12-19  Bruno Haible  <bruno@clisp.org>
22481         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
22482         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
22483         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
22484         Invoke gt_TYPE_WINT_T instead.
22485         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
22486         * modules/stdint (Files): Add m4/wint_t.m4.
22487         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22488         * modules/wctype-h (Makefile.am): Likewise.
22489         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
22490         not only on MSVC.
22491         * lib/wctype.in.h (wint_t): Likewise.
22493 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22495         getopt-posix-tests: fix Makefile typo
22496         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
22497         Fix typo: the last ‘_’ was missing in the name.
22498         I suspect that the typo explains this build failure:
22499         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
22500         although I can’t reproduce the problem on Solaris 10 sparc.
22502 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22504         dfa: improve worst-case 'replace' performance
22505         See my note in Bug#22357#71.
22506         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
22507         (merge_constrained): New function, which is like
22508         the old 'merge' function, except with a new argument C2.
22509         Simplify the body by avoiding the need for different sections
22510         of code depending on whether one input is exhausted.
22511         (merge): Use the new function.
22512         (delete): Return the constraint of the deleted position,
22513         not the entire position.  Caller changed.
22514         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
22516 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22518         dfa: performance improvement for removal of epsilon closure
22519         See Bug#22357#32.
22520         * lib/dfa.c (delete): Use binary search to find deleted index.
22521         (replace): New function.  It replaces a position with the followed set.
22522         (epsclosure): Replace it with a new algorithm.  Update caller.
22524 2016-12-18  Bruno Haible  <bruno@clisp.org>
22526         Split tests for getopt-posix and getopt-gnu.
22527         * tests/test-getopt-posix.c: New file.
22528         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
22529         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
22530         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
22531         GNULIB_TEST_GETOPT_GNU.
22532         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
22533         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
22534         (Makefile.am): Test test-getopt-posix instead of test-getopt.
22535         * modules/getopt-gnu-tests: New file.
22536         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
22538 2016-12-18  Bruno Haible  <bruno@clisp.org>
22540         posix-modules: Add options for specific platforms.
22541         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
22542         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
22543         Invoke func_tmpdir. Filter out the excludes.
22545 2016-12-18  Bruno Haible  <bruno@clisp.org>
22547         getopt: Fix link error for users of getopt() in <unistd.h>.
22548         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
22549         __need_getopt is defined. Undefine all macros before defining them.
22550         * modules/getopt (Include): Clarify that including <unistd.h> is also
22551         OK.
22552         * tests/test-getopt.c: Add comment.
22554 2016-12-17  Bruno Haible  <bruno@clisp.org>
22556         getaddrinfo tests: Avoid compilation error on MSVC.
22557         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
22558         getaddrinfo on native Windows.
22560 2016-12-17  Bruno Haible  <bruno@clisp.org>
22562         getlogin, getlogin_r: Fix link errors on MSVC.
22563         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
22564         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
22565         (Link): New section.
22566         * modules/getlogin_r (Files): Add m4/getlogin.m4.
22567         (configure.ac): Require gl_LIB_GETLOGIN.
22568         (Link): New section.
22569         * NEWS: Mention the new link requirements.
22570         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
22571         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
22573 2016-12-17  Bruno Haible  <bruno@clisp.org>
22575         Un-deprecate the 'progname' module.
22576         * NEWS: Describe the appropriate use-cases of 'progname' versus
22577         'getprogname'. Based on discussion summary at
22578         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
22580 2016-12-17  Bruno Haible  <bruno@clisp.org>
22582         Reorganize NEWS a bit.
22583         * NEWS: Move some not so important changes away from section
22584         "Important Notes".
22586 2016-12-17  Bruno Haible  <bruno@clisp.org>
22588         tanhf: Avoid redefinition error on MSVC.
22589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
22590         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
22591         may be defined as an inline function.
22592         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
22593         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
22595 2016-12-17  Bruno Haible  <bruno@clisp.org>
22597         tanf: Avoid redefinition error on MSVC.
22598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
22599         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
22600         may be defined as an inline function.
22601         * modules/math (Makefile.am): Substitute REPLACE_TANF.
22602         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
22604 2016-12-17  Bruno Haible  <bruno@clisp.org>
22606         sqrtf: Avoid redefinition error on MSVC.
22607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
22608         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
22609         may be defined as an inline function.
22610         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
22611         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
22613 2016-12-17  Bruno Haible  <bruno@clisp.org>
22615         sinhf: Avoid redefinition error on MSVC.
22616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
22617         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
22618         may be defined as an inline function.
22619         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
22620         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
22622 2016-12-17  Bruno Haible  <bruno@clisp.org>
22624         sinf: Avoid redefinition error on MSVC.
22625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
22626         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
22627         may be defined as an inline function.
22628         * modules/math (Makefile.am): Substitute REPLACE_SINF.
22629         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
22631 2016-12-17  Bruno Haible  <bruno@clisp.org>
22633         logf: Avoid redefinition error on MSVC.
22634         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
22635         may be defined as an inline function.
22637 2016-12-17  Bruno Haible  <bruno@clisp.org>
22639         log10l: Avoid redefinition error on MSVC.
22640         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
22641         may be defined as an inline function.
22643 2016-12-17  Bruno Haible  <bruno@clisp.org>
22645         log10f: Avoid redefinition error on MSVC.
22646         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
22647         may be defined as an inline function.
22649 2016-12-17  Bruno Haible  <bruno@clisp.org>
22651         hypotl: Avoid redefinition error on MSVC.
22652         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
22653         may be defined as an inline function.
22655 2016-12-17  Bruno Haible  <bruno@clisp.org>
22657         hypotf: Avoid redefinition error on MSVC.
22658         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
22659         may be defined as an inline function.
22661 2016-12-17  Bruno Haible  <bruno@clisp.org>
22663         fmodl: Avoid redefinition error on MSVC.
22664         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
22665         may be defined as an inline function.
22667 2016-12-17  Bruno Haible  <bruno@clisp.org>
22669         fmodf: Avoid redefinition error on MSVC.
22670         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22671         may be defined as an inline function.
22673 2016-12-17  Bruno Haible  <bruno@clisp.org>
22675         expf: Avoid redefinition error on MSVC.
22676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22677         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22678         may be defined as an inline function.
22679         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22680         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22682 2016-12-17  Bruno Haible  <bruno@clisp.org>
22684         coshf: Avoid redefinition error on MSVC.
22685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22686         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22687         may be defined as an inline function.
22688         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22689         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22691 2016-12-17  Bruno Haible  <bruno@clisp.org>
22693         cosf: Avoid redefinition error on MSVC.
22694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22695         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22696         may be defined as an inline function.
22697         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22698         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22700 2016-12-17  Bruno Haible  <bruno@clisp.org>
22702         atan2f: Avoid redefinition error on MSVC.
22703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22704         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22705         may be defined as an inline function.
22706         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22707         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
22709 2016-12-17  Bruno Haible  <bruno@clisp.org>
22711         atanf: Avoid redefinition error on MSVC.
22712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
22713         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
22714         may be defined as an inline function.
22715         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
22716         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
22718 2016-12-17  Bruno Haible  <bruno@clisp.org>
22720         asinf: Avoid redefinition error on MSVC.
22721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
22722         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
22723         may be defined as an inline function.
22724         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
22725         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
22727 2016-12-17  Bruno Haible  <bruno@clisp.org>
22729         acosf: Avoid redefinition error on MSVC.
22730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
22731         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
22732         may be defined as an inline function.
22733         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
22734         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
22736 2016-12-17  Bruno Haible  <bruno@clisp.org>
22738         Avoid redefinition errors on MSVC.
22739         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
22740         the function may be defined as an inline function.
22741         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
22742         the function may be defined as an inline function.
22744 2016-12-17  Bruno Haible  <bruno@clisp.org>
22746         Avoid redefinition errors on MSVC.
22747         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
22748         * lib/unistd.in.h: Include <stdio.h> when necessary.
22750 2016-12-17  Bruno Haible  <bruno@clisp.org>
22752         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
22753         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
22754         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22755         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
22756         WINT_MAX.
22758 2016-12-17  Bruno Haible  <bruno@clisp.org>
22760         Avoid autoconf warning.
22761         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
22762         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
22764 2016-12-17  Bruno Haible  <bruno@clisp.org>
22766         fpending: Revert workaround against Emacs bug.
22767         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
22768         The Emacs bug is fixed by Eli Zaretskii in
22769         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
22771 2016-12-17  Bruno Haible  <bruno@clisp.org>
22773         getlogin_r tests: Port to mingw.
22774         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
22775         regression introduced on 2014-05-19.
22777 2016-12-17  Bruno Haible  <bruno@clisp.org>
22779         getlogin: Port to newer mingw.
22780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
22781         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
22782         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
22783         HAVE_GETLOGIN.
22784         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
22785         HAVE_GETLOGIN.
22786         * doc/posix-functions/getlogin.texi: Mention the issue.
22787         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
22788         regression introduced on 2014-05-14.
22790 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22792         builtin-expect: improve port to IBM XL C
22793         Problem reported for z/OS by Daniel Richard G. in:
22794         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
22795         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22796         Test for <builtins.h> directly.
22798         builtin-expect: port to IBM XL C
22799         Problem reported for z/OS by Daniel Richard G. in:
22800         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
22801         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22802         Also allow __builtin_expect defined via a standard include file.
22804         regex: fix dependency
22805         Problem reported by Bruno Haible in:
22806         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22807         * modules/regex: Depend on builtin-expect.
22809         builtin-expect: new module
22810         Fix fnmatch to use it.
22811         Problem reported for z/OS by Daniel Richard G.
22812         * lib/fnmatch.c (__builtin_expect):
22813         * lib/glob.c (__builtin_expect):
22814         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22815         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22816         * lib/scandir.c (__builtin_expect):
22817         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22818         Remove macro; config.h now does this.
22819         * lib/gl_anytreehash_list1.h (add_to_bucket):
22820         * lib/regex_internal.h (BE):
22821         Assume __builtin_expect.
22822         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22823         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22824         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22825         * modules/scandir, modules/strstr-simple:
22826         Depend on builtin-expect.
22828 2016-12-15  Bruno Haible  <bruno@clisp.org>
22830         init.sh: Add possibility to not delete temporary files.
22831         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22832         to yes, don't erase the temporary directory.
22834 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22836         regex: fix integer-overflow bug in never-used code
22837         Problem reported by Clément Pit–Claudel in:
22838         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22839         * lib/regex_internal.h: Include intprops.h.
22840         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22841         behavior on integer overflow.
22842         * modules/regex (Depends-on): Add intprops.
22844         fpending: fix port to MinGW on Emacs
22845         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22846         Problem reported by Eli Zaretskii in:
22847         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22848         Is Plan 9 still a valid porting target, anyway?
22850 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22852         safe-alloc: use xalloc-oversized
22853         * lib/safe-alloc.c: Include xalloc-oversized.h.
22854         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22855         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22857         xalloc: do not exceed PTRDIFF_MAX
22858         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22859         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22860         bytes have pointer-subtraction problems.
22862         malloca: do not exceed PTRDIFF_MAX
22863         * lib/malloca.h: Include xalloc-oversized.
22864         (nmalloca): Use xalloc_oversized instead of rolling our own.
22865         * modules/malloca (Depends-on):
22866         * modules/relocatable-prog-wrapper (Depends-on):
22867         Add xalloc-oversized.
22869         quotearg: pacify GCC better
22870         * modules/quotearg (Depends-on): Add minmax, stdint.
22871         * lib/quotearg.c: Include minmax.h, stdint.h.
22872         (nslots): Now int, as there seems little point to going to extra
22873         work merely to support the INT_MAX slot, which nobody ever uses.
22874         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22875         and to catch (mostly-theoretical) ptrdiff_t problems too.
22876         This can be done via one comparison.
22878 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22880         xalloc-oversized: check for PTRDIFF_MAX too
22881         This avoids undefined behavior when subtracting pointers to
22882         objects containing more than PTRDIFF_MAX bytes.
22883         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22884         Also return 1 if the result would exceed PTRDIFF_MAX>
22885         * modules/xalloc-oversized (Depends-on):
22886         Add stdint.
22888         dfa: fix glitches in previous commit
22889         Sorry, I don't know how I managed to commit the wrong version.
22890         * lib/dfa.c (MIN): Move up.
22891         (xpalloc): Now static.
22893         dfa: fix some unlikely integer overflows
22894         I found these while reviewing the recent Coverity-related fix.
22895         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22896         size_t for object counts.  Using ptrdiff_t is the style typically
22897         used in Emacs; although it wastes a sign bit as sizes can never be
22898         negative, it makes -fsanitize=undefined more likely to catch
22899         integer overflows in index calculation, and nowadays the upside is
22900         typically more important than the downside.  Although perhaps the
22901         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22902         of dfa.c already does, since it uses state_num which is signed),
22903         that is a bigger change and is not needed to fix the bugs I found.
22904         * lib/dfa.c: Include stdint.h and intprops.h.
22905         (TOKEN_MAX): New macro.
22906         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22907         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22908         (realloc_trans_if_necessary, free_mbdata):
22909         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22910         This is safe because xpalloc checks that the sizes do not exceed
22911         either SIZE_MAX or PTRDIFF_MAX.
22912         (xpalloc): New function, mostly taken from Emacs.
22913         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22914         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22915         (charclass_index): Check for integer overflow in computing
22916         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22917         added to it later.
22918         (alloc_position_set): Check for integer overflow.  On typical
22919         platforms this check has zero overhead, since the constant
22920         expression is false.
22921         (realloc_trans_if_necessary):
22922         Remove assertion, which I hope Coverity no longer needs.
22924         * modules/dfa (Depends-on): Add intprops, stdint.
22926 2016-12-12  Jim Meyering  <meyering@fb.com>
22928         dfa: add an assertion to avoid coverity false positive
22929         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22930         warned that "newalloc1 - 2" could overflow.
22932 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22934         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22935         * dfa.h (DFA_CASE_FOLD): Remove.
22936         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22938 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22940         link: fix test to declare use of rename()
22941         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22942         -Werror=implicit-function-declaration
22944 2016-12-12  Bruno Haible  <bruno@clisp.org>
22946         fpending: Port to native Windows with MSVC.
22947         * lib/fpending.c: Include stdio-impl.h.
22948         (__fpending): Include all known implementations. Err out if it's not
22949         ported.
22950         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22951         * modules/fpending (Files): Add lib/stdio-impl.h.
22952         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22954 2016-12-12  Bruno Haible  <bruno@clisp.org>
22956         stdioext: Port to native Windows with MSVC.
22957         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22958         (struct _gl_real_FILE): New type.
22959         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22960         Windows.
22961         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22962         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22963         other SystemV derived implementations.
22964         * lib/fpurge.c (fpurge): Likewise.
22965         * lib/freadable.c (freadable): Likewise.
22966         * lib/freadahead.c (freadahead): Likewise.
22967         * lib/freading.c (freading): Likewise.
22968         * lib/freadptr.c (freadptr): Likewise.
22969         * lib/freadseek.c (freadptrinc): Likewise.
22970         * lib/fseeko.c (fseeko): Likewise.
22971         * lib/fseterr.c (fseterr): Likewise.
22972         * lib/fwritable.c (fwritable): Likewise.
22973         * lib/fwriting.c (fwriting): Likewise.
22974         Reported by Gisle Vanem <gvanem@yahoo.no>.
22976 2016-12-11  Jim Meyering  <meyering@fb.com>
22978         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22979         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22980         to work with most shells, but not with the one provided by many
22981         Solaris 10 systems, so running configure with such a /bin/sh evokes
22982         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22983         Reported by Assaf Gordon in
22984         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22986 2016-12-10  Bruno Haible  <bruno@clisp.org>
22988         threadlib: Optimize out runtime test on Solaris >= 10.
22989         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22990         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22991         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22993 2016-12-10  Bruno Haible  <bruno@clisp.org>
22995         stdint: Update doc about Solaris 9.
22996         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22998 2016-12-09  Bruno Haible  <bruno@clisp.org>
23000         c-ctype tests: Fix link error on Solaris 9.
23001         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
23002         Reported at <https://savannah.gnu.org/bugs/?46827>.
23004 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23006         dfa: fix performance bug that recomputes trans
23007         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
23008         25 on-demand changes.  The bug caused build_state to reset all
23009         d->trans elements to -2 even when d->trans was already non-null.
23010         Use C99 style decls after statements in this function.
23012         same-inode: port to MinGW
23013         Here st_ino is always 0, so change the definition of SAME_INODE so
23014         that 1 means the two files are the same, 0 with st_ino != 0 means
23015         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
23016         reported by Bruno Haible (Bug#25146).
23017         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
23018         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
23020 2016-12-04  Bruno Haible  <bruno@clisp.org>
23022         javacomp-script: Support Java 7 and 8.
23023         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
23024         target-version 1.7, 1.8.
23026 2016-12-02  Daiki Ueno  <ueno@gnu.org>
23028         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
23029         GPLv2" rewriting.
23031 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
23033         * gnulib-tool (func_import): Adhere to the license guideline when
23034         rewriting the license text to "LGPLv3+ or GPLv2":
23035         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
23037 2016-12-02  Bruno Haible  <bruno@clisp.org>
23039         localcharset: Avoid theoretical buffer overrun.
23040         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
23041         return value from setlocale if it would lead to a buffer overrun.
23043 2016-12-01  Bruno Haible  <bruno@clisp.org>
23045         Relicense some modules under LGPLv2+.
23046         Kevin Cernekee's approval is in
23047         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
23048         * modules/fseterr (License): Change to LGPLv2+.
23049         * modules/mbchar (License): Likewise.
23050         * modules/mbiter (License): Likewise.
23051         * modules/mbsnlen (License): Likewise.
23052         * modules/wcwidth (License): Likewise.
23054 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23056         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
23057         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
23058         OS/2 kLIBC.
23060 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23062         alphasort, scandir: Port to OS/2 kLIBC
23063         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
23064         declaration.
23065         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
23067 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23069         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
23070         * lib/relocatable.c (relocate): Do not touch pathname if it is started
23071         with '/@unixroot'.
23073 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23075         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
23076         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
23077         OS/2 kLIBC unless TCPV40HDRS is defined.
23079 2016-11-29  Jim Meyering  <meyering@fb.com>
23081         dfa: avoid new infinite loop
23082         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
23083         * lib/dfa.c (dfastate): When constructing a new state table, we could
23084         initially declare that we had found a match, and later find that
23085         constraints eliminate that possibility, yet continue to use the
23086         now stale "matched" indicator.  That would lead to an infinite loop.
23087         The solution is to update "matched" when necessary.
23088         Introduced by commit v0.1-983-g403adf1.
23090 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23092         dfa: avoid match middle in multibyte character
23093         * lib/dfa.c (transit_state): If fails in matching single byte characters
23094         on a state including period expression in non-UTF8 multibyte locales,
23095         skip trailing bytes.
23096         (dfa_supported): Revert previous change.
23098 2016-11-27  Jim Meyering  <meyering@fb.com>
23100         dfa: avoid false match in non-UTF8 multibyte locales
23101         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
23102         as "not supported" so that callers will resort to using regex-based
23103         matcher.  This will surely hurt performance, but correctness trumps
23104         performance here, and the affected locales are less and less relevant,
23105         these days.  See grep's bug report https://bugs.gnu.org/24975.
23107 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
23109         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
23110         * lib/ptsname_r.c: Include the appropriate headers.
23111         [__sun]: Delete sys/sysmacros.h include.
23112         [_AIX || __osf__]: Likewise.
23113         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
23115 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23117         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
23118         * lib/md4.c (md4_process_bytes): The existing define is made internal
23119         in recent versions of glibc, so also use this new public define.
23120         * lib/md5.c (md5_process_bytes): Likewise.
23121         * lib/sha1.c (sha1_process_bytes): Likewise.
23122         * lib/sha256.c (sha256_process_bytes): Likewise.
23123         * lib/sha512.c (sha512_process_bytes): Likewise.
23125 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23127         maint: use a more standard return from mbrtowc test
23128         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
23129         from the test program as this often indicates an
23130         unhandled case in the test program.
23131         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
23132         (gl_MBRTOWC_SANITYCHECK): Likewise.
23133         (gl_MBRTOWC_NULL_ARG2): Likewise.
23134         (gl_MBRTOWC_NUL_RETVAL): Likewise.
23136 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23138         freopen: work around glibc bug with closed fd
23139         Work around glibc bug#15589, where freopen mishandles the case
23140         where stdin etc. are already closed.
23141         * doc/posix-functions/freopen.texi (freopen): Document the bug.
23142         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
23143         instead of __need_FILE, as the latter does not work with glibc.
23144         Include <fcntl.h>, for open flags.
23145         (rpl_freopen): Work around glibc bug.
23146         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
23147         * modules/freopen (Depends-on): Add fcntl-h.
23148         * tests/test-freopen.c (main): Test for bug.
23150 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23152         fnmatch: fix typo introduced on 2016-08-17
23153         This fixes the port to non-GCC compilers that lack __builtin_expect.
23154         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
23156         dfa: simplify with new function fillset
23157         * lib/dfa.c (fillset): New function.
23158         Use it for clarity when applicable.
23160         dfa: fix glitches with on-demand states
23161         Also, adjust commentary to better match new code.
23162         Some of these glitches predate the recent change.
23163         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
23164         only non-initial states.
23165         (dfastate): Rename locals to better match new roles.
23166         Move them into nested scopes if this is easy.
23167         Omit unnecessary calls to zeroset.
23168         Simplify test for whether to throw in the positions of state 0.
23169         Omit C99-ism (decl after statement) since Gawk still wants C89.
23170         (build_state): Omit unnecessary test and assignment.
23171         Fix some confusion that counted transition tables inaccurately
23172         and could cause a memory leak.
23173         (dfaexec_main): Redo to make it clearer to the compiler that
23174         -1 and -2 are the only negative state numbers here.
23176 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23178         dfa: addition of new state on demand
23179         * src/dfa.c (dfastate): Add argument UC, the current input character.
23180         Fill only a group including the character in transition table.
23181         (realloc_trans_if_necessary): Add the dummy state which means that a
23182         transition table is assigned but the next state is not assigned.
23183         (build_state): Return the next state.  All callers updated.
23184         (transit_state_singlebyte): If we get the dummy state,
23185         fill the transition table.
23186         (dfaexec_main): Handle the dummy state.
23187         (free_mbdata, dfafree): Consider the dummy state.
23189 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23191         srclist: sync with released gettext
23192         * config/srclist.txt: Set "release" option to the files under
23193         $GETTEXT.
23195 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23197         srclist: add "release" option
23198         * config/srclist.txt: Change the format so that the first column
23199         of each line points to the top-level directory of the source
23200         archive.
23201         * config/srclist-update: Accept "release" option that checks files
23202         from the most recently tagged revision in the source archive.
23204 2016-11-21  Bruno Haible  <bruno@clisp.org>
23206         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
23207         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23208         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
23209         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
23210         Inline and remove member function 'rpl ()' of the wrapper struct.
23212 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23214         dfa: fix logic typo
23215         Problem reported by Stephane Chazelas (Bug#24973).
23216         * lib/dfa.c (using_simple_locale): Fix typo that caused some
23217         non-simple locales like fr_FR to be treated as simple.
23219 2016-11-20  Jim Meyering  <meyering@fb.com>
23221         fix test driver leaks: exclude, malloc, realloc
23222         * tests/test-exclude.c (main): Fix trivial leak.
23223         * tests/test-malloc-gnu.c (main): Likewise.
23224         * tests/test-realloc-gnu.c (main): Likewise.
23225         With these changes, grep's tests are now leak free.
23226         I.e., running them with ASAN elicits no failure:
23227           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
23228             AM_LDFLAGS='-fsanitize=address -static-libasan' check
23230 2016-11-11  Bruno Haible  <bruno@clisp.org>
23232         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
23233         * modules/libunistring: (License): Change from LGPL to
23234         "LGPLv3+ or GPLv2".
23235         * modules/libunistring-optional: Likewise.
23236         * modules/unicase/*: Likewise.
23237         * modules/uniconv/*: Likewise.
23238         * modules/unictype/*: Likewise.
23239         * modules/unigbrk/*: Likewise.
23240         * modules/unilbrk/*: Likewise.
23241         * modules/uniname/*: Likewise.
23242         * modules/uninorm/*: Likewise.
23243         * modules/unistdio/*: Likewise.
23244         * modules/unistr/*: Likewise.
23245         * modules/uniwbrk/*: Likewise.
23246         * modules/uniwidth/*: Likewise.
23248 2016-11-12  Bruno Haible  <bruno@clisp.org>
23250         Relicense some modules under LGPLv2+.
23251         Paul Eggert's approval is in
23252         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
23253         Eric Blake's approval is in
23254         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
23255         Ludovic Courtès's approval is in
23256         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
23257         * modules/isnand-nolibm (License): Change to LGPLv2+.
23258         * modules/isnanf-nolibm (License): Likewise.
23259         * modules/isnanl-nolibm (License): Likewise.
23261 2016-11-19  Bruno Haible  <bruno@clisp.org>
23263         Relicense some modules under LGPLv2+.
23264         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
23265         modules/vasnprintf.
23266         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
23267         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
23268         All other significant changes to the files in lib/ of these modules
23269         are from me.
23270         * modules/memcmp2 (License): Change to LGPLv2+.
23271         * modules/amemxfrm (License): Likewise.
23272         * modules/fpieee (License): Likewise.
23273         * modules/fpucw (License): Likewise.
23274         * modules/frexp-nolibm (License): Likewise.
23275         * modules/frexpl-nolibm (License): Likewise.
23276         * modules/printf-frexp (License): Likewise.
23277         * modules/printf-frexpl (License): Likewise.
23278         * modules/printf-safe (License): Likewise.
23279         * modules/signbit (License): Likewise.
23281 2016-11-17  Bruno Haible  <bruno@clisp.org>
23283         Enable Unicode decoder safety unconditionally.
23284         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
23285         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
23286         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23287         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23288         * lib/unistr/u8-prev.c (u8_prev): Likewise.
23289         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
23290         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
23291         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
23292         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
23293         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
23294         * lib/unistr/u16-prev.c (u16_prev): Likewise.
23295         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
23296         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
23297         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
23298         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
23299         * lib/unistr/u32-prev.c (u32_prev): Likewise.
23300         * lib/unistr/u32-next.c (u32_next): Likewise.
23301         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
23302         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
23303         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23304         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23305         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
23306         CONFIG_UNICODE_SAFETY tests unconditionally.
23307         * tests/unistr/test-u32-mblen.c (main): Likewise.
23308         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
23309         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
23310         * tests/unistr/test-u32-next.c (main): Likewise.
23311         * tests/unistr/test-u32-strmblen.c (main): Likewise.
23312         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
23313         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
23314         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
23315         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
23316         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23317         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
23318         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
23319         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23320         * lib/unistr/u16-check.c (u16_check): Update comment.
23321         * NEWS: Mention the changes that callers should be aware of.
23323 2016-11-19  Bruno Haible  <bruno@clisp.org>
23325         relocatable-prog-wrapper: Fix breakage on Cygwin.
23326         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
23327         (Depends-on): Remove intprops.
23328         * lib/relocwrapper.c: Update dependency tree.
23329         (strerror): Undefine.
23330         * build-aux/install-reloc (func_create_wrapper): Do not compile
23331         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
23333 2016-11-19  Bruno Haible  <bruno@clisp.org>
23335         strerror: Make it compile in C++ mode.
23336         * lib/strerror.c (strerror): Ignore the return value of memcpy().
23338 2016-11-15  Pedro Alves  <palves@redhat.com>
23340         sys_time: add gnulib::timeval for C++
23341         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
23342         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
23343         timeval macro.
23345 2016-11-14  Pedro Alves  <palves@redhat.com>
23347         snippet/c++defs: fix real-floating arg functions in C++ mode
23348         Also, define isfinite, isinf, isnan, signbit in the gnulib
23349         namespace instead of in the global namespace.
23350         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
23351         (_GL_END_NAMESPACE): New.
23352         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
23353         (isfinite, isinf, isnan, signbit) [__cplusplus &&
23354         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
23355         instead of in the global namespace.
23356         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
23357         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
23358         of in the global namespace.
23360 2016-11-13  Jim Meyering  <meyering@fb.com>
23362         strftime: don't use __THROW
23363         Each use of __THROW would provoke this from gcc-7-to-be:
23365           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
23366             on unit local functions [-Wattributes]
23367           static int iso_week_days (int, int) __THROW;
23368           ^~~~~~
23369         * lib/strftime.c (__THROW): Don't define.
23370         Remove each use of __THROW.
23371         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
23372         (tm_diff, iso_week_days, __strftime_internal): Likewise.
23374 2016-11-14  Paul Eggert  <eggert@union>
23376         obstack: port to gcc -fcheck-pointer-bounds
23377         Problem found by 'make check' failure on bleeding-edge coreutils
23378         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
23379         6.2.0-5ubuntu12), configured via "./configure
23380         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
23381         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
23382         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
23383         New macro, copied from fts_.h.
23384         (struct _obstack_chunk.contents): Use it.
23386 2016-11-14  Eric Blake  <eblake@redhat.com>
23388         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
23389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
23390         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
23392 2016-11-14  Pádraig Brady  <P@draigBrady.com>
23394         strptime: fix compile error in recent change
23395         * lib/strptime.c (__strptime_internal): Fix ported code.
23397 2016-11-11  Bruno Haible  <bruno@clisp.org>
23399         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
23400         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
23401         (func_import): Extend determination of license_incompatibilities.
23402         (func_create_testdir): Extend table of license compatibility. Handle
23403         also the licenses GPLv3+, GPL, LGPLv3+.
23405 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23407         strftime: tune %q
23408         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
23410         Merge strftime.c changes from glibc
23411         This incorporates:
23412         2007-10-16 [BZ #5184] Add tzset_called argument
23413         2008-06-13 [BZ #6612] pass reference to tzset_called around
23414         2009-10-30 Implement Burmese language locale for Myanmar
23415         2010-01-09 Add support for XPG7 testing
23416         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
23417         2015-10-20 Convert miscellaneous function definitions to prototype style
23418         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
23419         it anyway and this lessens the difference between gnulib and glibc.
23420         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
23421         (__THROW): Define if standard headers do not.
23422         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
23423         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
23424         Declare with __THROW.
23425         (__strftime_internal): Rename from strftime_case_. Add arg for
23426         whether tzset is called.  All uses changed.  Call tzset at most
23427         once.  Allow %OC, for Burmese.
23428         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
23429         Don't assume values are in range.
23431 2016-11-12  Eric Blake  <eblake@redhat.com>
23433         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
23434         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
23435         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
23436         different value.
23438 2006-11-12  Pedro Alves  <palves@redhat.com>
23440         Fix gnulib C++ namespace support and std::frexp
23441         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
23442         _GL_CXXALIASWARN.
23444 2006-11-12  Pedro Alves  <palves@redhat.com>
23446         GNULIB_NAMESPACE::func need not pull in rpl_func
23447         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23448         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
23449         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
23450         struct instead of a function pointer.
23452 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
23454         manywarnings: fix -Wno-missing-field-initializers detection
23455         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
23456         to be independent of -Wunused-variable.  I.E. ensure the latter
23457         warning doesn't occur so that detection of the former is accurate.
23459 2016-11-05  Pádraig Brady  <pbrady@fb.com>
23461         strftime,strptime: support %q to represent the quarter
23462         * lib/strftime.c (strftime_case_): Add %q case.
23463         * lib/strptime.c (__strptime_internal): Likewise.
23464         * tests/test-strftime.c (quarter_test): A new test case.
23466 2016-11-03  Eric Blake  <eblake@redhat.com>
23468         bootstrap: Fix get_version() for AIX 5.3
23469         * build-aux/bootstrap (get_version): Factor out sed script, since
23470         indented comments choke AIX 5.3 sed.
23471         Reported-by: Michael Felt <aixtools@gmail.com>
23473 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23475         intprops: port to older XL C
23476         Problem reported by Alexander Samoilov in:
23477         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
23478         http://savannah.nongnu.org/bugs/?49448
23479         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
23480         Define to 1 only for XL C 12.1 or later, since this bug
23481         occurs in XL C for AIX 6.0 but not in 12.1.
23483 2016-11-02  Pádraig Brady  <P@draigBrady.com>
23485         backupfile: initialize default suffix within the implementation
23486         * lib/backupfile.c (find_backup_file_name): Initialize the
23487         global variable here, to simplify usage, and to only call
23488         getenv() when needed.
23490 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23492         futimens: remove FIXME for old Linux kernels
23493         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
23494         this in 2012" FIXME, like that for utimensat.
23496         utimensat: remove FIXME for old Linux kernels
23497         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
23498         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
23499         this in 2012" FIXME, by assuming the file system bug is absent
23500         unless demonstrated to be present.  We no longer need to worry
23501         about Linux kernel 2.6.32 when building with newer kernels.
23503 2016-10-16  Bruno Haible  <bruno@clisp.org>
23505         qsort_r: Fix macrology for platforms that lack the function.
23506         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
23507         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
23508         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
23509         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
23510         not exist.
23511         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
23512         the function exists.
23513         * modules/qsort_r: Add comments.
23515 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23517         sys_types: fix Texinfo typos
23518         * doc/glibc-functions/gnu_dev_major.texi:
23519         * doc/glibc-functions/gnu_dev_makedev.texi:
23520         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
23522 2016-10-26  John David Anglin  <dave.anglin@bell.net>
23524         getprogname: port to HP-UX
23525         See Bug#24805.
23526         * lib/getprogname.c (getprogname) [__hpux]: Port.
23527         * tests/test-getprogname.c (STREQ) [__hpux]:
23528         Special-case for HP-UX limitations on program name length.
23530 2016-10-20  Bruno Haible  <bruno@clisp.org>
23532         Update doc about target platforms.
23533         * doc/gnulib-intro.texi (Target Platforms): Update list.
23535 2016-10-15  Bruno Haible  <bruno@clisp.org>
23537         opendir, readdir, closedir: Relicense under LGPLv2+.
23538         * modules/opendir (License): Change to LGPLv2+.
23539         * modules/readdir (License): Likewise.
23540         * modules/closedir (License): Likewise.
23542 2016-10-16  Bruno Haible  <bruno@clisp.org>
23544         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23545         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
23546         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
23547         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
23548         HAVE_DECL_STRERROR_R.
23550 2016-10-16  Bruno Haible  <bruno@clisp.org>
23552         Make the 'argp' module work without the 'error' module.
23553         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
23555 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23557         diffseq: restore TOO_EXPENSIVE heuristic
23558         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
23559         (Bug#24715).  The simplest solution is to restore the
23560         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
23561         using a higher threshold to avoid Bug#16848 on smaller files.
23562         * lib/diffseq.h (struct context): Restore member too_expensive.
23563         (struct partition): Restore members lo_minimal, hi_minimal.
23564         (diag, compareseq): Restore arg find_minimal.  All uses changed.
23565         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
23566         1993 to make 'diff' run faster (but not as well) on large inputs,
23567         but use a threshold of 4096 instead of the old 256.
23568         * lib/fstrcmp.c (strcmp_bounded):
23569         * lib/git-merge-changelog.c (compute_differences):
23570         Adjust to diffseq.h changes.
23572 2016-10-22  Bruno Haible  <bruno@clisp.org>
23574         iconv: Avoid compilation error when bootstrapping GNU libiconv.
23575         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
23576         declaration yet, define ICONV_CONST to empty.
23578 2016-10-15  Bruno Haible  <bruno@clisp.org>
23580         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
23581         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
23582         module.
23584 2016-10-16  Bruno Haible  <bruno@clisp.org>
23586         system-quote tests: Avoid compiler warning on AIX.
23587         * tests/test-system-quote-child.c (fopen): Redefine like the system's
23588         <stdio.h> does.
23590 2016-10-16  Bruno Haible  <bruno@clisp.org>
23592         Fix some "gcc -Wall" warnings.
23593         * tests/test-ffsl.c (main): Use variable x, not i.
23594         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
23595         freopen.
23596         * tests/test-sethostname1.c (main): Explicitly ignore the return value
23597         of sethostname.
23599 2016-10-16  Bruno Haible  <bruno@clisp.org>
23601         gnulib-tool: Make --create-testdir on all modules work again.
23602         * gnulib-tool (func_create_testdir): Don't include the
23603         non-recursive-gnulib-prefix-hack module.
23605 2016-10-21  Daiki Ueno  <ueno@gnu.org>
23607         libunistring: change the maintainer to 'all'
23608         * modules/gen-uni-tables, modules/libunistring:
23609         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
23610         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
23611         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
23612         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
23613         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
23614         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
23615         * modules/uniwidth/*: Change the maintainer to 'all'.
23617 2016-10-16  Bruno Haible  <bruno@clisp.org>
23619         Simplify "configure: checking ..." messages.
23620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
23621         AC_MSG_NOTICE.
23622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23624 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23626         quotearg-tests: pacify gcc -Wall
23627         Problem reported by Bruno Haible in:
23628         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
23629         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
23630         * tests/test-quotearg.h: ... from here.
23632 2016-10-20  Pádraig Brady  <P@draigBrady.com>
23634         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
23635         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
23636         Needed on Centos <= 4.
23638 2016-10-20  Jim Meyering  <meyering@fb.com>
23640         printf.m4: fix a bug in detecting printf %j support
23641         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
23642         uintmax_t is defined in neither stdint.h nor inttypes.h.
23643         Before, this macro might have mistakenly set
23644         gl_cv_func_printf_sizes_c99=yes on such a system.
23645         Spotted by Zev Weiss.
23647 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
23649         sched: substitute HAVE_SYS_CDEFS_H too
23650         Problem reported by Tom G. Christensen in:
23651         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
23652         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
23653         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
23655 2016-10-19  Pádraig Brady  <P@draigBrady.com>
23657         quotearg: never write beyond the returned length
23658         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
23659         scan of the string when we initially encounter a single quote when
23660         shell quoting, so that if we then switch to a more concise quoting method
23661         we will not have written beyond that returned length.
23662         This is significant for sh-quote, which has separate routines
23663         to determine the length and do the actual quoting.
23664         * tests/test-quotearg.h: Reinstate the buffer bounds checking
23665         now that we never write more than the returned length.
23667 2016-10-18  Bruno Haible  <bruno@clisp.org>
23669         getprogname tests: Avoid failure in packages that use libtool.
23670         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23671         Based on a patch by Jim Meyering.
23673 2016-10-16  Bruno Haible  <bruno@clisp.org>
23675         getprogname: Fix test failure on Cygwin. Comments.
23676         * lib/getprogname.h: Add comments.
23677         * lib/getprogname.c: Add comments. Fix #elif indentation.
23678         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23679         ".exe" suffix.
23681 2016-10-16  Bruno Haible  <bruno@clisp.org>
23683         Make sure the libunistring detection rejects older versions with a
23684         known bug.
23685         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23686         * modules/unistr/u16-strtok (configure.ac): Likewise.
23687         * modules/unistr/u32-strtok (configure.ac): Likewise.
23689 2016-10-18  Bruno Haible  <bruno@clisp.org>
23691         sh-quote, system-quote: revert regression of unit test.
23692         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23693         * tests/test-system-quote-main.c (check_one): Likewise.
23695 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23697         quotearg: fix stale tests
23698         * tests/test-quotearg.c [locale_results]: Add the missing str7
23699         entries to the expected results.
23700         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23701         don't write beyond the returned length, since that's no longer the
23702         case if we switch to a more concise quoting style.
23703         * tests/test-sh-quote.c (check_one): Likewise.
23704         (main): Adjust for the new more concise quoting style.
23705         Reported by Bruno Haible.
23707 2016-10-16  Jim Meyering  <meyering@fb.com>
23709         non-recursive-gnulib-prefix-hack: fix inconsequential typo
23710         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
23711         to "$1".  This macro is always invoked with $1 == lib.
23712         Spotted by Bruno Haible
23714 2016-10-16  Bruno Haible  <bruno@clisp.org>
23716         Fix a test crash.
23717         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
23718         fails.
23720 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23722         test-limits-h: suppress -Woverlength-strings
23723         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
23725 2016-10-15  Bruno Haible  <bruno@clisp.org>
23727         gettime, timespec, utimens: Relicense under LGPL.
23728         * modules/gettime (License): Change to LGPL.
23729         * modules/timespec (License): Likewise.
23730         * modules/utimens (License): Likewise.
23732 2016-10-14  Bruno Haible  <bruno@clisp.org>
23733             Pádraig Brady  <P@draigBrady.com>
23735         canonicalize-lgpl: Support the case path_max > INT_MAX.
23736         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
23737         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
23739 2016-10-13  Jim Meyering  <meyering@fb.com>
23741         getprogname: IBM z/OS: avoid NULL-dereference
23742         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
23743         upon strdup failure.
23745 2016-10-12  Jim Meyering  <meyering@fb.com>
23747         test-stdint: use _GL_VERIFY rather than "verify" for some tests
23748         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
23749         and an abbreviated diagnostic rather than verify with the full one,
23750         because the full-length strings would evoke warnings from gcc with
23751         -Woverlength-strings.
23753 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23755         stdint: port SIZE_MAX to glibc s390
23756         Problem reported by Eric Blake in:
23757         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
23758         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
23759         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
23760         correct type, if possible.
23762 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
23764         getprogname: port to IBM z/OS
23765         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
23767 2016-10-11  Jim Meyering  <meyering@fb.com>
23769         maint: remove stray space after "." in AC_DEFINE comment.
23770         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
23771         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23773 2016-10-05  Jim Meyering  <meyering@fb.com>
23775         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23776         * lib/long-options.c (parse_long_options): Add a break statement
23777         to avoid this new warning/failure:
23778         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23779           --create-testdir --dir=/t/x --with-tests --test long-options
23780         ../../gllib/long-options.c: In function 'parse_long_options':
23781         ../../gllib/long-options.c:66:12: error: this statement may \
23782           fall through [-Werror=implicit-fallthrough]
23783                    (*usage_func) (EXIT_SUCCESS);
23784                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23786 2016-10-05  Jim Meyering  <meyering@fb.com>
23788         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23789         Testing this module would fail when using GCC 7 like this:
23790         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23791           --dir=/tmp/x --with-tests --test utimecmp
23792         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23793         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23794           [-Werror=bool-operation]
23795                          time_t s = src_s & ~ (res == 2 * BILLION);
23796                                             ^
23797         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23798           [-Werror=bool-operation]
23799                src_s &= ~ (res == 2 * BILLION);
23800                         ^
23801         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23802         Instead, make it explicit that we intend to apply it to 0 or 1.
23804 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23806         dfa: save memory for states
23807         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23808         states if dfa has a lot of caches.
23810 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23812         wchar, wctype-h: fix for MinGW 3.22.2
23813         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23814         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23815         when included from <string.h>.
23816         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23817         convention for MinGW 3.22.2, to solve issues with their
23818         wctype.h when included from <ctype.h>.
23820 2016-10-05  Jim Meyering  <meyering@fb.com>
23822         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23823         * lib/long-options.c (parse_long_options): Add a break statement
23824         to avoid this new warning/failure:
23825         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23826           --create-testdir --dir=/t/x --with-tests --test long-options
23827         ../../gllib/long-options.c: In function ‘parse_long_options’:
23828         ../../gllib/long-options.c:66:12: error: this statement may \
23829           fall through [-Werror=implicit-fallthrough]
23830                    (*usage_func) (EXIT_SUCCESS);
23831                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23833         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23834         Testing this module would fail when using GCC 7 like this:
23835         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23836           --dir=/tmp/x --with-tests --test utimecmp
23837         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23838         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23839           [-Werror=bool-operation]
23840                          time_t s = src_s & ~ (res == 2 * BILLION);
23841                                             ^
23842         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23843           [-Werror=bool-operation]
23844                src_s &= ~ (res == 2 * BILLION);
23845                         ^
23846         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23847         Instead, make it explicit that we intend to apply it to 0 or 1.
23849 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23851         quotearg: minimize shell quoting using double quotes
23852         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23853         quote in encountered then use double quotes (c style quoting)
23854         when possible, as it simplifies the quoting.
23855         * tests/test-quotearg-simple.c: Add test cases.
23856         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23857         for the fact we now may write beyond the returned length.
23859 2016-10-02  Jim Meyering  <meyering@fb.com>
23861         vasnprintf.c: avoid spurious warning from GCC 7
23862         The presence of cpp directives renders this "FALLTHROUGH" comment
23863         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23864         from GCC 7 built from git on 2016-10-02.
23865         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23866         directives, so that it takes effect once again.  This is clearly
23867         not a proper change, and I will revert it once this bug is fixed:
23868         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23870 2016-10-01  Jim Meyering  <meyering@fb.com>
23872         getprogname: correct the test for a __progname variable
23873         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23874         and AC_LINK_IFELSE to check for a global __progname.  If found,
23875         define HAVE_VAR___PROGNAME.
23876         * lib/getprogname.c (getprogname): Reflect the new name of the
23877         feature- checked preprocessor symbol:
23878         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23880 2016-09-28  Jim Meyering  <meyering@fb.com>
23882         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23883         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23884         fall-through case with a /* fallthrough */ comment.
23886         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23887         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23888         /* fallthrough */ comment.
23890         getprogname: avoid __progname vs program_invocation_short_name pitfall
23891         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23892         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23893         not with Fedora 24's glibc-2.23.1-10.
23894         * lib/getprogname.c (__progname): Move this declaration down...
23895         (getprogname): ... into the #elif block where used, and make it
23896         explicitly "extern".
23898         getprogname: port to OpenBSD 5.1
23899         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23900         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23901         * modules/getprogname (configure.ac): Move most of this code...
23902         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23903         increment serial number, and add a test for __progname.
23904         https://bugs.gnu.org/24562
23905         Reported by Nelson H. F. Beebe.
23907 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23909         sched: port to GCC 6.2.1 on macOS Sierra
23910         Problem reported by Denis Davydov in:
23911         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23912         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23913         Include <sys/cdefs.h> before <sched.h>.
23914         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23915         so that we needn’t worry about the sched.h include bug here.
23916         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23917         and include it before <sched.h> if it exists, when
23918         checking for <sched.h>.
23920         tests/init.sh: port Alpine fix to AIX 7.1
23921         * tests/init.sh (compare_): When attempting to use diff -U3,
23922         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23923         diff -u not outputting a space after leading '+', as the users
23924         of 'compare' should not be that picky about its output format.
23925         In the AIX 7.1 case, return with diff exit status (or with 2 if
23926         trouble), instead of some random nonzero exit status.
23927         * tests/test-init.sh (test_compare): Remove space after leading
23928         '+', so that AIX 7.1 'diff' passes the test.
23930 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23932         nl_langinfo: pacify GCC
23933         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23934         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23936         stdint: also set GL_GENERATE_LIMITS_H
23937         Problem reported by Jim Meyering in:
23938         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23939         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23941         limits-h, stdint: Don't assume extensions, fix typo
23942         * m4/limits-h.m4 (gl_LIMITS_H):
23943         * m4/stdint.m4 (gl_STDINT_H):
23944         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23945         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23946         reported by Jim Meyering in:
23947         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23949 2016-09-21  Jim Meyering  <meyering@fb.com>
23951         getprogname: port to AIX
23952         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23953         and strdup to obtain a short program name string.  Using code from
23954         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23955         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23956         Assaf Gordon reported that this new file would fail to compile on
23957         AIX-7.1 32bit.
23959 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23961         extensions: fix typo in comment
23962         * m4/extensions.m4: Sync from Autoconf master.
23964         stdint: support new _WIDTH macros
23965         * doc/posix-headers/stdint.texi: Document this.
23966         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23967         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23968         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23969         * modules/stdint (Depends-on): Add limits-h.
23970         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23971         * modules/stdint-tests (Depends-on): Add extensions, so that
23972         INTMAX_MAX etc. are defined.
23973         * tests/test-stdint.c: Verify the new macros.
23975         limits-h: new module
23976         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23977         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23978         * doc/posix-headers/limits.texi: Document new module.
23979         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23980         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23982         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23983         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23984         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23985         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23987 2016-09-15  Eric Blake  <eblake@redhat.com>
23989         sys_types: avoid glibc 2.25 warnings about major()
23990         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23991         older autoconf.
23992         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23993         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23994         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23995         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23997         mountlist: include sysmacros.h for glibc
23998         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23999         AC_HEADER_MAJOR.
24000         * lib/mountlist.c (includes): Use correct headers.
24002 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24004         extensions: port to more ISO C TSes
24005         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
24006         master, to add support for more recent ISO C TRs and TSes.
24008 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24010         intprops: new macro TYPE_WIDTH
24011         * lib/intprops.h (TYPE_WIDTH): New macro.
24012         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
24013         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
24014         * lib/parse-datetime.y (parse_datetime2):
24015         Use it.
24017         extensions: port to recent ISO C TRs
24018         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24019         Sync from Autoconf master, to add support for recent ISO C TRs.
24020         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
24021         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
24022         the MinGW option is not an extension.
24024 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24026         dfa: port to Solaris 9
24027         Problems reported by Tom G. Christensen in:
24028         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
24029         * modules/dfa (Depends-on): Add isblank.
24030         * modules/dfa-tests (dfa_match_aux_LDADD):
24031         Rename from test_stat_LDADD, to fix typo.
24032         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
24034 2016-09-10  Jim Meyering  <meyering@fb.com>
24036         strverscmp: avoid link failure on OS X
24037         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
24038         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
24040 2016-08-16  Jim Meyering  <meyering@fb.com>
24042         dfa: new module, importing grep's DFA matcher
24043         Since grep's DFA matcher is now being used by two gnulib-enabled
24044         projects, grep and sed, it makes sense to version-control its
24045         sources and unit tests in one place: here.
24046         * modules/dfa: New module.
24047         * modules/dfa-tests: New file.
24048         * lib/dfa.c: New file, from grep.
24049         * lib/dfa.h: Likewise.
24050         * lib/localeinfo.c: Likewise.
24051         * lib/localeinfo.h: Likewise.
24052         * tests/dfa-match-aux.c: Likewise.
24053         * tests/dfa-invalid-char-class.sh: Likewise.
24054         * tests/dfa-match.sh: Likewise, with minor changes.
24055         * MODULES.html.sh (Misc): Add "dfa" to this list.
24057 2016-09-09  Jim Meyering  <meyering@fb.com>
24059         getprogname-tests: don't depend on assert-h
24060         * modules/getprogname-tests (Depends-on): Remove assert-h.
24061         It was not needed, and in fact would cause build failure for
24062         coreutils on some systems.  Reported by Assaf Gordon in https:
24063         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
24065 2016-09-07  Jim Meyering  <meyering@fb.com>
24067         getprogname-tests: work also when EXEEXT is nonempty
24068         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
24069         * tests/test-getprogname.c (main): Use it.
24070         Suggested by Gisle Vanem.
24072 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
24074         getprogname: fix errors in previous change
24075         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
24076         s/program_invocation_name/base/
24077         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
24079 2016-09-08  Pádraig Brady  <P@draigBrady.com>
24081         parse-datetime: restrict debug output to input string
24082         * lib/parse-datetime.y (parse_datetime2): If we parse
24083         all of the input but determine it's invalid, ensure
24084         we don't output the now invalid input pointer.
24085         This issue was seen with `date -d 'now +1'`.
24087 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24089         flexmember: new macro FLEXALIGNOF
24090         * lib/flexmember.h: Include <stddef.h>, for offsetof.
24091         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
24092         this macro.  Update comments.
24094 2016-09-07  Jim Meyering  <meyering@fb.com>
24096         getprogname: port to systems with __argv (mingw, msvc)
24097         * lib/getprogname.c (getprogname): Include "dirname.h" and use
24098         last_component: more general than open coding it with hard-coded "/".
24099         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
24100         * modules/getprogname (Depends-on): Add dirname-lgpl.
24101         (configure.ac): Check for __argv in <stdlib.h>.
24102         * modules/getprogname-tests: New file.
24103         * tests/test-getprogname.c: New file.
24104         Suggested by Gisle Vanem in
24105         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
24107 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24109         flexmember: port better to GCC + valgrind
24110         With a char[] flexible array member in a struct with nontrivial
24111         alignment, GCC-generated code can access past the end of the
24112         array, because GCC assumes there are padding bytes to get the
24113         struct aligned.  So the common idiom of malloc (offsetof (struct
24114         s, m), n) does not properly allocate an n-byte trailing member, as
24115         malloc’s argument should be the next multiple of alignof (struct s).
24116         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24117         Although C11 apparently permits this GCC optimization (i.e., there
24118         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
24119         See the thread containing:
24120         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
24121         * lib/flexmember.h: New file.
24122         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
24123         * lib/localename.c, lib/time_rz.c:
24124         Include flexmember.h.
24125         * lib/fnmatch_loop.c (struct patternlist):
24126         * lib/localename.c (struct hash_node):
24127         Use FLEXIBLE_ARRAY_MEMBER.
24128         * lib/fnmatch_loop.c (EXT):
24129         * lib/fts.c (fts_alloc):
24130         * lib/glob.c (glob_in_dir):
24131         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24132         * lib/localename.c (gl_lock_define_initialized):
24133         * lib/time_rz.c (tzalloc):
24134         Use FLEXSIZEOF instead of offsetof.
24135         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24136         Check that the size of the struct can be taken.
24137         * modules/flexmember (Files): Add lib/flexmember.h.
24138         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
24139         Add flexmember.
24141 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24143         getprogname: port to Solaris 10
24144         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
24145         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
24146         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
24148         stdalign: correct mistake in alignof doc
24149         Problem reported by Joseph Myers in:
24150         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
24151         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
24152         alignof(S) where S is a structure containing a flexible array
24153         member.  The Gnulib substitute does not support this, but C11 does.
24155 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24157         main.mk: remove sc_program_name, since there is no more need to
24158         use set_program_name in tools (getprogname is enough for most
24159         of the cases).
24160         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
24161         * top/maint.mk (sc_program_name): Remove.
24163 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24165         Port tests away from progname, since modules that need the
24166         program name already depend on getprogname.
24167         * modules/acl-tests (Depends-on): Remove progname.
24168         * modules/argmatch (Depends-on): Likewise.
24169         * modules/argmatch-tests (Depends-on): Likewise.
24170         * modules/argp-tests (Depends-on): Likewise.
24171         * modules/argp-version-etc-tests (Depends-on): Likewise.
24172         * modules/array-list-tests (Depends-on): Likewise.
24173         * modules/array-oset-tests (Depends-on): Likewise.
24174         * modules/avltree-list-tests (Depends-on): Likewise.
24175         * modules/avltree-oset-tests (Depends-on): Likewise.
24176         * modules/avltreehash-list-tests (Depends-on): Likewise.
24177         * modules/carray-list-tests (Depends-on): Likewise.
24178         * modules/copy-file-tests (Depends-on): Likewise.
24179         * modules/exclude-tests (Depends-on): Likewise.
24180         * modules/fchownat-tests (Depends-on): Likewise.
24181         * modules/fdopendir-tests (Depends-on): Likewise.
24182         * modules/filenamecat-tests (Depends-on): Likewise.
24183         * modules/fstatat-tests (Depends-on): Likewise.
24184         * modules/fstrcmp-tests (Depends-on): Likewise.
24185         * modules/linked-list-tests (Depends-on): Likewise.
24186         * modules/linkedhash-list-tests (Depends-on): Likewise.
24187         * modules/mkdirat-tests (Depends-on): Likewise.
24188         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
24189         * modules/nonblocking-socket-tests (Depends-on): Likewise.
24190         * modules/obstack-printf-tests (Depends-on): Likewise.
24191         * modules/openat-tests (Depends-on): Likewise.
24192         * modules/parse-datetime-tests (Depends-on): Likewise.
24193         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
24194         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
24195         * modules/quotearg-simple-tests (Depends-on): Likewise.
24196         * modules/quotearg-tests (Depends-on): Likewise.
24197         * modules/rbtree-list-tests (Depends-on): Likewise.
24198         * modules/rbtree-oset-tests (Depends-on): Likewise.
24199         * modules/rbtreehash-list-tests (Depends-on): Likewise.
24200         * modules/spawn-pipe-tests (Depends-on): Likewise.
24201         * modules/system-quote-tests (Depends-on): Likewise.
24202         * modules/uniname/uniname-tests (Depends-on): Likewise.
24203         * modules/uninorm/nfc-tests (Depends-on): Likewise.
24204         * modules/uninorm/nfd-tests (Depends-on): Likewise.
24205         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
24206         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
24207         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
24208         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
24209         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
24210         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
24211         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
24212         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
24213         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
24214         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
24215         * modules/unlinkat-tests (Depends-on): Likewise.
24216         * modules/version-etc-tests (Depends-on): Likewise.
24217         * modules/xalloc-die-tests (Depends-on): Likewise.
24218         * modules/xmemdup0-tests (Depends-on): Likewise.
24219         * modules/xprintf-posix-tests (Depends-on): Likewise.
24220         * modules/xvasprintf-tests (Depends-on): Likewise.
24221         * tests/test-argmatch.c: Do not include progname.h.
24222         (main) Stop calling set_program_name.
24223         * tests/test-argp-version-etc.c: Likewise.
24224         * tests/test-argp.c: Likewise.
24225         * tests/test-argv-iter.c: Likewise.
24226         * tests/test-array_list.c: Likewise.
24227         * tests/test-array_oset.c: Likewise.
24228         * tests/test-avltree_list.c: Likewise.
24229         * tests/test-avltree_oset.c: Likewise.
24230         * tests/test-avltreehash_list.c: Likewise.
24231         * tests/test-carray_list.c: Likewise.
24232         * tests/test-copy-acl.c: Likewise.
24233         * tests/test-copy-file.c: Likewise.
24234         * tests/test-exclude.c: Likewise.
24235         * tests/test-fchownat.c: Likewise.
24236         * tests/test-fdopendir.c: Likewise.
24237         * tests/test-filenamecat.c: Likewise.
24238         * tests/test-fstatat.c: Likewise.
24239         * tests/test-fstrcmp.c: Likewise.
24240         * tests/test-linked_list.c: Likewise.
24241         * tests/test-linkedhash_list.c: Likewise.
24242         * tests/test-mkdirat.c: Likewise.
24243         * tests/test-nonblocking-pipe-main.c: Likewise.
24244         * tests/test-nonblocking-socket-main.c: Likewise.
24245         * tests/test-obstack-printf.c: Likewise.
24246         * tests/test-openat.c: Likewise.
24247         * tests/test-parse-datetime.c: Likewise.
24248         * tests/test-pipe-filter-gi1.c: Likewise.
24249         * tests/test-pipe-filter-gi2-main.c: Likewise.
24250         * tests/test-pipe-filter-ii1.c: Likewise.
24251         * tests/test-pipe-filter-ii2-main.c: Likewise.
24252         * tests/test-quotearg-simple.c: Likewise.
24253         * tests/test-quotearg.c: Likewise.
24254         * tests/test-rbtree_list.c: Likewise.
24255         * tests/test-rbtree_oset.c: Likewise.
24256         * tests/test-rbtreehash_list.c: Likewise.
24257         * tests/test-sameacls.c: Likewise.
24258         * tests/test-set-mode-acl.c: Likewise.
24259         * tests/test-spawn-pipe-main.c: Likewise.
24260         * tests/test-system-quote-main.c: Likewise.
24261         * tests/test-unlinkat.c: Likewise.
24262         * tests/test-version-etc.c: Likewise.
24263         * tests/test-xalloc-die.c: Likewise.
24264         * tests/test-xfprintf-posix.c: Likewise.
24265         * tests/test-xmemdup0.c: Likewise.
24266         * tests/test-xprintf-posix.c: Likewise.
24267         * tests/test-xvasprintf.c: Likewise.
24268         * tests/uniname/test-uninames.c: Likewise.
24269         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24270         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24271         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24272         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24273         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24274         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24275         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24276         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24277         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24278         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24279         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24280         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24281         * tests/test-c-stack.c: (program_name): Do not define.
24282         (main): Do not set program_name.
24283         * tests/test-closein.c: Likewise.
24284         * tests/test-xstrtol.c: Likewise.
24285         * tests/test-yesno.c: Likewise.
24287 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24289         Port modules to use getprogname explicitly, instead of requiring
24290         progname to be used (or program_name to be provided).
24291         * lib/argmatch.c: Do not include progname.h.
24292         [TEST] (program_name): Do not define.
24293         [TEST] (main): Call getprogname instead of using program_name.
24294         * lib/c-stack.c: Do not include progname.h.
24295         (program_name): Do not define.
24296         (die): Call getprogname instead of using program_name.
24297         * lib/chdir-long.c: Do not include progname.h.
24298         [TEST_CHDIR] (main): Do not set program_name.
24299         * lib/error.c [!_LIBC]: Include progname.h.
24300         [!_LIBC] (program_name): Define using getprogname.
24301         * lib/euidaccess.c: Do not include progname.h.
24302         [TEST] (main): Do not set program_name.
24303         * lib/git-merge-changelog.c: Include getprogname.h instead of
24304         progname.h.
24305         (usage): Call getprogname instead of using program_name.
24306         (main): Likewise.  Stop calling set_program_name.
24307         * lib/group-member.c: Do not include progname.h.
24308         [TEST] (main): Do not set program_name.
24309         * modules/argmatch (Depends-on): Add getprogname.
24310         * modules/c-stack (Depends-on): Likewise.
24311         * modules/error (Depends-on): Likewise.
24312         * modules/git-merge-changelog (Depends-on): Likewise.
24313         Also remove progname.
24315 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
24317         * NEWS: Document the deprecation of the 'progname' module.
24319 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24321         getprogname: new module
24322         This provides a LGPL module for getting the name of the current
24323         program, using the same API found on *BSD systems.
24324         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
24325         * modules/getprogname: New files.
24326         * MODULES.html.sh (Misc): Add getprogname.
24328 2016-09-02  Jim Meyering  <meyering@fb.com>
24330         manywarnings: add -fno-common
24331         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
24332         to the list.  Quoting the manual, "Compiling with -fno-common is
24333         useful on targets for which it provides better performance, or if
24334         you wish to verify that the program will work on other systems that
24335         always treat uninitialized variable declarations this way [putting
24336         it in the data section]."  If diffutils had been using this sooner,
24337         it would have prevented this duplicate declaration issue:
24338         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
24340 2016-08-31  Simon Josefsson  <simon@josefsson.org>
24342         parse-datetime: Fix typo.
24343         * lib/parse-datetime.y (parse_datetime2): Fix typo.
24345 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24347         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
24348         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
24349         GCC 5 and 6 that have __builtin_sub_overflow but not
24350         __builtin_sub_overflow_p.  With the recent changes, these
24351         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
24352         implementation than with INT_SUBTRACT_OVERFLOW implementation,
24353         since the former needs just one runtime comparison whereas the
24354         latter needs two.
24356         strverscmp: sync with glibc
24357         Although this doesn't exactly synchronize with glibc
24358         byte-for-byte, it makes the code behave the same as glibc.
24359         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
24360         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
24361         difference shouldn't matter in practical use.  All uses changed
24362         back to isdigit.
24363         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
24364         (next_state): Now unsigned char array; redo elements.
24365         (result_type): Now signed char array; redo elements.
24366         (__strverscmp): Fix glibc bug 9913 by using new states.
24367         * tests/test-strverscmp.c (main): Test glibc bug 9913.
24369 2016-08-29  Jim Meyering  <meyering@fb.com>
24371         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
24372         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
24373         similarly to how it was done to intprops.h.
24375 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24377         intprops.h: port recent changes to GCC 6.2.0
24378         * lib/intprops.h (__has_builtin): Move earlier.
24379         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
24380         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
24381         the last argument can be null.  All uses changed.
24382         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
24383         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24384         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
24385         and it's not clear which GCC versions it works for.
24386         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
24387         its definiens.
24389         intprops.h: use __typeof__ with GCC 7
24390         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
24391         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
24392         This avoids computing the expression's value (which might overflow!).
24394 2016-08-29  Jim Meyering  <meyering@fb.com>
24396         intprops.h, xalloc-oversized.h: work with gcc 7
24397         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
24398         __builtin_mul_overflow each accept a NULL pointer as the third
24399         argument.  However in gcc 7, that is no longer accepted.
24400         Instead, one must use the "_p"-suffixed names, with which, the
24401         third parameter is no longer a pointer.
24402         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
24403         the definition: not true for gcc 7 and subsequent.
24404         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
24405         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24406         Provide new definitions for gcc 7 and subsequent.
24407         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
24408         that works with gcc-7.
24410         intprops.h: fix missing-backslash problems
24411         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
24412         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
24414 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24416         intprops: fix paren typo on old platforms
24417         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
24418         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
24419         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
24420         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
24421         && !defined LLONG_MAX]:
24422         Remove stray paren.
24424         intprops: port to OpenVMS
24425         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
24426         * doc/posix-headers/limits.texi: Document the problem.
24427         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
24428         Define if not already defined.
24430 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
24432         parse-datetime: improve debug implementation
24433         Follow-up to commit 12ad79069 ("add optional debug printing").
24434         Improve parse-datetime's debug implementation: remove macros,
24435         replace global debug flag variable with a function parameter,
24436         use nstrftime for formatting.
24437         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
24438         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
24439         (parse_datetime2): New function, accepts 'flags' parameter, supporting
24440         debug flag. Existing interface 'parse_datetime' left unmodified.
24441         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
24442         (struct parser_control): add 'parse_datetime_debug' member variable.
24443         (parse_datetime): Call new function 'parse_datetime2' without debug.
24444         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
24445         pc.parse_datetime_debug variable as needed.
24446         (to_year): Accept new flags parameter, instead of using global variable.
24447         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
24448         use struct 'debug' variable instead of global variable.
24449         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
24450         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
24451         correspnding functions directly instead of using macros.
24452         * modules/parse-datetime: Add gnulib's strftime module.
24454 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
24456         c-strcase-tests: port to EBCDIC
24457         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
24458         which assume ASCII encoding semantics to run only in ASCII
24459         mode, as they fail in EBCDIC.
24461         sigpipe-tests: fix typo
24462         * tests/test-sigpipe.sh: C, not B.
24464 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24466         canonicalize-lgpl: fix errno after malloca fails
24467         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
24468         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
24469         * lib/canonicalize-lgpl.c (__realpath):
24470         Don't assume malloca sets errno on failure.
24472 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24474         strtod: port errno handling to z/OS
24475         * lib/strtod.c (strtod): Save and restore errno more reliably.
24477 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24479         strtod: port to z/OS
24480         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24481         implementation.
24483 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24485         strtod: port to z/OS
24486         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24487         implementation.
24489         regex, string: rename to avoid '__string'
24490         * lib/regex.h, lib/string.in.h: Do not use the identifier
24491         '__string', as it is effectively reserved by string.h on z/OS.
24493         c-strcase-tests, wcwidth-tests: depend on c-ctype
24494         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
24495         Add c-ctype.
24497 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24499         thread: port to z/OS
24500         * lib/glthread/thread.c, lib/glthread/thread.h:
24501         Rudimentary gl_thread support for z/OS.
24503         maint: port tests to z/OS errno behavior
24504         * tests/test-nonblocking-reader.h:
24505         * tests/test-nonblocking-writer.h:
24506         Accommodate z/OS errno code preferences. (I believe this should
24507         still be within spec; IBM is good at following the letter if not
24508         the spirit of such things.)
24510         maint: preprocessor changes to support z/OS
24511         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
24512         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
24513         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
24514         * tests/test-nonblocking-pipe.h:
24516         fclose, strstr-simple, wchar: port to z/OS
24517         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
24518         Changes to the Autoconf M4 code to support z/OS.  Note that
24519         fclose() is broken in a different way on z/OS than it is on other
24520         systems, thus the special-case in fclose.m4.
24522         iconv_open-utf-tests, iconv-tests: port to EBCDIC
24523         * tests/test-iconv-utf.c, tests/test-iconv.c:
24524         Added appropriately conditional #pragmas so that the test strings
24525         in test-iconv-utf.c are correctly interpreted in ASCII instead of
24526         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
24527         addressed in a more portable way by simply rewriting all the ASCII
24528         literal characters as octal escapes, but then you would lose the
24529         partial readability that the strings have now. Also, iconv_open()
24530         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
24532         c-strcase-tests, wcwidth-tests: port to EBCDIC
24533         * tests/test-c-strcasecmp.c: Include c-ctype.h.
24534         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
24535         * tests/test-wcwidth.c: Likewise.
24537 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24539         stdbool: don't require _Bool for C++
24540         Problem reported by David Seifert in:
24541         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
24542         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
24543         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
24544         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
24545         stricter about checking that bool and _Bool are compatible in C.
24547 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24549         getdelim: remove dependency on realloc-posix
24550         * lib/canonicalize-lgpl.c (alloc_failed)
24551         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
24552         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
24553         Use __set_errno where needed, for consistency.
24554         * lib/getdelim.c (alloc_failed): New function.
24555         (getdelim): Use it.
24557 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
24559         parse-datetime: add optional debug printing
24560         Print parsing information, warnings, and errors to stderr.
24561         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
24562         * lib/parse-datetime.y:
24563         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
24564         (PROGRESS*): Same as DEBUG, for progress reporting.
24565         (dbg_printf): Print message to stderr, with 'date' prefix.
24566         (struct parser_control): Add 'debug_*_seen' variables.
24567         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
24568         (debug_print_current_time, debug_print_relateive_time): Prints the
24569         current/relative date/time value of parser_control.
24570         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
24571         (to_year): Warn about 2-digit year parsing.
24572         (yylex):   Warn about unrecognized words.
24573         (get_effective_timezone): Returns current timezone in minutes.
24574         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
24575         clearly and unambigiously as possible.
24576         (debug_mktime_not_ok): Print detailed information about failed
24577         date/time values.
24578         (parse_datetime): Add DEBUG messages for failures, warnings. Add
24579         PROGRESS messages for status messages.
24580         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
24582 2016-08-06  Jim Meyering  <meyering@fb.com>
24584         tests/init.sh: exclude dash with bad "local" semantics
24585         * tests/init.sh (gl_shell_test_script_): Add a function to
24586         eliminate a shell like "dash" (unlike bash, zsh) that has
24587         surprising/risky "local var='...'" semantics.  Inspired by
24588         the problem and discussion in https://bugs.gnu.org/24116#11.
24590 2016-08-02  Ján Tomko  <jtomko@redhat.com>
24592         maint.mk: expand the prohibit_doubled_word regex
24593         This check has a static list of words that are checked for
24594         repetitions.  Expand it before running the perl script to
24595         avoid using expensive captures.  This decreases the cost
24596         for libvirt from 1.66s to 0.66s.
24597         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
24598         (sc_prohibit_doubled_word): Use it.
24600 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24602         useless-if-before-free: skip non-matching lines early
24603         * build-aux/useless-if-before-free: First match each line with the
24604         simple/quick /\bif\b/ and reject if there is no match. This often
24605         saves the cost of the much more involved regular expression.
24606         For libvirt, this decreases the cost from 1.44s to 1.02s.
24608 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24610         maint.mk: speed up sc_po_check
24611         sc_po_check would skip files based on their names, or on the
24612         existence of files with derived names. Rewrite it to use perl
24613         instead of shell to make the check faster.
24614         * top/maint.mk (perl_translatable_files_list_): Define.
24615         (sc_po_check): Use it.
24617 2016-07-30  Ján Tomko  <jtomko@redhat.com>
24619         maint.mk: speed up require_config_h_first
24620         Instead of spawning three processes per file,
24621         rewrite the check in perl and run it once for all the files.
24622         * top/maint.mk (perl_config_h_first_): Define.
24623         (sc_require_config_h_first): Use it in place of shell code.
24625 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24627         maint.mk: speed up sc_po_check
24628         sc_po_check would skip files based on their names, or on the
24629         existence of files with derived names. Rewrite it to use perl
24630         instead of shell to make the check faster.
24631         * top/maint.mk (perl_translatable_files_list_): Define.
24632         (sc_po_check): Use it.
24634 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24636         obstack: pacify GCC 6 with -Wnull-dereference
24637         Problem reported by Assaf Gordon in:
24638         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
24639         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
24640         Declare with __attribute_noreturn__.
24641         * lib/obstack.h (__attribute_noreturn__): New macro.
24643 2016-07-13  Eric Blake  <eblake@redhat.com>
24645         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
24646         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
24647         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
24649 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24651         doc: mention glibc SSIZE_MAX buglet
24652         * doc/posix-headers/limits.texi (limits.h): Document the bug.
24654 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
24656         printf-posix: Fix mingw build
24657         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
24658         expression for detecting C symbol prefixes but forgot to qoute square
24659         brackets in the command line arguments for grep.  That way when
24660         building with mingw the condition was false although it ought to be
24661         true instead.  In particular scenarios this led to the following
24662         compile error:
24664             Cannot export rpl_printf: symbol not found
24665             Cannot export rpl_scanf: symbol not found
24666             collect2: error: ld returned 1 exit status
24668         Fix this by properly quoting square brackets.
24670 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24672         mktime: call tzset as per POSIX
24673         Problem reported by Ludovic Courtès in:
24674         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24675         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24676         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24678 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24680         fts: handle readdir() errors
24681         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24682         but also upon error when it will also set errno.  Therefore
24683         flag the error case from readdir().  We treat the case where
24684         no items are read the same as if the dir can't be accessed,
24685         i.e. by setting fts_errno to FTS_DNR.
24687 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24689         intprops: port better to GCC 7
24690         GCC 7 __builtin_add_overflow supports a new usage form, where the
24691         last argument is a null pointer, and which merely returns 1 if an
24692         overflow would occur.  This is a constant expression if all
24693         arguments are constants, and should generate faster code when code
24694         needs to be generated.
24695         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24696         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24697         Use builtin operations if available.
24698         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24699         operations are available, as it's almost surely faster.
24701 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24703         intprops-test: port to GCC 6
24704         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24705         since the bug is not fixed in GCC 6.1.
24707 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24709         xalloc-oversized: port to GCC 7; fewer warnings
24710         GCC 7 will have a better way to deal with integer overflow.
24711         Plus, fix a warnings problem reported by Tim Ruehsen in:
24712         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
24713         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
24714         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
24715         For GCC 5, use __xalloc_oversized if both args are constants,
24716         or if pedantic.
24718 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
24720         regex: port to Sun C
24721         Reported by Daiki Ueno.
24722         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
24723         __restrict, in prototype.  This fixes a problem I introduced in
24724         the 2016-02-19 merge from glibc.
24726 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24728         stdbool: Restore __bool_true_false_are_defined check
24729         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
24730         __bool_true_false_are_defined is still defined, even with C++11.
24732 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
24734         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
24735         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
24737 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24739         Use GCC_LINT, not lint
24740         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
24741         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
24742         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
24743         Document problem with lint and _Noreturn.
24744         * lib/diffseq.h (IF_LINT, IF_LINT2):
24745         * lib/fts.c (sccsid):
24746         * lib/getndelim2.c (IF_LINT):
24747         * lib/gl_anylinked_list2.h (gl_linked_iterator)
24748         (gl_linked_iterator_from_to):
24749         * lib/gl_anytree_list2.h (gl_tree_iterator)
24750         (gl_tree_iterator_from_to):
24751         * lib/gl_anytree_oset.h (gl_tree_iterator):
24752         * lib/gl_array_list.c (gl_array_iterator)
24753         (gl_array_iterator_from_to):
24754         * lib/gl_array_oset.c (gl_array_iterator):
24755         * lib/gl_carray_list.c (gl_carray_iterator)
24756         (gl_carray_iterator_from_to):
24757         * lib/idcache.c:
24758         * lib/inet_ntop.c (IF_LINT):
24759         * lib/regcomp.c (build_charclass_op, create_tree):
24760         * lib/regex_internal.c (re_acquire_state)
24761         (re_acquire_state_context):
24762         * lib/trigl.c (rcsid):
24763         * lib/trim.c (IF_LINT):
24764         * lib/vasnprintf.c (IF_LINT):
24765         * lib/verify.h (assume):
24766         Treat GCC_LINT like lint.
24768 2016-05-29  Bruno Haible  <bruno@clisp.org>
24770         secure_getenv: Port to many more platforms.
24771         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
24772         functions.
24773         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
24774         for non-BSD Unix platforms and for native Windows.
24775         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
24776         Prompted by a request from Nikos Mavrogiannopoulos.
24778 2016-05-27  Eric Blake  <eblake@redhat.com>
24780         canonicalize: Fix broken probe for realpath.
24781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
24782         in logic introduced in 54615b95.
24784 2016-05-26  Eric Blake  <eblake@redhat.com>
24786         unsetenv: relax to LGPLv2+
24787         * modules/unsetenv (License): Match setenv license.
24789 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
24791         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
24792         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
24793         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
24794         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
24795         (commonarg, dirargs, dirs, infoarg, generate_ascii)
24796         (generate_html, generate_info, generate_tex, outdir)
24797         (source_extra, split, srcfile, texarg): Move above 'version'.
24798         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
24800 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24802         manywarnings: update for GCC 6.1
24803         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24804         Add GCC 6.1 options that apply to C.
24805         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24806         do not apply to C, are obsolescent, etc.
24808 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24810         glob: size_t overflow checks
24811         * lib/glob.c (__has_builtin): New macro.
24812         (size_add_wrapv, glob_use_alloca): New static functions.
24813         (glob, glob_in_dir): Check for size_t overflow in several places,
24814         and fix some size_t checks that were not quite right.
24816         glob: don't assume INT_MAX < SIZE_MAX
24817         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24818         latter is not portable to (probably theoretical) hosts where
24819         SIZE_MAX <= INT_MAX.
24821 2016-05-09  Bruno Haible  <bruno@clisp.org>
24823         Fix undefined behaviour in gettext.h.
24824         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24825         pointer's value after the storage it points to has been freed.
24826         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24827         Spotted by Coverity.
24829 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24831         git-version-gen: avoid undefined shift
24832         Problem reported by Mosè Giordano in:
24833         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24834         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24835         with --prefix or --fallback but without a later argument.  While
24836         we're at it, omit unnecessary quotes.
24838 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24840         glob: merge glibc changes into lib/glob.c
24841         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24842         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24843         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24844           struct dirent [BZ #19779]
24845         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24846           callback gl_readdir
24847         2015-10-20 Convert miscellaneous function definitions to prototype style
24848         2015-10-20 Convert 113 more function definitions to prototype style
24849           (files with assertions)
24850         2015-06-12 Fix getlogin_r namespace (bug 18527).
24851         2014-02-10 Use glibc_likely instead __builtin_expect.
24852         2013-10-20 When glob pattern contains a trailing slash match only
24853           directories. Fixes bug 10278.
24854         2013-09-04 glob: silence -Wattribute warnings
24855         2013-06-07 Avoid use of "register" as optimization hint.
24856         2012-09-25 Use size_t instead of int for internal variables in glob
24857           (bug 14621)
24858         2011-07-20 Check for overflows in expressions
24859         2011-05-28 Remove unused variable
24860         2011-05-22 Add a few more alloca size checks
24861         2010-03-27 Whitespace fixes
24862         2010-03-27 Fix one more issue with the glob patch
24863         2010-03-24 Fix glob with empty pattern
24864         2008-05-27 Remove useless more "if" tests before "free"
24865         * modules/glob (Depends-on): Add stdint.
24867 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24869         mktime: port to stricter signed overflow checking
24870         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24871         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24872         instead of merely for INT_MAX * 2.  In practice platforms that
24873         do the latter also do the former.
24874         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24875         (shr): New static function, replacing SHR.  All uses changed.
24876         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24877         and TIME_T_MAX.  All uses changed.
24878         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24879         Use long_int, not time_t.
24880         (long_int_avg): New static function, replacing time_t_avg.
24881         All uses changed.  Round toward positive infinity, as that
24882         generates slightly better code.
24883         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24884         by INT_ADD_WRAPV.
24885         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24886         (convert_time): New static function.
24887         (ranged_convert): Use it
24888         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24889         Use simpler test for loop exit.
24890         (__mktime_internal): Store negative of guessed offset, to simplify
24891         overflow checking.  Remove no-longer-needed test for small time_t
24892         overflows.
24894         mktime: speed up DEBUG_MKTIME benchmarks
24895         Call tzset just once, at the start, rather than for every test
24896         case.  This lets us measure the CPU cost of mktime as opposed to
24897         that of tzset.  This is relevant when TZ is not set and glibc is
24898         being used.  This speeds up tests by a factor of 40 on my Fedora
24899         23 x86-64 platform.
24900         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24901         to call tzset and as a sanity check.  Later on, use localtime_r
24902         instead of localtime.
24904         mktime: resurrect DEBUG_MKTIME testing
24905         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24906         Include <string.h>, for strcmp.
24908         mktime: simplify DEBUG_MKTIME
24909         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24910         Simplify later usage accordingly.
24912         Port mktime_internal offset to unsigned time_t
24913         This avoids some assumptions about wraparound arithmetic on
24914         signed integer overflow.
24915         * lib/mktime-internal.h (mktime_offset_t): New type.
24916         (mktime_internal): Use it in decl.
24917         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24919         * lib/mktime.c (__mktime_internal, localtime_offset):
24920         * lib/timegm.c (timegm): Use it.
24921         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24922         (gl_FUNC_MKTIME): Require it.
24924 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24926         xstrtol: prohibit monstrosities like "1bB"
24927         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24928         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24929         "B" only if the first suffix needs a base.
24930         * tests/test-xstrtol.sh: Test this.
24932 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24934         xstrtod: reinstate setting of *result upon ERANGE
24935         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24936         the returned limits upon ERANGE, so allow and document that.
24938 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24940         xstrtod: modify *result only if no errors
24941         * lib/xstrtod.c (XSTRTOD).
24943 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24945         btowc: document problems in C locale
24946         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24947         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24949 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24951         mktime: improve integer overflow checking
24952         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24953         (WRAPV): Remove; no longer needed.
24954         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24955         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24956         Remove.  Use intprops.h defns instead.
24957         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24958         Use bool for Boolean, for clarity.
24959         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24960         detect integer overflow.
24961         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24963         intprops: check two's complement assumption
24964         Suggested by Eric Blake in:
24965         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24966         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24967         short, int, long, and (if available) long long are two's complement.
24968         * modules/intprops (Depends-on): Add 'verify'.
24970         intprops, mktime, strtol: assume two's complement
24971         These macros were not portable to every conforming C11 ones'
24972         complement platform.  It's not worth the hassle of porting to some
24973         platforms that use ones' complement or signed magnitude, as such
24974         platforms are almost purely theoretical nowadays and porting even
24975         to some of them makes the code harder to review for little
24976         practical benefit.  Problem reported by Florian Weimer in:
24977         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24978         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24979         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24980         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24981         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24982         (TYPE_SIGNED_MAGNITUDE):
24983         Remove.  All uses rewritten to assume two's complement, which is
24984         all we can reasonably test nowadays anyway.
24985         * top/maint.mk (_intprops_names): Remove the removed macros.
24987 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24989         stdint: port to strict C11 left shift
24990         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24991         Pacify clang -Wshift-negative-value, which should be an issue only
24992         on clang setups where stdint.h does not conform to C11 or to C++11.
24993         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24995 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24997         mbrtowc: work around glibc bug#19932
24998         Fix mbrtowc so that it never returns -1 in the C locale,
24999         as this conflicts with a future version of POSIX
25000         http://austingroupbugs.net/view.php?id=663#c2738
25001         and causes problems with GNU grep: http://bugs.gnu.org/23234
25002         See glibc bug 19932:
25003         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
25004         * doc/posix-functions/mbrlen.texi (mbrlen):
25005         * doc/posix-functions/mbrtowc.texi (mbrtowc):
25006         Document the glibc bug.
25007         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
25008         Include hard-locale.h, locale.h.
25009         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
25010         if the bug is possible.
25011         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
25012         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
25013         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
25014         * modules/mbrtowc (Depends-on): Add hard-locale.
25015         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
25016         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
25017         * tests/test-mbrtowc5.sh: New file.
25019 2016-04-03  Pedro Alves  <palves@redhat.com>
25021         stdint: detect good enough pre-C++11 stdint.h in C++ mode
25022         When gnulib is configured in C++ mode for a system with a working C99
25023         implementation of stdint.h that predates C++11, gnulib ends up
25024         substituting stdint.h anyway.  This works on most targets, but on e.g.,
25025         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
25026         MinGW is LLP64.  Instead of trying to detect the right types, detect
25027         good-enough-pre-C++11 stdint.h and in such case define
25028         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
25029         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
25030         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
25031         conforms to C99.  If it does, check whether it hides symbols
25032         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
25033         does, define those macros in config.h.
25035 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25037         argp: merge changes from glibc
25038         Among other things, this should fix problems found by a Coverity
25039         scan and reported by Andrei Borzenkov:
25040         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
25041         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
25042         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
25043         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
25044         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
25045         * lib/argp.h:
25046         Merge changes from glibc.
25047         * tests/test-argp-2.sh: Adjust to match new behavior.
25049 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
25051         stddef: support configuring with g++
25052         Problem reported by Ángel González in:
25053         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
25054         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
25055         Do not define if _GCC_MAX_ALIGN_T is defined.
25057 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25059         test-framework-sh: minor cleanups
25060         * tests/init.sh (testdir_prefix_): Output a trailing newline,
25061         since strictly speaking POSIX requires this.
25062         (setup_): Do not use the variable 'fail', as that makes the
25063         trace output harder to read ('fail' is typically used by
25064         tests to mean the test failed).  Treat // portably.
25065         Check that new directory is not merely a sibling of the tmp dir.
25066         Avoid unnecessary invocation of tr.
25068         test-framework-sh: revert port to NetBSD 7.0
25069         It was a false alarm; I misinterpreted Assaf Gordon's report.
25070         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25071         Restore.
25072         (test_dir_): Adjust to mktempd_ change.
25073         (mktempd_): Restore 2nd arg.  Use -t again.
25074         (base_template_, template_, nx_): Resurrect old code.
25076         Port better to Alpine Linux
25077         Its diff implementation does not support -c, but does support -U3.
25078         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25079         * tests/init.sh (diff_opt_): New var.
25080         (compare_): Prefer diff -U3 to diff -c to plain diff.
25082 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
25084         test-framework-sh: port to NetBSD 7.0
25085         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25086         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25087         Remove.  All uses removed.
25088         (test_dir_): Adjust to mktempd_ change.
25089         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
25090         (base_template_, template_, nx_): Simplify by hardcoding.
25092 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25094         gitlog-to-changelog: suppress ignored chatter
25095         * build-aux/gitlog-to-changelog: Do not warn about skipping
25096         an SHA if it would have been ignored anyway.
25098 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
25100         setlocale: add "sv" to Windows language table
25101         * lib/setlocale.c (language_table) [W32]: Add "sv".
25102         Reported in <https://savannah.gnu.org/bugs/?44588>.
25104 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25106         sys_select: port to new Cygwin
25107         Problem reported by Ken Brown in:
25108         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
25109         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
25110         diagnostics.
25112 2016-03-17  Jim Meyering  <meyering@fb.com>
25114         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
25115         * tests/test-userspec.c (main): Remove unnecessary braces and fix
25116         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
25117           test-userspec.c:176:9: error: statement is indented as if it were \
25118             guarded by... [-Werror=misleading-indentation]
25119                    {
25120                    ^
25121           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
25122                  if (!diag && !T[i].result)
25123                  ^~
25125 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25127         time_rz: port to clang -Wunused-const-variable
25128         * lib/time_rz.c (TZ): Remove.  All uses removed.
25130         std-gnu11: improve clang support
25131         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
25132         2016-03-15 Also try clang
25133         2016-03-15 Port C11 and C++11 testing to clang
25135         select: port more to Intel 2016.1.150 compiler
25136         Problem reported by Balázs Hajgató in:
25137         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
25138         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
25140 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25142         select: try to port to 2016.1.150 compiler
25143         Problem reported by Balázs Hajgató in:
25144         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
25145         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
25146         POSIX specifies 'restrict'.
25148 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25150         localename-tests: memory allocation fixes
25151         * tests/test-localename.c (test_locale_name)
25152         (test_locale_name_thread): Don't call freelocale on a locale
25153         that was the base of a successful newlocale, as that
25154         results in a double free.  Problem reported by Assaf Gordon.
25155         (test_locale_name_thread): Free saved names after use, to pacify
25156         gcc -fsanitize=address.
25158 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25160         intprops: make .h file license match module
25161         * lib/intprops.h: Change the license wording to match glibc format.
25162         This is what is in modules/intprops anyway.  See:
25163         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
25165 2016-03-08  Eric Blake  <eblake@redhat.com>
25167         acl: fix missing return on Cygwin
25168         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
25169         fall off end of function. Fixes http://bugs.gnu.org/22949
25171 2016-03-05  Bruno Haible  <bruno@clisp.org>
25173         extern-inline: port to PGI CC
25174         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
25175         keyword 'inline'.
25176         Reported by Adam James Stewart in:
25177         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
25179 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25181         signbit: port back to pre-C++11 GCC
25182         * lib/math.in.h (signbit): Do previous change only if
25183         __cplusplus < 201103.  See Jonathan Wakely in:
25184         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
25186 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
25188         mountlist: recognize autofs-mounted remote file systems, too
25189         Originally reported at: https://bugzilla.redhat.com/1309247
25190         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
25191         "-hosts" because it is used by autofs to mount remote file systems.
25193 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25195         signbit: port to C++ with GCC 6
25196         * lib/math.in.h (signbit) [__cplusplus]:
25197         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
25198         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
25200         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
25202         regex: make it closer to libc
25203         Make Idx a signed type, rather than possibly unsigned.
25204         The unsignedness was not really buying us anything, since the code
25205         overflows for other reasons before getting to PTRDIFF_MAX.  Making
25206         it signed allows us to use -1 and -2 with abandon, like libc does,
25207         thus lessening the number of differences between gnulib and libc.
25208         Also, it should help avoid gratuitous warnings like the one
25209         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
25210         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
25213         regex: merge patches from libc
25215         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25216         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
25217         Convert miscellaneous function definitions to prototype style.
25218         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
25219         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
25220         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
25221         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
25222         (re_search_internal):
25223         Convert to prototype-style function definition.
25224         Use internal_function for internal functions.
25226 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
25228         stdalign: port to older HP and IBM cc
25229         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
25230         C compilers, by checking their version numbers.  These version
25231         numbers appear in MariaDB and in Qt code that dates way back and
25232         that conditiionally uses the 'aligned' attribute.
25234 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25236         stdalign: port to clang 3.7.0
25237         Problem reported by Herbert J. Skuhra in:
25238         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
25239         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
25240         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
25241         https://llvm.org/bugs/show_bug.cgi?id=26547
25243 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25245         readdir_r: now obsolescent
25246         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
25247         * lib/mountlist.c (read_file_system_list): Add a FIXME.
25249 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25251         misc: port better to gcc -fsanitize=address
25252         Without these patches, ./configure CFLAGS='-fsanitize=address'
25253         would compute incorrect values.  This patch fixes some (but not all)
25254         test failures with recent glibc, with this configuration.
25255         * m4/acl.m4 (gl_ACL_GET_FILE):
25256         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
25257         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
25258         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
25259         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
25260         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25261         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
25262         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
25263         * m4/getline.m4 (gl_FUNC_GETLINE):
25264         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
25265         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
25266         * m4/regex.m4 (gl_REGEX):
25267         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25268         * tests/test-calloc-gnu.c (main):
25269         * tests/test-duplocale.c (main):
25270         * tests/test-getgroups.c (main):
25271         * tests/test-getline.c (main):
25272         * tests/test-inttostr.c (main):
25273         * tests/test-localename.c (test_locale_name)
25274         (test_locale_name_thread, test_locale_name_environ)
25275         (test_locale_name_default):
25276         * tests/test-regex.c (main):
25277         * tests/test-setlocale1.c (main):
25278         * tests/test-stat.h (test_stat_func):
25279         Free heap-allocated storage before exiting.
25280         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
25281         Don't match *_foo symbols inserted by AddressSanitizer.
25282         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
25284 2016-02-02  Jim Meyering  <meyering@fb.com>
25286         verify-tests: also remove stray test-verify.Tpo
25287         * modules/verify-tests (Makefile.am): Arrange for "make clean"
25288         to remove the test-verify.Tpo file that is left behind by
25289         the automake-generated rule upon compilation failure.
25290         Otherwise, that .Tpo file would cause a failed "make distcheck"
25291         at least for grep.
25293 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
25295         std-gnu11: new module
25296         This makes it easier for applications to prefer C11 and C++11
25297         to older variants, when compiling C and C++ code.
25298         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
25299         a nontrivial chunk of GPLed Autoconf source code.
25300         * COPYING: Mention the m4/*.m4 copyright situation.
25301         * MODULES.html.sh (std-gnu11): New module.
25302         * m4/std-gnu11.m4, modules/std-gnu11: New files.
25304 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25306         get-permissions, strftime: fix grammar in comments
25307         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
25308         some grammar fixes Alan Mackenzie made to GNU Emacs.
25310 2016-01-25  Daiki Ueno  <ueno@gnu.org>
25312         gettext: mark as obsolete
25313         Suggested by Paul Eggert in:
25314         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
25315         * modules/gettext (Status): Mark as obsolete.
25316         (Notice): Suggest to use 'gettext-h' instead.
25317         * modules/gettext-h (Description): Suggest GNU gettext, instead of
25318         the 'gettext' module.
25320 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25322         gnulib-tool: don't give up on ln -s so easily
25323         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
25324         because an earlier one failed.  The targets could be on different
25325         file systems.  Problem reported by KO Myung-Hun in:
25326         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
25328         closedir: fix OS/2-related typos
25329         Problem reported by KO Myung-Hun in:
25330         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
25331         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
25332         in the last couple of changes.
25334 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
25336         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
25337         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
25338         copying a directory.
25340 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25342         regex: treat [x] as x if x is a unibyte encoding error
25343         Problem reported by Aharon Robbins in:
25344         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
25345         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
25346         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
25348         closedir, dirfd, opendir: port to OpenSolaris 5.10
25349         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
25350         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25351         * m4/opendir.m4 (gl_FUNC_OPENDIR):
25352         Don't use ${word##pat} substitution, as it doesn't work in
25353         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
25354         http://bugs.gnu.org/22443#11
25356 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25358         bootstrap: use American spelling
25359         * build-aux/bootstrap: Honor American spelling.
25361 2016-01-22  Karl Berry  <karl@freefriends.org>
25363         * doc/posix-functions/localtime.texi,
25364         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
25366 2016-01-21  Bruno Haible  <bruno@clisp.org>
25368         hash-pjw-bare: fix comment
25369         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
25371         wcwidth: Replace also on OpenBSD 5.8
25372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
25373         * doc/posix-functions/wcwidth.texi: Update.
25375 2016-01-20  Pádraig Brady  <P@draigBrady.com>
25377         gnu-web-doc-update: fix addition of new files
25378         If there were already added (emnpty) dirs,
25379         then cvs aborts the add with the message:
25380           cvs [add aborted]: there is a version in <./dirname> already
25381         * build-aux/gnu-web-doc-update: Add directories separately
25382         to the addition of files, to avoid the above issue
25383         impacting the addition of files.
25385 2016-01-19  Daiki Ueno  <ueno@gnu.org>
25387         utimens-tests: avoid pulling gettext .m4 files
25388         Although this is not the right fix to the original problem:
25389         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
25390         it makes it possible again for consumer projects to use arbitrary
25391         version of gettext, through the steps described at:
25392         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
25393         See here for details:
25394         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
25395         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
25396         'gettext'.
25397         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
25398         'gettext'.
25400 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25402         regex: pacify static checkers
25403         Problem and draft fix reported by Aharon Robbins in:
25404         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25405         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
25406         Clear memory to pacify static checkers.
25408         regex: fix [ diagnostic
25409         Problem and fix reported by Aharon Robbins in:
25410         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25411         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
25413         regex: fix memory leaks
25414         Problem and draft fix reported by Aharon Robbins in:
25415         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25416         * lib/regcomp.c (build_range_exp, build_charclass_op)
25417         * lib/regex_internal.c (re_dfa_add_node):
25418         Fix memory leak on failure.
25420 2016-01-18  Pádraig Brady  <P@draigBrady.com>
25422         fts: don't unconditionally use leaf optimization for NFS
25423         NFS st_nlink are not accurate on all implementations,
25424         leading to aborts() if that assumption is made.
25425         See <https://bugzilla.redhat.com/1299169>
25426         * lib/fts.c (leaf_optimization_applies): Remove NFS from
25427         the white list, and document the issue.
25429 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25430             KO Myung-Hun  <komh@chollian.net>
25432         gnulib-tool: don't assume ln -s works
25433         * gnulib-tool (func_ln_s): New function.
25434         (func_ln): Use it.
25436 2016-01-15  KO Myung-Hun  <komh@chollian.net>
25438         utimes: detect utimes() correctly on OS/2 kLIBC
25439         utimes() of OS/2 kLIBC has some limitations.
25440         1. OS/2 itself supports a file date since 1980 year in local time.
25441         2. OS/2 itself supports only even seconds for a file time.
25442         3. utimes() of OS/2 kLIBC does not work on an opened file.
25443         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
25444         * doc/posix-functions/utimes.texi: Document the above limitations of
25445         utimes() on OS/2 kLIBC.
25447 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25448             KO Myung-Hun  <komh@chollian.net>
25450         openat_proc_name: port to OS/2 kLIBC
25451         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
25452         instead of /proc/self/fd.
25453         * lib/openat-proc.c (openat_proc_name):
25454         Don't assume file name length is less than INT_MAX.
25455         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
25457 2016-01-14  KO Myung-Hun  <komh@chollian.net>
25459         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
25460         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
25461         definitions of intptr_t and uintptr_t (which use int and unsigned)
25462         to avoid clashes with declarations of system functions like sbrk.
25463         * lib/stdint.in.h (intptr_t, uintptr_t): Check
25464         _INTPTR_T_DECLARED before defining them.
25466         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
25467         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
25468         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
25469         Declare on kLIBC.
25470         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
25471         fd associated with dirp.
25472         (_gl_register_dirp_fd): New. Register fd associated with dirp to
25473         dirp_fd_list.
25474         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
25475         (dirfd): Implemented for kLIBC.
25476         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
25477         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
25478         succeeds.
25479         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
25480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25481         (REPLACE_DIRFD): Define to 1 if replaced.
25482         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
25483         * modules/closedir (Depends-on): Add dirfd.
25484         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
25485         condition.
25486         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
25487         * modules/opendir (Depends-on): Add dirfd.
25489         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
25490         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
25491         * lib/dup.c (dup_nothrow): New.
25492         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
25493         (klibc_dup2): New.
25494         * lib/fcntl.c (klibc_fcntl): New.
25495         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
25496         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
25497         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
25498         fd.
25500         pipe_filter_ii_execute: port to OS/2 kLIBC
25501         Pipes on kLIBC do not support O_NONBLOCK like Win32.
25502         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
25503         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
25504         Reuse Win32 code on OS/2 kLIBC.
25505         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
25506         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
25508         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
25509         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
25510         static inline function.  The implementation of wcwidth in wcwidth.c
25511         causes a "conflicting types" error.
25512         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
25514         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
25515         spawn() on OS/2 kLIBC is not silly like one on Windows
25516         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
25517         empty string on OS/2 kLIBC.
25519         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
25520         On OS/2 kLIBC, select() works only on sockets.
25521         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
25523         binary-io: don't put fd in binary mode if it is a console on EMX
25524         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
25525         a console on EMX.
25527 2016-01-15  Pádraig Brady  <P@draigBrady.com>
25529         doc: mention unfixed issues with unsupported localtime() values
25530         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
25531         returns nonsense for localtime(2^56).
25532         * doc/posix-functions/localtime_r.texi: Likewise.
25534 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25536         doc: mention setlocale() issues on OpenBSD
25537         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
25538         never fails, and the need to check categories individually.
25540 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25542         sig2str: list all signals on FreeBSD >= 7
25543         FreeBSD >= 7 is contravening POSIX by not defining NSIG
25544         to the maximal statically defined signal value.
25545         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
25546         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
25547         where available, even when NSIG is defined.
25549 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25551         acl-permissions: port to USE_ACL==0 platforms
25552         I ran into this problem when building bleeding-edge GNU Emacs
25553         with gcc -fsanitize=address on Fedora 23.  On this platform
25554         the ACL library does not pass the 'configure' test and Emacs
25555         then does not build due in part to what appear to be typos in the
25556         ACL part of Gnulib.
25557         * lib/acl-internal.c (free_permission_context):
25558         * lib/acl-internal.h (struct permission_context):
25559         Test whether USE_ACL is nonzero, not whether it is defined.
25561 2016-01-12  Martin Sebor  <msebor@redhat.com>
25563         mktime: rename macro to avoid glibc clash
25564         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
25565         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
25567 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25569         Port "$@" to OpenIndiana ksh93
25570         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
25571         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
25572         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
25573         bug long-dead shells, so remove the workaround.
25574         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
25575         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25576         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
25577         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
25578         Use "$@" instead of ${1+"$@"}.
25580         Port Universal Time settings to strict POSIX
25581         * build-aux/announce-gen, build-aux/bootstrap:
25582         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
25583         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25584         * build-aux/gnupload, build-aux/mkinstalldirs:
25585         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
25586         * build-aux/update-copyright, build-aux/useless-if-before-free:
25587         * build-aux/vc-list-files, tests/test-strftime.c:
25588         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
25589         but POSIX says the behavior of TZ="UTC" is undefined.
25591 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25593         msvc-inval: fix problem with unset shell var
25594         Problem reported by Karl Berry in:
25595         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
25596         * modules/msvc-inval (Depends-on):
25597         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
25598         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
25600 2016-01-01  Pádraig Brady  <P@draigBrady.com>
25602         tests: for compare_(), use cmp -s where available
25603         * tests/init.sh (compare_): Only fall back to cmp without
25604         the POSIX defined -s option, where this is not available.
25606 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25608         version-etc: new year
25609         * build-aux/gendocs.sh (version):
25610         * doc/gendocs_template:
25611         * doc/gendocs_template_min:
25612         * doc/gnulib.texi:
25613         * lib/version-etc.c (COPYRIGHT_YEAR):
25614         Update copyright dates by hand in templates and the like.
25615         * all files: Run 'make update-copyright'.
25617 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25619         human: fix output buffer overrun by 1
25620         * lib/human.c (human_readable): Fix off-by-one typo in buffer
25621         calculation that could lead to a one-byte buffer overrun.
25623 2015-12-28  Daiki Ueno  <ueno@gnu.org>
25625         maint: fix operator precedence in mbrtowc test
25626         This is a fix for test breakage introduced by commit 45228d96; the
25627         equality expression must be parenthesized when negated with '!',
25628         otherwise we always get:
25630           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
25632         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
25633         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25635 2015-12-23  James Youngman  <jay@gnu.org>
25637         regexprops-generic: update from regex.h
25638         * doc/regexprops-generic.texi: update by running the regexprops binary
25639         from findutils (the command line is 'regexprops "Regular Expressions"
25640         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
25641         gnulib with GNU grep had made this document out-of-date.
25643 2015-12-23  Pádraig Brady  <P@draigBrady.com>
25645         strftime-tests: avoid false failure on OS X
25646         * tests/test-strftime.c (struct localtime_rz_test): Add an
25647         ahistorical member which is used to warn rather than fail
25648         when tm_isdst isn't set for such entries.  This is the case for
25649         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
25651 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
25653         fts: ensure leaf optimization is used for NFS
25654         NFS provides usable dirent.d_type but not necessarily for all entries
25655         of large directories.  See <https://bugzilla.redhat.com/1252549>
25656         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
25658 2015-12-20  Pádraig Brady  <P@draigBrady.com>
25660         fts: enable leaf optimization for XFS
25661         XFS provides usable dirent.d_type only for DT_DIR,
25662         but the noleaf optimization still applies.
25663         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
25665 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25667         intprops: comment fix
25668         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25669         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25671         intprops-test: work around GCC bug 68971
25672         Problem reported by Pádraig Brady in:
25673         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25674         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25675         (main): Add a case that better tests 64-bit long in this area.
25677 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25679         gnulib-tool: allow multiple --local-dir usage
25680         * gnulib-tool: Use --local-dir to construct compound
25681         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25682         PATH_SEPARATOR early.
25683         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25684         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25685         func_determine_path_separator because that needs to be detected
25686         earlier now.
25687         (func_determine_path_separator): New function.
25688         (func_path_foreach, func_path_foreach_inner): New functions.
25689         (func_path_prepend, func_path_append): Likewise.
25690         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25691         (func_lookup_file, func_all_modules): Use new functions to work
25692         with local_gnulib_path.
25693         (func_modules_in_dir, func_exists_module): New callbacks for
25694         func_path_foreach.
25695         (func_exists_module, func_get_tests_module): Likewise.
25696         (func_is_local_file, func_should_symlink): New helper methods.
25697         (func_add_file, func_update_file): Use new func_should_symlink
25698         instead, DRY.
25699         (func_reconstruct_cached_local_gnulib_path): New helper.
25700         (func_reconstruct_cached_dir): New callback.
25701         (func_import): The cached_local_gnulib_dir renamed to
25702         cached_local_gnulib_path similarly to local_gnulib_dir.
25703         Use new func_reconstruct_cached_local_gnulib_path.
25704         (func_count_relative_local_gnulib_path): New sub-method.
25705         (func_create_testdir): Use func_should_symlink, DRY.
25706         (func_create_megatestdir): Use new functions to work with
25707         local_gnulib_path correctly.
25708         (func_append_local_dir): New helper.
25710 2015-12-08  Pádraig Brady  <P@draigBrady.com>
25712         fix freadptr to work with ungetc on all uClibc configs
25713         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
25714         where GNU coreutils cut(1) generates invalid output on uClibc
25715         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
25716         * lib/freadptr.c (freadptr): Return NULL if there are
25717         ungotten chars.  In this case freadseek() will iterate
25718         again to process the ungotten character.
25720 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25722         xalloc-oversized: improve performance with GCC 5
25723         * lib/xalloc-oversized.h (xalloc_oversized):
25724         Improve performance with GCC 5 by using __builtin_mul_overflow.
25726 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25728         intprops: new public macro EXPR_SIGNED
25729         Emacs can use this macro, so make it public.
25730         * doc/intprops.texi (Arithmetic Type Properties): Rename from
25731         'Integer Type Determination', since some of these macros apply
25732         to non-integer types.  Clarify what kinds of constant expressions
25733         these macros return.  Say when the arguments can be non-integers.
25734         Mention newly published macro EXPR_SIGNED.
25735         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
25736         make it public.  All uses changed.
25738         intprops: fix typo in clang port
25739         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
25740         '__builtin_add_overflow' that is not caught by compiler.
25742 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25744         test-timespec: fix typo in previous change
25745         * tests/test-timespec.c (main): Fix typo that reduced test quality.
25747         timespec-sub: fix overflow bug; add tests
25748         * lib/timespec-add.c (timespec_add):
25749         * lib/timespec-sub.c (timespec_sub):
25750         Work even if time_t is narrower than int (a theoretical
25751         possibility).  Redo code for a bit more clarity.
25752         * lib/timespec-sub.c (timespec_sub):
25753         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
25754         * modules/timespec-tests, tests/test-timespec.c: New files.
25756         intprops-test: suppress -Woverlength-strings
25757         Problem reported by Pádraig Brady in:
25758         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
25759         It is not worth the hassle to port this test to compilers that
25760         cannot handle long strings in diagnostics.
25761         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
25763 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25765         quotearg: add quotearg_n_style_colon()
25766         This quotes with default options of the specified style,
25767         but with quoting enabled for instances of ':'.
25768         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
25769         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
25771 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25773         intprops: revise _WRAPV macros, revert _OVERFLOW
25774         The incompatible changes to the _OVERFLOW macros were too much of
25775         a hassle in practice, so revert them.  Instead, change the new
25776         _WRAPV macros to make them closer in behavior to GCC 5's new
25777         builtin_add_overflow etc. functions.  No other software was using
25778         these newly-added macros yet, so this should be OK.
25779         * NEWS: Revert previous change, since the incompatible change
25780         has been reverted, and nobody used the incompatible version.
25781         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
25782         Document revised behavior.
25783         (Integer Range Overflow): Adjust example to match above revisions.
25784         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
25785         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
25786         these can be used in integer constant expressions again.
25787         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
25788         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
25789         needed.
25790         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25791         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25792         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
25793         Remove, as they did not seem that useful.
25794         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
25795         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
25796         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25797         Support new semantics.
25798         (__has_builtin): New macro, if not alreay defined.
25799         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
25800         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25801         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25802         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25803         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
25804         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
25805         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25806         New macros.
25807         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25809 2015-11-03  Jim Meyering  <meyering@fb.com>
25811         intprops: add parentheses for when OP has precedence lower than "-"
25812         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25813         "a OP b" must be parenthesized for when OP is like "<<", which has
25814         lower precedence than the following "-". Reported by Pádraig Brady.
25816 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25818         quotearg: constify get_quoting_style parameters
25819         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25820         * lib/quotearg.c (get_quoting_style): Likewise.
25822 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25824         quotearg: add support for $'' shell escaping
25825         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25826         items and descriptions.
25827         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25828         above types by quoting like "shell", but using $'...' syntax
25829         for non printable characters, which should provide unambiguous
25830         printable output for any input.
25831         * tests/test-quotearg-simple.c: Update accordingly.
25833 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25835         maint: use a more standard return from mbrtowc test
25836         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25837         from the test program as this is non standard and often
25838         indicates an unhandled case in the test program.
25839         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25841 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25843         intprops: add WRAPV and const flavors for GCC 5
25844         If available, use GCC 5's builtin functions for efficient integer
25845         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25846         and safely compute the low-order bits of the correct answer.
25847         A downside of these efficient functions is that they cannot be
25848         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25849         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25850         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25851         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25852         Document the changes.
25853         (Wraparound Arithmetic): New section.
25854         (Integer Range Overflow):
25855         Put this subsection last, since it's least useful.
25856         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25857         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25858         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25859         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25860         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25861         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25862         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25863         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25864         New macros.
25865         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25866         Generate calls to GCC builtins if available, for speed.
25867         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25868         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25869         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25870         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25871         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25872         (CHECK_QUOTIENT, CHECK_REMAINDER):
25873         Test WRAPV and CONST flavors (when available) too.
25875 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25877         doc: use extended timezone format in iso-8601 example
25878         * doc/parse-datetime.texi: The standard states that extended format
25879         is to be used consistently throughout.
25880         Note that lib/parse-datetime.y can handle either tz format.
25882 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25884         stdalign: port to Sun C 5.9
25885         * doc/posix-headers/stdalign.texi: Document this.
25886         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25887         __attribute__ ((__aligned__ (...))).
25889 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25891         time_rz: fix comment about tzalloc
25892         * lib/time_rz.c (tzalloc): Fix comment.
25894 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25896         stdalign: work around pre-4.9 GCC x86 bug
25897         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25898         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25899         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25901 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25903         maint.mk: sc_tight_scope: remove extraneous expressions
25904         * top/maint.mk (tight_scope): This is not really required since
25905         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25906         that matches all nm entries.  But it does remove extraneous entries
25907         that may be confusing or cause issue in future maintenance.
25909 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25911         time_rz: return NULL if localtime_r fails
25912         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25913         while still attempting to pacify bleeding-edge GCC.
25915         fts: port to C11 alignof
25916         * doc/posix-headers/stdalign.texi (stdalign.h):
25917         Document the C11 restriction.
25918         * lib/fts.c: Include stddef.h, for max_align_t.
25919         (fts_alloc): Align using max_align_t, not FTSENT.
25920         * modules/fts (Depends-on): Add stddef.
25922 2015-10-18  Jim Meyering  <meyering@fb.com>
25924         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25925         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25926         would see this:
25928         lib/time_rz.c: In function 'localtime_rz':
25929         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25930           [-Werror=nonnull]
25931                    if (tm && !save_abbr (tz, tm))
25932                        ^
25934         That was complaining about "tm" because it is a parameter that was
25935         declared with the __nonnull__ attribute.
25936         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25937         result of localtime_r.
25939 2015-10-17  Jim Meyering  <meyering@fb.com>
25941         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25942         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25943         name-extraction regexp mistakenly used \S+, and would mistakenly
25944         extract "*F" from "extern int *F()" rather than the desired "F".
25945         Use \w+ instead.
25947 2015-10-17  Jim Meyering  <meyering@fb.com>
25949         maint.mk: sc_tight_scope: factor and support OS X
25950         * top/maint.mk (_gl_tight_scope): Address three issues:
25951         - factor out four instances of code that wraps a string in "^...$"
25952         - allow nm-reported symbol names to have an optional leading "_"
25953         - add "main" to the list of ignored variable names, because on os x,
25954         "main" has nm-reported type "S" in the variable-checking section.
25956 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25958         safe-alloc-tests: fix typo in license header
25959         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25961 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25963         copy-file: fix mem leak in error case
25964         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25965         upon error opening or performing I/O to the src and dest files.
25967 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25969         localename: control langinfo.h inclusion
25970         This header is only used to work around buggy behavior in old
25971         versions of glibc, so do not include it all the time.  Otherwise
25972         we get build failures on systems that do not provide langinfo.h.
25973         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25974         in the source later on.
25975         The patch was originally submitted to gettext as:
25976         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25978 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25980         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25981         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25982         * lib/u64.c, lib/unistd.c:
25983         Append 'typedef int dummy;', to pacify compilers that are picky
25984         about empty translation units.
25986 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25988         accept4-tests: fix to avoid non portable flags
25989         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25990         as they are the only documented ones, and passing others may trigger
25991         EINVAL (seen on FreeBSD 10.1-RELEASE).
25992         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25993         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25995 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25997         gnulib-tool: fix tests of 'extensions' module
25998         This complements f8fe25fab60e3c687a124 commit.
25999         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
26000         emitting of initial gl_EARLY macros.
26001         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
26002         replaced with func_emit_pre_early_macros call.
26004 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26006         unicase/locale-language: fix typo in utf-8 cookie
26007         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
26008         Problem reported by Zbigniew Jędrzejewski-Szmek.
26010 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26012         xalloc: do not worry about GCC 5 warning on 32 bit
26013         * lib/xalloc.h: Revert previous change.
26014         I found a better way to fix this in coreutils.
26016 2015-10-02  Pádraig Brady  <P@draigBrady.com>
26018         xalloc: avoid GCC 5.1 warning on 32 bit
26019         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
26020         xalloc_oversized(), which was seen to give this warning
26021         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
26022         when simplifying conditional".
26024 2015-10-02  Daiki Ueno  <ueno@gnu.org>
26026         uniname/uniname-tests: avoid compiler warnings
26027         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
26028         unused local variables.
26029         (test_alias_lookup): Fix alias name display in failure cases.
26031 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26033         c-ctype: do not worry about EBCDIC + char signed
26034         Drop support for EBCDIC with char being signed, as this breaks too
26035         many programs.  Problem reported by Ben Pfaff in:
26036         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
26037         * lib/c-ctype.h: Verify that we are not using EBCDIC with
26038         char being signed.
26039         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
26040         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
26041         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
26042         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
26043         * tests/test-c-ctype.c (test_all):
26044         Simplify by assuming standard char values cannot be negative.
26045         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
26047 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26049         c-ctype: port better to z/OS EBCDIC
26050         Problems reported by Daniel Richard G. in:
26051         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
26052         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
26053         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
26054         (_C_CTYPE_OTHER_CNTRL): New macro.
26055         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
26056         from SCHAR_MIN, as the functions are defined only from values
26057         promoted from char or from unsigned char, not necessarily from
26058         signed char.
26060 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
26062         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
26064         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
26065         and ARFLAGS variables.  Doing this unconditionally could break
26066         later Automake's AM_PROG_AR invocation (at least it's
26067         AC_CHECK_TOOLS call to detect correct 'ar' binary).
26069         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
26070         Amsterdam Compiler Kit, so make the previous code to have effects
26071         only on ACK, and rather automatically call the Automake's
26072         AM_PROG_AR as soon as possible to decide other cases.
26074         References:
26075         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
26077         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
26078         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
26079         is possible, keep setting AR/ARFLAGS to reasonable defaults.
26080         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
26081         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
26082         'extensions' module is used.
26083         * modules/extensions (configure.ac-early): Remove as this snippet
26084         is added to gnulib-comp.m4 earlier anyway.
26086 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26088         sockets: MS Windows initalization fixes
26089         Problem reported by Test User in:
26090         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
26091         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
26092         Correct the endianness.
26093         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
26094         number mismatch, not just on <.  Cleanup before any such failure.
26096 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26098         gc: fix detection of installed libgcrypt version
26099         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
26100         at least as recent as 1.4.4.  The previously used macro is not
26101         available now, since modules were removed in version 1.6.0.
26103 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26105         c-ctype: rewrite to use inline functions
26106         This simplifies maintenance, since it makes for just one
26107         implementation of each function, letting the compiler have the fun
26108         of optimization.  In practice this works well nowadays with GCC.
26109         E.g., c_isascii might need only three instructions even though the
26110         source code lists every ASCII character individually in a large
26111         switch statement.
26112         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
26113         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
26114         * NEWS: Document the API change.
26115         * lib/c-ctype.c: Drastically simplify, since this now just expands
26116         inline functions.
26117         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26118         (C_CTYPE_INLINE): New macro.
26119         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
26120         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
26121         Verify that either ASCII or EBCDIC is being used.
26122         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
26123         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
26124         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
26125         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
26126         New private macros.
26127         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
26128         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
26129         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
26130         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
26131         (c_tolower, c_toupper): When converting, return the unsigned char,
26132         as that is what z/OS does.
26133         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
26134         of some c-ctype.h macros.
26135         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
26136         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
26137         c_tolower promotion to be compatible with z/OS.
26139 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
26141         gitlog-to-changelog: trim only trailing whitespaces
26142         This is fix for --format regression introduced by commit
26143         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
26144         doubled %n string) had no effect anymore.  This format
26145         specification has been used e.g. by GNU paxuitils (commit
26146         edfd8bcc3).
26148         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
26149         newlines in commmit messages.
26151 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26153         Test that c_iscntrl agrees with iscntrl, etc.
26154         Suggested by Daniel Richard G. in:
26155         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
26156         * modules/c-ctype-tests (Depends-on): Add ctype.
26157         * tests/test-c-ctype.c: Include <ctype.h>.
26158         (NCHARS): New constant.
26159         (test_agree_with_C_locale): New function.
26160         (main): Use it.
26161         (test_all): Use named constants.
26163         c-ctype: improve c_isascii testing
26164         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
26165         Add a test to count the number of ASCII characters.
26167 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26169         savewd: remove SAVEWD_CHDIR_READABLE
26170         It was problematic in the light of file systems that ignore umask.
26171         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
26172         * NEWS: Document this.
26173         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
26174         successful, -1 (setting errno) on failure, rather than something
26175         more complicated than that.
26176         * lib/mkdir-p.c (make_dir_parents):
26177         Do not use SAVEWD_CHDIR_READABLE.
26178         * lib/savewd.c (savewd_chdir):
26179         Remove support for SAVEWD_CHDIR_READABLE.
26180         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
26182         c-ctype: port better to EBCDIC
26183         Problems reported by Daniel Richard G. in
26184         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
26185         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
26186         Include "verify.h".
26187         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
26188         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
26189         Define as enum constants with value false, if not defined, so that
26190         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
26191         code more portable, as both branches of the 'if' are compiled on
26192         all platforms.
26193         (C_CTYPE_EBCDIC): New constant.
26194         Verify that the character set is either ASCII or EBCDIC.
26195         (to_char): New static function.
26196         (c_isascii, c_iscntrl):
26197         Assume standard control-character assignments for EBCDIC.
26198         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
26199         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
26200         Rewrite to use 'if' instead of 'ifdef'.
26201         Use to_char if non-ASCII.  Prefer <= to >=.
26202         Prefer true and false to 1 and 0, for booleans.
26203         (c_iscntrl): Use 'if', not 'ifdef'.
26204         * modules/c-ctype (Depends-on): Add verify.
26205         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
26206         (to_char): New function.
26207         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
26209 2015-09-21  Pádraig Brady  <P@draigBrady.com>
26211         nanosleep: fix return code for interrupted replacement
26212         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
26213         that we return -1 in the case the call is interrupted by a signal,
26214         rather than the current value of 1.
26215         Diagnosed and tested by Daniel Richard G.
26217 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26219         Diagnose ERE '()|\1'
26220         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
26221         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
26222         track of the set of previously-completed subexpressions available
26223         before the first alternative, and restore this set just before
26224         parsing each subsequent alternative.  This lets us diagnose the
26225         invalid back-reference in the ERE '()|\1'.
26227         regex: merge patches from libc
26229         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26230         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
26231         * lib/regex_internal.h:
26232         Include <libc-lock.h> instead of <bits/libc-lock.h>.
26234         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
26235         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
26236         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
26237         wcscoll.
26238         * lib/regexec.c (check_node_accept_bytes): Likewise.
26240         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26241         Fix regex wcrtomb namespace (bug 18496).
26242         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
26243         instead of wcrtomb.
26245         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26246         Fix regex wctype namespace (bug 18495).
26247         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
26248         instead of towlower.
26249         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
26250         instead of iswlower.  Call __towupper instead of towupper.
26251         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
26252         instead of iswalnum.
26254         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
26255         * lib/regcomp.c (parse_bracket_exp): Initialize type to
26256         COLL_SYM in a couple of places to avoid uninitialized variable
26257         wanings on tilegx gcc 4.8.2.
26259         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26260         * lib/regex_internal.h: Remove NOT_IN_libc.
26262         2014-11-17  Andreas Schwab  <schwab@suse.de>
26263         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
26265         2014-09-11  Roland McGrath  <roland@hack.frob.com>
26266         Move findidx nested functions to top-level.
26267         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
26268         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26269         Pass new arguments to findidx.
26270         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26271         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26272         Don't #include it inside the function.  Pass new arguments to findidx.
26273         * lib/regex_internal.h:
26274         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26275         (re_string_elem_size_at): Don't #include it inside the function.
26276         Pass new arguments to findidx.
26278         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26279         Check if DEBUG is defined in regex_internal.c
26280         * lib/regex_internal.c: Check if DEBUG is defined and is set.
26282 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
26284         ceill: detect buggy OpenBSD implementation
26285         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
26286         which returns zero for small values.  Discussed here:
26287         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
26289 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
26291         mountlist: add me_mntroot field on Linux machines
26292         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
26293         mount_entry so Linux machines based on /proc/self/mountinfo can
26294         distinguish between bind mounts and original mounts.  In reality bind
26295         mounts aren't treated differently than mountroot=/ mounts by the
26296         kernel, but the user often wants these bind mounts distinguished.
26297         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
26298         More details at https://pad.lv/1432871
26300 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
26302         doc: Describe to use multiple instances of gnulib
26303         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
26304         instances of gnulib with different modules can be used, for example one
26305         for a lib and another one for associated tools.
26307 2015-09-01  Pádraig Brady  <P@draigBrady.com>
26309         base32: mark function as __attribute__ const
26310         * lib/base32.h (isbase32): Mark __attribute__ const as
26311         suggested by GCC, and consistent with the base64 module.
26313 2015-08-20  Daiki Ueno  <ueno@gnu.org>
26315         gnulib-tool: don't transform binary files with sed
26316         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
26317         .mo and .class files.
26318         Reported by Denis Denisov.
26320 2015-08-10  Daiki Ueno  <ueno@gnu.org>
26322         gperf: respect silent rules
26323         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
26324         V_GPERF_0 for silent rules.
26325         * modules/iconv_open (Makefile.am): Use V_GPERF.
26326         * modules/unicase/locale-language (Makefile.am): Likewise.
26327         * modules/unicase/special-casing (Makefile.am): Likewise.
26328         * modules/unictype/category-byname (Makefile.am): Likewise.
26329         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
26330         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
26331         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
26332         * modules/unictype/property-byname (Makefile.am): Likewise.
26333         * modules/unictype/scripts (Makefile.am): Likewise.
26334         * modules/uninorm/composition (Makefile.am): Likewise.
26336 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26338         Improve port of stdalign to C++11
26339         Problem reported by Sundaram in:
26340         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
26341         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
26342         (__alignas_is_defined): Define if C++11 or newer.
26344 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
26346         pmccabe2html: fix gawk regex escaping
26347         * build-aux/pmccabe2html: Add one more backslash to properly
26348         escape the gsub replacement value.  Fixes this error:
26349         gawk: ./build-aux/pmccabe2html:425: \
26350         warning: escape sequence `\&' treated as plain `&'
26352 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
26354         time_rz: port to pedantic memcpy
26355         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
26356         that reject memcpy (..., NULL, 0).
26358 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
26360         time_rz: port better to MinGW
26361         Don't change tzname, as this makes MinGW dump core (Bug#21020).
26362         Instead, store the tzname copy in the struct tm_zone object.
26363         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
26364         * lib/strftime.c [!_LIBC]:
26365         * lib/time_rz.c: Include time-internal.h.
26366         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
26367         name from *TZ rather than from TZNAME, doable because *TZ now has
26368         a tzname_copy member.
26369         * lib/time-internal.h: New file, with contents taken from
26370         lib/time_rz.c.  It's separate because strftime.c now accesses
26371         struct tm_zone members.
26372         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26373         New member tzname_copy.
26374         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
26375         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26376         Initialize tzname_copy member.
26377         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
26378         in tzname_copy member.
26379         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
26380         (restore_tzname): Remove; no longer needed.  All calls removed.
26381         * modules/time_rz (Files): Add lib/time-internal.h.
26383         time: port __need_time_t to MinGW
26384         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
26385         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
26387 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26389         strftime: fix newly-introduced bug on Solaris
26390         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
26391         consistently at the start, rather than doing some of the setup at
26392         the start and some in the %Z format spec.  This is cleaner, and
26393         works better with time_rz on platforms like Solaris where struct
26394         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
26395         mktime_z and localtime_rz can mess up the tzname cache.
26397         test-strftime: test for Solaris bug
26398         * modules/strftime-tests (Depends-on): Add strerror.
26399         * tests/test-strftime.c: Include <errno.h>.
26400         (posixtm_test): New function, containing the old 'main'.
26401         (struct tzalloc_test, struct localtime_rz_test): New types.
26402         (TZ, LT): New static vars.
26403         (tzalloc_test): New function.
26404         (main): Rewrite in terms of posixtm_test and tzalloc_test.
26406         time_rz: port to Solaris etc.
26407         Works around a tzname problem on platforms like Solaris that have
26408         tzname but not tm_zone, by setting tzname at the appropriate time
26409         and restoring it later.
26410         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
26411         New static vars.
26412         (save_abbr) [HAVE_TZNAME]: Set them.
26413         (revert_tz) [HAVE_TZNAME]: Clear or use them.
26414         (restore_tzname): New function.
26415         (localtime_rz, mktime_z): Use it.
26417         time_rz: now LGPL
26418         * modules/time_rz (License): Now LGPL, because strftime depends on it.
26420         time_rz: make a constant 'const'
26421         * lib/time_rz.c (local_tz): Now const.
26423         time_rz: fix off-by-one typo
26424         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
26426 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
26428         fprintftime, strftime: use timezone_t args
26429         * NEWS: Document the change.
26430         * lib/fprintftime.h (fprintftime):
26431         * lib/strftime.c (extra_args) [my_strftime]:
26432         * lib/strftime.h (nstrftime):
26433         Time zone arg is now of type timezone_t, not int.
26434         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
26435         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
26436         (my_strftime) [emacs && !my_strftime]:
26437         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
26438         Remove; Emacs doesn't need this any more.
26439         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
26440         fprintftime and nstrftime to call tzset.
26441         (ut) [!my_strftime]: Remove, replacing with ...
26442         (tz) [!my_stftime]: ... this new macro.  All uses changed.
26443         (strftime_case_): Use localtime_rz and mktime_z instead
26444         of localtime_r and mktime.
26445         * modules/fprintftime (Depends-on): Add time_rz.
26446         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
26447         * tests/test-strftime.c (main): Adjust to new nstrftime API.
26449         time_rz: new module
26450         * MODULES.html.sh: Add time_rz.
26451         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
26452         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
26453         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
26454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
26455         New var HAVE_TIMEZONE_T (default 0).
26456         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
26457         New var GNULIB_TIME_RZ (default 0).
26458         * modules/time (time.h): Substitute the new vars.
26460         flexmember: license is now unlimited
26461         * modules/flexmember (License): Change to unlimited,
26462         since its only source file gives an unlimited license.
26464 2015-07-15  Eric Blake  <eblake@redhat.com>
26466         maint: update copyright paper procedures
26467         * config/srclist.txt: Drop outdated files.
26468         * doc/Copyright/conditions.txt: Update to latest.
26469         * doc/Copyright/assign.changes.manual: Delete.
26470         * doc/Copyright/assign.future.manual: Likewise.
26471         * doc/Copyright/assign.manual: Likewise.
26472         * doc/Copyright/assign.translation.manual: Likewise.
26473         * doc/Copyright/disclaim.changes.manual: Likewise.
26474         * doc/Copyright/disclaim.manual: Likewise.
26475         * doc/Copyright/disclaim.program: Likewise.
26477 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26479         localename: fix link error on Illumos
26480         Illumos defines __sun, but does not have getlocalename_l nor the
26481         equivalent.  This partially reverts commit 387c214.
26482         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
26483         available, as well as uselocale.
26484         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
26485         use getlocalename_l if it is not available.
26487 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26489         unistr/uN-strtok-tests: avoid a trivial leak
26490         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
26491         input and delim after the multibyte delimiter tests.
26493 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26495         file-has-acl, acl-permissions: fix HP-UX typos
26496         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
26497         * lib/file-has-acl.c (file_has_acl):
26498         * lib/set-permissions.c (context_acl_from_mode)
26499         (context_aclv_from_mode, set_acls):
26500         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
26501         They were introduced by the recent ACL changes.
26503         regex: match current GNU grep behavior
26504         These symbols have not matched GNU grep behavior for quite some time.
26505         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
26506         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
26507         Change to match current GNU behavior.
26508         Simplify by expressing it as differences from POSIX BREs and EREs.
26509         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
26511 2015-07-03  Jim Meyering  <meyering@fb.com>
26513         set-permissions.c: adjust acl_from_mode's cpp guard
26514         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
26515         directives identical to those guarding the sole use.
26516         Otherwise, on some systems, we'd get a warning about
26517         the function being defined but not used.
26518         Also, filter through cppi to correct misleading indentation
26519         of cpp directives.
26521 2015-07-03  Pádraig Brady  <P@draigBrady.com>
26523         tests: restrict shells to those that support 'local'
26524         The local keyword is very widely supported and used
26525         in tests in coreutils and grep at least.  Therefore
26526         restrict to testing with shells that support it.
26527         This mainly excludes /bin/sh on Solaris.
26528         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
26530 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
26531         and Daiki Ueno  <ueno@gnu.org>
26533         unistr/uN-strtok: handle multibyte delimiters
26534         Previously, uN_strtok moved PTR to the next unit to the token end.
26535         When DELIM contained a multibyte character, the new position could
26536         be a middle of a multibyte character.
26537         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
26538         after the token.
26539         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
26540         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
26541         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
26542         * modules/unistr/u8-strtok (Depends-on): Depend on
26543         unistr/u8-strmblen.
26544         * modules/unistr/u16-strtok (Depends-on): Depend on
26545         unistr/u16-strmblen.
26546         * modules/unistr/u32-strtok (Depends-on): Depend on
26547         unistr/u32-strmblen.
26548         * tests/unistr/test-u-strtok.h: New file.
26549         * tests/unistr/test-u8-strtok.c: New file.
26550         * tests/unistr/test-u16-strtok.c: New file.
26551         * tests/unistr/test-u32-strtok.c: New file.
26552         * modules/unistr/u8-strtok-tests: New file.
26553         * modules/unistr/u32-strtok-tests: New file.
26554         * modules/unistr/u16-strtok-tests: New file.
26556 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
26558         update-copyright: fix test failure with perl >= 5.22 (trivial)
26559         * build-aux/update-copyright: Escape a literal left curly bracket,
26560         required with perl >= 5.22
26562 2015-07-02  Daiki Ueno  <ueno@gnu.org>
26564         u{16,32}-strstr-tests: relax timeout condition
26565         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
26566         tests can take longer than 5 seconds to complete.
26567         Reported by Dagobert Michelsen in:
26568         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
26569         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
26570         seconds to 10 seconds.
26571         * tests/unistr/test-u32-strstr.c (main): Likewise.
26573 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26575         gnulib-common.m4: change the ARFLAGS default to 'cr'
26576         In some GNU/Linux distributions people started to compile 'ar'
26577         binary with --enable-deterministic-archives (binutils project).
26578         That, however, in combination with previous autotools long time
26579         working default AR{_,}FLAGS=cru causes warnings on such
26580         installations:
26581         ar: `u' modifier ignored since `D' is the default (see `U')
26582         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
26583         set already.
26585 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26587         selinux-h: avoid double free after *getfilecon()
26588         Originally reported by Ben Shelton on bug-tar:
26589         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
26590         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
26591         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
26592         param should be freed by freecon(3) (regardless the return value).
26594 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
26596         fix pty related tests issues on Windows (trivial)
26597         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
26598         however it's still present in tests/ subdirectory of the final project.
26599         Therefore avoid it to pass `make check`.
26600         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
26601         will just return -ENOSYS, so avoid this non applicable test allowing
26602         the build to proceed.
26604 2015-07-01  Pádraig Brady  <P@draigBrady.com>
26606         acl: fix definition of acl_from_mode on FreeBSD
26607         This was causing basic coreutils copy operations to fail
26608         with ENOTSUP or ENOENT error messages.
26609         * lib/acl-internal.h (acl_from_mode): Only define when
26610         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
26611         of acl_from_mode() defined in lib/set-permissions.c to
26612         be used on FreeBSD at least.
26613         * lib/set-permissions.c: Fix up comment spelling,
26614         and a redundant variable assignment; noticed in passing.
26616 2015-06-30  Pádraig Brady  <P@draigBrady.com>
26618         readutmp: port to FreeBSD >= 9
26619         * lib/readutmp.h: Map utmpxname() to setutxdb().
26620         With that coreutils who(1) and pinky(1) tests pass.
26622 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26624         mgetgroups: port to strict OS X
26625         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
26626         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
26627         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
26628         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
26630 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
26632         mgetgroups: port to strict OS X
26633         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
26634         Document the getgrouplist problem.
26635         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
26636         New macro.
26637         (mgetgroups): Use it.
26638         * m4/mgetgroups.m4 (gl_MGETGROUPS):
26639         Check for OS X signature for getgrouplist.
26641 2015-06-29  Jim Meyering  <meyering@fb.com>
26643         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
26644         It started like this when building coreutils' latest on OS X,
26645         invoking ./configure with a nonempty --cache=.cache:
26647           lib/linkat.c:46:42: error: operator '||' has no right operand
26648           lib/linkat.c: In function 'rpl_linkat':
26649           lib/linkat.c:330:27: error: #if with no expression
26651         Here's linkat.c's line 46:
26653           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
26655         Here's some context:
26657           $ grep linkat_nofoll .cache
26658           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
26659           $ grep LINKAT_SYM lib/config.h
26660           #define LINKAT_SYMLINK_NOTSUP
26662         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
26663         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
26664         but that violates a tenet of AC_CACHE_CHECK: it must
26665         have no side effect other than setting its cache variable.
26667         What happens is that when the cache is set, we'd skip the
26668         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26669         defined to whatever value it happened to have in configure's
26670         environment.  In my case, it was not defined, so this later code:
26672           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26673             [Define to 1 if linkat can create hardlinks to symlinks])
26675         would emit code with an empty RHS.
26677         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26678         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26680 2015-06-28  Jim Meyering  <meyering@fb.com>
26682         mountlist: avoid an unused-label warning on OS X
26683         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26684         Building on OS X, I saw a warning about the "free_then_fail" label
26685         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26687         error.c: correct printf-style format: %d -> %u
26688         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26689         rather than %d, to match the type of "line_number", unsigned int.
26691 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26693         fts: avoid reading beyond the heap allocation
26694         GCC 5.1.1 with -O2 and -fsanitize=address reports
26695         a read of size 4 from a heap object of size 3 is indeed invalid,
26696         though this may be due to incorrect padding assumptions by GCC, see:
26697         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26698         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26699         * modules/fts: Depend on stdalign.
26701 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26703         savedir: avoid undefined behavior in qsort call
26704         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26705         "runtime error: null pointer passed as argument 1,
26706          which is declared to never be null"
26707         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
26709 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26711         userspec: avoid undefined behavior in gettext call
26712         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26713         "runtime error: null pointer passed as argument 2,
26714          which is declared to never be null"
26715         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
26717 2015-06-20  Glenn Morris  <rgm@gnu.org>
26719         gitlog-to-changelog: improve gitmerge.el commits
26720         Let the Emacs ChangeLog generation process exclude "skipped"
26721         messages from merge commits (Bug#20717).
26722         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
26724 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26726         wchar: fix MinGW compilation warnings
26727         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
26728         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
26729         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
26731 2015-06-20  Daiki Ueno  <ueno@gnu.org>
26733         uniname/uniname-tests: use pristine data files
26734         For copyright and maintenance reasons, use the data files from UCD
26735         without modification.
26736         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
26737         (getfield): Remove.
26738         (aliases_count): New global variable.
26739         (fill_names): Skip comments and empty lines in the input.  Don't
26740         use getfield.
26741         (fill_aliases): Likewise.
26742         (main): Change the expected command line arguments to:
26743         NAMES... ["--" ALIASES...].
26744         * tests/uniname/test-uninames.sh: Adjust to the change in
26745         test-uninames.c.
26746         * tests/uniname/UnicodeDataNames.txt: Remove.
26747         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
26748         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
26749         file from Unicode 8.0.0.
26751 2015-06-19  Pádraig Brady  <P@draigBrady.com>
26753         linked-list, linkedhash-list: avoid compiler warnings
26754         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26755         -Werror=suggest-attribute=pure (from GCC 5.1.1).
26757 2015-06-19  Daiki Ueno  <ueno@gnu.org>
26759         libunistring: bump minimum version to 0.9.6
26760         * all modules depending on updated Unicode data: Regenerate.
26761         The modules are listed by a script that does:
26762         - for each file listed by: git show --oneline --name-only 705f4efc
26763           - deduce the containing modules, based on "Files:"
26764         - deduce the modules which depend on the containing modules, based
26765           on "Depends-on:"
26767 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26769         uniname/uniname: update to Unicode 8.0.0
26770         * lib/uniname/uninames.h: Regenerate.
26771         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
26772         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
26774 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26776         libunistring: update to Unicode 8.0.0
26777         * lib/gen-uni-tables.c (SIZEOF): New macro.
26778         (output_numeric): Increase the maximum number of fractions from
26779         128 to 160.  Increase the level3 value width from 7 bits to 8
26780         bits.  Use SIZEOF instead of a hard-coded integer.
26781         (output_blocks): Decrease the cut-off threshold from 0x30000 to
26782         0x28000.
26783         (fill_blocks): Increase the maximum number of blocks from 256 to
26784         384.  Use SIZEOF instead of a hard-coded integer.
26785         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
26786         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
26787         value width.
26788         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
26789         a new case added to LBP22.
26790         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
26791         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
26792         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
26793         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
26794         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
26795         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26796         lib/uniwidth/width.c.
26797         * all generated files under lib/uni* and tests/uni*: Regenerate.
26799 2015-06-16  Pádraig Brady  <P@draigBrady.com>
26801         gnu-web-doc-update: add --mirror to remove stale files
26802         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
26803         out of date files from the CVS server.  Since this is usually
26804         appropriate, a prompt is given when the option is not specified,
26805         along with the `cvs remove` command that would be run.
26807 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26809         acl-permissions: pacify -Wsuggest-attribute=const
26810         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26811         * lib/acl-internal.h (free_permission_context):
26812         Declare with attribute const if ! (defined USE_ACL &&
26813         (HAVE_ACL_GET_FILE || defined GETACL)).
26815         fsync: document AIX misbehavior
26816         * doc/posix-functions/fsync.texi (fsync):
26817         Document failure on AIX with read-only file descriptor.
26819 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26821         stdio: Don't redefine gets when using C++
26822         * lib/stdio.in.h (gets): Disable warning on C++.
26824 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26826         acl-permissions: port to AIX, C89 HP-UX
26827         Problems reported by Michael Felt.
26828         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26829         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26830         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26831         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26832         Add cast for AIX, whose system calls are declared to accept
26833         char * even though the arguments are really char const *.
26834         * lib/get-permissions.c (get_permissions):
26835         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26836         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26837         that broke a build.
26838         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26839         Rework types to pacify xlc.
26841 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26843         vasprintf-posix: avoid compiling vasnprintf where possible
26844         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26845         module where not required.  For example on a GNU/Linux system
26846         when gnulib-tool is run with the --conditional-dependencies option.
26848 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26850         file-has-acl: fix build on Mac OS X 10
26851         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26852         which has an incompatible 6 parameter getxattr() call.
26853         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26854         call on Mac OS X >= 10.4.
26855         * doc/glibc-functions/fgetxattr.texi: Likewise.
26856         * lib/file-has-acl.c: Revert to more complete combined check.
26857         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26858         Reported by Jack Howarth.
26860 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26862         prefix-gnulib-mk: remove no longer needed special case
26863         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26864         continued lib_SOURCES lines are no longer present,
26865         so special case handling of such entries is not required.
26867 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26869         acl: don't depend on the deprecated qacl module
26870         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26872 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26874         gnulib-tool: concatenate lib_SOURCES to a single line
26875         * gnulib-tool: Refactor the line merging sed logic,
26876         and use that to output a single lib_SOURCES line for each module.
26877         gnulib using projects often postprocess this output to prepend
26878         subdir paths to each item, and having a single line simplifies this
26879         processing allowing better decoupling from the gnulib-tool output.
26881 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26883         pthread_sigmask: discount system version if a simple macro (trivial)
26884         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26886         function to ensure it's available.
26888 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26890         readlinkat: avoid OS X 10.10 trailing slash bug
26891         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26892         has this bug.
26893         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26894         that OS X 10.10 has this function.
26895         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26896         as done for readlink().
26897         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26898         trailing slash bug, and assume readlinkat() has the same issue.
26899         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26900         rather than the correct $gl_cv_decl_readlinkat_works.
26902 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26904         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26905         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26906         module rewrite.
26908         acl-permissions: Fix build on Solaris and Cygwin
26909         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26910         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26911         ace_entries variables have moved into struct permission_context but
26912         they were still accessed as local variables here.
26914 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26916         linkat: avoid OS X 10.10 trailing slash with symlink bug
26917         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26918         causes the symlink to be dereferenced, and if it points
26919         to a non existent file, that file will be created as
26920         a hard link to "path1".
26921         This fixes a test failure in test-linkat.c.
26922         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26923         this case.  The existing workaround in linkat.c for
26924         trailing slash issues, suffices for this case.
26925         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26926         the list of platforms with trailing slash issues.
26928 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26930         unlinkat: handle ignoring of ".." on Darwin 14
26931         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26932         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26933         so handle in the same manner.
26934         * m4/unlinkat.m4: Comment on this Darwin issue.
26935         * doc/posix-functions/unlink.texi: Update the latest version
26936         where the issue was seen.
26937         * doc/posix-functions/unlinkat.texi: Mention this issue.
26938         Fixes a test failure in test-unlinkat.c.
26940 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26942         qacl: split into qcopy-acl and qset-acl
26943         Emacs needs the former, but not the latter.
26944         * modules/acl-permissions: New file, containing most of the old qacl.
26945         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26946         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26947         * modules/qcopy-acl, modules/qset-acl: New files.
26948         * MODULES.html.sh (File system functions):
26949         Mention the new modules, and mention qacl while we're at it.
26951 2015-05-27  Glenn Morris  <rgm@gnu.org>
26953         gitlog-to-changelog: new option --ignore-line
26954         (This patch is imported from the GNU Emacs master.)
26955         This option ignores individual commit lines matching a pattern.
26956         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26958 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26960         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26961         Implement get_permissions and set_permissions primitives for getting all
26962         the permissions of a file, storing them, and later setting them. (In the
26963         minimal case, the permissions consist only of a file mode.) Reimplement
26964         qset_acl and qcopy_acl based on these new primitives: this avoids code
26965         duplication and makes error handling more consistent.
26966         The Solaris and Cygwin code still uses duplicate code paths for setting
26967         a file mode while making sure that no acls exist and setting an explicit
26968         acl; this is no worse than before, but could be cleaned up.  The AIX
26969         code still doesn't read ACLs, it only makes sure that acls don't get in
26970         the way when setting a file mode.
26971         * lib/acl-internal.h (struct permission_context): New data structure.
26972         (get_permissions, set_permissions, free_permission_context): Declare.
26973         * lib/acl-internal.c (free_permission_context): New helper function.
26974         * lib/get-permissions.c (get_permissions): New helper function split off
26975         from qcopy_acl.
26976         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26977         AIX, set a file's permissions based only on a file mode.
26978         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26979         other platforms construct a temporary acl from the file mode and set
26980         that acl in the same way as setting an acl read from the source file.
26981         This should help avoid code duplication and inconsistent / buggy
26982         behavior.
26983         (set_acls): New helper function Split off from qcopy_acl.
26984         (chmod_or_fchmod): Moved here from qset-acl.c.
26985         (set_permissions): New helper function.
26986         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26987         set_permissions.
26988         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26989         * modules/qacl: Add get-permissions.c and set-permissions.c.
26991         file-has-acl: Split feature tests again (Bug#20667)
26992         * lib/file-has-acl.c: Instead of testing for
26993         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26994         define them when needed.
26995         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26996         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26998 2015-05-27  Pádraig Brady  <P@draigBrady.com>
27000         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
27001         This avoids a conflict with "FORTIFY_SOURCE" variants
27002         of the string functions when they're replaced on NetBSD-6.0.1
27003         and Darwin-14.3.0 at least.
27004         * lib/string.in.h: Avoid including our "lib/string.h" while
27005         including the system <string.h>.
27007 2015-05-26  Eric Blake  <eblake@redhat.com>
27009         stdio: limit __gnu_printf__ witness to gcc 4.4+
27010         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
27011         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
27013         error: use correct printf attributes on mingw
27014         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
27016         inttypes: force correct mingw PRIdMAX even without <stdio.h>
27017         * modules/inttypes (Depends-on): Require extensions, so that mingw
27018         always uses GNU style inttypes.
27019         * lib/inttypes.in.h: On mingw, include <stdio.h>.
27021         stdio: fix probe on mingw under gcc 5.1
27022         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
27023         around new gcc preprocessor rules.
27025 2015-05-07  Glenn Morris  <rgm@gnu.org>
27027         gitlog-to-changelog: parse "Tiny-change"
27028         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
27029         "Copyright-paperwork-exempt".  (Bug#20324)
27031 2015-05-06  Pádraig Brady  <P@draigBrady.com>
27033         doc: document glibc posix_fallocate() issues
27034         * doc/posix-functions/posix_fallocate.texi: Mention the
27035         glibc efficiency problems and issues with NFS.
27037 2015-05-05  Karl Berry  <karl@freefriends.org>
27039         * build-aux/gendocs.sh (usage): document new css default
27040         for HTML (--htmlarg).
27042 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
27044         extern-inline: no need for workaround in GCC 5.1
27045         * doc/extern-inline.texi (extern inline):
27046         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
27047         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
27048         around these bugs in GCC 5.1 and later.  Maybe in a decade or
27049         two we can remove these workarounds.
27051 2015-04-28  Pádraig Brady  <P@draigBrady.com>
27053         eealloc, pagealign_alloc, xalloc: avoid clang warnings
27054         Avoid [-Wunknown-attributes] warnings like:
27055         warning: unknown attribute '__alloc_size__' ignored
27056         * lib/xalloc.h: Don't use the __alloc_size__  attribute
27057         with clang, as support has been fully removed as of clang 3.5:
27058         https://github.com/llvm-mirror/clang/commit/c047507a
27059         * lib/eealloc.h: Likewise.
27060         * lib/pagealign_alloc.h: Likewise.
27062 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27064         tests: pacify GCC 5.1's stricter printf checking
27065         * tests/test-dirname.c (main):
27066         * tests/test-getaddrinfo.c (simple):
27067         * tests/test-getlogin.c (main):
27068         * tests/test-getndelim2.c (main):
27069         * tests/test-inttostr.c (CK):
27070         * tests/test-md5.c (main):
27071         * tests/test-read-file.c (main):
27072         * tests/test-sha1.c (main):
27073         Fix mismatches between printf format and value signedness.
27074         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
27075         Remove, as CAST_VAL always returned a value of type uintmax_t.
27077         fts: port to GCC 5.1 with --enable-gcc-warnings
27078         Without this fix, GCC 5.1 (correctly) warns about a subscript
27079         error on the fts_name component of FTSENT.  It's actually a
27080         flexible member, so define it that way on C99 or later hosts.
27081         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
27082         structure that now has a flexible array member.
27083         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
27084         (FTSENT): fts_name is now flexible on C99-or-later platforms.
27085         * modules/fts (Depends-on): Add flexmember.
27087 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
27089         file-has-acl: port to CentOS 6
27090         Problem reported by Tom G. Christensen in:
27091         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
27092         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
27093         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
27094         HAVE_GETXATTR.
27095         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
27096         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
27097         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
27098         file-has-acl.c actually needs.
27100 2015-04-26  Pádraig Brady  <P@draigBrady.com>
27102         file-has-acl: always return false when ACLs aren't supported
27103         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
27104         change the GNU/Linux getxattr path, to transform "not supported"
27105         errors to a false return rather than an error.  This is handled
27106         within file_has_acl() due to the platform specific tests to
27107         determine if ACLs are not supported.
27109 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27111         gettext: propagate po/Makefile.in.in too
27112         * build-aux/po/Makefile.in.in: Copy from latest gettext.
27113         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
27114         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
27115         between Makefile.in.in and the gettext-runtime m4 files.
27117 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27119         file-has-acl: new module, split from acl
27120         And add a new module file-has-acl-tests to match.
27121         I ran into a problem with the recent changes to the acl module,
27122         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
27123         When using the fixed version with Emacs, I discovered that
27124         file-has-acl wasn't separated out well enough for Emacs (e.g., it
27125         had multiple libraries, but needed only one), so I fixed that too.
27126         * NEWS: Document this incompatible change.
27127         * modules/file-has-acl, modules/file-has-acl-tests: New files.
27128         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
27129         Initialize gl_need_lib_has_acl.
27130         (gl_FUNC_ACL): Require it.
27131         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
27132         Move the file-has-acl.c-relevant stuff to ...
27133         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
27134         use_xattrs = 0' typo, and omit some needless work.  Set
27135         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
27136         when gl_FUNC_ACL is called.
27137         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
27138         (Link): Remove $(LIB_HAS_ACL).
27139         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
27140         (check_PROGRAMS): Move stuff relevant to file-has-acl to
27141         modules/file-has-acl-tests.
27142         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
27144         manywarnings: add GCC 5.1 warnings
27145         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
27146         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
27147         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
27148         -Wsuggest-override, -Wuse-without-only.  Change
27149         -Wnormalized=... operands to match 5.1.
27150         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
27151         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
27152         -Wdiscarded-qualifiers, -Wformat-signedness,
27153         -Wincompatible-pointer-types, -Wint-conversion,
27154         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
27155         -Wshift-count-negative, -Wshift-count-overflow,
27156         -Wsizeof-array-argument, -Wsuggest-final-methods,
27157         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
27158         and add -Warray-bounds=2 as a special case.
27160 2015-04-21  Simon Josefsson  <simon@josefsson.org>
27162         doc: update FDL template to match FDL examples.
27163         * doc/alloca-opt.texi:
27164         * doc/alloca.texi:
27165         * doc/c-ctype.texi:
27166         * doc/c-strcase.texi:
27167         * doc/c-strcaseeq.texi:
27168         * doc/c-strcasestr.texi:
27169         * doc/c-strstr.texi:
27170         * doc/c-strtod.texi:
27171         * doc/c-strtold.texi:
27172         * doc/ctime.texi:
27173         * doc/error.texi:
27174         * doc/gcd.texi:
27175         * doc/gnulib-tool.texi:
27176         * doc/inet_ntoa.texi:
27177         * doc/intprops.texi:
27178         * doc/lib-symbol-visibility.texi:
27179         * doc/maintain.texi:
27180         * doc/parse-datetime.texi:
27181         * doc/quote.texi:
27182         * doc/regexprops-generic.texi:
27183         * doc/standards.texi: Remove spurious 'with' in FDL license
27184         template.
27186 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
27188         lstat: fix cross-compilation 'ln -s' problem
27189         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27190         Have the test program call 'symlink' rather than a separate
27191         script run 'ln -s'; this is more likely to work in
27192         cross-compilation environments.  Reported by Pavel Fedin in:
27193         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
27195 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
27197         gendocs.sh: default to a common CSS style sheet for HTML output
27198         * build-aux/gendocs.sh (htmlarg): Change default value.
27200 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
27202         gnulib-tool: output bold attribute more portably
27203         * gnulib-tool (func_show_module_list): Change hexadecimal
27204         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
27205         encoded numbers as arguments to `printf' is not portable,
27206         and is not claimed by POSIX.  This is the case with FreeBSD.
27208 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27210         qacl: Simplify HP-UX acl_nontrivial check
27211         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
27212         acl_nontrivial. Check if the acl has at most three entries instead (it must
27213         have exactly three entries according to the HP-UX documentation). Ignore
27214         uids and gids as long as an entry is either for a user (i.e., the owner),
27215         a group (i.e., the owning group), or others.
27216         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
27217         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
27219 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
27221         acl: On Linux, check for acls without libacl
27222         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
27223         library function to check for the presence of acls, avoiding a library.
27224         * lib/file-has-acl.c: Include xattr headers if we have them.
27225         (file_has_acl): On Linux, use getxattr().
27226         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
27227         file_has_acl(). Check for xattr headers and getxattr().
27229 2015-04-14  Ángel González  <keisial@gmail.com>
27231         tempname: avoid unused parameter warnings (trivial)
27232         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
27233         (try_nocreate): Likewise.
27235 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
27237         fseeko: fix build failure on NetBSD >= 6 (trivial)
27238         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
27239         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
27241 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27243         gitlog-to-changelog: port to MS-Windows
27244         * build-aux/gitlog-to-changelog (git_dir_option):
27245         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
27246         MS-Windows Perl.  Reported by Eli Zaretskii in:
27247         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
27249 2015-04-07  Karl Berry  <karl@gnu.org>
27251         gendocs: new option --tex for passing args to texi2dvi.
27252         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
27253         (TEXI2DVI): cut to just command name.
27254         (usage): mention new option, and update copyright.
27255         <generate_tex>: use it.
27257 2015-04-07  Karl Berry  <karl@gnu.org>
27259         * config/srclistvars.sh (GETTEXT): new definition.
27260         * config/srclist.txt: use it for gettext .m4 files.
27261         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
27262         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
27263         and continuing into April.
27265 2015-04-07  Daiki Ueno  <ueno@gnu.org>
27267         uniname/uniname-tests: fix failure due to alias
27268         Reported by Jack Howarth in:
27269         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
27270         * tests/uniname/test-uninames.c (name_has_alias): New function.
27271         (test_inverse_lookup): Exclude character name with valid alias,
27272         from randomly generated character names.
27273         (main): Fill unicode_aliases before calling test functions.
27275 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
27277         hash: remove deprecated hash_insert0 function
27278         * lib/hash.h (hash_insert0): Remove deprecated function.
27279         * lib/hash.c (hash_insert0): Likewise.
27281 2015-04-02  Pádraig Brady  <P@draigBrady.com>
27283         mountlist: remove dependency on libmount
27284         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
27285         directly, rather than depending on libmount, which has many
27286         dependencies due to its dependence on libselinux, as detailed at:
27287         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
27288         Note we restrict this to __linux__ as that's probably where this
27289         interface will remain.  If ever porting, it would be best
27290         to first pull the makedev() wrapper from coreutils to a gnulib module.
27291         Note also we don't add a getline dependency to the mountlist module,
27292         as all Linux versions are sufficient.
27294 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
27296         stddef: port to pre-C11 GCC on x86
27297         On this platform, max_align_t should have an alignment of 8 even
27298         though the storage alignments of double, long, etc. max out at 4.
27299         Inspired by a comment of Andreas Schwab's here:
27300         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
27301         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
27302         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
27303         * tests/test-stddef.c: Test __alignof__ too, if available.
27305 2015-03-24  Pádraig Brady  <P@draigBrady.com>
27307         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
27308         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
27310 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
27312         yesno: make EOL optional in ENABLE_NLS case also (trival)
27313         * lib/yesno.c (yesno): Check for EOL before replacing.
27314         * tests/test-yesno.sh: Add a test case (test along with gettext).
27316 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27318         fdopendir-tests: test it does not close its arg
27319         * tests/test-fdopendir.c (main): Test that fdopendir does not
27320         close its argument.  From a suggestion by David Grayson in:
27321         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
27323 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
27325         gitlog-to-changelog: trim trailing white space
27326         * build-aux/gitlog-to-changelog (main):
27327         Trim trailing white space from commit message lines.
27328         This is helpful for processing the GNU Emacs repository,
27329         which dates back to 1985 and contains a lot of such lines.
27331         gitlog-to-changelog: new option --ignore-matching
27332         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
27333         Support new option --ignore-matching=PAT, which ignores all
27334         commit messages whose first line matches PAT.
27336 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27338         fdopendir: port better to MinGW
27339         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
27340         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
27341         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
27342         * modules/fdopendir (Depends-on): Add dirfd.
27344 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27346         fdopendir: fix typo in comment
27347         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
27349 2015-03-09  Eric Blake  <eblake@redhat.com>
27351         error: document all entry points provided
27352         * doc/glibc-functions/error_print_progname.texi
27353         (error_print_progname): Mention the error module.
27354         * doc/glibc-functions/error_at_line.texi (error_at_line):
27355         Likewise.
27356         * doc/glibc-functions/error_message_count.texi
27357         (error_message_count): Likewise.
27358         * doc/glibc-functions/error_one_per_line.texi
27359         (error_one_per_line): Likewise.
27361 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
27363         vasnprintf: pacify clang 3.5.0
27364         Problem reported by Werner Lemberg in:
27365         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
27366         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
27367         The casts aren't needed, since the characters in question are ASCII.
27369 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27371         glob, etc.: port to MSVC v18 on MS-Windows 8.1
27372         * lib/dirent--.h (GNULIB_defined_opendir):
27373         * lib/dirent.in.h (GNULIB_defined_opendir)
27374         (GNULIB_defined_closedir):
27375         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
27376         #undef only if Gnulib defined it.
27378         poll: port to MSVC v18 on MS-Windows 8.1
27379         Problem reported by Gisle Vanem in:
27380         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
27381         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
27382         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
27383         Add sys_socket.
27385 2015-02-24  Pádraig Brady  <P@draigBrady.com>
27387         tests: support stderr verification with returns_()
27388         * tests/init.sh (returns_): Disable tracing for this wrapper
27389         function, so that stderr of the wrapped command is unchanged,
27390         allowing for verification of the contents.
27392 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
27394         passfd: avoid valgrind uninitalised data warning
27395         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
27396         to include just the fd we've initialized, rather than including
27397         the extra space used for alignment.
27399 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27401         uniwbrk/u32-wordbreaks-tests: fix copyright
27402         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
27404         dup2: doc and test for Android bug
27405         Reported by Kevin Cernekee in:
27406         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
27407         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27408         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
27410 2015-02-23  Kevin Cernekee  <cernekee@google.com>
27412         Replace dup2() on Android
27413         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
27414         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
27415         fails.  Using rpl_dup2() fixes this because it has an explicit test
27416         for this condition.
27418 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
27420         Android doesn't define RLIM_SAVED_*
27421         Portability problem reported by Kevin Cernekee in:
27422         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
27423         * doc/posix-headers/sys_resource.texi (sys/resource.h):
27424         Mention the portability problem.
27425         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
27426         Define if not defined.
27427         * m4/dup2.m4 (gl_FUNC_DUP2):
27428         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27429         Likewise.
27431 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27433         vasnprintf-posix-tests: use consistent test
27434         * tests/test-vasnprintf-posix.c (test_function):
27435         Use "<" in assert instead of "<=", for consistency with other tests.
27437 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27439         printf, isinf, etc.: noncanonical != NaN
27440         Do not require that isinf, printf, etc. treat noncanonical
27441         values as NaNs.  Instead, require only that they do not crash.
27442         Problem reported by Joseph Myers in:
27443         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
27444         * doc/posix-functions/dprintf.texi (dprintf):
27445         * doc/posix-functions/fprintf.texi (fprintf):
27446         * doc/posix-functions/isfinite.texi (isfinite):
27447         * doc/posix-functions/isinf.texi (isinf):
27448         * doc/posix-functions/isnan.texi (isnan):
27449         * doc/posix-functions/printf.texi (printf):
27450         * doc/posix-functions/snprintf.texi (snprintf):
27451         * doc/posix-functions/sprintf.texi (sprintf):
27452         * doc/posix-functions/vdprintf.texi (vdprintf):
27453         * doc/posix-functions/vfprintf.texi (vfprintf):
27454         * doc/posix-functions/vprintf.texi (vprintf):
27455         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27456         * doc/posix-functions/vsprintf.texi (vsprintf):
27457         Document this.
27458         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
27459         * m4/isinf.m4 (gl_ISINFL_WORKS):
27460         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
27461         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
27462         * tests/test-isfinite.c (test_isfinitel):
27463         * tests/test-isinf.c (test_isinfl):
27464         * tests/test-isnan.c (test_long_double):
27465         * tests/test-isnanl.h (main):
27466         * tests/test-snprintf-posix.h (test_function):
27467         * tests/test-sprintf-posix.h (test_function):
27468         * tests/test-vasnprintf-posix.c (test_function):
27469         * tests/test-vasprintf-posix.c (test_function):
27470         Test only that noncanonical values do not cause crashes, not that
27471         they are treated as NaNs.  In some cases this means a larger
27472         output buffer is needed.
27474 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
27476         fts: remove redundant close() (trivial)
27477         * lib/fts.c (fts_read): Remove redundant call to close().
27478         Spotted by coverity.
27480 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27482         getdtablesize: port better for Android
27483         Problem reported by Kevin Cernekee in:
27484         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
27485         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
27486         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
27487         Instead, just use getrlimit, taking care to avoid Cygwin bug.
27489         poll: fixes for large fds
27490         * lib/poll.c (poll): Don't check directly for NFD too large.
27491         Don't rely on undefined behavior in FD_SET when an arg exceeds
27492         FD_SETSIZE.  Always set revents afterwards, even if to zero.
27493         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
27494         as that makes the test a bit stricter.
27496 2015-02-19  Kevin Cernekee  <cernekee@google.com>
27498         fcntl: Fix cross compiling
27499         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
27500         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
27502 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27504         dup2, fcntl: cross-compile better for Android
27505         Problem reported by Kevin Cernekee in:
27506         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
27507         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
27508         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
27509         there's little need to cross-compile for older kernels nowadays.
27510         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
27511         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
27513 2015-02-18  Pádraig Brady  <P@draigBrady.com>
27515         getopt: don't crash on memory exhaustion
27516         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
27517         memory exhaustion.  In the _LIBC case we use alloca() as is
27518         already done in glibc, so we don't need to consider the separate
27519         error path in that awkward case.  Also fix a memory leak when
27520         ambiguous options are present.
27521         Reported by Tobias Stoeckmann
27523 2015-02-17  Mike Miller  <mtmiller@ieee.org>
27525         tempname: allow compilation with C++ (trivial)
27526         * lib/tempname.h [C++]: Specify extern "C" linkage.
27527         * lib/tempname.h (try_tempname):
27528         * lib/tempname.c (__try_tempname, __gen_tempname):
27529         Rename 'try' to 'tryfunc'.
27531 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
27533         dup2, fcntl: port to AIX
27534         * m4/dup2.m4 (gl_FUNC_DUP2):
27535         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27536         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
27537         The former works on AIX 7.1 but the latter does not.
27538         Also, this may work better with Android; see:
27539         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
27541 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
27543         getdtablesize, dup2, fcntl: port to Android
27544         Problem reported by Kevin Cernekee in:
27545         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
27546         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
27547         Mention that getdtablesize doesn't work on Android.
27548         * lib/getdtablesize.c: Use getrlimit substitute only if
27549         getdtablesize is declared.  This should suffice for Cygwin
27550         while not breaking Android.
27551         * m4/dup2.m4 (gl_FUNC_DUP2):
27552         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27553         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
27554         standardized but the latter is not, and sysconf works on Android.
27555         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
27556         Also check that getdtablesize is declared.
27557         This removes the need for a special case for Android.
27559 2015-02-16  Kevin Cernekee  <cernekee@google.com>
27561         localename: Implement gl_locale_name_thread_unsafe for Android
27562         * lib/localename.c: Android API level >= 21 supports two hardcoded
27563         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
27564         the internal __locale_t struct.
27566 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
27568         fts: avoid crash when a cycle is added while traversing
27569         This could be triggered by auto-mounting a recursive bind mount.
27570         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
27571         * lib/fts.c (fts_read): Avoid removing the original hash table item
27572         when leaving a directory that caused a cycle, and preserve the FTS_DC
27573         flag.
27575 2015-02-16  Daiki Ueno  <ueno@gnu.org>
27577         uniname/uniname: support character alias
27578         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
27579         Generate one-way mapping from aliases to codepoints in the
27580         generated tables.  Special case variation selectors to reduce
27581         table size.
27582         * lib/uniname/uniname.c (unicode_character_name): Special case
27583         variation selectors.
27584         (unicode_name_character): Special case variation selectors and
27585         their aliases.
27586         * lib/uniname/uninames.h: Regenerate.
27587         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
27588         * modules/uniname/uniname-tests (Files): Add
27589         tests/uniname/NameAliases.txt.
27590         * tests/uniname/test-uninames.c: Mark as static.
27591         (ALIASLEN): Define.
27592         (struct unicode_alias): New struct.
27593         (unicode_aliases): New variable.
27594         (fill_aliases): New function.
27595         (test_alias_lookup): New test function.
27596         (main): Run the 'test_alias_lookup' test if the second argument is
27597         given.
27598         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
27599         second argument.
27601 2015-02-11  Kevin Cernekee  <cernekee@google.com>
27603         Fix FILE struct compatibility with Android API level >= 21
27604         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
27605         __sferror.  Recent versions of Bionic's stdio.h no longer define
27606         __sferror.
27607         * lib/fbufmode.c: Likewise.
27608         * lib/fflush.c: Likewise.
27609         * lib/fpurge.c: Likewise.
27610         * lib/freadable.c: Likewise.
27611         * lib/freadahead.c: Likewise.
27612         * lib/freading.c: Likewise.
27613         * lib/freadptr.c: Likewise.
27614         * lib/freadseek.c: Likewise.
27615         * lib/fseeko.c: Likewise.
27616         * lib/fseterr.c: Likewise.
27617         * lib/fwritable.c: Likewise.
27619         Assume unbroken ungetc() on Android
27620         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
27621         test case passed when running on an Android host, and the code
27622         hasn't really changed since 2009.
27624         getdtablesize: Fix Android build
27625         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
27626         versions have this symbol in the .so library (at least 32-bit
27627         platforms) but are missing the declaration in the header file,
27628         causing the m4 logic to guess incorrectly.
27630         localename: Fix Android build
27631         * modules/localename (Depends-on): Add langinfo.
27633         getugroups: Fix Android build
27634         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
27635         functions.
27637         euidaccess: Fix Android build
27638         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
27639         AT_EACCESS gets declared.
27641         linkat_nofollow: Add fallback case for cross compiling
27642         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
27644         net_if: Handle content-free <net/if.h> system headers
27645         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
27646         struct if_nameindex.  If not, enable the replacement header.
27648         signal_h: Fix Android build
27649         * lib/signal.in.h: Add Android to the list of platforms that declare
27650         pthread_sigmask() in <pthread.h> instead of <signal.h>.
27652         duplocale: Fix Android build of duplocale-tests
27653         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
27654         is included by test-duplocale.c (but not by duplocale.c).
27655         * modules/duplocale-tests (configure.ac): Check for monetary.h.
27656         * tests/test-duplocale.c: Skip test if monetary.h is absent.
27657         * doc/posix-headers/monetary.texi: Add Android to the list of
27658         platforms missing monetary.h.
27660 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27662         tests: avoid recent -Werror=unused-variable regression in test-locale
27663         * tests/test-locale.c (main): Reference the variable to avoid the
27664         "unused variable" warning.
27666 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27668         maint: various whitespace cleanups in tempname
27669         * lib/tempname.c: Normalize spacing and line length.
27670         * lib/tempname.h: Likewise.
27671         * modules/tempname: Likewise.
27673 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27675         tests: provide returns_() to simplify exit status checking
27676         * tests/init.sh (returns_): A new function for use in tests,
27677         to allow for easier checking of return values, where you expect
27678         a command to exit with failure status.  By checking for a particular
27679         exit code, you don't hide any crashes for example.
27681 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27683         mountlist: only use libmount when specified
27684         There are currently many shared libs dependencies introduced by
27685         libmount with associated runtime and virt mem overhead.
27686         Therefore don't enable by default.
27687         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27689 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27691         uniname/unimame-tests: don't link with -lunistring
27692         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27693         $(LIBUNISTRING).  Document the rationale why we need to
27694         conditionalize the test.
27696 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27698         fstrcmp: don't assume strlen < INT_MAX
27699         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27700         (uintptr_t): Remove, as we're now assuming stdint.
27701         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27702         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27703         if the input string is long.
27704         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27705         uintptr_t to size_t when the underlying value is a pointer casted
27706         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27707         * modules/fstrcmp (Depends-on): Add stdint.
27709         diffseq: prefer ptrdiff_t to ssize_t
27710         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
27711         ptrdiff_t is the natural type for signed indexes.
27712         On a few older platforms, ssize_t is narrower than size_t.
27714         xalloc: fix typo that suppressed warnings
27715         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
27716         This typo, introduced a couple of years ago, mistakenly suppressed
27717         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
27718         -Wmissing-declarations warnings.
27720         full-read: fix license notice typo
27721         * lib/full-read.h: Remove a stray line in the license notice.
27722         Reported by Sam Ellis in: http://bugs.gnu.org/19808
27724         crypto/gc: fix a -Wswitch warning
27725         Reported by Bruce Korb in:
27726         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
27727         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
27729 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27731         gnulib-tool: fix handling of patch(1) diagnostics
27732         * gnulib-tool: Send diagnostics from patch(1) to stderr,
27733         as otherwise gnulib-tool will reparse that output and attempt
27734         to lookup modules.
27736 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27738         bootstrap: exit immediately upon gnulib-tool failure
27739         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
27740         This was noticed when gnulib-tool exited early due to failure
27741         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
27742         but various confusing errors were then given as the build proceeded.
27744 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
27746         symlinkat: include all required header files
27747         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
27748         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
27749         Reported at https://savannah.gnu.org/bugs/index.php?44151
27750         and by Jack Howarth.
27752 2015-01-29  Pádraig Brady  <P@draigBrady.com>
27754         localename: support Solaris 12 and illumos
27755         * lib/localename.c (gl_locale_name_thread_unsafe): call
27756         getlocalename_l() on newer __sun platforms.
27757         Reported by Alexander Pyhalov.
27758         Fix suggested by Rich Burridge.
27760 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
27762         locale: fix tests on illumos (trivial)
27763         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
27764         so move from global scope to main().
27766 2015-01-24  Daiki Ueno  <ueno@gnu.org>
27768         unictype: avoid undefined left-shift behavior
27769         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
27770         gcc's -fsanitize=shift and running its tests triggered:
27771           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
27772             places cannot be represented in type 'int'
27773         Cast LHS to 'unsigned int' after integer promotion.
27774         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
27775         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
27777 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27779         libunistring: bump version of unitypes dependants
27780         Due to the header file search order, all the headers which depend
27781         on unitypes.h need to be generated, when the preinstalled
27782         libunistring is older.
27783         * modules/unicase/base (configure.ac): Bump minimum version to
27784         0.9.4.
27785         * modules/uniconv/base (configure.ac): Likewise.
27786         * modules/unilbrk/base (configure.ac): Likewise.
27787         * modules/uninorm/base (configure.ac): Likewise.
27788         * modules/unistdio/base (configure.ac): Likewise.
27789         * modules/unistr/base (configure.ac): Likewise.
27790         * modules/uniwbrk/base (configure.ac): Likewise.
27791         * modules/uniwidth/base (configure.ac): Likewise.
27793 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27795         unictype/category-none: fix link with libunistring
27796         Since _UC_CATEGORY_NONE is not a public symbol, it will be
27797         prefixed with "libstring_" when compiled as part of libunistring.
27798         To avoid undefined symbol at link time, increase the minimum
27799         version when the dependant modules are updated.
27800         * modules/unictype/category-none (configure.ac): Bump minimum
27801         version to 0.9.5.
27803 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27805         unitypes: fix build with installed libunistring
27806         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27807         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27808         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27810 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27812         time: port to MinGW32 3.21
27813         Problem reported by Eli Zaretskii in:
27814         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27815         * lib/time.in.h:
27816         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27817         * modules/time (Depends-on):
27818         Fall back on unistd.h if the other include files don't define
27819         struct timespec.
27821         update-copyright: apply to self
27822         * build-aux/update-copyright: Fix copyright date.  How ironic!
27824 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27826         libunistring: update to Unicode 7.0.0
27827         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27828         Manichaean names.
27829         * lib/unictype/joininggroup_name.h: Likewise.
27830         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27831         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27832         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27833         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27834         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27835         enum values.
27836         (is_property_alphabetic): Accept newly added characters to
27837         cuneiform numeric signs.
27838         (is_property_default_ignorable_code_point): Reject U+0605.
27839         (FIELDLEN): Increase from 120 to 160.
27840         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27841         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27842         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27843         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27844         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27845         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27846         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27847         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27848         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27849         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27850         U+1E8D0..U+1E8D6.
27851         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27852         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27853         lib/uniwidth/width.c.
27854         * all generated files under lib/uni* and tests/uni*: Regenerate.
27856 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27858         libunistring: update to Unicode 6.3.0
27859         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27860         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27861         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27862         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27863         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27864         Update WB5, WB9, WB10, WB13a, and WB13b.
27865         * tests/uniwbrk/test-uc-wordbreaks.c
27866         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27867         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27868         (UC_BIDI_PDI): New enumeration values.
27869         (bidi_category_byname): Support those enum values.
27870         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27871         dedicated property assigned.
27872         (is_property_case_ignorable): Check 0x0027.
27873         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27874         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27875         (output_wbp): Support those enum values.
27876         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27877         (UC_BIDI_PDI): New enumeration values.
27878         * lib/unictype/bidi_byname.gperf: Add those property names.
27879         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27880         U+180E, U+1A1B, and U+2066..U+2069.
27881         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27882         lib/uniwidth/width.c.
27883         * all generated files under lib/uni* and tests/uni*: Regenerate.
27885 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27887         libunistring: update to Unicode 6.2.0
27888         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27889         (unilbrk_table): Adjust table size.
27890         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27891         for LBP_RI.
27892         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27893         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27894         Normalize table index skipping ignored properties.
27895         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27896         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27897         the table.
27898         * lib/uniwbrk/wbrktable.h: Adjust table size.
27899         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27900         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27901         Support rule GB8a.
27902         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27903         * tests/unigbrk/test-uc-is-grapheme-break.c
27904         (graphemebreakproperty_to_string): Support GBP_RI.
27905         * tests/uniwbrk/test-uc-wordbreaks.c
27906         (wordbreakproperty_to_string): Support WBP_RI.
27907         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27908         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27909         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27910         LBP_AL to LBP_ID.
27911         (output_lbp): Support LBP_RI.
27912         (WBP_RI): New enumeration value.
27913         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27914         (output_wbp): Support WBP_RI.
27915         (GBP_RI): New enumeration value.
27916         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27917         * all generated files under lib/uni* and tests/uni*: Regenerate.
27919 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27921         libunistring: update to Unicode 6.1.0
27922         * lib/gen-uni-tables.c (output_joining_group): Switch to
27923         3-level table to accommodate joining groups defined with higher
27924         codepoint value.  Since there are only 88 groups defined in
27925         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27926         (get_lbp): Update for Unicode 6.1.0.
27927         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27928         3-level table.
27929         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27930         joining group name.
27931         * lib/unictype/joininggroup_name.h: Likewise.
27932         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27933         (unilbrk_table): Adjust table size.
27934         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27935         for LBP_HL.
27936         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27937         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27938         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27939         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27940         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27941         U+302E..U+302F.
27942         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27943         lib/uniwidth/width.c.
27944         * all generated files under lib/uni* and tests/uni*: Regenerate.
27945         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27947 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27949         uniwbrk/u32-wordbreaks-tests: add conformance test
27950         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27951         tests/uniwbrk/test-uc-wordbreaks.c,
27952         tests/uniwbrk/test-uc-wordbreaks.sh, and
27953         tests/uniwbrk/WordBreakTest.txt.
27954         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27955         test-uc-wordbreaks to $(check_PROGRAMS), and define
27956         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27957         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27958         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27960 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27962         uniwbrk: ignore Extended/Format characters at BOL not BOS
27963         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27964         characters if the previous character property is one of
27965         WBP_NEWLINE, WBP_CR, and WBP_LF.
27967 2015-01-11  Jim Meyering  <meyering@fb.com>
27969         test-strstr.c: avoid a trivial leak
27970         * tests/test-strstr.c (main): Free haystack.
27972         update-copyright: recognize groff's \(co marker
27973         * build-aux/update-copyright (circle_c_re): Also accept
27974         uses of \(co, as found in gzip.1.
27976 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27978         maint.mk: fix compatibility with OS X nm
27979         * top/maint.mk (_gl_tight_scope): Use the -g option to
27980         show exported items rather than the -e option which is
27981         ignored on all platforms except OS X where it gives an error.
27982         Reported by Assaf Gordon.
27984 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27986         localcharset: improve charset detection on OS/2
27987         Use system codepage when appropriate.  Map OS/2 codepages to
27988         GNU canonical charset names if possible.
27989         * lib/config.charset: Don't output aliases if "$os" is os2*.
27990         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27991         result for OS/2.
27992         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27993         from the locale name which is neither "C" nor "POSIX".
27995 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27997         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27998         This reverts the last patch but one, as it shouldn't be needed now
27999         that the typo is fixed.
28000         * lib/count-leading-zeros.h (count_leading_zeros_ll):
28001         * lib/count-trailing-zeros.h:
28002         * lib/count-one-bits.h:
28003         Go back to using 64-bit intrinsics.
28005         count-leading-zeros: fix pragma typos
28006         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
28007         Fix typos in declaration of intrinsics when _MSC_VER.
28009 2015-01-06  Pádraig Brady  <P@draigBrady.com>
28011         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
28012         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
28013         intrinsics in this case.
28014         * lib/count-trailing-zeros.h: Likewise.
28015         * lib/count-one-bits.h: Likewise.
28017 2015-01-06  Daiki Ueno  <ueno@gnu.org>
28019         uniname/uniname: update to Unicode 7.0.0
28020         To accommodate new characters added since Unicode 5.1.0, this
28021         changes the internal representation of codepoint ranges.
28022         Previously, we grouped codepoint ranges by manually assigned 4-bit
28023         tag, which only allowed 16 groups.  This removes the limitation by
28024         switching to binary search on a table.  For the detail rationale
28025         and the benchmark results, see:
28026         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
28027         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
28028         to INDEX, as it no longer represents a codepoint.
28029         (range): New struct.
28030         (main): Switch to intervals list from a bit-pattern based
28031         classification.
28032         * lib/uniname/uninames.h: Regenerate.
28033         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
28034         * modules/uniname/base (configure.ac): Bump minimum version to
28035         0.9.5.
28036         * modules/uniname/uniname (configure.ac): Bump minimum version to
28037         0.9.5.
28039 2015-01-05  Eric Blake  <eblake@redhat.com>
28041         doc: update INSTALL from autoconf
28042         * doc/install.texi: Resync from autoconf.
28043         * doc/INSTALL: Reflect recent autoconf update.
28044         * doc/INSTALL.ISO: Likewise.
28045         * doc/INSTALL.UTF-8: Likewise.
28047         stdio: fix use of PRIdMAX on modern mingw
28048         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
28049         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
28050         to work with modern mingw.
28052 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
28054         pthread: detect git mingw builds with only partial pollution
28055         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
28056         pollution, as seen temporarily in Fedora 21.
28058 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28060         lib-symbol-versions: cache script check
28061         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
28062         Cache the check for linker version scripts.
28063         From a suggestion by Christophe Curis in:
28064         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
28066 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
28068         maint: fix grammar nits in propername (trivial change)
28069         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
28070         and use an adequate verb and tense.
28072 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
28074         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28075         * module/gendocs: Add 'doc/gendocs_template_min'.
28077         * build-aux/gendocs.sh: Change email addresses and upstream URLs
28078         from to Gnulib's.
28079         (scripturl, templateurl): Adjust accordingly.
28081 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28083         gendocs: copyright date and version fix
28084         Reported by Karl Berry in:
28085         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
28086         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
28087         Fix copyright date.
28088         * build-aux/gendocs.sh (scriptversion): Update.
28090 2015-01-01  Karl Berry  <karl@gnu.org>
28092         * doc/install.texi,
28093         * build-aux/mdate-sh,
28094         * build-aux/depcomp,
28095         * build-aux/config.guess,
28096         * build-aux/config.sub,
28097         * build-aux/ar-lib,
28098         * build-aux/compile: revert copyright updates (some from last
28099         year) in slaved files.
28101 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28103         version-etc: new year
28104         * doc/gnulib.texi:
28105         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
28106         * all files: Run 'make update-copyright'.
28108 2014-12-30  Pádraig Brady  <P@draigBrady.com>
28110         xstrtol: ensure errno is reset
28111         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
28112         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
28114         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
28116 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28118         utimens: fix dependency typo
28119         * modules/utimens (Depends-on): Remove 'assure'.
28120         This bug was introduced in the recent 'assure' patch.
28122 2014-12-22  Eric Blake  <eblake@redhat.com>
28124         docs: mention why libgen.h is bad
28125         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
28127 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28129         assure: new module
28130         This works better than 'assert' when compiling with -DNDEBUG,
28131         as it avoids some compiler diagnostics in that case.
28132         Reported by Norihiro Tanaka in:
28133         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
28134         * MODULES.html.sh (func_all_modules): Add 'assure'.
28135         * lib/assure.h, modules/assure: New files.
28136         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
28137         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
28138         Prefer 'assure' to 'assert'.
28139         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
28140         * modules/chdir-long, modules/cycle-check, modules/fchdir:
28141         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
28142         Depend on 'assure'.
28144 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
28146         stdalign: port better to HP compilers
28147         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
28148         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
28150         stdalign: work around Apple GCC 4.0 bug
28151         Reported by David Fang in:
28152         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
28153         * lib/stdalign.in.h (_Alignas):
28154         * m4/stdalign.m4 (gl_STDALIGN_H):
28155         Do not use aligned attribute with GCC 4.0 on Apple.
28157 2014-12-16  Pádraig Brady  <P@draigBrady.com>
28159         getcwd: fix test failure on OS X 10.9
28160         * m4/getcwd-path-max.m4: Avoid the replacement if it
28161         won't be effective due to the PATH_MAX limitation of lstat().
28162         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
28163         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
28164         for this case for use in tests, and also exclude this
28165         case when setting REPLACE_GETCWD.
28166         * tests/test-getcwd.c (test_long_name): Restrict the
28167         tested path length so that lstat() will not be passed
28168         a path greater than PATH_MAX.
28169         Also key a test condition on HAVE_OPENAT_SUPPORT rather
28170         than AT_FDCWD, since the latter is set unconditionally
28171         since Sep 2009 in commit 52c658e9.
28173 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
28175         parse-datetime: avoid a compiler warning with byacc (trivial)
28176         * lib/parse-datetime.y (yylex): Use the same prototype in the
28177         function definition as the declaration, to avoid a -Wstrict-prototypes
28178         warning seen when using byacc.
28180 2014-12-12  Daiki Ueno  <ueno@gnu.org>
28182         unicase/locale-language-tests: fix LOCALE_FR test
28183         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
28184         a French locale with traditional encoding.
28185         Reported by umerqayam in:
28186         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
28188 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28190         stddef: support C11's max_align_t
28191         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
28192         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
28193         Do not undef, as that might cause max_align_t to be defined twice.
28194         Instead, change use to check for _GL_STDDEF_WINT_T too.
28195         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
28196         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
28197         Check for max_align_t.
28198         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
28199         * modules/stddef-tests (Depends-on): Add stdalign.
28200         * tests/test-stddef.c: Test max_align_t.
28202 2014-12-11  Daiki Ueno  <ueno@gnu.org>
28204         unistd: fix iOS check conditional
28205         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
28206         as 0 or 1 in <TargetConditionals.h>, and the previous check always
28207         yielded true on non-iOS environment.
28208         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
28209         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
28210         they are defined.
28212 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
28214         posixtm: avoid compiler warning in a better way
28215         * lib/posixtm.c (IF_LINT): Remove.
28216         (year, posix_time_parse):
28217         Return true (not 0) if successful.  All callers changed.
28218         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
28220 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28222         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
28223         started with '/' on EMX.
28225 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28227         freopen: workaround freopen() on OS/2 kLIBC
28228         * lib/freopen.c (rpl_freopen): Workaround.
28229         * m4/freopen.m4: Add os2* case.
28231         get_shared_library_fullname: port to EMX
28232         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
28233         on EMX, respectively.
28234         (_DLL_InitTerm): New on EMX.
28235         (get_shared_library_fullname): Implement on EMX.
28237         find_executable: port to EMX
28238         * lib/progreloc.c (find_executable): Implement on EMX.
28240         sched: check struct sched_param in spawn.h as well
28241         * lib/sched.in.h: Include spawn.h on kLIBC.
28242         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
28244 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
28246         bootstrap: Allow perl modules in $buildreq
28247         * build-aux/bootstrap: Add case for perl modules.
28249 2014-12-08  Pádraig Brady  <P@draigBrady.com>
28251         apply _GL_ATTRIBUTE_PURE to some inline functions
28252         clang 3.4.2 flagged these inline functions as pure
28253         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
28254         * lib/sig-handler.h (get_handler): Likewise.
28255         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
28256         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
28258 2014-12-06  Pádraig Brady  <P@draigBrady.com>
28260         vasnprintf: fix potential use after free
28261         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
28262         flagged by clang-analyzer 3.4.2.
28264 2014-12-05  Pádraig Brady  <P@draigBrady.com>
28266         filevercmp, posixtm: avoid compiler warnings with -O3
28267         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
28268         * lib/posixtm.c: (IF_LINT): Define.
28269         (posix_time_parse): Use it to void a "may be used uninitialized"
28270         warning, seen only with -O3.
28272 2014-12-05  Bruno Haible  <bruno@clisp.org>
28274         Fix LDBL80_WORDS macro on big endian platforms.
28275         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
28276         LDBL80_WORDS macro.
28277         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28278         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28279         * tests/test-isfinite.c (test_isfinitel): Likewise.
28280         * tests/test-isinf.c (test_isinfl): Likewise.
28281         * tests/test-isnan.c (test_long_double): Likewise.
28282         * tests/test-isnanl.h (main): Likewise.
28283         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
28284         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
28285         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
28286         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
28287         Reported by Pádraig Brady.
28289 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
28291         git-version-gen: do not print new line characters
28292         * build-aux/git-version-gen: Use printf instead of echo and tr.
28294         gnulib-tool: recognize x:* as an absolute path
28295         * gnulib-tool (func_gnulib_dir): Add ?:* case.
28296         (func_relconcat): Likewise.
28298 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
28300         argp: avoid extraneous translation and mem leak with empty pre doc
28301         * lib/argp-help.c (argp_doc): Never translate the empty string,
28302         when "\v" is the first or last character of the string, as that
28303         has a reserved meaning to return the header info from a po file.
28304         This also fixes a small memory leak in the !post case.
28305         The issue can be seen with this command for example:
28306         LC_MESSAGES=en_US grub2-mknetdir --help
28308 2014-11-27  Daiki Ueno  <ueno@gnu.org>
28310         uniname/uniname-tests: skip if system's libunistring is used
28311         * modules/uniname/uniname-tests (Makefile.am): Skip test if
28312         uniname/uniname module is not compiled.
28314 2014-11-27  Pádraig Brady  <P@draigBrady.com>
28316         printf: fix configure check on big endian systems
28317         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
28319 2014-11-22  Daiki Ueno  <ueno@gnu.org>
28321         pipe-filter-gi, pipe-filter-ii: port to AIX
28322         On AIX 7.1, 'select' is defined as static and cannot be referred
28323         to from inline function.
28324         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
28325         the definition...
28326         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
28327         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
28329 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28331         gitlog-to-changelog: add --until
28332         * build-aux/gitlog-to-changelog: Support new --until option.
28333         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
28335 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28337         extern-inline: update commentary about GCC bugs
28338         * m4/extern-inline.m4: Add another GCC bug number to comments.
28340 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28342         gen-uni-tables: untabify
28343         * lib/gen-uni-tables.c: Untabify.
28345 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28347         gen-uni-tables: check out-of-range values added to 3-level tables
28348         * lib/gen-uni-tables.c (output_category, output_bidi_category)
28349         (output_joining_type, output_ident_category): Check out-of-range
28350         values added to 3-level tables.
28352 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28354         gen-uni-tables: utilize 'assert'
28355         * lib/gen-uni-tables.c: Include <assert.h>.
28356         (output_category, output_combclass, output_decimal_digit_test)
28357         (output_decimal_digit, output_digit_test, output_digit)
28358         (output_numeric, get_mirror_value, fill_properties)
28359         (fill_property30, is_property_alphabetic)
28360         (is_property_default_ignorable_code_point)
28361         (is_property_uppercase, is_property_lowercase)
28362         (is_property_cased, is_property_case_ignorable)
28363         (is_property_changes_when_lowercased, is_property_iso_control)
28364         (is_property_math, fill_arabicshaping, output_joining_group)
28365         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
28366         (output_wbp, fill_org_gbp, get_decomposition)
28367         (output_decomposition, fill_composition_exclusions)
28368         (debug_output_composition_tables, output_composition_tables)
28369         (redistribute_casefolding_rules, output_casing_rules): Use
28370         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
28371         reporting.
28373 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28375         gen-uni-tables: cosmetic improvements
28376         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
28377         variables specification.
28378         (is_outdigit): Remove unused function.
28380 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
28382         fcntl-h-tests: port to PA-RISC GNU/Linux
28383         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
28385 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28387         fts: port to C89
28388         Problem reported for MSVC 16 by Gisle Vanem in:
28389         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
28390         * lib/fts.c (fts_build): Avoid declaration before statement.
28392 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28394         unistd: port to iOS
28395         Problem reported by André Klitzing in:
28396         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
28397         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
28399 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28401         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
28402         Problem reported by Alan Modra in:
28403         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
28404         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
28405         Always cast the function arg, reverting this part of the previous
28406         change.
28408 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28410         obstack: avoid potentially-nonportable function casts
28411         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
28412         Remove, replacing with ...
28413         (call_chunkfun, call_freefun): New static functions.
28414         All uses changed.  Avoid potentially-nonportable casts.
28415         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
28416         (_obstack_begin_worker): Omit last two args, since they
28417         rely on potentially-nonportable casts.  All callers changed.
28418         * lib/obstack.h (_OBSTACK_CAST): New macro.
28419         Use it everywhere the old API used a potentially-nonportable cast.
28420         The new API doesn't cast.
28421         (struct obstack): Use unions rather than requiring
28422         potentially-nonportable casts.
28423         (obstack_chunkfun, obstack_freefun): Return void.
28425 2014-11-03  Alan Modra  <amodra@gmail.com>
28427         obstack: fix macro return values
28428         * lib/obstack.h (obstack_next_free): Return void *.
28429         (obstack_1grow_fast, obstack_blank_fast): Return void.
28430         For __GNUC__ macros:
28431         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
28432         For !__GNUC__ macros:
28433         (obstack_make_room, obstack_grow, obstack_grow0)
28434         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
28436 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28438         obstack: do not assume system-supplied obstack is size_t safe
28439         * m4/obstack.m4: New file.
28440         * modules/obstack (Files): Add it.
28442         obstack: port to platforms that #define __alignof__
28443         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
28444         not if !_LIBC.  We don't know of any platforms that #define
28445         __alignof__, but it might be useful in tests.  Conversely,
28446         glibc assumes GCC.
28448 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28450         linkat: don't unconditionally replace on GNU/Linux
28451         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
28452         was redundant for a few reasons.  It was present to support compiling
28453         on new systems but running on the old narrow window of Linux 2.6.1[67].
28454         It setup and cleaned up test files which weren't actually used.
28455         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
28456         implicit in the following check.
28458 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28460         linkat: wrap to handle symlinks on OS X 10.10
28461         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
28462         but not usable because it doesn't support creating hardlinks
28463         to symlinks.  Therefore add a generic test for this capability
28464         and fallback to our emulation if linkat() fails with ENOTSUP.
28466 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28468         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
28469         * doc/posix-functions/open.texi (open):
28470         * doc/posix-functions/openat.texi (openat):
28471         Document that these functions do not set errno to ELOOP when
28472         a symlink is opened with O_NOFOLLOW.
28474 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28476         obstack: add NEWS entry for recent incompatible changes
28477         * NEWS: Describe recent changes.
28479 2014-10-30  Pádraig Brady  <P@draigBrady.com>
28481         mountlist: don't use libmount to decide on dummy/remote
28482         * lib/mountlist.c (read_file_system_list): Don't use the libmount
28483         routines to determine whether a file system is dummy or remote,
28484         as they're not currently compatible.  For example the remoteness
28485         is determined on file system type (for which the list seems incomplete),
28486         rather than simply checking for a ':' in the device name.
28487         Also libmount currently determines that 'tmpfs' is a dummy file system
28488         even though it has associated storage.
28490 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28492         obstack: prefer __alignof__ to alignof
28493         This is for portability to pre-4.7 GCC when compiling glibc.
28494         See Joseph S. Myers in:
28495         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
28496         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
28497         New macro, defined by including and using <alignof.h>.
28498         (MAX): New macro.
28499         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
28500         Do not use enums as they are not portable to some broken compilers.
28501         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
28503         obstack: prefer alignof to calculating alignments by hand
28504         * lib/obstack.c: Include <stdalign.h>.
28505         (struct fooalign): Remove.
28506         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
28507         * modules/obstack (Depends-on): Add stdalign.
28509 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28511         obstack: use size_t alignments and check for overflow
28512         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
28513         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
28514         * lib/obstack.h (struct obstack.alignment_mask):
28515         Use _OBSTACK_SIZE_T, not int, for alignments.
28516         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
28517         overflows, e.g., when adding the alignment.
28519 2014-10-29  Alan Modra  <amodra@gmail.com>
28521         obstack: 64-bit obstack support, part 3
28522         This finally enables full 64-bit obstack support.  The glibc
28523         shared library specific code is removed from obstack.c too, and
28524         the error handling code conditionally compiled under control of
28525         another macro, _OBSTACK_NO_ERROR_HANDLER.
28526         * lib/obstack.h: Include string.h earlier.
28527         (_OBSTACK_INTERFACE_VERSION): Define.
28528         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
28529         * lib/obstack.c: Don't include shlib-compat.h.
28530         (OBSTACK_INTERFACE_VERSION): Delete.
28531         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
28532         glibc code is compatible with version 2.  Don't include stdio.h for
28533         __GNU_LIBRARY.
28534         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
28535         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
28536         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
28537         glibc shared library specific source.
28539         obstack: 64-bit obstack support, part 2
28540         This gets us 4G obstack support, without changing ABI
28541         compatibility, apart from possibly introducing some
28542         signed/unsigned comparison warnings in code that uses obstack.h.
28543         a) Replace "int" size parameters, return values, and macro local vars
28544            with _OBSTACK_SIZE_T, an "unsigned int" for now.
28545         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
28546         c) Make all obstack macros checking available room use obstack_room.
28547            "next_free + desired > chunk_limit" may wrap the lhs for chunks
28548            allocated near the top of memory.
28549         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
28550         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
28551         in place of "int" size parameters, return values and local vars.
28552         (_CHUNK_SIZE_T): Define.
28553         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
28554         union use an _OBSTACK_SIZE_T integer type.
28555         For __GNUC__ versions of the following macros...
28556         (obstack_room): Rename local var.
28557         (obstack_make_room): Use obstack_room.
28558         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28559         obstack_int_grow, obstack_blank): Likewise.
28560         (obstack_finish): Use unsigned comparison when comparing aligned
28561         next_free against chunk_limit.
28562         (obstack_free): Cast OBJ to remove possible const qualifier.
28563         For !__GNUC__ versions of the following macros...
28564         (obstack_make_room): Use obstack_room.
28565         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28566         obstack_int_grow, obstack_blank): Likewise.
28567         (obstack_finish): Use unsigned comparision when comparing aligned
28568         next_free against chunk_limit.
28569         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
28570         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
28571         _OBSTACK_SIZE_T.
28572         (_obstack_begin, _obstack_begin_1): Likewise.
28573         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
28574         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
28576         obstack: 64-bit obstack support, part 1
28577         a) Correct calls to alloc function, to use a size_t arg.  "long" is
28578            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
28579            and "size_t" 64 bits.
28580         b) Consolidate _obstack_begin and _obstack_begin1 code.
28581         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
28582         use "size_t" rather than "long".
28583         (_obstack_begin, _obstack_begin1): Likewise.
28584         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
28585         obstack_chunkfun): Update alloc function casts.
28586         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
28587         (chunkfun_type, freefun_type): New typdefs.
28588         (_obstack_begin_worker): Split out from ..
28589         (_obstack_begin, _obstack_begin_1): ..here.
28591         obstack: tidy part 2
28592         a) Don't be concerned about "not polluting the namespace with stddef.h
28593            symbols" in obstack.h, since gnulib string.h includes stddef.h
28594            anyway, and it seems unlikely that anyone would care.
28595         b) Don't roll our own slow memcpy in _obstack_newchunk.
28596         c) Rename obstack_free to _obstack_free.  This makes the naming
28597            consistent with other obstack functions and obviates the need for
28598            __obstack_free.  Ancient obstack.c defined both obstack_free and
28599            _obstack_free.  We continue to do that for _LIBC via an alias.
28600         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
28601            is clever, but nowadays gcc warns on undefined macros.  You'll get
28602            an undefined macro warning if simulating an old gcc with -U__GNUC__
28603            -U__GNUC_MINOR__ -D__GNUC__=1.
28604         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
28605         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
28606         (__obstack_free): Delete, update refs.
28607         (_obstack_free): Rename from obstack_free.
28608         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
28609         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
28610         * lib/obstack.c: Don't include stddef.h.
28611         (COPYING_UNIT): Delete.
28612         (_obstack_begin): Formatting fix.
28613         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
28614         (_obstack_free): Rename from __obstack_free, update alias.  Move
28615         undef of obstack_free to where it is needed.
28617         obstack: tidy part 1
28618         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
28619            to me, and result in overlong lines after later patches.
28620         b) Move error handling code, to avoid a forward declaration and to
28621            simplify later patches in this series.
28622         * lib/obstack.h (struct obstack <temp>): Rename fields of union
28623         and update all uses.
28624         * lib/obstack.c: Include stdlib.h earlier.
28625         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
28626         in file.
28627         (print_and_abort): Remove now redundant forward declaration.
28629 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28631         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
28632         Without this change, in bleeding-edge fileutils Autoconf complains
28633         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
28634         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
28635         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
28636         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
28638 2014-10-24  Daiki Ueno  <ueno@gnu.org>
28640         iconv: avoid false detection of non-working iconv
28641         The INBUF arguments of iconv can be either 'const char **'
28642         or 'char **'.  If CC is g++, the difference causes a compile error
28643         and thus leads to a false detection of non-working iconv.
28644         Reported by Eli Zaretskii and Werner LEMBERG in:
28645         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
28646         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
28647         iconv.  Bump serial number.
28649 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28651         bootstrap: print more diagnostics for missing programs
28652         * build-aux/bootstrap: only suppress stderr when checking for
28653         alternative program names.  This supports programs issuing non
28654         standard error messages.
28656 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28658         bootstrap: only update the gnulib submodule
28659         * build-aux/bootstrap: Restrict the "submodule update" command
28660         to the gnulib path.
28662 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28664         symlinkat: port to AIX 7.1
28665         * doc/posix-functions/symlinkat.texi (symlinkat):
28666         Mention AIX porting problem.
28667         * lib/symlinkat.c: Always include errno.h.
28668         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28669         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28670         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28672         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28673         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28674         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28676         readlinkat: port to AIX 7.1
28677         * doc/posix-functions/readlink.texi (readlink):
28678         * doc/posix-functions/readlinkat.texi (readlinkat):
28679         Mention AIX porting problem.
28680         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28681         New function.
28682         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28683         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28685         * modules/readlinkat (configure.ac): Also compile replacement
28686         if REPLACE_READLINKAT.
28687         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28689 2014-10-12  Karl Berry  <karl@gnu.org>
28691         * doc/posix-functions/dirname.texi: remove spurious {.
28693 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28695         basename, dirname: Improve documentation.
28696         * doc/posix-functions/basename.texi: Mention dirname module and
28697         base_name() function.
28698         * doc/posix-functions/dirname.texi: Mention dir_name() and
28699         mdir_name() functions.
28700         Suggested by Werner LEMBERG <wl@gnu.org>.
28702 2014-09-24  Jim Meyering  <meyering@fb.com>
28704         exclude: declare exclude_patopts static
28705         * lib/exclude.c (exclude_patopts): Declare static,
28706         to avoid triggering a -Wmissing-prototypes warning.
28707         The alternative (declaring it in the .h file) would
28708         require publicizing the private "struct patopts".
28710 2014-09-21  Werner Lemberg  <wl@gnu.org>
28712         dirname: support compilation with C++
28713         * lib/dirname.h: Add necessary C linkage declarations.
28715 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28717         qsort_r: include <config.h>
28718         Problem reported by Tom G. Christensen in:
28719         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
28720         * lib/qsort.c [!_LIBC]: Include <config.h> first.
28722 2014-09-16  Dylan Cali  <calid1984@gmail.com>
28724         avltree-list: avoid compiler warnings (trivial)
28725         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28726         -Werror=suggest-attribute=pure.
28727         * lib/gl_array_list.c: Likewise.
28728         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
28729         declaration to avoid -Werror=missing-prototypes.  This is not added
28730         to a header as only exported for tests.  Add (void) to the
28731         check_invariants() call to indicate we're discarding the result
28732         in this context which avoids -Werror=unused-value.  Note we don't
28733         use ignore_value here to avoid a dependency as we know we'll not
28734         be adding __attribute__((warn_unused_result)) to check_invariants().
28735         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
28737 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28739         qsort_r: new module, for GNU-style qsort_r
28740         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
28742 2014-09-15  Werner LEMBERG  <wl@gnu.org>
28744         strerror_r-posix: support compilation with C++
28745         * lib/strerror_r.c: Add necessary C linkage declarations.
28747 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
28749         fcntl-h: fix compilation with Intel C++ compiler (trivial)
28750         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
28752 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
28754         mountlist: use /proc/self/mountinfo when available
28755         Use libmount to propagate device IDs provided by Linux in
28756         /proc/self/mountinfo.  This will give more accurate output when
28757         using df in chroot'ed environments as the device IDs are not
28758         determined by stat() which may be inaccurate within the chroot.
28759         * lib/mountlist.c (read_file_system_list): Use the libmount routines
28760         from util-linux to parse "/proc/self/mountinfo" or fall back to
28761         standard getmntent() processing.
28762         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
28763         getmntent() is used, as is the case on GNU/Linux.
28765 2014-09-07  Eric Wong  <normalperson@yhbt.net>
28767         users.txt: add cmogstored
28768         cmogstored has used gnulib since the beginning in 2012 to support
28769         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
28771 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28773         Trivial change.
28774         * gnulib-tool: Use same options as build-aux/bootstrap to download
28775         PO files.
28777 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28779         Trivial change.
28780         * gnulib-tool: Fallback to wget when rsync of PO files fails.
28782 2014-09-04  Eric Blake  <eblake@redhat.com>
28784         maintainer-makefile: add syntax check for useless ';;'
28785         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
28787 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
28789         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
28790         Problem reported by Assaf Gordon in:
28791         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28792         Apparently Ubuntu is doing some fancy link-time optimization
28793         that doesn't work with -lpthread but does work with -pthread.
28794         Work around the bug by preferring -pthread to -lpthread.
28795         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28796         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
28797         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28798         Treat -pthread like -lpthread.
28800 2014-09-04  Eric Blake  <eblake@redhat.com>
28802         error: drop spurious semicolon
28803         * lib/error.c (__error_at_line): Fix ';;'.
28805 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28807         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28808         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28809         Override AC_C_RESTRICT unconditionally.
28810         Update from autoconf, incorporating:
28811         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28812         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28814 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28816         manywarnings: add GCC 4.9 warnings
28817         Also, make it easier to maintain this in the future.
28818         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28819         -Wconditionally-supported, -Wdelete-incomplete,
28820         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28821         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28822         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28823         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28824         only for older GCC versions that need them.  Handle
28825         -Wnormalized=nfc specially, so that the 'comm' command used
28826         for maintenance doesn't get confused.
28828 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28830         vasnprintf: fix bugs in width computation
28831         * lib/vasnprintf.c (VASNPRINTF):
28832         Rework previous change, which introduced a bug,
28833         to avoid the warning in a different way.
28834         Avoid undefined behavior if the width arg is less than -INT_MAX.
28835         Avoid unnecessary use of HAS_WIDTH local.
28837 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28839         vasnprintf: Avoid signed/unsigned comparison warning.
28840         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28841         compare end addr of generated string w/ maximum end addr.
28843 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28845         parse-datetime: Avoid pointer difference.
28846         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28847         instead of calculating difference of pointers.  This removes an
28848         annoying warning, devoid of any use.
28850 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28852         qsort_r: new module, for GNU-style qsort_r
28853         This works even on FreeBSD, which has an incompatible qsort_r API.
28854         * MODULES.html.sh: Add it.
28855         * doc/glibc-functions/qsort_r.texi: It's now supported.
28856         * lib/qsort.c: New file, taken from glibc with minor changes
28857         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28858         removed.
28859         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28860         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28862         * modules/qsort_r, modules/qsort_r-tests: New files.
28863         * modules/stdlib (Makefile): Set up its defaults.
28864         * tests/test-qsort_r.c: New file.
28866 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28868         vla: new module
28869         GNU RCS can use this, mostly for documentation I expect.  See:
28870         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28871         * MODULES.html.sh: Add vla.
28872         * lib/vla.h, modules/vla: New files.
28874 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28876         localename: make gl_locale_name_thread really thread-safe on Windows
28877         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28878         "glthread/lock.h".
28879         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28880         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28882 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28884         getpass: don't assume struct termios
28885         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28886         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28887         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28889         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28890         Problem reported by Jonas 'Sortie' Termansen in:
28891         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28892         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28893         Implement via sysconf for platforms that lack getdtablesize.
28895         vararrays: modernize AC_C_VARARRAYS for C11
28896         This backports a change I recently made to Autoconf.
28897         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28898         VLAs are not supported, as this is what C11 does.  The old macro
28899         HAVE_C_VARARRAYS is still defined if they are supported, but is
28900         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28902 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28904         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28905         * build-aux/install-reloc (func_create_wrapper): Also wrap
28906         strerror-override, stat, stat.
28908 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28910         sys_select: fix FD_ZERO problem on Solaris 10
28911         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28912         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28913         to expand to an expression that invoked memset without necessarily
28914         including <string.h>.  The problem was that the first include
28915         defined _SYS_TIME_H, causing the second include to short-circuit.
28916         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28917         Also, fix what appears to be a cut-and-paste typo, by replacing
28918         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28919         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28921         accept: document Solaris 10 type glitch
28922         * doc/posix-functions/accept.texi (accept): Mention that
28923         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28925 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28927         extern-inline: port to FreeBSD, DragonFly
28928         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28929         is present if either __DragonFly__ or __FreeBSD__ is defined.
28930         FreeBSD problem reported by Andrey Borzenkov in:
28931         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28932         Also, worry about __APPLE__ only if __MACH__ is also defined,
28933         as this is more consistent with the rest of gnulib.
28934         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28935         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28937 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28939         regex: Make #if/#ifdef usage consistent for DEBUG
28940         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28941         of the inconsistent usage of #if and #ifdef as that works with
28942         both Glibc and Gnulib's style.
28944 2014-07-31  Eric Blake  <eblake@redhat.com>
28946         openat-die: use _Noreturn markup
28947         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28948         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28949         _Noreturn.
28951 2014-07-30  Eric Blake  <eblake@redhat.com>
28953         test-open: port to cygwin, which lacks Fortify
28954         * tests/test-open.h (ALWAYS_INLINE): New macro.
28955         (__always_inline): Don't abuse internal symbol on non-glibc.
28957 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28959         localename: Enforce declarations before statements.
28960         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28961         first statement.
28963 2014-07-18  Jim Meyering  <meyering@fb.com>
28965         test-userspec: don't look up numeric user names
28966         * tests/test-userspec.c: I found a system for which getpwnam("0")
28967         returned a pointer to a non-root user's entry, and that made the
28968         test fail.
28969         (T): Prefix each numeric input with "+", to inhibit lookup.
28971 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28973         localcharset, localename: MS-Windows support for non-default locales
28974         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28975         falling back on the default system codepage, try extracting
28976         the codepage from what 'setlocale' returns.  This allows to
28977         take into account changes of the codeset due to non-default
28978         locale set by a previous call to 'setlocale'.
28979         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28980         Define if not already defined.
28981         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28982         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28983         current locale by calling 'setlocale', then converting the
28984         locale name into LCID by calling 'get_lcid'.  This allows to
28985         take into account changes in the current locale from the
28986         default one, in contrast to GetThreadLocale.
28988 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28990         announce-gen: avoid failure when Digest::SHA is installed
28991         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28992         Digest::SHA1->new in print_checksums fails.
28993         * build-aux/announce-gen (digest_classes): New associative array
28994         for available message digest implementations.
28995         (print_locations): Use it.
28997 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28999         gettext: revert "update macros to version 0.19"
29000         This reverts commit 9b9370ca, as it currently requires that
29001         developers of any project that explicitly uses the gettext module
29002         or implicitly uses it through the utimens-tests or
29003         futimens-tests modules, use gettext >= 0.19.
29004         However there are some stability and availablity issues with
29005         that version at present.  We can reinstate this soon, when stability
29006         is addressed and packages are more readily available.
29008 2014-07-12  Jim Meyering  <meyering@fb.com>
29010         regex: don't deref NULL upon heap allocation failure
29011         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
29012         failure in one more place.
29013         To trigger the segfault, configure grep -with-included-regex,
29014         build it, and run these commands:
29015         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
29016         I discovered this while replying to a private report from
29017         Jens Schleusener about excessive memory consumption by grep
29018         when using a regular expression like the one above.
29020 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29022         regex: fix memory leak in compiler
29023         Fix by Andreas Schwab in:
29024         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
29025         * lib/regcomp.c (parse_reg_exp): Deallocate partially
29026         constructed tree before returning error.
29028 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29030         announce-gen: avoid perl warnings
29031         * build-aux/announce-gen: add two minor checks to avoid
29032         "use of uninitialized value" warnings when command-line parameters are
29033         missing.
29035 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29037         localename: avoid -Wsuggest-attribute={const,pure} warnings
29038         * lib/localename.c (string_has): Tag internal function as pure.
29039         * lib/localename.h (gl_locale_name_default): Tag extern declaration
29040         as const when appropriate.
29042 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
29044         nl_langinfo: Fix last change.
29045         * lib/nl_langinfo.c (includes): Drop redundant include.
29047 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
29049         error: Fix -Wundef warnings in glibc
29050         * lib/error.c [_LIBC]: Define default macros for
29051         glibc.
29052         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
29053         Check _LIBC before STRERROR_R_CHAR_P.
29055         error: Sync from glibc master
29056         * lib/error.c [_LIBC]: Remove INTUSE usage.
29057         (error_tail): Remove unused macro ALLOCA_LIMIT.
29058         Fix potential buffer overflow.  Fix potential NULL dereference
29059         in strcmp.
29061 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
29063         nl_langinfo: fix build under mingw
29064         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
29066 2014-07-09  Andrew D Warshall  <warshall@99main.com>
29068         mountlist: do not classify a bind-mounted dir entry as "dummy"
29069         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
29070         1-argument getmntent() (instead of assuming absence).
29072 2014-07-08  Eric Blake  <eblake@redhat.com>
29074         maint.mk: less syntax-check noise when SIGPIPE is ignored
29075         * top/maint.mk (_sc_header_without_use)
29076         (sc_require_config_h_first): Parse full list.
29078 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
29079             Paul Eggert  <eggert@cs.ucla.edu>
29081         nl_langinfo: CODESET on MS-Windows and more items from localeconv
29082         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
29083         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
29084         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
29085         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
29086         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
29087         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
29088         Include <stdio.h> if Microsoft Windows.
29089         Include <time.h> if !REPLACE_NL_LANGINFO.
29090         (ctype_codeset): New function, taken from rpl_nl_langinfo,
29091         and with improvements for Microsoft Windows.
29092         (rpl_nl_langinfo): Use it.
29093         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
29094         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
29095         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
29096         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
29097         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
29098         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
29099         corresponding values returned by 'localeconv'.  Compute the values
29100         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
29101         'strftime' with a suitable struct tm value.
29103 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29105         Bruno Haible has stepped down as maintainer.
29106         See Karl Berry in:
29107         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
29108         Daiki Ueno has volunteered to maintain libunistring; see:
29109         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
29110         * modules/gen-uni-tables, modules/libunistring:
29111         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
29112         * modules/unicase/base, modules/unicase/cased:
29113         * modules/unicase/empty-prefix-context:
29114         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
29115         * modules/unicase/locale-language, modules/unicase/special-casing:
29116         * modules/unicase/tocasefold, modules/unicase/tolower:
29117         * modules/unicase/totitle, modules/unicase/toupper:
29118         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
29119         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
29120         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
29121         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
29122         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
29123         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
29124         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
29125         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
29126         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
29127         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
29128         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
29129         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
29130         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
29131         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
29132         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
29133         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
29134         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
29135         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
29136         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
29137         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
29138         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
29139         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
29140         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
29141         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
29142         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
29143         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
29144         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
29145         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
29146         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
29147         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
29148         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
29149         * modules/unicase/ulc-casexfrm, modules/unicodeio:
29150         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
29151         * modules/uniconv/u16-conv-to-enc:
29152         * modules/uniconv/u16-strconv-from-enc:
29153         * modules/uniconv/u16-strconv-from-locale:
29154         * modules/uniconv/u16-strconv-to-enc:
29155         * modules/uniconv/u16-strconv-to-locale:
29156         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
29157         * modules/uniconv/u32-strconv-from-enc:
29158         * modules/uniconv/u32-strconv-from-locale:
29159         * modules/uniconv/u32-strconv-to-enc:
29160         * modules/uniconv/u32-strconv-to-locale:
29161         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
29162         * modules/uniconv/u8-strconv-from-enc:
29163         * modules/uniconv/u8-strconv-from-locale:
29164         * modules/uniconv/u8-strconv-to-enc:
29165         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
29166         * modules/unictype/bidicategory-all:
29167         * modules/unictype/bidicategory-byname:
29168         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
29169         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
29170         * modules/unictype/bidiclass-byname:
29171         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
29172         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
29173         * modules/unictype/block-all, modules/unictype/block-list:
29174         * modules/unictype/block-of, modules/unictype/block-test:
29175         * modules/unictype/category-C, modules/unictype/category-Cc:
29176         * modules/unictype/category-Cf, modules/unictype/category-Cn:
29177         * modules/unictype/category-Co, modules/unictype/category-Cs:
29178         * modules/unictype/category-L, modules/unictype/category-LC:
29179         * modules/unictype/category-Ll, modules/unictype/category-Lm:
29180         * modules/unictype/category-Lo, modules/unictype/category-Lt:
29181         * modules/unictype/category-Lu, modules/unictype/category-M:
29182         * modules/unictype/category-Mc, modules/unictype/category-Me:
29183         * modules/unictype/category-Mn, modules/unictype/category-N:
29184         * modules/unictype/category-Nd, modules/unictype/category-Nl:
29185         * modules/unictype/category-No, modules/unictype/category-P:
29186         * modules/unictype/category-Pc, modules/unictype/category-Pd:
29187         * modules/unictype/category-Pe, modules/unictype/category-Pf:
29188         * modules/unictype/category-Pi, modules/unictype/category-Po:
29189         * modules/unictype/category-Ps, modules/unictype/category-S:
29190         * modules/unictype/category-Sc, modules/unictype/category-Sk:
29191         * modules/unictype/category-Sm, modules/unictype/category-So:
29192         * modules/unictype/category-Z, modules/unictype/category-Zl:
29193         * modules/unictype/category-Zp, modules/unictype/category-Zs:
29194         * modules/unictype/category-all, modules/unictype/category-and:
29195         * modules/unictype/category-and-not, modules/unictype/category-byname:
29196         * modules/unictype/category-longname, modules/unictype/category-name:
29197         * modules/unictype/category-none, modules/unictype/category-of:
29198         * modules/unictype/category-or, modules/unictype/category-test:
29199         * modules/unictype/category-test-withtable:
29200         * modules/unictype/combining-class:
29201         * modules/unictype/combining-class-all:
29202         * modules/unictype/combining-class-byname:
29203         * modules/unictype/combining-class-longname:
29204         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
29205         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
29206         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
29207         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
29208         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
29209         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
29210         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
29211         * modules/unictype/digit, modules/unictype/joininggroup-all:
29212         * modules/unictype/joininggroup-byname:
29213         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
29214         * modules/unictype/joiningtype-all:
29215         * modules/unictype/joiningtype-byname:
29216         * modules/unictype/joiningtype-longname:
29217         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
29218         * modules/unictype/mirror, modules/unictype/numeric:
29219         * modules/unictype/property-all, modules/unictype/property-alphabetic:
29220         * modules/unictype/property-ascii-hex-digit:
29221         * modules/unictype/property-bidi-arabic-digit:
29222         * modules/unictype/property-bidi-arabic-right-to-left:
29223         * modules/unictype/property-bidi-block-separator:
29224         * modules/unictype/property-bidi-boundary-neutral:
29225         * modules/unictype/property-bidi-common-separator:
29226         * modules/unictype/property-bidi-control:
29227         * modules/unictype/property-bidi-embedding-or-override:
29228         * modules/unictype/property-bidi-eur-num-separator:
29229         * modules/unictype/property-bidi-eur-num-terminator:
29230         * modules/unictype/property-bidi-european-digit:
29231         * modules/unictype/property-bidi-hebrew-right-to-left:
29232         * modules/unictype/property-bidi-left-to-right:
29233         * modules/unictype/property-bidi-non-spacing-mark:
29234         * modules/unictype/property-bidi-other-neutral:
29235         * modules/unictype/property-bidi-pdf:
29236         * modules/unictype/property-bidi-segment-separator:
29237         * modules/unictype/property-bidi-whitespace:
29238         * modules/unictype/property-byname:
29239         * modules/unictype/property-case-ignorable:
29240         * modules/unictype/property-cased:
29241         * modules/unictype/property-changes-when-casefolded:
29242         * modules/unictype/property-changes-when-casemapped:
29243         * modules/unictype/property-changes-when-lowercased:
29244         * modules/unictype/property-changes-when-titlecased:
29245         * modules/unictype/property-changes-when-uppercased:
29246         * modules/unictype/property-combining:
29247         * modules/unictype/property-composite:
29248         * modules/unictype/property-currency-symbol:
29249         * modules/unictype/property-dash:
29250         * modules/unictype/property-decimal-digit:
29251         * modules/unictype/property-default-ignorable-code-point:
29252         * modules/unictype/property-deprecated:
29253         * modules/unictype/property-diacritic:
29254         * modules/unictype/property-extender:
29255         * modules/unictype/property-format-control:
29256         * modules/unictype/property-grapheme-base:
29257         * modules/unictype/property-grapheme-extend:
29258         * modules/unictype/property-grapheme-link:
29259         * modules/unictype/property-hex-digit:
29260         * modules/unictype/property-hyphen:
29261         * modules/unictype/property-id-continue:
29262         * modules/unictype/property-id-start:
29263         * modules/unictype/property-ideographic:
29264         * modules/unictype/property-ids-binary-operator:
29265         * modules/unictype/property-ids-trinary-operator:
29266         * modules/unictype/property-ignorable-control:
29267         * modules/unictype/property-iso-control:
29268         * modules/unictype/property-join-control:
29269         * modules/unictype/property-left-of-pair:
29270         * modules/unictype/property-line-separator:
29271         * modules/unictype/property-logical-order-exception:
29272         * modules/unictype/property-lowercase, modules/unictype/property-math:
29273         * modules/unictype/property-non-break:
29274         * modules/unictype/property-not-a-character:
29275         * modules/unictype/property-numeric:
29276         * modules/unictype/property-other-alphabetic:
29277         * modules/unictype/property-other-default-ignorable-code-point:
29278         * modules/unictype/property-other-grapheme-extend:
29279         * modules/unictype/property-other-id-continue:
29280         * modules/unictype/property-other-id-start:
29281         * modules/unictype/property-other-lowercase:
29282         * modules/unictype/property-other-math:
29283         * modules/unictype/property-other-uppercase:
29284         * modules/unictype/property-paired-punctuation:
29285         * modules/unictype/property-paragraph-separator:
29286         * modules/unictype/property-pattern-syntax:
29287         * modules/unictype/property-pattern-white-space:
29288         * modules/unictype/property-private-use:
29289         * modules/unictype/property-punctuation:
29290         * modules/unictype/property-quotation-mark:
29291         * modules/unictype/property-radical:
29292         * modules/unictype/property-sentence-terminal:
29293         * modules/unictype/property-soft-dotted:
29294         * modules/unictype/property-space:
29295         * modules/unictype/property-terminal-punctuation:
29296         * modules/unictype/property-test, modules/unictype/property-titlecase:
29297         * modules/unictype/property-unassigned-code-value:
29298         * modules/unictype/property-unified-ideograph:
29299         * modules/unictype/property-uppercase:
29300         * modules/unictype/property-variation-selector:
29301         * modules/unictype/property-white-space:
29302         * modules/unictype/property-xid-continue:
29303         * modules/unictype/property-xid-start:
29304         * modules/unictype/property-zero-width, modules/unictype/scripts:
29305         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
29306         * modules/unictype/syntax-c-whitespace:
29307         * modules/unictype/syntax-java-ident:
29308         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
29309         * modules/unigbrk/u16-grapheme-breaks:
29310         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
29311         * modules/unigbrk/u32-grapheme-breaks:
29312         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
29313         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
29314         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
29315         * modules/unigbrk/uc-is-grapheme-break:
29316         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
29317         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
29318         * modules/unilbrk/u16-width-linebreaks:
29319         * modules/unilbrk/u32-possible-linebreaks:
29320         * modules/unilbrk/u32-width-linebreaks:
29321         * modules/unilbrk/u8-possible-linebreaks:
29322         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
29323         * modules/unilbrk/ulc-possible-linebreaks:
29324         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
29325         * modules/uniname/uniname, modules/uninorm/base:
29326         * modules/uninorm/canonical-decomposition:
29327         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
29328         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
29329         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
29330         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
29331         * modules/uninorm/nfkc, modules/uninorm/nfkd:
29332         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
29333         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
29334         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
29335         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
29336         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
29337         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
29338         * modules/unistdio/base, modules/unistdio/u-printf-args:
29339         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
29340         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
29341         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
29342         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
29343         * modules/unistdio/u16-u16-sprintf:
29344         * modules/unistdio/u16-u16-vasnprintf:
29345         * modules/unistdio/u16-u16-vasprintf:
29346         * modules/unistdio/u16-u16-vsnprintf:
29347         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
29348         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
29349         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
29350         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
29351         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
29352         * modules/unistdio/u32-u32-asnprintf:
29353         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
29354         * modules/unistdio/u32-u32-sprintf:
29355         * modules/unistdio/u32-u32-vasnprintf:
29356         * modules/unistdio/u32-u32-vasprintf:
29357         * modules/unistdio/u32-u32-vsnprintf:
29358         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
29359         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
29360         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
29361         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
29362         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
29363         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
29364         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
29365         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
29366         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
29367         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
29368         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
29369         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
29370         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
29371         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
29372         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
29373         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
29374         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
29375         * modules/unistr/u16-check, modules/unistr/u16-chr:
29376         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
29377         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
29378         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
29379         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
29380         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
29381         * modules/unistr/u16-move, modules/unistr/u16-next:
29382         * modules/unistr/u16-prev, modules/unistr/u16-set:
29383         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
29384         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
29385         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
29386         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
29387         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
29388         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
29389         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
29390         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
29391         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
29392         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
29393         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
29394         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
29395         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
29396         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
29397         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
29398         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
29399         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
29400         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
29401         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
29402         * modules/unistr/u32-next, modules/unistr/u32-prev:
29403         * modules/unistr/u32-set, modules/unistr/u32-startswith:
29404         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
29405         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
29406         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
29407         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
29408         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
29409         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
29410         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
29411         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
29412         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
29413         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
29414         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
29415         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
29416         * modules/unistr/u8-check, modules/unistr/u8-chr:
29417         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
29418         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
29419         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
29420         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
29421         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
29422         * modules/unistr/u8-next, modules/unistr/u8-prev:
29423         * modules/unistr/u8-set, modules/unistr/u8-startswith:
29424         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
29425         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
29426         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
29427         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
29428         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
29429         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
29430         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
29431         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
29432         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
29433         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
29434         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
29435         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
29436         * modules/uniwbrk/base, modules/uniwbrk/table:
29437         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
29438         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
29439         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
29440         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
29441         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
29442         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
29443         * modules/uniwidth/width, modules/utf16-ucs4:
29444         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
29445         * modules/utf8-ucs4-unsafe:
29446         Change maintainer from Bruno Haible to Daiki Ueno.
29447         This is my guess at the libunistring modules; please feel free
29448         to fix if I guessed incorrectly.
29449         * modules/accept4, modules/acl, modules/acos, modules/acosf:
29450         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
29451         * modules/areadlink, modules/array-list, modules/array-mergesort:
29452         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
29453         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
29454         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
29455         * modules/binary-io, modules/bison-i18n, modules/btowc:
29456         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
29457         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
29458         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
29459         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
29460         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
29461         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
29462         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
29463         * modules/closedir, modules/concat-filename, modules/copy-file:
29464         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
29465         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
29466         * modules/csharpcomp-script, modules/csharpexec:
29467         * modules/csharpexec-script, modules/ctype, modules/diffseq:
29468         * modules/dprintf, modules/dprintf-posix, modules/dup:
29469         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
29470         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
29471         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
29472         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
29473         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
29474         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
29475         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
29476         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
29477         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
29478         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
29479         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
29480         * modules/findprog, modules/findprog-lgpl, modules/floor:
29481         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
29482         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
29483         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
29484         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
29485         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
29486         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
29487         * modules/freadable, modules/freadahead, modules/freadptr:
29488         * modules/freadseek, modules/freopen, modules/frexp:
29489         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
29490         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
29491         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
29492         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
29493         * modules/ftello, modules/full-read, modules/full-write:
29494         * modules/fwritable, modules/fwriteerror, modules/gcd:
29495         * modules/get-rusage-as, modules/get-rusage-data:
29496         * modules/getdtablesize, modules/getrusage, modules/gettext:
29497         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
29498         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
29499         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
29500         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
29501         * modules/iconv, modules/iconv-h, modules/iconv_open:
29502         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
29503         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
29504         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
29505         * modules/integer_length_ll, modules/ioctl, modules/isatty:
29506         * modules/isblank, modules/isnand, modules/isnand-nolibm:
29507         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
29508         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
29509         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
29510         * modules/javaexec, modules/javaexec-script, modules/javaversion:
29511         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
29512         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
29513         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
29514         * modules/lib-symbol-visibility, modules/libsigsegv:
29515         * modules/linked-list, modules/linkedhash-list, modules/list:
29516         * modules/localcharset, modules/locale, modules/localeconv:
29517         * modules/localename, modules/lock, modules/log, modules/log-ieee:
29518         * modules/log10, modules/log10-ieee, modules/log10f:
29519         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
29520         * modules/log1p, modules/log1p-ieee, modules/log1pf:
29521         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
29522         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
29523         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
29524         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
29525         * modules/logf, modules/logf-ieee, modules/login_tty:
29526         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
29527         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
29528         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
29529         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
29530         * modules/mbscspn, modules/mbsinit, modules/mbslen:
29531         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
29532         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
29533         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
29534         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
29535         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
29536         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
29537         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
29538         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
29539         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
29540         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
29541         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
29542         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
29543         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
29544         * modules/posix_spawn, modules/posix_spawn-internal:
29545         * modules/posix_spawn_file_actions_addclose:
29546         * modules/posix_spawn_file_actions_adddup2:
29547         * modules/posix_spawn_file_actions_addopen:
29548         * modules/posix_spawn_file_actions_destroy:
29549         * modules/posix_spawn_file_actions_init:
29550         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
29551         * modules/posix_spawnattr_getpgroup:
29552         * modules/posix_spawnattr_getschedparam:
29553         * modules/posix_spawnattr_getschedpolicy:
29554         * modules/posix_spawnattr_getsigdefault:
29555         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
29556         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
29557         * modules/posix_spawnattr_setschedparam:
29558         * modules/posix_spawnattr_setschedpolicy:
29559         * modules/posix_spawnattr_setsigdefault:
29560         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
29561         * modules/pow, modules/powf, modules/printf-frexp:
29562         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
29563         * modules/progname, modules/propername, modules/pselect:
29564         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
29565         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
29566         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
29567         * modules/read, modules/readdir, modules/readlink:
29568         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
29569         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
29570         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
29571         * modules/relocatable-script, modules/remainder:
29572         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
29573         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
29574         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
29575         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
29576         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
29577         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
29578         * modules/setlocale, modules/sh-quote, modules/shutdown:
29579         * modules/signal, modules/signbit, modules/sigpipe:
29580         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
29581         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
29582         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
29583         * modules/snippet/link-warning, modules/snippet/unused-parameter:
29584         * modules/snprintf, modules/snprintf-posix, modules/spawn:
29585         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
29586         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
29587         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
29588         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
29589         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
29590         * modules/streq, modules/strerror_r-posix, modules/striconv:
29591         * modules/striconveh, modules/striconveha, modules/strncat:
29592         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
29593         * modules/sublist, modules/sys_resource, modules/sys_utsname:
29594         * modules/sys_wait, modules/system-posix, modules/system-quote:
29595         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
29596         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
29597         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
29598         * modules/truncf, modules/truncf-ieee, modules/truncl:
29599         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
29600         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
29601         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
29602         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
29603         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
29604         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
29605         * modules/wait-process, modules/waitpid, modules/wcpcpy:
29606         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
29607         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
29608         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
29609         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
29610         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
29611         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
29612         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
29613         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
29614         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
29615         * modules/write, modules/xconcat-filename, modules/xlist:
29616         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
29617         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
29618         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
29619         * modules/y0, modules/y1, modules/yn:
29620         Remove Bruno Haible as maintainer; if he's the sole maintainer,
29621         change the maintainer to 'all'.  Let's hope someone volunteers.
29623 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
29625         mktime: merge #if/#ifdef usage from glibc
29626         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29627         as that works with both Glibc's and Gnulib's style.
29628         See thread starting at Siddhesh Poyarekar's bug report at:
29629         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
29631 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
29633         git-version-gen: improve option descriptions
29634         * build-aux/git-version-gen: Mention that --prefix and --fallback
29635         have a mandatory argument.
29637 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29639         regex: fix memory leak in compiler
29640         Fix by Andreas Schwab in:
29641         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
29642         * lib/regcomp.c (parse_expression): Deallocate partially
29643         constructed tree before returning error.
29645         regex: merge patch from libc
29646         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
29647         Combine __USE_BSD and __USE_SVID into __USE_MISC.
29648         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
29650 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
29652         acl: port to gcc -Wredundant-decls
29653         From a request by Dmitry Antipov in:
29654         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
29655         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
29656         "#ifndef _GL_ACL_H".
29658 2014-06-11  Bruce Korb  <bkorb@gnu.org>
29659         Jim Meyering  <meyering@fb.com>
29661         parse-duration: eliminate 68-year duration limit
29662         * lib/parse-duration.c: Include "intprops.h".
29663         (TIME_MAX): Rename to MAX_DURATION and define to
29664         TYPE_MAXIMUM(time_t).
29665         * modules/parse-duration (Depends-on): Add intprops.
29666         Reported by Jonas 'Sortie' Termansen.
29668 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29670         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29671         * modules/pthread (Depends-on): Add 'extensions', as it defines
29672         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29673         (configure.ac-early): New section.
29674         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29675         it is no longer needed.
29677 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29679         pthread: define thread-safe macros on some platforms
29680         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29681         for thread-safe operation on some platforms.
29683 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29685         regex: don't be multithreaded if USE_UNLOCKED_IO.
29686         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29687         * lib/regex_internal.h: Do not use multithreaded version if
29688         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29689         around a porting bug with coreutils 8.22 on AIX 7.1.
29691 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29693         gettext: update macros to version 0.19
29694         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29695         depend on gl_EXTERN_INLINE and drop support for older Bison
29696         versions.
29698 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29700         select,poll: fix console handle check on windows 8
29701         lib/poll.c (IsConsoleHandle): Change from testing the lower
29702         2 bits of the handle to the more expensive but accurate syscall.
29703         lib/select.c: Likewise.
29705 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29707         select: fix waiting on anonymous pipes on MS-Windows
29708         * lib/select.c (rpl_select): Fall back to polling when select()
29709         indicates there is nothing to check, while due to the timeout not
29710         expiring, activity is indicated on one of the handles.
29711         Also clear the TIMEOUT argument if the timer does expire.
29713 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29715         times: fix to return non constant value on MS-Windows
29716         * lib/times.c (times): Don't use the process creation time,
29717         rather clock() which on windows returns the number of
29718         clock ticks since the process started.
29720 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
29722         isatty: fix to work on windows 8
29723         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
29724         2 bits of the handle to the more expensive but accurate syscall.
29726 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29728         maint: fix typo in fdl.texi
29729         * doc/fdl.texi: Fix typo (missing '@').
29730         Somehow this was in fdl.texi but not fdl-1.3.texi.
29732 2014-06-06  Ben Walton  <bdwalton@gmail.com>
29734         mountlist: avoid hasmntopt const type warning on solaris
29735         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
29736         with char * instead of const char *.  Passing the constant string
29737         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
29738         to avoid the warning.
29740 2014-06-04  Eric Blake  <eblake@redhat.com>
29742         maintainer-makefile: delete obsolete code
29743         * top/maint.mk (build_aux): Drop old code, as threatened.
29745         maintainer-makefile: avoid spurious error messages
29746         * top/maint.mk (syntax-check): Guard definition and use of
29747         $(shell) by whether Makefile is present.
29749 2014-06-03  Ben Walton  <bdwalton@gmail.com>
29751         rename: avoid unused-but-set-variable compiler warning
29752         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
29753         it is possible that dst_exists may be set but not used.  Mark it with
29754         the unused attribute to avoid compiler warnings.
29756 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29758         rename: mark a label as potentially unused
29759         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
29760         by marking the out label as potentially unused.
29761         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
29763 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29765         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
29766         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
29768 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29770         acl: apply pure attribute to two functions
29771         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
29772         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
29774 2014-06-01  Pádraig Brady  <P@draigBrady.com>
29776         gnulib-common.m4: add _GL_UNUSED_LABEL
29777         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
29778         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
29780 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29782         dup2, fcntl, fcntl-h: port to AIX 7.1
29783         This fixes some porting problems discovered when testing the latest
29784         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
29785         in grep but it could be important for other applications.
29786         * doc/posix-functions/dup2.texi:
29787         * doc/posix-functions/fcntl.texi:
29788         * doc/posix-headers/fcntl.texi:
29789         Document AIX bugs.
29790         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
29791         Define to 0 if outside 'int' range.
29792         * m4/dup2.m4 (gl_FUNC_DUP2):
29793         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29794         Check for getdtablesize.  If it's available, test a value just
29795         outside its range instead of testing 1000000.  When cross-compiling,
29796         guess that AIX will fail this improved test.
29798 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29800         printf, config.rpath: Port to FreeBSD 10.
29801         Problem reported by Tijl Coosemans in:
29802         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
29803         * build-aux/config.rpath (hardcode_libdir_flag_spec)
29804         (hardcode_direct): Simplify FreeBSD configuration.
29805         (library_names_spec): Don't mishandle FreeBSD 10+.
29806         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29807         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29808         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29809         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29810         Don't mishandle FreeBSD 10+ when cross-compiling.
29812         ftoastr: work around compiler bug in IBM xlc 12.1
29813         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29814         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29815         around a compiler bug in IBM xlc 12.1.0.0: it complains
29816         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29817         _GL_FLT_PREC_BOUND.'
29819 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29821         valgrind-tests: fixed misleading help message
29822         * m4/valgrind-tests.m4: The help message generated by configure
29823         implied that valgrind was disabled by default, which it wasn't.
29824         Adjusted the help message using s/enable/disable/ to clarify.
29826 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29828         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29829         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29830         first double of a PowerPC "double double" pair.
29831         * tests/test-isinf.c (test_isinfl): Likewise.
29832         * tests/test-isnan.c (test_long_double): Likewise.
29833         * tests/test-isnanl.h (main): Likewise.
29834         * tests/test-signbit.c (test_signbitl): Likewise.
29836 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29838         exclude-tests: port to AIX 7.1
29839         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29840         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29841         the regex code uses locks.
29843 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29845         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29846         Without this fix, Emacs would sometimes call sigprocmask instead
29847         of pthread_sigmask, which is a no-no in multithreaded applications.
29848         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29849         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29850         Suppress check for pthread_sigmask working without -lpthread if
29851         the application always links with -lpthread.  Do not link with
29852         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29853         * m4/timer_time.m4 (gl_TIMER_TIME):
29854         Require gl_THREADLIB only if it is defined.  Do not append
29855         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29857 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29859         gnulib-tool: wget translations using --no-verbose rather than --quiet
29860         This allows the user to see error messages if any (--quiet hides them)
29861         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29863 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29865         gnulib-tool: adjust translation wget to avoid a https redirection
29866         Context: http://translationproject.org/latest/gnulib redirects to
29867            https://translationproject.org/latest/gnulib/
29868         Rationale: if the user falls back to wget, she doesn't have rsync and
29869         is probably in a minimal build environment, where packages such as
29870         'ca-certificates' are missing as well, resulting in a failed (and
29871         difficult to detect since ignored) translation initial fetch.
29872         Consequently let's avoid https if possible, and add the missing
29873         trailing slash.  This also avoids an unnecessary 302 redirection.
29874         * gnulib-tool: Add trailing slash to gnulib URL.
29876 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29878         getlogin_r-tests: check return value rather than errno
29879         * tests/test-getlogin_r.c (main): As per POSIX we should be
29880         verifying the return value from getlogin_r() rather than errno.
29882 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29884         getlogin_r-tests: fix various issues in recent change
29885         * tests/test-getlogin_r.c: Include required headers that were
29886         missed in recent commit eec20b4e.
29887         Also consistently check the errno rather than the return value from
29888         getlogin_r as POSIX only specifies that non zero is returned on error.
29889         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29891 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29893         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29894         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29895         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29896         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29897         * lib/spawn-pipe.c:
29898         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29899         and then 'int open64(const char *, int, ...);', which means the
29900         declaration for 'open' gets lost if we later '#undef open'.
29901         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29902         where the compilation reported the non-fatal error "In function
29903         'openat_proc_name' ... warning: implicit declaration of function
29904         'open'".  In this case the error is relatively harmless, but in
29905         other cases it might not be so minor.
29907 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29909         xalloc: don't potentially generate invalid code for xmemdup calls
29910         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29911         this function can initialize the newly-allocated storage with new
29912         pointers, which means this function is not malloc-like.  See:
29913         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29915 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29917         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29918         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29919         changes from commit 97249cf29 to not depend on environment variables.
29921 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29923         getlogin-tests: avoid false failure under cron
29924         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29925         since that's not what's under test.  Centos 6 was seen to return
29926         EINVAL for ttyname() when run from cron.
29928 2014-05-16  Jim Meyering  <meyering@fb.com>
29930         mbrtowc.m4: fix a comment typo
29931         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29932         emitted documentation string.
29934 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29936         mbrlen, mbrtowc: fix bug with empty input
29937         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29938         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29939         so this is mainly for documentation.
29940         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29941         (gl_FUNC_MBRTOWC): Use it.
29942         * tests/test-mbrtowc.c (main): Test for the bug.
29944 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29946         doc: document mbrtowc and mbrlen problem with empty input
29947         * doc/posix-functions/mbrlen.texi (mbrlen):
29948         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29949         Document portability problem when the input string is empty.  See:
29950         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29952         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29953         Problem reported by Eli Zaretskii in:
29954         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29955         * doc/posix-functions/execl.texi (execl):
29956         * doc/posix-functions/execle.texi (execle):
29957         * doc/posix-functions/execlp.texi (execlp):
29958         * doc/posix-functions/execv.texi (execv):
29959         * doc/posix-functions/execve.texi (execve):
29960         * doc/posix-functions/execvp.texi (execvp):
29961         Mention spawn+exit problem on non-Cygwin Windows platforms.
29963 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29965         getlogin-tests: avoid false failure under sudo/ssh etc.
29966         * modules/getlogin-tests (configure.ac): Check for ttyname().
29967         * tests/test-getlogin.c (main): Don't depend on environment variables
29968         to correlate with getlogin(), since sudo and ssh etc. can tamper
29969         with the LOGNAME and USER env vars.  Instead lookup the name from
29970         the uid associated with the stdin tty.
29972 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29974         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29975         These were found when building the latest grep snapshot on IRIX 6.5.
29976         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29977         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29978         never used later.
29979         * lib/quotearg.c (quoting_options_from_style):
29980         * lib/xstrtol.c (__xstrtol):
29981         Use enum instead of 0, to pacify IRIX 6.5 cc.
29983 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29985         gitlog-to-changelog: revert inclusion of git-log-fix file
29986         * build-aux/git-log-fix: Delete dummy file.
29987         * modules/gitlog-to-changelog: Don't reference (overwrite)
29988         the project specific git-log-fix file.
29990 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29992         maint.mk: Relax the copyright check to cater for non FSF projects
29993         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29994         to not require the "Free" suffix after the copyright years.
29996 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29998         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29999         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
30000         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
30001         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
30002         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
30004 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
30006         exclude: port to strict C99
30007         Strict C does not allow converting a function pointer to void *
30008         and vice versa.  Pass a pointer to a function pointer instead.
30009         * lib/exclude.c (add_exclude_file):
30010         Pass the address of the function pointer.
30011         (call_addfn): And deference the address here, to match.
30013 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
30015         regex: do not depend on malloc-gnu
30016         * modules/regex (Depends-on): Remove malloc-gnu.
30017         It's no longer needed, because of the 2012-12-29 patch
30018         "regex: port to hosts where malloc (0) == NULL".
30019         Reported by Nathan Kennedy in:
30020         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
30022 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
30024         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
30025         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
30026         * doc/posix-functions/expl.texi: Mention the workaround.
30028 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30030         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
30031         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
30032         size to be zero even when the pointer is nonnull.  This
30033         accommodates the use case where P is malloc (0) and *PN is 0 on a
30034         host where malloc (0) yields nonnull.
30036 2014-04-09  Eric Blake  <eblake@redhat.com>
30038         fts: avoid unnecessary strlen calls
30039         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
30041 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30043         fts: avoid unnecessary strlen calls
30044         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
30045         when that can be faster than strlen.
30047 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30049         fts: avoid unnecessary strlen calls
30050         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
30051         (fts_build): Store the length of the dp->d_name entry in a local variable
30052         instead of calling strlen() several times via the above, removed macro.
30053         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
30054         run by ~4%, yet this reduces the execution time by about a third if run
30055         via "ltrace -c rm -rf some-dir".
30057 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30059         obstack: Remove ancient NeXTSTEP gcc support conditional
30060         This change will ease merging with glibc.  The "#if ... __NEXT__"
30061         causes a warning with -Wundef which glibc now enables by default.
30062         Problem reported by Will Newton in
30063         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
30064         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
30065         so go with that.
30066         * lib/obstack.h (__extension__):
30068 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30070         obstack: merge with glibc changes
30071         * lib/obstack.c, lib/obstack.h: Merge from glibc.
30072         This is mostly indenting and commentary changes.
30073         Instances of 'register' have been removed.
30075 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30077         strftime: wrap macros in "do {...} while(0)"
30078         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
30079         this macro in "do {...} while(0)" to prevent false use as a
30080         single statement, e.g., in an un-braced "{}" else-block.
30081         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
30082         (strftime_case_): Remove 'else' after 'goto' - which was the
30083         only non-fatal, un-braced use of one of the above macros.
30084         Spotted by coverity (NESTING_INDENT_MISMATCH).
30086 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30088         modechange: avoid memory leaks for invalid octal modes
30089         * lib/modechange.c (mode_compile): During the parsing of
30090         notations like +40, free the 'mc' buffer for invalid mode
30091         strings like +17777 (greater than the maximum octal mode),
30092         =18 (bad octal mode characters) or u=1 ('affected' with
30093         octal modes).
30094         Reproducer, e.g.:
30095             $ valgrind --leak-check=full chmod +17777 file
30096         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
30097         add notations +40, 00440, etc.".
30098         Spotted by coverity (RESOURCE_LEAK).
30100 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
30102         gitlog-to-changelog: include a dummy git-log-fix file
30103         Problem reported by Nathan Stratton Treadway in:
30104         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
30105         * build-aux/git-log-fix: New file.
30107 2014-03-13  Jim Meyering  <meyering@fb.com>
30109         gitlog-to-changelog: also include the file, git-log-fix
30110         * modules/gitlog-to-changelog (Files): Add git-log-fix.
30111         Reported by Assaf Gordon.
30113 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30115         regex: port to OS X 10.8.5 en_US.UTF-8 locale
30116         This fixes a bug when ignoring case and when comparing the
30117         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
30118         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
30119         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
30120         titlecase letter is neither lowercase nor uppercase, but
30121         uppercasing the titlecase letter (via towupper) yields the
30122         uppercase letter, so the two letters should match when ignoring case.
30123         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
30124         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
30125         Don't test whether a character is lowercase before uppercasing it.
30127 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
30129         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
30130         This is basically one of the options Bruno Haible proposed in:
30131         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
30132         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
30133         * lib/stdint.in.h: Use it.
30134         * modules/stdint (Depends-on): Add sys_types.
30136 2014-02-26  Pádraig Brady  <P@draigBrady.com>
30138         parse-datetime: fix crash or infloop in TZ="" parsing
30139         * lib/parse-datetime.y (parse_datetime): Break out of the
30140         TZ="" parsing loop once the second significant " is found.
30141         Also skip over any subsequent whitespace to be consistent
30142         with the non TZ= case.
30143         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
30145 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30147         savedir: new symbol for fast-read version
30148         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
30149         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
30150         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
30151         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
30153 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30155         unistd: port readlink to Mac OS X 10.3.9
30156         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
30157         around self-include problem in Mac OS X 10.3.9 when combined with
30158         readlink module.  Problem reported by Klaus Zietler in
30159         <http://bugs.gnu.org/16825>.
30161 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30163         diffseq: remove TOO_EXPENSIVE heuristic
30164         Problem with diffutils reported by Vincent Lefevre in
30165         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
30166         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
30167         Although appropriate for circa-1993 hardware, these days the heuristic
30168         seems to be more trouble than it's worth.
30169         * lib/diffseq.h: Modernize citations.
30170         (struct context): Remove member too_expensive.
30171         All uses changed.
30172         (struct partition): Remove members lo_minimal, hi_minimal.
30173         All uses changed.
30174         (diag, compareseq): Remove arg find_minimal.  All uses changed.
30175         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
30176         1993 to make 'diff' run faster (but not as well) on large inputs.
30177         These days, computers are fast enough that it's typically better
30178         to run slower but more accurately.
30179         * lib/fstrcmp.c: Remove duplicate comment.
30180         * lib/fstrcmp.c (strcmp_bounded):
30181         * lib/git-merge-changelog.c (compute_differences):
30182         Adjust to diffseq.h changes.
30183         * NEWS: Document the change.
30185         savedir: simplify by using stpcpy
30186         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
30187         (streamsavedir): Use stpcpy instead.
30188         * modules/savedir (Depends-on): Add stpcpy.
30190 2014-02-21  Pádraig Brady  <P@draigBrady.com>
30192         spawn: fix link error on uclibc
30193         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
30194         to incorporate -lrt if needed (on uclibc for example).
30195         * modules/posix_spawn: Reference the substituted LIB.
30197 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
30198         timer: fix uClibc detection of threading
30199         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
30200         enabled in uClibc.
30202 2014-02-21  Eric Blake  <eblake@redhat.com>
30204         maintainer-makefiles: provide AC_PROG_SED for older autoconf
30205         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
30207 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30209         exclude: add support for posix regexps
30211         This commit adds support for POSIX extended regular expressions
30212         and fixes a long-standing memory leak (pattern buffer was never
30213         freed).  It also implements a new interface function to read
30214         exclude patterns from a FILE, which passes an additional parameter
30215         to its callback function, thereby allowing to preserve its state
30216         between invocations.
30218         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
30219         (pattern_buffer): New struct.
30220         (exclude): New member patbuf.
30221         (exclude_add_pattern_buffer): New function.
30222         (free_exclude_segment): Free regexps.
30223         (free_exclude): Free allocated pattern buffers.
30224         (exclude_patopts): New function.
30225         (file_pattern_matches): Use exclude_patopts.
30226         (add_exclude): support regexps.
30227         (add_exclude_fp): New function.
30228         (add_exclude_file): Rewrite using add_exclude_fp.
30229         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30230         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30231         (add_exclude_fp)
30232         (add_exclude_file): Rewrite using add_exclude_fp.
30233         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30234         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30235         (add_exclude_fp)
30236         (exclude_add_pattern_buffer): New prototypes.
30237         * modules/exclude: Depends on regex and filename.
30239 2014-02-20  Eric Blake  <eblake@redhat.com>
30241         maintainer-makefiles: use $(SED) for syntax check
30242         * modules/maintainer-makefile (configure.ac): Check for sane sed.
30243         * top/maint.mk: Change sed to $(SED).
30245 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
30246             Paul Eggert  <eggert@cs.ucla.edu>
30248         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
30249         Patch based on an idea by Dick Streefland in
30250         <https://savannah.gnu.org/patch/?7892>.
30251         * NEWS: Document this.
30252         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
30253         (direntry_t, comparison_function): New types.
30254         (direntry_cmp_name): New function.
30255         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
30256         (streamsavedir, savedir): New arg OPTION.
30257         (streamsavedir): Simplify memory allocation.
30258         (fdsavedir): Remove.
30259         * lib/savedir.h (enum savedir_option): New type.
30260         (streamsavedir, savedir): New arg OPTION.
30261         (fdsavedir): Remove.
30263 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
30265         file-type: add support for doors and other less-common file types
30266         Problem with S_ISDOOR reported by Rich Burridge.
30267         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
30268         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
30269         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
30271 2014-01-23  Eric Blake  <eblake@redhat.com>
30273         pthread: work around winpthread header pollution on mingw
30274         * lib/time.in.h: Move pthread workarounds...
30275         * lib/pthread.in.h: ...here.
30276         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
30277         detect macro pollution on mingw.
30278         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
30280 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30282         qacl: check for fchmod
30283         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
30284         and qset-acl.c both use HAVE_FCHMOD.
30286 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30288         fdopen-tests: port to Tru64
30289         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
30290         descriptor that is not open, as POSIX doesn't specify the
30291         resulting behavior and the test does not work on Tru64.
30292         Problem reported by Steven M. Schweda in:
30293         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
30295         stdalign: port to HP-UX compilers
30296         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
30297         if __HP_cc or __HP_aCC are nonzero.
30299 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30301         strtoimax: port to platforms lacking 'long long'
30302         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
30303         check whether strtoll is declared, which causes the C file to
30304         wrongly report an error.  Problem reported by Steven M. Schweda in:
30305         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
30306         * lib/strtoimax.c (strtoull):
30307         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
30308         (strtoll): Declare only if HAVE_LONG_LONG_INT.
30310 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
30312         relocatable-perl: fix texi syntax
30313         * doc/relocatable-maint.texi: Escape braces.
30315 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
30317         relocatable-perl: like relocatable-script, but for Perl scripts
30318         * build-aux/relocatable.pl.in: Add.
30319         * doc/relocatable-maint.texi: Add documentation.
30320         * modules/relocatable-perl: Add.
30322 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
30324         tests: fix export bug in previous patch
30325         Problem reported by Jim Meyering.
30326         * tests/init.sh (re_shell): New var, which is exported instead of
30327         re_shell_.
30329         tests: simplify porting to Solaris 10 /bin/sh
30330         Some test cases in 'grep' need a shell that groks '$(';
30331         export re_shell_ for their benefit.  Problem reported for 'grep'
30332         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
30333         * tests/init.sh (re_shell_): Export if it's used.
30335 2014-01-06  Eric Blake  <eblake@redhat.com>
30337         md5, sha1, sha256, sha512: support older autoconf
30338         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
30339         for autoconf < 2.63b.
30341         include_next: port to autoconf 2.63
30342         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
30344 2014-01-04  Jim Meyering  <meyering@fb.com>
30346         maint: add a gnulib-local rule to keep non-ascii out of .texi files
30347         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
30348         so that "make sc_maint" will ding anyone who puts non-ascii
30349         in any of gnulib's .texi files.
30351 2014-01-03  Jim Meyering  <meyering@fb.com>
30353         freadable, fwritable, fwriting: declare with the "pure" attribute
30354         * lib/freadable.h (freadable): Declare with the "pure" attribute.
30355         * lib/fwritable.h (fwritable): Likewise.
30356         * lib/fwriting.h (fwriting): Likewise.
30357         Suggested by Bruno Haible.
30359         maint.mk: adapt openat.h-include-without-use test
30360         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
30361         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
30362         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
30363         With this change, running "make sc_maint" in gnulib's top-level
30364         directory now passes for me.
30366 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30368         doc: use ASCII in .texi files where UTF-8 isn't needed
30369         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
30370         * doc/posix-functions/setkey.texi, doc/regex.texi:
30371         Use ASCII input, not UTF-8.
30373 2014-01-02  Jim Meyering  <meyering@fb.com>
30375         freading: declare with the "pure" attribute
30376         * lib/freading.h (freading): Declare with the "pure" attribute.
30378         manywarnings: remove -Wmudflap
30379         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
30380         it is no longer supported in gcc-4.9-to-be.
30382 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30384         relocatable-script: remove unused code
30385         Problem reported by Reuben Thomas in:
30386         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
30387         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
30389 2014-01-01  Jim Meyering  <meyering@fb.com>
30391         maint: fix public-submodule-commit to work with newer git
30392         * top/maint.mk (public-submodule-commit): Remove excess quoting.
30393         We were over-quoting the test arguments, and somewhere prior to
30394         version 1.8.5.2.229, git stopped removing those excess quotes,
30395         which made the test fail, since the unexpanded strings would
30396         always differ; using GIT_TRACE=1 confirmed that the git merge-base
30397         command wasn't even being run.
30399 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30401         doc: update main copyright year
30402         * doc/gnulib.texi: Update copyright date.
30404 2014-01-01  Eric Blake  <eblake@redhat.com>
30406         version-etc: new year
30407         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
30408         * all files: run 'make update-copyright'
30410 2013-12-24  Eric Blake  <eblake@redhat.com>
30412         passfd: give nicer error for recvfd at eof
30413         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
30414         * tests/test-passfd.c (main): Enhance test to cover this.
30416 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30418         gettimeofday: port recent C++ fix to Emacs
30419         Without this further patch, Emacs won't build due to
30420         the portcheck failing.  Also, this simplifies the patch a bit.
30421         * lib/time.in.h (localtime, gmtime): Don't replace unless
30422         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
30423         * lib/time.in.h (localtime, gmtime):
30424         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
30425         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30426         * modules/time (time.h):
30427         Don't worry about the possibility of localtime and gmtime
30428         being absent; they're present in all C libraries we know about.
30429         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30430         Don't assume sys_time is present and has been initialized.
30431         Instead, use a hack that should work even if it hasn't been.
30432         Don't use a portcheck for gmtime or localtime; this supports
30433         the hack.
30434         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
30436 2013-12-17  John W. Eaton  <jwe@gnu.org>
30438         gettimeofday: fix C++ crosscompilation
30440         Never replace gmtime and localtime by macros when compiling with
30441         C++, this prevents <ctime> from being included.
30443         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
30444         define gmtime and localtime as preprocessor macros.  Instead
30445         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
30446         REPLACE_LOCALTIME substitutions.
30447         * lib/time.in.h: Declare gmtime and localtime when needed.
30448         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
30449         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
30450         * modules/time: Depend on gettimeofday, and substitute the above
30451         variables in time.h.
30453 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30455         qacl: port to Windows better
30456         See Eli Zaretskii in
30457         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
30458         * lib/file-has-acl.c (acl_access_nontrivial):
30459         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
30460         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
30462 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
30464         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
30465         * lib/gl_openssl.h: Cast void pointers to a specific type.
30467 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30469         open-tests: fix build failure with -Werror=old-style-declaration
30470         * tests/test-open.h: Reorder the inline to avoid the issue.
30472 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30474         md5, sha1, sha256, sha512: fix link error with partial libcrypto
30475         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
30476         init time, so that if early checks find crypto routines,
30477         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
30478         avoiding link failures.
30480 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30482         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
30483         This provides a new way to specify the default for
30484         gl_CRYPTO_CHECK, one that is reflected in the --help message.
30485         Emacs uses this, as well as the old way.
30486         This attempts to implement a suggestion by Pádraig Brady in
30487         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
30488         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
30489         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
30491         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
30492         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
30493         Add support for a new option, --with-openssl=auto, which causes
30494         the library to be used if available and silently ignored if not.
30495         Add support to allow configure.ac to specify its own
30496         default, by setting with_openssl_default before invoking gl_INIT.
30498 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30500         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
30501         Problem reported by Daiki Ueno in:
30502         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
30503         * tests/test-open.h (__always_inline):
30504         New macro, if not already defined.
30505         (test_open): Use it.
30507 2013-12-04  Eric Blake  <eblake@redhat.com>
30509         include_next: minimize code duplication
30510         * modules/include_next (Depends-on): Add absolute-header.
30511         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
30512         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
30514 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30516         getcwd: fix compile error in configure check
30517         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
30519 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30521         regex: suppress core dumps from detection code
30522         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
30523         to suppress core dumps that may well occur on glibc systems.
30524         These core dumps might not be cleaned up automatically, or could
30525         trigger some system core dump handling logic.
30527 2013-12-03  Pádraig Brady  <P@draigBrady.com>
30529         md5, sha1, sha256, sha512: support mandating use of openssl
30530         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
30531         description, to list the now 3 separate options.  also don't
30532         mention the default=no, since this is implicit given the option
30533         is described as --with-openssl rather than --without-openssl.
30534         If projects change the default they're free to document that.
30535         with --with-openssl[=yes] we now error out when the specified
30536         hash algorithm is not available in libcrypto.
30538 2013-12-03  Ivailo  <xakepa10@gmail.com>
30540         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
30541         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
30542         -Wformat-nonliteral checks, as these edge cases are part of the test.
30544 2013-12-03  Eric Blake  <eblake@redhat.com>
30546         regex: avoid glibc deadlock during configure
30547         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
30548         glibc bug 15078 in turn triggers bug 16159.
30549         Reported by Michal Privoznik.
30551 2013-12-02  Pádraig Brady  <P@draigBrady.com>
30553         md5, sha1, sha256, sha512: use openssl routines if available.
30554         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
30555         routines will be used if available, requiring apps to link @LIB_CRYPTO@
30556         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
30557         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
30558         in the standard system location.
30559         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
30560         * m4/sha256.m4: Likewise with SHA256.
30561         * m4/sha512.m4: Likewise with SHA512.
30562         * m4/md5.m4: Likewise with MD5.
30563         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
30564         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
30565         * lib/sha256.h: Likewise with SHA256.
30566         * lib/sha512.h: Likewise with SHA512.
30567         * lib/md5.h: Likewise with MD5.
30568         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
30569         * lib/sha256.c: Likewise with SHA256.
30570         * lib/sha512.c: Likewise with SHA512.
30571         * lib/md5.c: Likewise with MD5.
30572         * modules/crypto/sha1 (Link:): Add the new optional lib.
30573         (Depends-on:): Add dependency on extern-inline.
30574         * modules/crypto/sha256: Likewise.
30575         * modules/crypto/sha512: Likewise.
30576         * modules/crypto/md5: Likewise.
30577         * modules/crypto/sha1-tests: Reference the lib here too.
30578         * modules/crypto/md5-tests: Likewise.
30579         * modules/crypto/gc-des-tests: Likewise.
30580         * modules/crypto/gc-hmac-md5-tests: Likewise.
30581         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30582         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30583         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30584         * modules/crypto/gc-md5-tests: Likewise.
30585         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30586         * modules/crypto/gc-sha1-tests: Likewise.
30587         * modules/crypto/gc-tests: Likewise.
30588         * modules/crypto/hmac-md5-tests: Likewise.
30589         * modules/crypto/hmac-sha1-tests: Likewise.
30590         * modules/crypto/hmac-sha256-tests: Likewise.
30591         * modules/crypto/hmac-sha512-tests: Likewise.
30593 2013-11-29  RV1971  <rv1971@web.de>
30595         base64: (trivial) fix compilation regression on some compilers
30596         * lib/base64.c: Don't return the void function,
30597         instead split to a separate return statement.
30599 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30601         ignore-value: revert previous code change
30602         * lib/ignore-value.h (ignore_value): Use __extension__ and
30603         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
30604         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
30605         Change the comment to try to explain this better.
30607 2013-11-27  Pádraig Brady  <P@draigBrady.com>
30609         selinux-h: improve stub types and add more stub functions
30611         * lib/se-selinux.in.h: Change security_context_t to a typedef
30612         rather than a define, as it's a pointer type and so is better
30613         as a typedef to avoid issues declaring multiple variables
30614         with the comma operator.  Also add stub for string_to_security_class().
30615         * lib/se-context.in.h: Add stub functions for
30616         context_{type,range,role,user}_get().
30618 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30620         ignore-value: prefer GCC version back through 2.0
30621         The code didn't match the comments, so I did a bit of software
30622         archaeology.  GCC 2.0 seems to support __extension__ and
30623         __typeof__, so fix both code and comments to use 2.0.
30624         * lib/ignore-value.h (ignore_value): Use __extension__ and
30625         __typeof__ for GCC 2.0 through 3.3, too.
30627 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
30629         pty: Activate the signature wrapper of forkpty.
30630         The intended preprocessor macro HAVE_FORKPTY is
30631         never defined, yet `lib/forkpty.c' depends on it.
30633         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
30634         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
30635         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
30637 2013-11-18  Jim Meyering  <meyering@fb.com>
30638         and Paul Eggert  <eggert@cs.ucla.edu>
30640         quotearg: don't attempt to store 1 << 31 into an "int"
30641         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
30642         gcc's new -fsanitize=undefined and running its tests triggered some
30643         new test failures due to undefined behavior, all with this diagnostic:
30644           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
30645             cannot be represented in type int
30646         Rather than shifting "1" left to form a mask, shift the bits right and
30647         simply use "1" as the mask.
30649 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
30651         error: depend on stdio
30652         Problem reported by Nikos Mavrogiannopoulos in
30653         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
30654         * modules/error (Depends-on): Add stdio.
30656 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
30658         * doc/relocatable-maint.texi (Supporting Relocation): Improve
30659         wording.
30660         Reported by Reuben Thomas <rrt@sc3d.org>.
30662 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30664         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
30665         New function and macro, to work around _DARWIN_C_SOURCE problem.
30666         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30668 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30670         base64: provide a fast path for encoding well sized buffers
30671         Avoid conditionals in the base64 encoding loop,
30672         which was seen to give 60% better throughput.
30673         * lib/base64.c (base64_encode_fast): A new function to be called
30674         when we don't want to NUL terminate, and we have enough space
30675         in the output to encode the given input.
30676         (base64_encode): Call the _fast() version when appropriate.
30677         Also remove a redundant mask with 0x3F on the first encoded byte.
30679 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30681         extern-inline: port better to OS X 10.9
30682         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30683         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30684         OS X 10.9, except for g++ where the bug is still present.
30685         See <http://trac.macports.org/ticket/41033>.
30687 2013-11-08  Eric Blake  <eblake@redhat.com>
30689         fpending: fix regression on DragonFly BSD
30690         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30691         * lib/fpending.h (__fpending): Don't declare twice.
30692         Reported by GW in
30693         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30695 2013-11-05  Jim Meyering  <meyering@fb.com>
30697         hash: relax license to LGPLv2+, for libguestfs
30698         * modules/hash (License): Change from GPL to LGPLv2+.
30700 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30702         intprops: port to Oracle Studio c99
30703         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30704         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30706 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30708         obstack: pacify HP C
30709         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
30710         warning "conversion from pointer to smaller integer" from HP
30711         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
30712         C89 or later nowadays, so cast to void instead of int.  Privately
30713         reported by H.Merijn Brand.  Also, change header to match glibc's,
30714         to make checking against glibc easier.
30716 2013-10-29  Jim Meyering  <meyering@fb.com>
30718         maint.mk: prefer gpgv2 over gpgv
30719         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
30720         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
30721         Reported by Gary Vaughan.
30723 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30725         isnan: port to VAX
30726         Reported by John Klos for NetBSD-5/VAX in
30727         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
30728         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
30729         (FUNC): Use it.
30731 2013-10-28  Jim Meyering  <meyering@fb.com>
30733         gnulib-tool: protect against CDPATH
30734         * gnulib-tool: Many "cd" built-in functions print a directory name
30735         to stdout when CDPATH is set, e.g.,
30736           $ bash -c 'CDPATH=/; cd tmp'
30737           /tmp
30738         Unset it, when possible.  Prompted by a comment from Bruce Korb.
30740         maint.mk: restore functionality removed by recent change...
30741         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
30742         the context of a shallow-cloned gnulib repository: "git describe"
30743         would fail in such a directory.  However, that change made it so
30744         the reported gnulib revision no longer includes the version number
30745         or a commit count, even when run from a full clone.
30746         * top/maint.mk (gnulib-version): Use the full "git describe"
30747         output when possible, e.g., the form above, rather than the
30748         abbreviated, no-tag, no-commit-count string, and fall back to
30749         using a 10-byte hash, rather than the default minimal-length
30750         hash prefix, since while the minimal-length one may be fine today,
30751         it is likely not to be unique for very long.
30753 2013-10-26  Jim Meyering  <meyering@fb.com>
30755         maint.mk: fix "release" target to build _version
30756         This fixes a bug in README-release whereby following the outlined
30757         steps, one would publish a tarball whose programs would report
30758         --version output not consistent with the package version number.
30759         This bug caused grep-2.15 to produce a grep program whose
30760         --version option made it print 2.14.56-1e3d rather than 2.15.
30761         * top/maint.mk (release): Making this target build "_version"
30762         ensures that the new version number is reflected in configure.
30764 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
30766         install-reloc: Support multi-binary installation.
30767         * build-aux/install-reloc: Support installing multiple programs in
30768         one invocation, as done by Automake starting with commit
30769         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
30770         Haible <bruno@clisp.org>, archived at
30771         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
30772         Reported by Sylvain <beuc@gnu.org>.
30774 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30776         selinux-h: Really build without selinux when library is missing.
30777         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
30778         continue without selinux, as already told in the warning message.
30780 2013-10-21  Jim Meyering  <meyering@fb.com>
30782         regex: also remove dependency on HAVE_WCSCOLL
30783         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
30785 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
30787         xfreopen: Fix typo. s/frepoen/freopen/
30788         * lib/xfreopen.c: Fix description.
30789         * modules/xfreopen: Likewise.
30791 2013-10-21  Jim Meyering  <meyering@fb.com>
30793         regex: don't depend on wcscoll
30794         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
30795         It is no longer used.
30797 2013-10-20  Jim Meyering  <meyering@fb.com>
30799         error: add the printf attribute to a static function
30800         * lib/error.c (error_tail): Add the printf attribute, to placate
30801         gcc's -Werror=suggest-attribute=format option.
30803 2013-09-30  Jim Meyering  <meyering@fb.com>
30805         fpending, obstack, strerror-override: use pure+const function attrs
30806         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30807         * lib/obstack.c (_obstack_allocated_p): Likewise.
30808         * lib/obstack.h (_obstack_memory_used): Likewise.
30809         (_obstack_memory_used): Likewise.
30810         * lib/strerror-override.h (strerror_override): Declare with
30811         the "const" attribute.
30813 2013-10-18  Eric Blake  <eblake@redhat.com>
30815         extern-inline: make safe for -Wundef usage
30816         Reported by Vladimir 'phcoder' Serbinenko in
30817         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30818         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30820 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30822         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30823         Problem reported by Daniel Richard G. in
30824         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30825         * doc/posix-functions/mkfifo.texi (mkfifo):
30826         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30827         * doc/posix-functions/mknod.texi (mknod):
30828         * doc/posix-functions/mknodat.texi (mknodat):
30829         Document the HP-UX 11.11 bug.
30830         * tests/test-mkfifo.h (test_mkfifo):
30831         Allow the HP-UX 11.11 bug.
30833 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30835         acl: allow cross-compilation to Gentoo
30836         Problem reported by Gabriel Marcano in
30837         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30838         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30839         test only whether it links.
30841 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30843         mgetgroups: remove dependency on realloc-gnu
30844         The dependency violates the comment in realloc-gnu, which
30845         says that tests can't depend on realloc-gnu; some tests depend
30846         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30847         Problem reported by Daniel Richard G. in
30848         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30849         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30850         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30851         not realloc-gnu.
30853 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30855         regex-tests: port to HP-UX 11.11
30856         Problem reported by Daniel Richard G. in
30857         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30858         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30860 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30862         verify: document some 'assume' pitfalls
30863         * doc/verify.texi (Compile-time Assertions):
30864         Mention that 'assume (E)' can sometimes slow things down.
30865         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30867 2013-10-10  Eric Blake  <eblake@redhat.com>
30869         strtoumax: fix typo in previous commit.
30870         * modules/strtoumax (Depends-on): Fix typo.
30871         * modules/strtoimax (Depends-on): Likewise.
30873 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30875         strtoumax: port to Solaris 8
30876         This problem was introduced in the recent HP-UX patch.
30877         Reported by Tom G. Christensen in
30878         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30879         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30880         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30882 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30884         strtoimax, strtoumax: port to HP-UX 11.11
30885         Problem reported by Daniel Richard G. in
30886         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30887         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30888         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30889         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30890         REPLACE_STRTOUMAX.
30891         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30892         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30893         Replace the function if defined as a macro but not as a function.
30894         * modules/inttypes-incomplete (inttypes.h): Substitute
30895         REPLACE_STRTOUMAX.
30896         * modules/strtoumax (configure.ac): Replace strtoumax if
30897         REPLACE_STRTOUMAX.
30899 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30901         strtoimax: port to HP-UX 11.11
30902         Problem reported by Daniel Richard G.
30903         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30904         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30905         they might clash with inttypes.h.
30907 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30909         New module 'count-trailing-zeros'.
30910         * MODULES.html.sh: Mention it.
30911         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30912         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30913         * modules/count-trailing-zeros-tests:
30914         * tests/test-count-trailing-zeros.c:
30915         New files.
30917         count-leading-zeros: port to MSC; support types wider than 64 bits
30918         The ideas behind the MSC port are stolen from Emacs.
30919         * lib/count-leading-zeros.h:
30920         Don't include verify.h: it's no longer needed, as types wider than
30921         64 bits are now supported.
30922         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30923         performance with MSC.  All uses changed.  Do not assume that TYPE
30924         has at most 64 bits.
30925         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30926         All uses changed.  Fold the subtraction from 31 into the table.
30928         count-one-bits: port to MSC; support types wider than 64 bits
30929         The ideas behind the MSC port are stolen from Emacs.
30930         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30931         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30932         Don't include verify.h: it's no longer needed, as types wider than
30933         64 bits are now supported.
30934         (COUNT_ONE_BITS_GENERIC): New macro.
30935         (popcount_supported) [_MSC_VER]: New inline function.
30936         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30937         performance with MSC.  All uses changed.  Do not assume that TYPE
30938         has at most 64 bits.
30939         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30941 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30943         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30944         * lib/mountlist.c (read_file_system_list): fix leak of directory
30945         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30947 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30949         tests: improve diagnostic when an assertion fails
30950         * tests/macros.h (ASSERT): Report the assertion that failed.
30952 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30954         verify: new macro 'assume'
30955         This is taken from Emacs, and should be generally useful.
30956         * doc/verify.texi (assume): Document it.
30957         * lib/verify.h (assume): New macro.
30958         (__has_builtin): Expand to 0 if not defined.
30960 2013-09-26  Eric Blake  <eblake@redhat.com>
30962         dup2, dup3: work around another cygwin crasher
30963         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30964         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30965         * tests/test-dup2.c (main): Likewise.
30966         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30967         * lib/dup3.c (dup3): Likewise.
30968         * doc/posix-functions/dup2.texi (dup2): Document it.
30969         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30971         getdtablesize: work around cygwin issue
30972         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30973         * modules/getdtablesize (configure.ac): Build replacement.
30974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30975         * modules/unistd (Makefile.am): Expose the witness.
30976         * lib/unistd.in.h (getdtablesize): Declare replacement.
30977         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30978         * tests/test-getdtablesize.c (main): Test it.
30979         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30981 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30983         pmccabe2html: escaping of special characters
30984         Escape all '<', '>', and '&' in HTML output.
30985         * build-aux/pmccabe2html (html_fnc): Call gsub()
30986         instead of sub() to capture all '<', '>', and '&'.
30987         Neither of '<' and '>' is special in a regexp,
30988         so first arguments to gsub() are corrected. Also,
30989         in replacement strings, ampersand must be escaped.
30990         Finally, '&' must be handled first, then '<' and '>'.
30992 2013-09-24  Eric Blake  <eblake@redhat.com>
30994         manywarnings: enable nicer gcc warning messages
30995         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30996         some -f options for optimal warnings.
30998 2013-09-21  Jim Meyering  <meyering@fb.com>
31000         timespec: use the new TIMESPEC_RESOLUTION in a few more places
31001         * lib/timespec-add.c (timespec_add): Also replace 999999999
31002         with TIMESPEC_RESOLUTION - 1.
31003         * lib/timespec-sub.c (timespec_sub): Likewise.
31005 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31007         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
31008         Problem reported by Dagobert Michelsen via Eric Blake in
31009         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
31010         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
31011         not AC_COMPILE_IFELSE.
31013 2013-09-23  Eric Blake  <eblake@redhat.com>
31015         configmake: support new --runstatedir option
31016         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
31017         even if autoconf was too old to provide the command line option.
31018         * modules/configmake (Makefile.am): Propagate it to .h file.
31020 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31022         ctype, string: depend on extern-inline
31023         This is needed to complete the recent OS X fixes.
31024         Also, fix related documentation as suggested by Eric Blake.
31025         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31026         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
31027         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
31028         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
31029         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
31030         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
31031         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
31032         * doc/posix-functions/toupper.texi:
31033         List the 'ctype' gnulib module.
31034         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
31035         * doc/posix-functions/strncpy.texi:
31036         List the 'string' gnulib module.
31037         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
31038         Add string.
31039         * modules/ctype, modules/string (Depends-on): Add extern-inline.
31041 2013-09-19  Pádraig Brady  <P@draigBrady.com>
31043         userspec: support optional parameters to parse_user_spec()
31044         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
31045         then avoid group processing and treat the full spec as a user.
31046         (parse_with_separator): Allow the USERNAME and GROUPNAME to
31047         be optional params (NULL), in which case they're ignored.
31049 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
31051         timespec: new function make_timespec, and new constants
31052         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
31053         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
31054         (make_timespec): New function.
31055         * lib/dtotimespec.c (dtotimespec):
31056         * lib/timespec-add.c (timespec_add):
31057         * lib/timespec-sub.c (timespec_sub):
31058         * lib/utimens.c (validate_timespec):
31059         * lib/utimensat.c (rpl_utimensat):
31060         Use these new constants and functions.
31062         stdio: OS X port of putc_unlocked + extern inline
31063         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
31064         * doc/posix-functions/putc_unlocked.texi:
31065         * doc/posix-functions/putchar_unlocked.texi:
31066         Document this portability problem.
31068         signal: OS X port of sigaddset etc. + extern inline
31069         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
31070         (sigismember): #undef on problematic Apple platforms.
31071         * doc/posix-functions/sigaddset.texi:
31072         * doc/posix-functions/sigdelset.texi:
31073         * doc/posix-functions/sigemptyset.texi:
31074         * doc/posix-functions/sigfillset.texi:
31075         * doc/posix-functions/sigismember.texi:
31076         Document this portability problem.
31078         extern-inline: do not always suppress extern inline on OS X
31079         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
31080         extern inline on Apple only if the particular compile-time
31081         configuration is known to have the problem.
31082         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
31083         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
31084         other Gnulib modules.
31086         extern-inline: document fixes for ctype and wctype macros
31087         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31088         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
31089         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
31090         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
31091         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
31092         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
31093         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
31094         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
31095         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
31096         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
31097         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
31098         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
31099         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
31100         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
31101         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
31102         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
31103         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
31104         * doc/posix-functions/strncpy.texi:
31105         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
31106         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
31107         Document that Gnulib fixes portability problems with these
31108         functions on OS X 10.8 and earlier when called from plain inline
31109         or extern inline functions.
31111 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
31113         fflush, freadahead, fseeko: Fix for Android
31114         Suggested by Bruno Haible in:
31115         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
31116         * lib/stdio-impl.h: Use local __sfileext definition.
31118 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
31120         pmccabe2html: Portability to other awk versions.
31121         The functions systime() and strftime() are available
31122         in Gawk only.  Properly close two HTML-tags 'style'
31123         and 'span'.
31124         * build-aux/pmccabe2html (BEGIN): Store timing
31125         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
31126         systime() in HTML_COMMENT.
31127         (html_header): Correctly close tag 'style'.
31128         (END): Replace strftime() by CHRONOS_TIME.  Close
31129         tag 'span' correctly, not as 'div'.
31131 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31133         getgroups: statement without effect
31134         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
31135         Change equality conditional to expected assignment.
31137 2013-09-09  Eric Blake  <eblake@redhat.com>
31139         glob: fix compilation
31140         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
31142 2013-09-07  Eric Blake  <eblake@redhat.com>
31144         glob: fix build for platforms without __THROW
31145         * lib/glob.in.h (__THROW): Add definition again.
31147 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
31149         regex-quote: fix buffer access out of bounds
31150         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
31151         * lib/regex-quote.c (regex_quote_spec_pcre):
31152         Fix typo that resulted in an out-of-bounds read.
31154 2013-09-04  Eric Blake  <eblake@redhat.com>
31156         glob: avoid -Wattribute warnings on glibc
31157         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
31158         __THROWNL, not __THROW, on static functions.
31159         * lib/glob.in.h (__THROW): Adjust...
31160         (__THROWNL): ...accordingly.
31162 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31164         headers: check that _GL_INLINE_HEADER_BEGIN is defined
31165         Suggested by Bruce Korb in:
31166         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
31167         * doc/extern-inline.texi (extern inline):
31168         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
31169         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
31170         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
31171         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31172         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
31173         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
31174         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
31175         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
31176         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
31177         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
31178         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
31179         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
31180         * lib/xtime.h:
31181         Check that _GL_INLINE_HEADER_BEGIN is defined.
31183 2013-08-29  Pádraig Brady  <P@draigBrady.com>
31185         bootstrap: remove the --version requirement from ancillary tools
31186         * build-aux/bootstrap (check_exists): A new refactored function to
31187         determine if a command exists.
31188         (find_tool): Use the new function which does not require the
31189         --version option to be supported.
31190         (check_versions): Use the new function.
31192 2013-08-26  Simon Josefsson  <simon@josefsson.org>
31194         gc: support HMAC-SHA256 and HMAC-SHA512.
31195         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
31196         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
31197         functions.
31198         (gc_hmac_md5): Use symbolic constant.
31199         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
31200         (gc_hmac_sha256, gc_hmac_sha512): New functions.
31201         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
31202         * m4/sha256.m4: Protect against empty expansion.
31203         * m4/sha512.m4: Likewise.
31204         * lib/hmac-sha256.c: New file.
31205         * lib/hmac-sha512.c: Likewise.
31206         * m4/gc-hmac-sha256.m4: Likewise.
31207         * m4/gc-hmac-sha512.m4: Likewise.
31208         * m4/gc-sha256.m4: Likewise.
31209         * m4/gc-sha512.m4: Likewise.
31210         * modules/crypto/gc-hmac-sha256: Likewise.
31211         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31212         * modules/crypto/gc-hmac-sha512: Likewise.
31213         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31214         * modules/crypto/hmac-sha256: Likewise.
31215         * modules/crypto/hmac-sha256-tests: Likewise.
31216         * modules/crypto/hmac-sha512: Likewise.
31217         * modules/crypto/hmac-sha512-tests: Likewise.
31218         * tests/test-gc-hmac-sha256.c: Likewise.
31219         * tests/test-gc-hmac-sha512.c: Likewise
31220         * tests/test-hmac-sha256.c: Likewise.
31221         * tests/test-hmac-sha512.c: Likewise
31223 2013-08-24  Daiki Ueno  <ueno@gnu.org>
31225         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
31226         of AC_CHECK_DECLS.
31228 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31230         selinux-at: omit unnecessary include
31231         * lib/selinux-at.c: Don't include dosname.h; not needed, since
31232         this source file doesn't use its macros, and subsidiary files that
31233         use the macros already include it.
31235 2013-08-21  Eric Blake  <eblake@redhat.com>
31237         d-ino: avoid false negative on symlink
31238         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
31239         Reported by Stephane Chazelas.
31241 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
31243         bootstrap: port to OpenBSD sed
31244         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
31245         does not interpret `-' as a file argument to mean stdin.
31247 2013-08-15  Eric Blake  <eblake@redhat.com>
31249         warnings: minor optimization
31250         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
31252         warnings: check -Wfoo rather than -Wno-foo
31253         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
31254         -Wno-, test if the compiler recognizes the positive form instead.
31256 2013-08-15  Karl Berry  <karl@gnu.org>
31258         * config/srclist-update: add option "doclicense" to placate
31259         pulling *.texi files from Emacs.  Write terse usage
31260         documentation at the top.
31262 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
31264         xvasprintf-tests: port to GCC with hardening flags
31265         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
31266         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
31267         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
31269 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31271         fpending: port to recent Cygwin change to stdio_ext.h
31272         Reported by LRN in
31273         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
31274         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
31275         just declare __fpending unless it's a macro.
31276         A duplicate decl shouldn't hurt.
31277         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
31278         call compiles and links, instead of separately checking for
31279         decl and lib function.
31280         * modules/fpending (configure-ac):
31281         Adjust to fpending.m4's renaming of shell variable.
31283 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31285         sys_time: port to OpenBSD
31286         * lib/sys_time.in.h: Simply delegate to the system's header
31287         in the BSDish cases as well.  Problem reported by Mike Miller in
31288         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
31289         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
31290         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
31291         wider than time_t.
31293 2013-08-09  Pádraig Brady  <P@draigBrady.com>
31295         bootstrap: support checksum utils having -c but not --status
31296         * build-aux/bootstrap: Only look for sha1sum if updating po files.
31297         Add sha1 to the list of supported checksum utils since it's now
31298         supported through adjustments below.
31299         (update_po_files): Remove the use of --status
31300         in a way that will suppress all error messages, but since this is
31301         only used to minimize updates, it shouldn't cause an issue.
31302         Exit early if there is a problem updating the po file checksums.
31303         (find_tool): Remove the check for --version support as this
31304         is optional as per commit 86186b17.  Don't even check for the
31305         presence of the command as if that is needed, it's supported
31306         through configuring prerequisites in bootstrap.conf.
31307         Prompt that when a tool isn't found, one can define an environment
31308         variable to add to the hardcoded search list.
31310 2013-08-05  Jim Meyering  <meyering@fb.com>
31312         regex: port to non-glibc/lock-using systems
31313         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
31314         system with GNULIB_LOCK would fail due to absence of the
31315         included "glthread/lock.h".  This would affect any package
31316         for which the "lock" module is used only by the regex module,
31317         and not explicitly used.
31318         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
31319         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
31320         Add a dependency on the "lock" module.
31322 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31324         localecharset: make locale_charset thread-safe on Mac OS X
31325         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
31326         instead of MB_CUR_MAX.
31328 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31330         gettext: update to version 0.18.3
31331         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
31332         require AC_PROG_SED to allow user to specify custom sed command when
31333         generating en@quot PO file.
31335 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
31337         bootstrap: use correct source when copying build-aux files
31338         * build-aux/bootstrap (gnulib_extra_files): This variable is
31339         relative to upstream gnulib layout, not downstream.
31341 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
31343         tmpdir: fix bug in VMS port
31344         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
31345         See Steven M. Schweda in
31346         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
31348 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31350         tmpdir: port to VMS, to // != /, and to long dirs
31351         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
31352         __secure_getenv, so that we're more like the glibc version.
31353         All uses changed.
31354         (path_search): Don't put slash after directory if __VMS.
31355         Problem reported by Steven M. Schweda in
31356         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
31357         Simplify code to add slash; no need for a loop.
31358         Do not remove trailing slash from "//".
31359         Do not assume dlen <= INT_MAX.
31361 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31363         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
31364         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
31365         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
31366         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
31368         accept4, dup3, pipe2: port to Cygwin
31369         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
31370         * lib/accept4.c (accept4) [O_BINARY]:
31371         * lib/dup3.c (dup3) [O_BINARY]:
31372         * lib/pipe2.c (pipe2) [O_BINARY]:
31373         Use set_binary_mode, not setmode.
31374         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
31375         * modules/binary-io (Depends-on): Remove module indicator.
31376         These last two bits undo the previous change to pipe2 and binary-io.
31378 2013-07-09  Pádraig Brady  <P@draigBrady.com>
31380         mountlist: add support for deallocating returned list entries
31381         * lib/mountlist.c (free_mount_entry): A new exported function
31382         to deallocate a mount list entry.
31383         (read_file_system_list): Refactor to use the new deallocation function.
31384         Suggested by Anton Ovchinnikov.
31386 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31388         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
31389         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
31390         * lib/stdalign.in.h (_Alignas, _Alignof):
31391         Port to FreeBSD 9.1, and to C11 and C++11.
31392         (_Alignas): Also support ICC.
31393         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
31394         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
31396 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31398         fnmatch: don't goto over declaration
31399         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
31400         undefined behavior for goto over a declaration.
31401         Problem reported by Charlie Brown in
31402         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
31404         pipe2: decouple from binary-io a bit
31405         This is for Emacs, which needs pipe2 but not binary-io.
31406         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
31407         * modules/binary-io (Depends-on): Add module indicator.
31409 2013-07-03  Eric Blake  <eblake@redhat.com>
31411         mgetgroups: relax license to LGPLv2+
31412         * modules/getugroups (License): Change from GPLv3+.
31413         * modules/mgetgroups (License): Likewise.
31414         * modules/getgroups (License): Change from LGPLv3+.
31416         xalloc-oversized: relax license to LGPLv2+
31417         * modules/xalloc-oversized (License): Change from GPLv3+.
31419         nproc: relax license to LGPLv2+
31420         * modules/nproc (License): Change from LGPLv3+.
31422         bootstrap: honor --no-git
31423         * build-aux/bootstrap: Don't even try to use git when user is
31424         pointing to a static checkout.
31426 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31428         ignore-value: port to gcc -pedantic
31429         * lib/ignore-value.h (ignore_value):
31430         Port to gcc -pedantic, by using __extension__.
31431         Reindent as per usual gnulib style nowadays.
31432         Simplify GCC version check.
31434 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31436         extern-inline: port to gcc -std=c89
31437         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31438         Do not use __gnu_inline__ if pedantic and pre-C99.
31440 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31442         doc: document extern-inline
31443         * doc/extern-inline.texi: New file.
31444         * doc/gnulib.texi (alloca-opt): Include it.
31445         * m4/extern-inline.m4: Move some comments to documentation,
31446         and others closer to what they describe.
31448         doc: chatter less
31449         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
31450         (updated-stamp): Use it.  This causes 'make' to output just
31451         one file name rather than zillions.
31453         fflush, fseeko: port to musl cross-compiles
31454         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
31455         on some implementation that (1) is not known to be buggy,
31456         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
31457         cross-compiled to so we can't easily check for lack of
31458         conformance.  This is for cross-compiling to musl.
31459         Reported by Rich Felker in
31460         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
31461         * m4/fclose.m4 (gl_FUNC_FCLOSE):
31462         * m4/fflush.m4 (gl_FUNC_FFLUSH):
31463         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
31464         Adjust to above change.
31465         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
31466         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
31467         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
31468         known not to work, or unknown.
31470 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31472         msvc-inval: port to mingw-w64
31473         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
31474         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
31475         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
31477 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
31479         getcwd-lgpl: port to Tru64
31480         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
31481         Problem reported by Steven M. Schweda in
31482         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
31484         tests: port large-fd POSIX spawn tests to OS X
31485         Problem reported by Daiki Ueno in
31486         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
31487         * tests/test-posix_spawn_file_actions_addclose.c:
31488         * tests/test-posix_spawn_file_actions_adddup2.c:
31489         * tests/test-posix_spawn_file_actions_addopen.c:
31490         Include <limits.h>, for OPEN_MAX, if available.
31491         (big_fd): New static function.
31492         (main): Use it.
31494 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
31496         tests/nap.h: use an adaptive delay to avoid ctime update issues
31497         The recent change in nap.h (5191133e) decreased the probability of lost
31498         races to about a third, however such problems could still be observed
31499         in virtual machines and openSUSE's OBS.
31500         Before, nap() detected the needed time once empirically and then used
31501         that delay (together with a small correction multiplier) in further
31502         calls.  This problem has been reported and discussed several times,
31503         including guesses about possible kernel issues:
31504         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
31505         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
31506         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
31507         http://bugs.gnu.org/12820
31508         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
31509         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
31510         Now, nap() avoids the race alltogether by verifying on a reference
31511         file whether a timestamp difference has happened.
31512         * tests/nap.h (nap_fd): Define file descriptor variable for the
31513         witness file.
31514         (nap_works): Change return value to bool.  Change passing
31515         the old file's status by value instead of by reference as this function
31516         does no longer update that timestamp; rename the function argument from
31517         st to old_st.  Remove the local variables cdiff and mdiff because that
31518         function now returns true/false instead of the precise delay.
31519         (guess_delay): Remove function.
31520         (clear_tmp_file): Add new function to close and unlink the witness file.
31521         (nap): Instead of re-using the delay which has been calculated during
31522         the first call, avoid the race by actually verifying that a timestamp
31523         difference can be observed on the current file system.  Use an adaptive
31524         approach for the delay to minimize execution time.  Assert that the
31525         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
31526         = 2^31 - 1 = 2.1s.
31527         Use atexit to call clear_tmp_file when the process terminates.
31529 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31531         sig2str: port to C++
31532         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
31533         Reported by Daniel J Sebald in
31534         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
31536 2013-05-30  Eric Blake  <eblake@redhat.com>
31538         docs: mention cygwin shortcoming in <sys/un.h>
31539         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
31541         vasnprintf: silence mingw compiler warning
31542         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
31544 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31546         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
31547         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
31548         This fixes a porting bug I recently reintroduced in regex, and
31549         some other instances that I discovered while testing the fix.
31550         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
31551         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
31552         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
31553         with an empty argument if this is a pedantic pre-C99 GCC.
31554         * lib/verify.h: Do not use _Static_assert if this is a pedantic
31555         pre-C11 GCC.
31557         regex: adapt to locking regime instead of depending on pthread
31558         Instead of depending on pthread, adapt to whatever thread
31559         modules are in use.  Problem reported by Ludovic Courtès in
31560         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
31561         and by Mats Erik Andersson in
31562         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
31563         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31564         Support either the 'lock' module, or the 'pthread' module, or
31565         no module.
31566         (lock_lock, lock_unlock): New macros.
31567         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
31568         * modules/lock, modules/pthread (configure.ac): Add module indicator.
31569         * modules/regex (Depends-on): Remove pthread.
31571 2013-05-22  Eric Blake  <eblake@redhat.com>
31573         getgroups: document portability issues
31574         * doc/glibc-functions/initgroups.texi (initgroups): Mention
31575         multithread safety.
31576         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
31577         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
31578         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
31579         getugroups.
31580         * doc/posix-functions/getgroups.texi (getgroups): Mention
31581         multithread safety and mgetgroups.
31583 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
31585         test-lchown, test-chown: also skip test if chown fails with EPERM
31586         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
31587         skip this test, to handle FAT file systems.
31588         * tests/test-chown.h (test_chown): Likewise.
31590 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31592         regex: fix dfa race in multithreaded uses
31593         Problem reported by Ludovic Courtès in
31594         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
31595         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31596         New macros.  All uses of __libc_lock_define, __libc_lock_init
31597         changed to use the first two of these.
31598         (__libc_lock_lock, __libc_lock_unlock): New macros, for
31599         non-glibc platforms.
31600         (struct re_dfa_t): Define the lock unconditionally.
31601         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
31602         '#ifdef _LIBC"s.
31603         * modules/regex (Depends-on): Add pthread, if we use the
31604         included regex.
31606         * lib/regcomp.c: Do actions that are not needed for glibc,
31607         but may be needed elsewhere.
31608         (regfree, re_compile_internal): Destroy the lock.
31609         (re_compile_internal): Check for lock-initialization failure.
31611         malloca: port to compilers that reject size-zero arrays
31612         This fixes a bug introduced in my previous patch.
31613         * lib/malloca.c (struct preliminary_header): Use an int
31614         rather than a character array of size int; that's simpler.
31615         (struct header): Remove, replacing with ...
31616         (union header): New type.  This avoids the need for declaring a
31617         character array of size zero, which is not allowed on some platforms.
31618         All uses changed.
31620 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31622         parse-datetime, tests: don't use "string" + int
31623         Recent versions of 'clang' complain about C source code that
31624         uses expressions of the form '"string literal" + integer',
31625         I guess on the theory that it's confusing for readers who are
31626         used to C++.  On those grounds I suppose it's OK to make this
31627         minor style change.
31628         * lib/parse-datetime.y (parse_datetime):
31629         * tests/test-fchdir.c (main):
31630         * tests/test-snprintf-posix.h (test_function):
31631         * tests/test-snprintf.c (main):
31632         * tests/test-vasnprintf-posix.c (test_function):
31633         * tests/test-vasnprintf.c (test_function):
31634         * tests/test-vsnprintf.c (main):
31635         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
31636         Rewrite '"str" + E' to '&"str"[E]'.
31638 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31640         argmatch: port to C++
31641         * lib/argmatch.h [__cplusplus]: Add extern "C".
31643         argp: typo fix
31644         * lib/argp-help.c: Typo in comment.
31646 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31648         manywarnings: update for GCC 4.8.0
31649         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
31650         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
31651         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
31652         -Wmissing-noreturn, as they are duplicates of other warnings.
31653         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
31654         was documented to be flaky in earlier versions of GCC.
31656         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
31657         * tests/test-spawn.c (main):
31658         * tests/test-sys_socket.c (main):
31659         * tests/test-sys_wait.c (main):
31660         Don't have a switch value that isn't covered by a case.
31662         getaddrinfo-tests: port --enable-gcc-warnings to clang
31663         * tests/test-getaddrinfo.c (simple):
31664         Avoid casts from looser to stricter-aligned pointers.
31666         thread: port --enable-gcc-warnings to clang
31667         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31668         Include <signal.h>, to pacify a warning about pthread_sigmask.
31670         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31671         * lib/stdio.in.h (fwrite):
31672         When working around bug 11959, use __REDIRECT rather than '#define
31673         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31674         fix the -Wunused-value issue with clang, and it works with GCC too.
31675         Problem with targeting reported by Eric Blake in
31676         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31677         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31678         debugging the fwrite issue.
31680         stdio: port --enable-gcc-warnings to clang
31681         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31682         since the GCC workaround for fwrite does not pacify clang.
31684         sig2str: port --enable-gcc-warnings to clang
31685         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31687         obstack: port --enable-gcc-warnings to clang
31688         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31689         Avoid casts from looser to stricter-aligned pointers.
31691         memchr2: port --enable-gcc-warnings to clang
31692         * lib/memchr2.c (memchr2):
31693         Avoid casts from looser to stricter-aligned pointers.
31695         mbsstr: port --enable-gcc-warnings to clang
31696         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31697         Avoid casts from looser to stricter-aligned pointers.
31699         malloca: port --enable-gcc-warnings to clang
31700         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31701         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31703         inttostr: port --enable-gcc-warnings to clang
31704         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31706         warnings: port to clang
31707         Problem reported by Daniel P. Berrange via Eric Blake in
31708         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
31709         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
31710         (gl_WARN_ADD): Use it.
31712 2013-05-11  Jim Meyering  <meyering@fb.com>
31714         quotearg: do not read beyond end of buffer
31715         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
31716         end of an ARG for which no length was specified.  With an N-byte
31717         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
31718         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
31719         via coreutils' misc/sort-debug-keys.sh test and detected by running
31720         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
31721         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
31722         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
31723         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
31724         characters correctly."
31726 2013-05-11  Daiki Ueno  <ueno@gnu.org>
31728         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
31729         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
31730         compilation target is Mac OS X 10.6.
31731         Problem reported by parafin and Andoni Morales in
31732         <http://savannah.gnu.org/bugs/?37844> and
31733         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
31735 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31737         mkdir-p: remove assumptions about umask and mode
31738         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
31739         umask is 0, or that MODE is a subset of MODE_BITS.
31741 2013-05-10  Eric Blake  <eblake@redhat.com>
31743         maint.mk: catch more abuse of HAVE_DECL in syntax-check
31744         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
31746 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
31748         deps: require Automake >= 1.9.6 in generated Makefile fragments
31750         That is the same minimal version required in the DEPENDENCIES file.
31751         Moreover, the old code generated a requirement of Automake >= 1.5,
31752         and that is an insanely outdated version.
31754         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
31755         * tests/havelib/rpathlx/Makefile.am: Likewise.
31756         * tests/havelib/rpathly/Makefile.am: Likewise.
31757         * tests/havelib/rpathlyx/Makefile.am: Likewise.
31758         * tests/havelib/rpathlz/Makefile.am: Likewise.
31759         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
31760         * tests/havelib/rpathx/Makefile.am: Likewise.
31761         * tests/havelib/rpathy/Makefile.am: Likewise.
31762         * tests/havelib/rpathz/Makefile.am: Likewise.
31764 2013-05-08  Eric Blake  <eblake@redhat.com>
31766         bootstrap: AC_INIT may have more than four parameters
31767         * build-aux/bootstrap (extract_package_name): Correctly extract
31768         non-empty tarname field.  Avoid range in regex.
31769         Based on a report by Sami Kerola <kerolasa@iki.fi>.
31771 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31773         qacl: port to MS-Windows port of GNU Emacs
31774         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
31775         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
31776         port of GNU Emacs.  Problem reported by Eli Zaretskii in
31777         <http://bugs.gnu.org/14295#14>.
31779 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
31781         acl: include quote.h
31782         * lib/copy-acl.c: Include quote.h.
31783         * lib/set-acl.c: Likewise.
31785 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
31787         fchownat, renameat, unlinkat: update statat dependencies
31788         These modules use statat and lstatat, not fstatat; so depend on
31789         the statat module, which was split out recently from fstatat.
31790         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
31791         * modules/renameat: Likewise.  Also delete fstat.
31792         URL: http://bugs.gentoo.org/468790
31794 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
31796         Assume gnulib is checked out from Git, not CVS
31798         In fact, access to the gnulib repository through CVS has been
31799         disabled, or more precisely, got broken and was never restored; see:
31800         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
31802         Note that support for CVS is not removed completely and unthinkingly
31803         by this change: only support for CVS checkouts of gnulib itself is
31804         removed.  For example, the 'bootstrap' script still cater to .cvsingore
31805         files and CVS directories, for the benefit of those poor gnulib clients
31806         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31808         * gnulib-tool: Simplify accordingly.
31809         * posix-modules: Likewise.
31810         * MODULES.html.sh: Likewise.
31811         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31812         repository.
31813         * doc/gnulib-intro.texi: Likewise.
31814         * doc/gnulib-readme.texi: Likewise.
31815         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31816         sample '.gitignore' file rather than a sample '.cvsignore'.
31817         * NEWS: Update.
31818         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31819         to "CVS Autoconf" rather than "git Autoconf".
31821 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31823         utimensat-tests, etc.: try to fix some races
31824         Problem reported by Bernhard Voelker in
31825         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31826         I don't know whether this patch fixes that race condition, but it
31827         fixes *some* race conditions, so it should be a win.
31828         * modules/chown-tests (Depends-on):
31829         * modules/fchownat-tests (Depends-on):
31830         * modules/fdutimensat-tests (Depends-on):
31831         * modules/futimens-tests (Depends-on):
31832         * modules/lchown-tests (Depends-on):
31833         * modules/stat-time-tests (Depends-on):
31834         * modules/utimens-tests (Depends-on):
31835         * modules/utimensat-tests (Depends-on):
31836         Depend on nanosleep, not usleep.
31837         * modules/chown-tests (test_chown_LDADD):
31838         * modules/lchown-tests (test_lchown_LDADD):
31839         * modules/stat-time-tests (test_stat_time_LDADD):
31840         New macro.
31841         * modules/fchownat-tests (test_fchownat_LDADD):
31842         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31843         * modules/futimens-tests (test_futimens_LDADD):
31844         * modules/utimens-tests (test_utimens_LDADD):
31845         * modules/utimensat-tests (test_utimensat_LDADD):
31846         Add $(LIB_NANOSLEEP).
31847         * modules/stat-time-tests (Files): Add tests/nap.h.
31848         * tests/nap.h: Include <limits.h>, for INT_MAX.
31849         (lt_mtime): Remove.
31850         (diff_timespec): New function.
31851         (get_stat): Rename from get_mtime.  All callers changed.
31852         (nap_works): Determine the needed delay by inspecting the
31853         file system's timestamp jumps; this should be more reliable.
31854         Look at both mtime and ctime, and take the maximum of the two jumps.
31855         (nap_works, guess_delay):
31856         Return a nanosecond count, not a microsecond count.
31857         All callers changed.
31858         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31859         failure.
31860         (nap): Multiply the guess by 1.125, to accommodate the case where
31861         the file system's clock is a bit slower than nanosleep's clock.
31862         * tests/test-stat-time.c (BASE): New macro.
31863         Include nap.h.
31864         (nap): Remove; nap.h now defines this.  This removes a duplicate
31865         implementation of 'nap'.
31867         utimens, utimensat: work around Solaris UTIME_OMIT bug
31868         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31869         Linux kernel 2.6.32 does.  Work around it in the same way.
31870         * doc/posix-functions/futimens.texi (futimens):
31871         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31872         * lib/utimens.c (fdutimens, lutimens):
31873         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31875         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31876         Formerly, it was your responsibility to do this for all Makefile.ams
31877         other than Gnulib's.  Now it's your responsibility to do it for
31878         Gnulib's Makefile.am, too.
31879         * NEWS: Document this.
31880         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31882         acl: include errno.h to get errno
31883         Reported by Daiki Ueno in
31884         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31885         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31887 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31889         tests: don't assume getdtablesize () <= 10000000
31890         * modules/cloexec-tests:
31891         * modules/dup2-tests:
31892         * modules/dup3-tests:
31893         * modules/nonblocking-tests:
31894         * modules/posix_spawn_file_actions_addclose-tests:
31895         * modules/posix_spawn_file_actions_adddup2-tests:
31896         * modules/posix_spawn_file_actions_addopen-tests:
31897         * modules/unistd-safer-tests:
31898         Depend on the getdtablesize module.
31899         * tests/test-cloexec.c:
31900         * tests/test-dup-safer.c:
31901         * tests/test-dup2.c:
31902         * tests/test-dup3.c:
31903         * tests/test-fcntl.c:
31904         * tests/test-nonblocking.c:
31905         * tests/test-posix_spawn_file_actions_addclose.c:
31906         * tests/test-posix_spawn_file_actions_adddup2.c:
31907         * tests/test-posix_spawn_file_actions_addopen.c:
31908         Don't assume getdtablesize () <= 10000000.
31910 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31912         extern-inline: work around bug in Sun c99
31913         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31914         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31916 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31918         qacl: new module, broken out from the acl module
31919         This is for GNU Emacs, which wants the acl functions but does
31920         not want 'error' invoked when they fail.
31921         * lib/acl-internal.h: Do not include error.h, quote.h.
31922         (ENOSYS, ENOTSUP): Remove; no longer needed.
31923         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31924         * lib/acl.h: Include <stdbool.h>.
31925         (acl_errno_valid): New function.
31926         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31927         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31928         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31929         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31930         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31931         * lib/file-has-acl.c (file_has_acl):
31932         * lib/qcopy-acl.c (qcopy_acl):
31933         * lib/qset-acl.c (qset_acl):
31934         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31935         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31936         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31937         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31938         Add lib/set-acl.c.
31939         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31940         Add qacl.
31941         (configure.ac): Move gl_FUNC_ACL to qacl module.
31942         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31943         Rename set-mode-acl.c to set-acl.c.
31944         * lib/acl-errno-valid.c: New file.
31945         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31946         copy_acl function remains in copy-acl.c.
31947         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31948         (_): Remove; not needed.
31949         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31950         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31951         * modules/qacl: New file, moved from the old modules/acl.
31952         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31953         Remove set-mode-acl.c, copy-acl.c.
31954         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31956         alignof, intprops, malloca: port better to IBM's C compiler
31957         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31958         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31959         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31961 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31963         wctype-h: fix gettext link error on mingw
31964         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31965         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31966         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31967         rpl_towupper and rpl_towupper.
31969 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31971         regex-tests, regex: allow glibc re_search behavior
31972         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31973         re_search input data to make the multi-character collating element
31974         in it clearly visible, and treat re_search return code 0 as valid.
31975         * m4/regex.m4 (gl_REGEX): Likewise.
31977 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31979         stdalign: doc fix
31980         * doc/posix-headers/stdalign.texi (stdalign.h):
31981         Gnulib doesn't support '_Alignof expr'.
31983 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31985         stdalign: port to stricter ISO C11
31986         ISO C11 says that _Alignof's operand must be a parenthesized type.
31987         Problem reported by Eli Zaretskii in
31988         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31989         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31990         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31992 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31994         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31995         Problem reported by Marco Atzeri in
31996         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31997         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31998         Simply delegate to the system <sys/select.h> in this case too.
31999         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
32000         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
32001         be needed on Solaris either.
32002         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
32003         Simply delegate to the system <sys/time.h> in this case.
32005 2013-03-19  Karl Berry  <karl@gnu.org>
32007         * build-aux/gnupload: check for erroneous (with gnupload) use of
32008         ftp-upload.gnu.org, tweak help.
32010 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32012         copy-file, rpmatch: fix problems found by cppcheck
32013         Reported by Arno Onken in
32014         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
32015         * lib/rpmatch.c (try): Fix memory leak.
32016         * lib/copy-file.c: Include "ignore-value.h".
32017         (qcopy_file_preserving): Ignore chown value.
32018         * modules/copy-file (Depends-on): Add ignore-value.
32020 2013-01-27  Jim Meyering  <jim@meyering.net>
32022         prefix-gnulib-mk: give better diagnostics
32023         * build-aux/prefix-gnulib-mk: Don't just "die".
32024         Give better diagnostics upon failure.
32026 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32028         putenv: port to Solaris 10
32029         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
32030         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
32031         is not what is wanted here.
32032         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
32033         declaration, not for its existence.
32035 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
32037         mktime: fix configure typo
32038         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
32040 2013-03-12  Eric Blake  <eblake@redhat.com>
32042         regex-tests: skip UTF-8 test on mingw
32043         * modules/regex-tests (Depends-on): Add localcharset.
32044         * tests/test-regex.c (main): Use it to skip test on mingw.
32046 2013-03-11  Eric Blake  <eblake@redhat.com>
32048         tests: make it easier to bypass alarm time in debugger
32049         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
32050         * tests/test-memmem.c (main): Likewise.
32051         * tests/test-passfd.c (main): Likewise.
32052         * tests/test-ptsname.c (main): Likewise.
32053         * tests/test-ptsname_r.c (main): Likewise.
32054         * tests/test-strcasestr.c (main): Likewise.
32055         * tests/test-strstr.c (main): Likewise.
32057         regex: port to mingw's recent addition of undeclared alarm
32058         * doc/posix-functions/alarm.texi (alarm): Document that alarm
32059         exists but still doesn't work in newer mingw.
32060         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
32061         not existence.  Ensure SIGALRM is not trapped.
32062         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
32063         * m4/regex.m4 (gl_REGEX): Likewise.
32064         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
32065         * tests/test-regex.c (main): Use correct probe for alarm.
32067         putenv: avoid compilation warning on mingw
32068         * lib/putenv.c (_unsetenv): Protect variable declaration.
32069         (putenv): Fix indentation.
32071 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
32073         unistd: don't prevent Tru64 Unix from using gnulib strtod.
32074         * lib/unistd.in.h: be careful not to include un-needed system
32075         stdlib.h from here, because that prevents gnulib stdlib.h from
32076         defining rpl_strtod correctly.
32078 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
32080         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
32081         changesets, but for the 'precision 0' test.
32082         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32083         round-to-even, since POSIX says rounding is implementation-defined
32084         and OS X 10.8.2 rounds 1.51 to 1 here.
32086         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
32087         changeset.
32088         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32089         round-to-even, since POSIX says rounding is implementation-defined
32090         and OS X 10.8.2 rounds 1.5 to 1 here.
32092 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32094         vasnprintf-posix-tests: allow rounding 1.5 to 1
32095         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
32096         round-to-even, since POSIX says rounding is implementation-defined
32097         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
32098         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
32100         bootstrap: port to FreeBSD
32101         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
32102         that treat '--' differently.  Reported by Mats Erik Andersson in
32103         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
32105 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
32107         regex: rename remaining __attribute calls to __attribute__.
32108         2012-02-25 changed definition of __attribute, but left some uses
32109         unchanged, preventing compilation of regex module on most non-gcc
32110         environments.
32111         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
32112         (lookup_collation_sequence_value, build_range_exp)
32113         (build_collating_symbol): Set attributes with newly renamed
32114         __attribute__ decorator.
32115         * lib/regex_internal.c (re_string_peek_byte_case)
32116         (re_node_set_compare, re_node_set_contains): Likewise.
32117         * lib/regexec.c (acquire_init_state_context): Likewise.
32119 2013-03-06  Bruno Haible  <bruno@clisp.org>
32121         execute: Revert last change, but use a different condition.
32122         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
32123         on Windows.
32125 2013-03-05  Eric Blake  <eblake@redhat.com>
32127         execute: drop dead code
32128         * lib/execute.c (nonintr_close, nonintr_open): Delete.
32130 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
32132         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
32133         * m4/non-recursive-gnulib-prefix-hack.m4
32134         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
32135         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
32136         <http://bugs.gnu.org/10305#237>.
32138 2013-03-04  Eric Blake  <eblake@redhat.com>
32140         test-getsockopt: avoid compiler warning
32141         * tests/test-getsockopt.c (includes): Ensure close is declared.
32143 2013-03-02  Bruno Haible  <bruno@clisp.org>
32145         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
32146         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
32148 2013-03-02  Bruno Haible  <bruno@clisp.org>
32150         gettext: Update to version 0.18.2.
32151         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
32152         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
32153                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
32155 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32157         regex: merge patches from libc
32159         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32160         * lib/regex_internal.h (__attribute__): Rename from __attribute.
32161         All uses changed.
32162         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
32163         (re_string_wchar_at, re_string_elem_size_at):
32164         Mark function as possibly unused.
32166         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
32167         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
32168         elements compare against the byte sequence of it, not its name.
32170 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
32172         putenv: port better to native Windows
32173         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32174         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
32175         (_unsetenv): Use _putenv if available.
32176         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
32177         a bit less likely to cause damage.
32178         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32179         Fix the wrong value with SetEnvironmentVariable.
32180         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
32181         code better.
32183 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32185         regex: ignore old-style-definition warnings
32186         * lib/regex.c: Add pragma to ignore these warnings.
32187         Problem reported for GNU tar by Pavel Raiskup.
32189 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32191         getcwd: support coreutils better
32192         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
32193         but this might not be correct in coreutils, which disables
32194         the raw decl checks.  Problem reported by Nagendra in
32195         <http://bugs.gnu.org/10305#192>.
32196         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
32197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32198         Test the getcwd function, not any macro, since getcwd.c wants the
32199         function.
32200         * m4/getcwd.m4 (gl_FUNC_GETCWD):
32201         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
32202         compile, as might happen if there's a macro but no function.
32204         strtod: support coreutils better
32205         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
32206         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
32207         disables the raw decl checks.  This assumes there is an underlying
32208         strtod, but that's a safe assumption these days.
32209         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
32211         mountlist: port to HP NonStop
32212         Reported by Joachim Schmitz in
32213         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
32214         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
32215         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
32217 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
32219         extern-inline: avoid compilation error with HP-UX cc
32220         Reported by Richard Lloyd in
32221         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
32222         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32223         Suppress extern inline with HP-UX cc.  This should be safe,
32224         though it may hurt performance.  Perhaps someone with some HP-UX
32225         experience can come up with a higher-performance fix.
32227 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32229         putenv: fix heap corruption with mixed putenv/_putenv
32230         Problem reported by Michael Goffioul in
32231         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
32232         * lib/putenv.c (putenv) [HAVE__PUTENV]:
32233         Rely on _putenv to allocate the new environment.
32234         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32235         * modules/putenv (configure.ac): Use it.
32237 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
32239         unsetenv etc.: port to Solaris 11 + GNU Emacs
32240         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
32241         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
32242         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
32243         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
32244         idea but is too painful to fix right now), and without this gnulib
32245         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
32246         compiling unsetenv.c on Solaris 11.  Fix the problem for
32247         unsetenv.c, and fix other similar occurrences.
32249 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
32251         secure_getenv: fix C++ declaration typo
32252         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
32253         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
32254         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
32256 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
32258         careadlinkat: stop exporting careadlinkatcwd
32259         Only Emacs used it directly, and Emacs no longer needs it.
32260         * NEWS: Document this simplification.
32261         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
32262         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
32263         for readlink.
32264         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
32265         Don't include stdlib.h; no longer needed.
32266         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
32267         * lib/relocwrapper.c: Adjust comment to match new dependencies.
32268         * modules/areadlink (Depends-on): Add readlink.
32269         (Maintainer): Add self.
32270         * modules/careadlinkat (Depends-on): Remove readlink.
32272         extensions: port better to HP-UX
32273         This is merged from git Autoconf.
32274         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32275         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
32276         so that it's compatible with the value used when compiling.
32278         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
32279         Problem reported by Mats Erik Andersson in
32280         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
32281         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32282         openpty function exists, not merely when we intend to replace it.
32283         This corrects the 2013-01-31 patch, which mistakenly defined
32284         HAVE_OPENPTY even on hosts that lacked it.
32286 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32288         secure_getenv: fix include typo
32289         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
32291         secure_getenv: port better to FreeBSD and Solaris
32292         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
32293         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
32294         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
32295         This works better on BSDish platforms.
32296         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
32297         Test for issetugid if __secure_getenv is missing.
32299 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
32301         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
32302         Some of these changes are merged in from git Autoconf.
32303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32304         When deciding whether to define _XOPEN_SOURCE, inspect the
32305         preprocessor macro __hpux instead of the more-heavyweight
32306         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
32307         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
32308         as the key for __EXTENSIONS__.
32310         unistd: avoid namespace pollution on non-glibc systems
32311         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
32312         This avoids namespace pollution on non-glibc systems, by causing
32313         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
32314         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
32315         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
32317 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32319         tmpdir: use secure_getenv
32320         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
32321         Define to secure_getenv, not getenv.
32322         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
32323         as that's now secure_getenv's job.
32324         * modules/tmpdir (Depends-on): Add secure_getenv.
32326         tempname: use secure_getenv
32327         * lib/tempname.c (__secure_getenv) [!_LIBC]:
32328         Define to secure_getenv, not getenv.
32329         * modules/tempname (Depends-on):
32330         Add secure_getenv.
32332         secure_getenv: new module
32333         * MODULES.html.sh (Extra functions based on ANSI C 89):
32334         Add secure_getenv.
32335         * doc/glibc-functions/secure_getenv.texi: New file.
32336         * doc/gnulib.texi: Include it.
32337         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
32338         New files.
32339         * lib/stdlib.in.h (secure_getenv): New decl.
32340         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
32341         * modules/stdlib (stdlib.h):
32342         Add secure_getenv checks.
32344 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32346         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
32347         Reported for OS X 10.8.2 by Assaf Gordon in
32348         <http://bugs.gnu.org/13516>.
32349         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
32350         !HAVE_OPENAT && !HAVE_FDOPENDIR.
32351         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
32352         so that they can be kept in sync more easily.  Avoid PATH_MAX
32353         test on the Hurd.  Sync from test-getcwd.c for errno tests after
32354         mkdir or chdir failure.
32355         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
32356         lib/getcwd.c.
32357         (test_abort_bug): Do not test for the deep directory bug unless we
32358         have openat support.  Avoid PATH_MAX test on the Hurd.
32360         regex-tests, regex: fix bug: memset undeclared
32361         * tests/test-regex.c: Don't include regex.h twice.  Include
32362         string.h, to declare memset.  Christensen's report also mentioned
32363         this issue.
32364         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
32365         test-regex.c, to avoid future problems like this.  Remove
32366         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
32367         twice.
32369         regex-tests: fix link errors on older Solaris
32370         These need to link with @LIBINTL@ to get libintl_gettext.
32371         Problem reported by Tom G. Christensen in
32372         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
32373         * modules/regex-tests (test_regex_LDADD): New macro.
32375 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32377         regex-tests: new module
32378         * modules/regex-tests, tests/test-regex.c: New files.
32380         regex: fix off-by-one error in configure test
32381         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
32383 2013-01-31  Eric Blake  <eblake@redhat.com>
32385         regex: avoid infinite configure test
32386         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
32388 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
32390         openpty: fix bug where HAVE_OPENPTY wasn't defined
32391         See the thread starting at:
32392         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
32393         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32394         openpty function exists, not merely when we intend to replace it.
32396 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
32398         sys_time: port to Solaris 2.6
32399         There is a circularity problem on Solaris 2.6, where <time.h> includes
32400         <sys/time.h> for struct timespec.  The include nesting is gnulib
32401         <time.h>, system <time.h>, gnulib <sys/time.h>, system
32402         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
32403         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
32404         <sys/siginfo.h>; the last, innermost file needs struct
32405         timestruc_t, which is defined in <sys/time.h>, which has not been
32406         fully parsed.  Problem reported by Tom G. Christensen in
32407         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
32408         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
32409         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
32410         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
32411         uses split double-inclusion guards.
32413 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
32415         regex: test for buffer overrun
32416         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
32417         for the just-fixed regex bug.
32419 2013-01-29  Andreas Schwab  <schwab@suse.de>
32421         regex: fix buffer overrun in regexp matcher [BZ #15078]
32422         * lib/regexec.c (extend_buffers): Add parameter min_len.
32423         (check_matching): Pass minimum needed length.
32424         (clean_state_log_if_needed): Likewise.
32425         (get_subexp): Likewise.
32427 2013-01-28  Pádraig Brady  <P@draigBrady.com>
32429         mountlist: don't consider "devtmpfs" as dummy
32430         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
32431         as there is storage associcated with it.
32433 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32435         futimens-tests, utimens-tests: Depend on gettext.
32436         This works around a problem introduced in my 2013-01-12 patch,
32437         which added @LIBINTL@ to these modules.
32438         * modules/futimens-tests (Depends-on):
32439         * modules/utimens-tests (Depends-on): Add gettext.
32441 2013-01-26  Eric Blake  <eblake@redhat.com>
32443         test-getpeername: fix typo
32444         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
32446 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
32448         bootstrap: remove the need for a sorted .gitignore file
32449         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
32450         rename to insert_if_absent(), so that we don't need or generate
32451         a sorted .gitignore file.  We do require a .gitignore with no
32452         existing duplicate entries and enforce that.
32453         (sort_patterns): Remove this function as we now use the simpler
32454         technigue of inserting blacklist entries at the top of the file,
32455         assuming gnulib won't be inserting !whitelist entries.
32457 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32459         readlinkat: don't depend on gl_FUNC_OPENAT
32460         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
32461         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
32462         renameat.m4, symlinkat.m4; but one thing at a time.
32464         statat: new module, split out from fstatat
32465         GNU Emacs needs the POSIX-specified fstatat, but not the
32466         gnulib-specified statat and lstat.  Split the latter two into a
32467         new module 'statat'.
32468         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
32469         * lib/openat.h, lib/statat.c (STATAT_INLINE):
32470         Rename from FSTATAT_INLINE. All uses changed.
32471         * modules/fstatat (Files): Remove lib/statat.c.
32472         (gl_MODULE_INDICATOR([fstatat])): Remove.
32473         (lib_SOURCES): Remove.
32474         (Maintainer): Add self.
32475         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
32476         * tests/test-fstatat.c (BASE): Don't define if already defined.
32477         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
32479 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32481         tests: don't assume fd 99 is closed
32482         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
32483         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
32484         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
32485         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
32486         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
32487         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
32488         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
32489         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
32490         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
32491         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
32492         * tests/test-fwrite.c, tests/test-getpeername.c:
32493         * tests/test-getsockname.c, tests/test-getsockopt.c:
32494         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
32495         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
32496         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
32497         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
32498         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
32499         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
32500         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
32501         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
32502         * tests/test-unlinkat.c, tests/test-unlockpt.c:
32503         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
32504         Close file descriptor 99, instead of assuming it's already closed.
32506 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32508         stpncpy: port to OS X 10.8
32509         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
32510         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
32512 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32514         unistd: port to recent mingw
32515         * lib/unistd.in.h: Remove special invocation convention for mingw,
32516         which breaks for the latest mingw version.  See John W. Eaton in
32517         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
32519         largefile: port better to Mac OS X 10.5
32520         This patch is backported from Autoconf git.
32521         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
32522         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
32523         with ino_t size being different for configuration time versus
32524         build/run time.  Problem reported by PHO in
32525         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
32527 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32529         doc: clarify -Werror
32530         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
32531         clarify that it's intended for developers, not for ordinary builds,
32532         and mention --enable-gcc-warnings as one possible use.
32534 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
32536         stdint: fix build with Android's Bionic fox x86
32537         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
32538         was already included as _SSIZE_T_DEFINED_ might also be defined
32539         in include/machine/_types.h, which is included by stdio.h
32541 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
32543         net_if-tests: port to Solaris 7 + GCC 3.4.6
32544         Problem reported by Tom G. Christensen in
32545         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
32546         * tests/test-net_if.c (ni): Move to next the code that uses it,
32547         so that it's declared only if needed.
32549 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
32551         net_if-tests: port to older Solaris
32552         Problem reported by Tom G. Christensen in
32553         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32554         * modules/net_if-tests (NET_IF_LIB): New substitution.
32555         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
32556         (HAVE_IF_NAMEINDEX): New C macro.
32557         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
32559         system-quote-tests: port to older Solaris
32560         Problem reported by Tom G. Christensen in
32561         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32562         * tests/test-system-quote-child.c (fopen, fread): Undef.
32564         c-xvasprintf etc.: fix link errors on older Solaris
32565         These need to link with @LIBINTL@ to get libintl_gettext.
32566         Problem reported by Tom G. Christensen in
32567         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32568         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
32569         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
32570         * modules/futimens-tests (test_futimens_LDADD):
32571         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32573 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32575         locale: port to Solaris 2.6 and 7 + GNU gettext
32576         * lib/locale.in.h: Just include_next <locale.h> when
32577         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
32578         when combining the localename module with GNU gettext 0.18.2.
32579         Problem reported by Tom G. Christensen in
32580         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
32582 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32584         stdlib: port to Solaris 2.6
32585         Also, the code worked on Solaris 7 through 9 only by accident.
32586         Problem reported by Tom G. Christensen in
32587         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
32588         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
32589         simply include the system stdlib.h.
32590         * lib/getopt.in.h (__need_system_stdlib_h):
32591         * lib/pthread.in.h (__need_system_stdlib_h):
32592         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
32593         Define when including <stdlib.h>, to avoid problems at least for
32594         the pthread case on Solaris 2.6 and 7.  These .h files can get by
32595         with the system stdlib.h.
32597 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32599         doc: update main copyright year
32600         * doc/gnulib.texi: Update copyright date.
32602         doc: improve ISO 8601 discussion
32603         * doc/parse-datetime.texi (Combined date and time of day items):
32604         Specify more carefully what formats are supported and what is
32605         done with excess precision.
32607 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
32609         doc: avoid small caps
32610         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
32611         they're more trouble than they're worth.  Suggested by Karl Berry
32612         in <http://bugs.gnu.org/13360>.
32614         regex: conform to strict C
32615         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
32616         From Aharon Robbins.
32618         gnulib-tool: fix incompatibility with autopoint 0.18.2
32619         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
32620         Problem reported by Tom G. Christensen in
32621         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
32623 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32625         fprintftime: bring back and reword fwrite comment
32626         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
32628         stdio: remove now-unnecessary stdio.c
32629         Since stdio.in.h no longer uses inline functions, we no longer
32630         need to compile the extern versions.
32631         * lib/stdio.c: Remove.
32632         * modules/stdio (Files): Remove lib/stdio.c.
32633         (lib_SOURCES): Remove.
32635         unicodeio: depend on stdio, not ignore-value
32636         * lib/unicodeio.c: Do not include ignore-value.h.
32637         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
32638         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
32640         fprintftime: depend on stdio, not ignore-value
32641         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
32642         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
32643         since the stdio module arranges to silence that warning now.
32644         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
32646 2012-10-04  Simon Josefsson  <simon@josefsson.org>
32648         stdint-tests: Fix expanded-before-required-warning.
32649         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
32651 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32653         fwrite: silence __wur only for older glibc versions
32654         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
32655         This will help us remove this workaround some time in the far future.
32657 2013-01-03  Eric Blake  <eblake@redhat.com>
32659         fwrite: silence __wur without using inline
32660         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
32661         just gcc, and in a way that avoids inline issues.
32662         * modules/stdio (Depends-on): Drop extern-inline.
32664 2013-01-03  Jim Meyering  <jim@meyering.net>
32666         update-copyright: avoid copyright notice date corruption
32667         Given a sequence of copyright year numbers in which the final
32668         one was a two-digit number that happened to be a substring of
32669         a preceding four-digit year number, we would mistakenly update
32670         the substring (from two- to four-digit) rather than the two-digit
32671         number at the end, which, combined with the addition of the current
32672         4-digit year number would yield two 5-digit year numbers, e.g.,
32673         here, it would convert the first "99" to "1999, 2013" rather than
32674         the final one:
32675           1991, 99
32676           11999, 20131, 1999
32677         * build-aux/update-copyright: Tighten a regexp.
32678         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32679         Reported by Joseph Myers in
32680         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32682 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32684         regex: omit needless signed-pointer casts
32685         * lib/regcomp.c (build_charclass, build_charclass_op):
32686         Use char *, not unsigned char *, for class name and extra.
32687         The char values are always nonnegative so there's no need to
32688         insist on unsigned char * here, and using char * removes the need
32689         for casts.  Reported by Aharon Robbins in
32690         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32692         regex: support Gawk, which never uses alloca
32693         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32694         Do not include in this case.  Gawk doesn't supply a substitute
32695         alloca.h and doesn't need one.
32697         regex: port __libc_lock_define usage to C89
32698         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32699         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32700         does not conform to C89, as it has an empty macro argument.
32701         Reported by Aharon Robbins in
32702         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32704 2013-01-01  Eric Blake  <eblake@redhat.com>
32706         maint: update all copyright year number ranges
32707         Run "make update-copyright".
32709         version-etc: bump copyright year reported in --version
32710         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
32712 2012-12-31  Eric Blake  <eblake@redhat.com>
32714         sigprocmask-tests: skip test if pid is unexpectedly large
32715         * tests/test-sigprocmask.c (main): Add range check.
32717         git-version-gen: avoid test -z portability glitch
32718         * build-aux/git-version-gen: Prefer portable test spelling, since
32719         git-version-gen is run on more than just developer machines.
32721 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
32723         git-version-gen: add --fallback option to use if git is not present
32724         * build-aux/git-version-gen: Add support for the new option --fallback,
32725         which comes into play when there is no $tarball_version_file and
32726         git is not working.
32727         (scriptversion): Update.
32729         maint.mk: handle missing git with more grace
32730         * top/maint.mk (no-submodule-changes, public-submodule-commit):
32731         Quietly proceed if git is not present.
32733 2012-12-31  Eric Blake  <eblake@redhat.com>
32735         dup2: work around cygwin bug
32736         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
32737         * lib/dup2.c (rpl_dup2): Work around it.
32738         * doc/posix-functions/dup2.texi (dup2): Document it.
32740 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
32742         regex: remove unnecessary dependency on localcharset.h
32743         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
32744         hasn't been needed for years.
32745         * modules/regex (Depends-on): Remove localcharset.
32747         regex: revert single-byte change
32748         * lib/regexec.c (check_node_accept_bytes): Revert previous change
32749         to this function.  This was alredy fixed in a different way, at
32750         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
32751         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
32752         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
32754         regex: simplify based on Gawk version
32755         * lib/regex_internal.c (re_dfa_add_node): Simplify.
32756         Reported by Aharon Robbins in
32757         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32759 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32761         regex: check that pattern char is single-byte
32762         Reported by Aharon Robbins in
32763         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32764         * lib/regexec.c (check_node_accept_bytes):
32765         Return 0 if the pattern string has a multibyte character here.
32767         regex: implement rational ranges
32768         Reported by Aharon Robbins in
32769         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32770         * lib/regcomp.c (build_range_exp) [!_LIBC]:
32771         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
32772         Implement rational ranges.
32774         regex: avoid redefining __wctype
32775         Reported by Aharon Robbins in
32776         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32777         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
32778         #undef before defining.
32780         regex: port to hosts where malloc (0) == NULL
32781         Reported by Aharon Robbins in
32782         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32783         * lib/regex_internal.c (re_node_set_alloc):
32784         Don't assume that malloc (0) yields nonnull.
32785         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
32786         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
32787         * modules/regex (Files): Add m4/eealloc.m4.
32789         regex: port to C89
32790         Reported by Aharon Robbins in
32791         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32792         * lib/regcomp.c (init_word_char): Declaration before statement.
32794         regex: merge glibc changes
32795         Also, copy the license wording from glibc.  This simplifies
32796         merging changes.  gnulib-tool will change the wording to GPL as
32797         appropriate, when importing it to other packages.  The only
32798         glibc change made since the last merge, which needs merging, is:
32799         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
32800         * lib/regex_internal.h (gettext): Remove use of INTUSE.
32802         * users.txt: Add Emacs.
32804         doc: omit mention of version when not needed
32805         * doc/gnulib-intro.texi (Portability and Application Code):
32806         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32807         Don't mention particular dates or versions when not necessary, so
32808         that the documentation won't go out of date so quickly.
32810         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32812 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32814         bootstrap: pass --force to autoreconf.
32815         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32816         Add "--force" so that Automake's ylwrap and other such tools
32817         be updated at each bootstrap invocation.
32818         Use it.
32820 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32822         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32823         The earlier patch forgot to update one of the #if conditions, causing
32824         a problem on Debian testing i386 reported by Mats Erik Andersson
32825         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32826         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32827         (__argp_fmtstream_puts, argp_fmtstream_puts)
32828         (__argp_fmtstream_write, argp_fmtstream_write)
32829         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32831         * doc/gnulib-readme.texi: Minor fixups.
32832         (Portability guidelines): Modernize URLs.  Remove some repetition.
32833         (Indent with spaces not TABs): Reword to avoid too-long lines.
32834         Remove some '@ifset standalone' stuff that isn't used.
32836         * doc/gnulib-readme.texi (Portability guidelines):
32837         ctype.h, not ctime.h.
32839         Correct name of POSIX.1-2001.
32840         * doc/posix-functions/fgetc.texi (fgetc):
32841         * doc/posix-functions/fgets.texi (fgets):
32842         * doc/posix-functions/fread.texi (fread):
32843         * doc/posix-functions/fscanf.texi (fscanf):
32844         * doc/posix-functions/getc.texi (getc):
32845         * doc/posix-functions/getchar.texi (getchar):
32846         * doc/posix-functions/scanf.texi (scanf):
32847         POSIX.1-2001, not POSIX-2001.
32849         doc: move README into manual
32850         * README: Move contents to new file doc/gnulib-readme.texi.
32851         Replace with a one-line summary.
32852         * doc/gnulib.texi (Brief Overview): New section,
32853         with old intro preface.  Include gnulib-readme.texi for contents.
32854         (Philosophy): Rename from "Introduction", since this
32855         section no longer introduces the rest.  Write a new preface.
32856         * doc/gnulib-readme.texi: New file, with the old contents of
32857         README texinfo-ized.  This way, the README info appears
32858         in the online and printed manual.
32860 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32862         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32863         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32864         c_vasprintf() prototype.
32866 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32868         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32869         * lib/c-vasprintf.h: Remove stray semicolon.
32871 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32873         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32874         It is obsolete and is planned to be removed from Automake 1.14; see
32875         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32876         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32877         (installdirs-data, installdirs-data-yes):
32878         Use $(MKDIR_P), not $(mkdir_p).
32879         * m4/intl.m4 (AM_INTL_SUBDIR):
32880         * m4/po.m4 (AM_PO_SUBDIRS):
32881         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32883 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32885         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32886         On this platform, we are not optimizing but we are using
32887         the substitute for extern inlines, so compile as if
32888         C99-style extern inline, or a substitute, is available.
32889         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32890         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32891         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32892         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32893         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32894         Declare as ARGP_FS_EI, not as extern.
32895         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32896         (__option_is_short, _option_is_end, __option_is_end)
32897         [!_LIBC && __USE_EXTERN_INLINES]:
32898         Declare as ARGP_EI, not as extern.
32900 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32902         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32903         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32904         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32905         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32906         ...), as the latter is fatal with older Autoconfs.
32907         Problem reported and fix suggested by Eric Blake in thread starting at
32908         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32910 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32912         AC_PROG_MKDIR_P: don't workaround if not buggy
32913         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32914         Define only for Autoconf versions before 2.62.
32915         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32916         undocumented m4_PACKAGE_VERSION, for consistency with the
32917         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32918         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32919         was introduced in 2.62.
32921 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32923         New 'c-*printf' modules for formatted output in C locale.
32925         New module 'c-vasnprintf'.
32926         * modules/c-vasnprintf: New file.
32927         * lib/c-vasnprintf.c: New file.
32928         * lib/c-vasnprintf.h: New file.
32930         New module 'c-snprintf'.
32931         * modules/c-snprintf: New file.
32932         * modules/c-snprintf-tests: New file.
32933         * lib/c-snprintf.c: New file.
32934         * lib/c-snprintf.h: New file.
32935         * tests/test-c-snprintf.c: New file.
32936         * tests/test-c-snprintf.sh: New file.
32938         New module 'c-vsnprintf'.
32939         * modules/c-vsnprintf: New file.
32940         * modules/c-vsnprintf-tests: New file.
32941         * lib/c-vsnprintf.c: New file.
32942         * lib/c-vsnprintf.h: New file.
32943         * tests/test-c-vsnprintf.c: New file.
32944         * tests/test-c-vsnprintf.sh: New file.
32946         New module 'c-vasprintf'.
32947         * modules/c-vasprintf: New file.
32948         * modules/c-vasprintf-tests: New file.
32949         * lib/c-asprintf.c: New file.
32950         * lib/c-vasprintf.c: New file.
32951         * lib/c-vasprintf.h: New file.
32952         * tests/test-c-vasprintf.c  +: New file.
32953         * tests/test-c-vasprintf.sh: New file.
32955         New module 'c-xvasprintf'.
32956         * modules/c-xvasprintf: New file.
32957         * modules/c-xvasprintf-tests: New file.
32958         * lib/c-xasprintf.c: New file.
32959         * lib/c-xvasprintf.c: New file.
32960         * lib/c-xvasprintf.h: New file.
32961         * tests/test-c-xvasprintf.c: New file.
32962         * tests/test-c-xvasprintf.sh: New file.
32964 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32966         argp: better 'inline'
32967         Use extern-inline module to declare extern inline functions.
32968         This avoids some bogus warning diagnostics.  Problem discovered
32969         when modifying GNU tar to use the manywarnings module.
32970         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32971         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32972         Define based on extern-inline.
32973         * modules/argp (Depends-on): Add extern-inline.
32975 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32977         filemode, sys_stat: Handle MPX files a la AIX.
32978         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32979         * lib/sys_stat.in.h (S_ISMPX): New macro.
32980         * tests/test-sys_stat.c: Add tests for MPX files.
32982 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32984         x-to-1: honor $PERL
32985         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32986         a chance to use his preferred version of Perl.  This is typically
32987         required by Darwin users whose default /usr/bin/perl does not have all
32988         the libraries required by help2man, and who need to use their MacPorts
32989         installation of Perl instead.
32991 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32993         gnu-web-doc-update: add all the new files, even in new directories
32994         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32995         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32996         Use it.
32997         (main): Don't use cvsutils to get the list of unknown files,
32998         just add all the existing files and directories.
33000 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33002         gnu-web-doc-update: improve --help
33003         * build-aux/gnu-web-doc-update: Move comments into --help.
33005 2012-12-07  Eric Wong  <normalperson@yhbt.net>
33007         mountlist: recognize more "dummy" file systems
33008         * lib/mountlist.c (ME_DUMMY_0):
33009         Add these dummy FS names to the list:
33010         - "debugfs" virtual filesystem for kernel debugging
33011         - "devpts" PTY slave filesystem
33012         - "devtmpfs" device filesystem on top of tmpfs/ramfs
33013         - "fusectl" control filesystem for FUSE
33014         - "mqueue" enumerates POSIX message queues
33015         - "rpc_pipefs" kernel <-> userspace bridge for NFS
33016         - "sysfs" is for exporting kernel objects
33017         - "devfs" device filesystem for Linux 2.4 and FreeBSD
33019 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
33021         extern-inline: avoid incompatibility with Darwin Libc
33022         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
33023         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
33024         Problem reported by Akim Demaille in
33025         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
33027 2012-12-11  Simon Josefsson  <simon@josefsson.org>
33029         gnupload: Work with GnuPG using gpg-agent (for smartcards).
33030         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
33031         let it handle password prompting.
33033 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
33035         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
33036         * lib/canonicalize.c (canonicalize_filename_mode):
33037         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
33038         fetching the current directory.  Don't overrun the beginning of
33039         rpath if there's no slashes after the MS-Windows drive letter.
33041 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
33043         maint.mk: avoid extra forks
33044         * top/maint.mk (_cfg_mk): The GNU make manual documents that
33045         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
33046         So use that instead of "$(shell test -f FILE && echo FILE)".
33048 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33050         vasnprintf: fix ASCII_ONLY typo
33051         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33052         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33053         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33054         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
33055         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
33057 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33059         list, oset, xlist, xoset: fix extern inline issue with C99
33060         This was introduced by my recent changes for 'inline'.
33061         Problem reported for gettext by Daiki Ueno in
33062         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
33063         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
33064         (gl_list_nx_create, gl_list_size, gl_list_node_value)
33065         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
33066         (gl_list_previous_node, gl_list_get_at)
33067         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
33068         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
33069         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
33070         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
33071         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
33072         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
33073         (gl_list_iterator_free, gl_sortedlist_search)
33074         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
33075         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
33076         (gl_sortedlist_remove):
33077         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
33078         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
33079         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
33080         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
33081         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
33082         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
33083         (gl_list_add_at, gl_sortedlist_add):
33084         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
33085         Wrap these extern decls inside "#if 0", because they are implemented
33086         as inline functions, and extern inline is not what's wanted here.
33087         It would simplify these .h files to remove the extern decls entirely,
33088         although a downside would be less-clear separation between
33089         specification and implementation.
33091 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33093         sys_stat: no 'static inline'
33094         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
33095         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
33097         extern-inline: no 'static inline'
33098         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33099         Do not require AC_C_INLINE.
33100         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
33101         'static inline', for older compilers.
33103         snippet/warn-on-use: no 'static inline'
33104         * build-aux/snippet/warn-on-use.h:
33105         Remove unnecessary 'inline' in comment.
33107         rbtree-list, rbtreehash-list: no 'static inline'
33108         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
33109         * lib/gl_anytree_list2.h (node_at):
33110         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
33111         (gl_oset_first, add_nodes_to_buckets):
33112         Now static, not static inline.
33114         regex: no 'static inline'
33115         * lib/regex_internal.c (calc_state_hash):
33116         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
33117         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
33118         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
33119         Now static, not static inline.
33120         (inline) [__GNUC__ < 3 && _LIBC]:
33121         Remove macro; no longer needed.
33123         xvasprintf: no 'static inline'
33124         * lib/xvasprintf.c (xstrcat):
33125         Now static, not static inline.
33126         * m4/xvasprintf.m4 (gl_XVASPRINTF):
33127         Do not require AC_C_INLINE.
33129         parse-datetime, parse-duration: no 'static inline'
33130         * lib/parse-datetime.y (to_uchar):
33131         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
33132         (scale_n_add):
33133         Now static, not static inline.
33134         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
33135         * modules/parse-duration (configure.ac):
33136         Do not require AC_C_INLINE.
33138         getaddrinfo: no 'static inline'
33139         * lib/getaddrinfo.c (validate_family):
33140         Now static, not static inline.
33141         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
33142         Do not require AC_C_INLINE.
33144         ftruncate, fts, lstat, openat, raise: no 'static inline'
33145         * lib/ftruncate.c (chsize_nothrow):
33146         * lib/fts.c (opendirat, diropen):
33147         * lib/lstat.c (orig_lstat):
33148         * lib/openat.c (orig_openat):
33149         * lib/raise.c (raise_nothrow):
33150         Now static, not static inline.
33151         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
33152         * m4/fts.m4 (gl_FUNC_FTS_CORE):
33153         * m4/lstat.m4 (gl_PREREQ_LSTAT):
33154         * m4/openat.m4 (gl_PREREQ_OPENAT):
33155         * m4/raise.m4 (gl_PREREQ_RAISE):
33156         Do not require AC_C_INLINE.
33158         fflush, stat: no 'static inline'
33159         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33160         (clear_ungetc_buffer, disable_seek_optimization)
33161         (restore_seek_optimization, update_fpos_cache):
33162         * lib/stat.c (orig_stat):
33163         Now static, not static inline.
33164         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
33165         (update_fpos_cache):
33166         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
33167         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
33168         * m4/stat.m4 (gl_PREREQ_STAT):
33169         Do not require AC_C_INLINE.
33171         error, filevercmp: no 'static inline'
33172         * lib/error.c (is_open, flush_stdout):
33173         * lib/filevercmp.c (order):
33174         Now static, not static inline.
33175         * m4/error.m4 (gl_PREREQ_ERROR):
33176         * modules/filevercmp (configure.ac):
33177         Do not require AC_C_INLINE.
33179         dup, execute, fatal-signal, etc.: no 'static inline'
33180         * lib/dup.c (dup_nothrow):
33181         * lib/execute.c (nonintr_close, nonintr_open):
33182         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
33183         * lib/fopen.c (orig_fopen):
33184         * lib/freadseek.c (freadptrinc):
33185         * lib/freopen.c (orig_freopen):
33186         * lib/fstat.c (orig_fstat, fstat_nothrow):
33187         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33188         (get_rusage_as_via_iterator):
33189         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
33190         * lib/getdtablesize.c (_setmaxstdio_nothrow):
33191         * lib/isatty.c (_isatty_nothrow):
33192         * lib/open.c (orig_open):
33193         * lib/read.c (read_nothrow):
33194         * lib/sigprocmask.c (signal_nothrow):
33195         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
33196         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
33197         * lib/wait-process.c (unregister_slave_subprocess):
33198         * lib/write.c (write_nothrow):
33199         Now static, not static inline.
33200         * lib/spawn-pipe.c (nonintr_open): Define only if
33201         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
33202         * m4/dup.m4 (gl_PREREQ_DUP):
33203         * m4/execute.m4 (gl_EXECUTE):
33204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
33205         * m4/fopen.m4 (gl_PREREQ_FOPEN):
33206         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
33207         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
33208         * m4/fstat.m4 (gl_PREREQ_FSTAT):
33209         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
33210         * m4/isatty.m4 (gl_PREREQ_ISATTY):
33211         * m4/open.m4 (gl_PREREQ_OPEN):
33212         * m4/read.m4 (gl_PREREQ_READ):
33213         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
33214         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
33215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
33216         * m4/wait-process.m4 (gl_WAIT_PROCESS):
33217         * m4/write.m4 (gl_PREREQ_WRITE):
33218         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
33219         Do not require AC_C_INLINE.
33221         c-strtod, memcoll, readutmp: no 'static inline'
33222         * lib/c-strtod.c (c_locale):
33223         * lib/memcoll.c (strcoll_loop):
33224         * lib/readutmp.c (desirable_utmp_entry):
33225         Now static, not static inline.
33226         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
33227         * m4/memcoll.m4 (gl_MEMCOLL):
33228         * m4/readutmp.m4 (gl_READUTMP):
33229         Do not require AC_C_INLINE.
33231         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
33232         * lib/arctwo.c (to_uchar):
33233         * lib/md4.c (set_uint32):
33234         * lib/md5.c (set_uint32):
33235         * lib/sha1.c (set_uint32):
33236         * lib/sha256.c (set_uint32):
33237         * lib/sha512.c (set_uint64):
33238         Now static, not static inline.  This is a bit simpler, and doesn't
33239         affect performance with GCC and default optimization.
33240         * m4/arctwo.m4 (gl_ARCTWO):
33241         * m4/md4.m4 (gl_MD4):
33242         * m4/md5.m4 (gl_MD5):
33243         * m4/sha1.m4 (gl_SHA1):
33244         * m4/sha256.m4 (gl_SHA256):
33245         * m4/sha512.m4 (gl_SHA512):
33246         Do not require AC_C_INLINE.
33248         cond, lock, thread: better 'inline'
33249         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
33250         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
33251         New macros.  Use them instead of static inline, for header functions.
33252         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
33253         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33254         * lib/glthread/lock.c (gl_waitqueue_init)
33255         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33256         * lib/glthread/thread.c (get_current_thread_handle):
33257         Change 'static inline' to 'inline'.
33258         * lib/glthread/cond.h, lib/glthread/thread.h:
33259         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33260         * m4/cond.m4 (gl_COND):
33261         * m4/lock.m4 (gl_PREREQ_LOCK):
33262         * m4/thread.m4 (gl_THREAD):
33263         Do not require AC_C_INLINE.
33264         * modules/cond, modules/thread (Depends-on): Add extern-inline.
33266         chdir-long, cycle-check, savewd: better 'inline'
33267         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
33268         (find_non_slash):
33269         * lib/cycle-check.c (is_zero_or_power_of_two):
33270         * lib/savewd.c (savewd_delegating):
33271         Change 'static inline' to 'inline'.
33272         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
33273         Replace all remaining uses of 'static inline' with it.
33274         * lib/savewd.h:
33275         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33276         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
33277         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33278         * m4/savewd.m4 (gl_SAVEWD):
33279         Do not require AC_C_INLINE.
33280         * modules/savewd (Depends-on): Add extern-inline.
33282         base32, base64: no need for 'inline'
33283         * lib/base32.c (to_uchar, get_8, decode_8):
33284         * lib/base64.c (to_uchar, get_4, decode_4):
33285         Change 'static inline' to 'inline'.
33286         * m4/base32.m4 (gl_PREREQ_BASE32):
33287         * m4/base64.m4 (gl_PREREQ_BASE64):
33288         Do not require AC_C_INLINE.
33290         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
33291         * lib/gl_array_oset.c (gl_array_nx_add_at):
33292         (gl_array_remove_at):
33293         * lib/gl_linkedhash_list.c (hash_resize_after_add)
33294         (add_to_bucket, remove_from_bucket):
33295         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
33296         Change 'static inline' to 'static', as it's simpler to omit
33297         'inline' unless there's a significant performance advantage.
33299         list, oset, xlist, xoset, xsublist: simplify via extern inline
33300         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
33301         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
33302         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
33303         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
33304         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
33305         New macro.  Replace all uses of 'static inline' with it.
33306         [HAVE_INLINE]: Implement functions as *_INLINE functions,
33307         instead of as macros FOO that are defined to static inline
33308         functions FOO_inline.
33309         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
33310         * lib/gl_xsublist.c:
33311         Reimplement from scratch, by defining the corresponding *_INLINE
33312         macro and including the corresponding .h file.  This is simpler.
33313         * modules/list, modules/oset, modules/xlist, modules/xoset:
33314         (Files): Remove m4/gl_list.m4.
33315         (configure.ac): Remove gl_LIST.
33316         * m4/gl_list.m4: Remove.
33317         * modules/list, modules/oset, modules/xlist, modules/xoset:
33318         * modules/xsublist:
33319         (Depends-on): Depend on extern-inline, not inline.
33321         xalloc: better 'inline'
33322         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
33323         New macro.  Replace all uses of 'static inline' with it.
33324         (static_inline): Remove.
33325         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
33326         Let 'extern inline' do the work automatically, instead of doing
33327         it by hand.
33328         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
33329         Remove.  All uses removed.
33330         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
33332         gethrxtime: better 'inline'
33333         * lib/xtime.c: New file.
33334         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
33335         * lib/xtime.h (XTIME_INCLUDE):
33336         New macros.  Replace all uses of 'static inline' with them.
33337         * lib/gethrxtime.c (gethrxtime): Define only if
33338         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
33339         this source file is now always compiled, because of the extern inline.
33340         * lib/gethrxtime.h, lib/xtime.h:
33341         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33342         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
33343         if gethrtime works, as they're not needed in that case.
33344         (gl_XTIME): Do not require AC_C_INLINE.
33345         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
33346         compiled now.  Move the check into gl_GETHRXTIME.
33347         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
33348         (Depends-on): Add extern-inline.
33349         (configure.ac): gethrxtime is always compiled now.
33350         (lib_SOURCES): Add gethrxtime.c.
33352         wctype-h: better 'inline'
33353         * lib/wctype-h.c: New file.
33354         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
33355         New macro.  Replace all uses of 'static inline' with it.
33356         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33357         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
33358         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
33359         (Depends-on): Add extern-inline.
33361         unistd: better 'inline'
33362         * lib/unistd.c: New file.
33363         * lib/unistd.in.h (_GL_UNISTD_INLINE):
33364         New macro.  Replace all uses of 'static inline' with it.
33365         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33366         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
33367         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
33368         (Depends-on): Add extern-inline.
33370         sys_socket: better 'inline'
33371         * lib/sys_socket.c: New file.
33372         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
33373         New macro.  Replace all uses of 'static inline' with it.
33374         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
33376         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
33377         (Depends-on): Add extern-inline.
33379         stdio: better 'inline'
33380         * lib/stdio.c: New file.
33381         * lib/stdio.in.h (_GL_STDIO_INLINE):
33382         New macro.  Replace all uses of 'static inline' with it.
33383         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33384         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
33385         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
33386         (Depends-on): Add extern-inline.
33388         sigaction: better 'inline'
33389         * lib/sig-handler.c: New file.
33390         * lib/sig-handler.h (SIG_HANDLER_INLINE):
33391         New macro.  Replace all uses of 'static inline' with it.
33392         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33393         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
33394         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
33395         (Depends-on): Add extern-inline.
33397         selinux-h: better 'inline'
33398         * lib/se-context.c, lib/se-selinux.c: New files.
33399         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
33400         * lib/se-context.in.h (SE_CONTEXT_INLINE):
33401         New macro.  Replace all uses of 'static inline' with it.
33402         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33403         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
33404         New macro.  Replace all uses of 'static inline' with it.
33405         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33406         * modules/selinux-h (Files, lib_SOURCES):
33407         Add lib/se-context.c, lib/se-selinux.c.
33408         (Depends-on): Add extern-inline.
33409         (configure.ac): Do not require AC_C_INLINE.
33411         pthread: better 'inline'
33412         * lib/pthread.c: New file.
33413         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
33414         New macro.  Replace all uses of 'static inline' with it.
33415         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33416         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33417         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
33418         * modules/pthread (Files): Add lib/pthread.c.
33419         (Depends-on): Add extern-inline.
33421         math: better 'inline'
33422         * lib/math.c: New file.
33423         * lib/math.in.h (_GL_MATH_INLINE):
33424         New macro.  Replace all uses of 'static inline' with it.
33425         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33426         * m4/math_h.m4 (gl_MATH_H):
33427         Do not require AC_C_INLINE.
33428         * modules/math (Files, lib_SOURCES):
33429         Add lib/math.c.
33430         (Depends-on): Add extern-inline.
33432         count-one-bits: better 'inline'
33433         * lib/count-one-bits.c: New file.
33434         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
33435         New macro.  Replace all uses of 'static inline' with it.
33436         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33437         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
33438         Do not require AC_C_INLINE.
33439         * modules/count-one-bits (Files, lib_SOURCES):
33440         Add lib/count-one-bits.c.
33441         (Depends-on): Add extern-inline.
33443         count-leading-zeros: better 'inline'
33444         * lib/count-leading-zeros.c: New file.
33445         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
33446         New macro.  Replace all uses of 'static inline' with it.
33447         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33448         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
33449         Do not require AC_C_INLINE.
33450         * modules/count-leading-zeros (Files, lib_SOURCES):
33451         Add lib/count-leading-zeros.c.
33452         (Depends-on): Add extern-inline.
33454         bitrotate: better 'inline'
33455         * lib/bitrotate.c: New file.
33456         * lib/bitrotate.h (BITROTATE_INLINE):
33457         New macros.
33458         Replace all uses of 'static inline' with them.
33459         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33460         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
33461         (Depends-on): Add extern-inline.
33462         (configure.ac): Do not require AC_C_INLINE.
33464 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
33466         maint.mk: avoid gratuitous failure
33467         Reported by Stefano Lattarini in
33468         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
33469         * top/maint.mk (public-submodule-commit): Quote more safely.
33471 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
33473         canonicalize, canonicalize-lgpl: support MS-Windows file names
33474         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
33475         for test cases, which it'd be nice to add at some point.
33476         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
33477         * lib/canonicalize.c (canonicalize_filename_mode):
33478         * lib/canonicalize-lgpl.c (__realpath):
33479         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
33480         slash is at the beginning of the file name.  Use ISSLASH, instead
33481         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
33482         the first character with '/'.  Test for
33483         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
33484         with a drive letter.
33485         * lib/canonicalize.c (SLASHES): New macro.
33486         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
33488 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
33490         fts: introduce FTS_VERBATIM
33491         * lib/fts_.h (FTS_VERBATIM): New bit flag.
33492         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
33493         * lib/fts.c (fts_open): Honor it.
33495 2012-11-09  Pádraig Brady  <P@draigBrady.com>
33497         getlogin-tests: allow errno == ENXIO
33498         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33499         with errno == ENXIO (No controlling tty).
33500         getlogin_r-tests: Likewise. Also allow errno == ENOENT
33501         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
33502         with errno == ENOENT.  This was reported to happen in various
33503         situations on GNU/Linux.
33505 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33507         getlogin-tests: allow errno == ENOENT
33508         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33509         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
33510         when running a test in an Emacs shell buffer.
33512 2012-11-08  Jim Meyering  <jim@meyering.net>
33514         tests/nap.h: avoid warning about unused variable
33515         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
33517         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
33518         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
33519         white space before each of the special-cased file names, to avoid
33520         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
33521         in http://bugs.gnu.org/12830.
33523 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33525         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
33526         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
33527         fails with errno == EBADF when fd is opened with O_PATH.
33528         Reported by Jim Meyering in
33529         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
33530         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33531         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
33533 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
33535         test-utimens: speed up by taking shorter naps
33536         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
33537         New functions.
33538         (nap): Use them, to do a better job of guessing the delay.
33539         On Fedora 17 with ext4 atop md atop hard disks, this made
33540         test-utimens run 10x faster, because the test napped for
33541         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
33542         <http://bugs.gnu.org/12820#11>.
33544 2012-11-07  Jim Meyering  <jim@meyering.net>
33546         mountlist.c: fix a compilation failure
33547         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
33548         I introduced while transforming commit v0.0-7683-g613bcb6
33550 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33552         errno: port to LynxOS 178 2.2.2
33553         Problem reported by Joel Brobecker in
33554         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
33555         * doc/posix-headers/errno.texi (errno.h): Document this.
33556         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
33557         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
33558         Supply a string for EILSEQ.
33559         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
33561 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33563         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
33564         Linux kernel 2.6.39 introduced O_PATH (see
33565         <http://lwn.net/Articles/433854/>) and this is a better fallback
33566         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
33567         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33568         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
33569         * lib/fcntl.in.h (O_ACCMODE):
33570         * tests/test-fcntl-h.c (main):
33571         Do not reject O_ACCMODE merely because it has more than the
33572         minimal number of bits, as POSIX allows extensions here.
33574 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
33576         mountlist: do not classify a bind-mounted dir entry as "dummy"
33577         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
33578         the "none"-testing clause.
33579         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
33580         exception for bind-mounted directories.
33582 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
33584         quote: provide a means to escape strings with nul characters
33585         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
33586         (quote, quote_n): Rename formal arguments for consistency with
33587         quotearg.
33589 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33591         test-raise: don't assume 199 is an invalid signal
33592         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
33594         sh-quote-tests: port to Solaris 9
33595         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
33596         Problem reported by Dagobert Michelsen in
33597         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
33599 2012-10-28  Jim Meyering  <jim@meyering.net>
33601         maint.mk: rename a new configurable variable
33602         * top/maint.mk (_gl_translatable_string_re): Rename from
33603         translation-markers: _gl_ prefix to insulate from user Makefile code,
33604         and the _re suffix to inform that it's a regular expression.
33606 2012-10-26  Eric Blake  <eblake@redhat.com>
33608         maint.mk: let packages tweak sc_po_check pattern
33609         * top/maint.mk (sc_po_check): Add translation-markers, to allow
33610         finding files with other translation markers.
33612 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33614         euidaccess: speed up 'configure' on GNU hosts
33615         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
33616         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
33617         it's needed only in this case.  Use AC_CHECK_DECLS, not
33618         AC_CHECK_DECLS_ONCE.
33619         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
33620         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33622         * lib/regexec.c (re_search_internal): Fix grammar in comment.
33624 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33626         fchmodat, fchownat, fstatat: port to non-inlining compilers
33627         Problem reported for FreeBSD 9 by Jim Meyering in
33628         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
33629         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
33630         New files, which define FCHMODAT_INLINE etc.
33631         * lib/fchmodat.c (FCHMODAT_INLINE):
33632         * lib/fchownat.c (FCHOWNAT_INLINE):
33633         * lib/fstatat.c (FSTATAT_INLINE):
33634         Remove, as chmodat.c etc. now do this.
33635         * modules/fchmodat (Files): Add lib/chmodat.c.
33636         * modules/fchownat (Files): Add lib/chownat.c.
33637         * modules/fstatat (Files): Add lib/statat.c.
33639 2012-10-15  Jim Meyering  <jim@meyering.net>
33641         fchmodat.c, fchownat.c: compile-impeding typos
33642         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
33643         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
33644         Introduced in commit v0.0-7636-gd202279.
33646 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33648         fcntl-h: support GNU flags like O_IGNORE_CTTY
33649         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
33650         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
33651         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
33652         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
33653         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
33654         Define to 0 if not already defined.
33655         * tests/test-fcntl-h.c: Test these new flags.
33657 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33659         faccessat, etc.: support AT_FDCWD-only use
33660         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
33661         this function only if its first argument is AT_FDCWD.
33662         Emacs wants faccessat for AT_EACCESS but not for any first-arg
33663         values other than AT_FDCWD, so it doesn't want all the openat
33664         machinery with fchdir etc.
33665         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
33666         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33667         * modules/unlinkat (Files):
33668         Remove lib/openat-priv.h, as at-internal supplies this file.
33669         Removing this file here allows us to support programs like Emacs
33670         that avoid at-internal.
33672         faccessat: speed up 'configure' on mainstream hosts
33673         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33674         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33675         since it's only on unusual platforms that we need to check for
33676         'access', and it's better not to slow 'configure' down on all
33677         platforms.
33679         faccessat: port to Solaris 10
33680         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33681         Needed on Solaris 10, which doesn't have AT_EACCESS,
33682         so we need the Gnulib fcntl.h, which defines it.
33684 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33685         canonicalize: fix C89 compilation
33686         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33687         declarations so C89 is supported.  Also remove the comment
33688         referencing memorty allocation as the suggested feature could
33689         not be implemented as suggested.
33690         Reported by Michael Goffioul.
33692 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33694         group-member: omit unnecessary dependencies
33695         This is for Emacs, which has its own allocator and where we
33696         don't want to use xalloc.
33697         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33698         since we no longer use xmalloc.  Do not include stdbool.h, since
33699         the changes below happen to remove the only use of bool.
33700         (GROUPBUF_SIZE): New constant.
33701         (struct group_info): Remove n_groups member.  Add groupbuf member.
33702         This lets us get the groups without using malloc, usually.
33703         (free_group_info, get_group_info): Adjust to this.
33704         (get_group_info): Return the number of groups found, or -1 on error.
33705         Use plain malloc not xmalloc, and treat its failure as if there
33706         are no groups, as the user already loses in case of error.
33707         (group_member): Simplify, based on changes to get_group_info.
33708         * modules/group-member (Depends-on): Remove dependencies on
33709         xalloc and stdbool.  Add dependency on xalloc-oversized.
33711 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
33713         gethrxtime: port to C++
33714         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
33716 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33718         ptsname: fix macro-name typo
33719         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
33721 2012-10-03  Simon Josefsson  <simon@josefsson.org>
33723         inttostr: Relax license.
33724         * modules/inttostr (License): Change from LGPL to LGPLv2+.
33726 2012-10-03  Eric Blake  <eblake@redhat.com>
33728         ptsname_r: support ptys returned by FreeBSD posix_openpt
33729         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
33730         lives in /dev/pts/.
33732 2012-10-02  Eric Blake  <eblake@redhat.com>
33734         pselect: reject invalid file descriptors
33735         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
33736         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
33737         * modules/pselect (Depends-on): Add dup2.
33738         * doc/posix-functions/pselect.texi (pselect): Document this.
33740         select: reject invalid file descriptors
33741         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
33742         * lib/select.c (rpl_select) [!win32]: Work around it.
33743         * modules/select (Depends-on): Add dup2.
33744         * doc/posix-functions/select.texi (select): Document this.
33746         select: enhance test
33747         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
33748         New functions.
33749         (test_function): Enhance test.
33750         (do_select_bad_fd): Avoid any stale errno values.
33752         ptsname: reject invalid file descriptors
33753         http://www.austingroupbugs.net/view.php?id=503
33754         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
33755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
33756         * modules/stdlib (Makefile.am): Replace witness.
33757         * lib/stdlib.in.h (ptsname): Allow for replacement.
33758         * modules/ptsname (configure.ac): Trigger replacement.
33759         * doc/posix-functions/ptsname.texi (ptsname): Document this.
33761 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
33763         hash-pjw-bare: new module
33764         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
33765         * lib/hash-pjw-bare.h: Likewise.
33766         * modules/hash-pjw-bare: New file.
33767         * MODULES.html.sh (Misc): Add it.
33769 2012-10-02  Eric Blake  <eblake@redhat.com>
33771         manywarnings: cater to more gcc infelicities
33772         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
33773         -Wuninitialized without -O.
33775 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
33777         select, poll tests: Make setsockopt invocation effective.
33778         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
33779         the bind() call.
33780         * tests/test-select.h (open_server_socket): Likewise.
33782 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33784         sockets, sys_stat: restore AC_C_INLINE
33785         This undoes the 2012-09-22 patch.
33786         * m4/sockets.m4 (gl_SOCKETS):
33787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33788         Restore AC_C_INLINE, since MSVC requires __inline or _inline
33789         and does not support plain 'inline'.  Reported by Bruno Haible in
33790         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
33792 2012-09-30  Bruno Haible  <bruno@clisp.org>
33794         localeconv tests: Avoid test failure on OpenIndiana.
33795         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
33796         skip the 'grouping' and 'mon_grouping' tests.
33797         Reported by Jim Meyering.
33799 2012-09-30  Bruno Haible  <bruno@clisp.org>
33801         havelib: Follow libtool developments.
33802         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
33803         Suggested by Simon Josefsson.
33805 2012-09-29  Jim Meyering  <meyering@redhat.com>
33807         fstatat.c: fix a compile-impeding typo
33808         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33809         Introduced in commit v0.0-7636-gd202279.
33810         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33812 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33814         extern-inline: provide a -Wundef safe config.h
33815         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33816         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33817         to produce a -Wundef warning free config.h.
33819 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33821         hash-pjw: relax license to LGPLv2+
33822         * modules/hash-pjw (License): Relax, with consent of author.
33824 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33826         maint.mk: fix strict vs. lazy variable issues with RELEASE
33827         * top/maint.mk (_equal): New function.
33828         (member_check): Strip the result to avoid spurious spaces.
33829         (url_dir_list): Do not use ifeq, which is strict, as it will
33830         require RELEASE_TYPE to be defined.
33831         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33832         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33833         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33834         (announcement_Cc_beta,announcement_mail_headers_beta)
33835         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33836         (release): Do not depend on $(release-type), as it forces its
33837         evaluation.  Bounce to it.
33839 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33841         maint.mk: formatting changes
33842         * top/maint.mk: Indent bodies of if's.
33844 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33846         maint.mk: factor the validation of RELEASE_TYPE
33847         With help from Jim Meyering.
33848         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33849         * top/maint.mk (_empty, _sp): Move their definition earlier.
33850         (member-check, release-type): New.
33851         Use the latter instead of $(RELEASE_TYPE).
33852         Remove now useless local checks.
33854 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33856         maint.mk: provide "make upload" to ease uploading
33857         See
33858         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33859         Do not depend simply on the current $(VERSION), as there may have been
33860         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33861         as "make release-commit" already does.
33863         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33864         "make TYPE".
33866         * top/maint.mk (upload_command, upload, release): New.
33867         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33868         (VERSION): first word of $(RELEASE) is always right.
33869         (emit_upload_commands): Adjust.
33870         * top/README-release: Update.
33872 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33874         maint.mk: silent rules
33875         With help from Stefano Lattarini.
33876         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33877         (announcement): Use $(AM_V_at).
33879 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33881         localename: port gl_locale_name_thread_unsafe to FreeBSD
33882         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33883         and use the simpler FreeBSD implementation on Mac OS X as well.
33884         Original idea suggested by Ed Maste in
33885         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33887 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33889         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33890         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33891         * lib/mbuiter.c, lib/xsize.c: New files.
33892         * lib/binary-io.h (BINARY_IO_INLINE):
33893         * lib/eealloc.h (EEALLOC_INLINE):
33894         * lib/mbfile.h (MBFILE_INLINE):
33895         * lib/mbiter.h (MBITER_INLINE):
33896         * lib/mbuiter.h (MBUITER_INLINE):
33897         * lib/xsize.h (XSIZE_INLINE):
33898         New macros.
33899         Replace all uses of 'static inline' with them.
33900         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33901         * m4/eealloc.m4 (gl_EEALLOC):
33902         * m4/mbfile.m4 (gl_MBFILE):
33903         * m4/mbiter.m4 (gl_MBITER):
33904         * m4/xsize.m4 (gl_XSIZE):
33905         Do not require AC_C_INLINE.
33906         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33907         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33908         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33909         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33910         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33911         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33912         * modules/binary-io, modules/eealloc, modules/mbfile:
33913         * modules/mbiter, modules/mbuiter:
33914         (Depends-on): Add extern-inline.
33916         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33917         * lib/pipe-filter-aux.c: New file.
33918         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33919         Replace all uses of 'static inline' with it.
33920         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33921         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33922         (filter_retcode): No real need for inline here.
33923         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33924         (Files): Add lib/pipe-filter-aux.c.
33925         (Depends-on): Add extern-inline.
33926         (configure.ac): Do not require AC_C_INLINE.
33927         (lib_SOURCES): Add pipe-filter-aux.c.
33929         fdutimensat: omit unnecessary AC_C_INLINE
33930         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33932         fchmodat, fchownat, fstatat: use extern-inline
33933         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33934         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33935         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33936         New macros.
33937         * lib/openat.h:
33938         Replace all uses of 'static inline' with them.
33939         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33940         * modules/fchmodat, modules/fchownat, modules/fstatat:
33941         * modules/openat-h:
33942         (Depends-on):
33943         Add extern-inline.
33944         (configure.ac): Remove AC_C_INLINE.
33946         acl, mbchar, priv-set: use extern-inline
33947         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33948         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33949         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33950         New macros.
33951         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33952         Replace all uses of 'static inline' with it.
33953         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33954         * m4/acl.m4 (gl_FUNC_ACL):
33955         * m4/mbchar.m4 (gl_MBCHAR):
33956         * m4/priv-set.m4 (gl_PRIV_SET):
33957         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33958         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33959         Add extern-inline.
33961         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33962         * m4/sockets.m4 (gl_SOCKETS):
33963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33964         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33965         environments where it's already guaranteed to work, so we needn't
33966         check for it at 'configure'-time.
33968         tls-tests: omit unnecessary 'inline'
33969         * tests/test-tls.c (perhaps_yield): No longer inline.
33970         Simplicity and portability trump efficiency in test cases.
33972         utimens-tests: avoid unnecessary 'inline'
33973         * modules/fdutimensat-tests (configure.ac):
33974         * modules/futimens-tests (configure.ac):
33975         * modules/utimens-tests (configure.ac):
33976         * modules/utimensat-tests (configure.ac):
33977         Remove AC_C_INLINE.
33978         * tests/test-utimens-common.h (ctime_compare):
33979         No longer inline.  Simplicity and portability trump efficiency here.
33981         misc: don't limit commentary to inline functions
33982         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33983         * lib/xalloc-oversized.h, lib/xsize.h:
33984         Contrast macros to functions in general, not just to inline functions,
33985         when the commentary does not apply only to inline functions.
33987 2012-09-20  Jim Meyering  <meyering@redhat.com>
33989         non-recursive-gnulib-prefix-hack: new module
33990         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33991         the file that originated in Bison.
33992         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33993         largely copied from a snippet that resided in bison's configure.ac.
33994         * modules/non-recursive-gnulib-prefix-hack: New file.
33995         * MODULES.html.sh (Support for maintaining and releasing projects):
33996         Add it.
33998 2012-09-18  Jim Meyering  <meyering@redhat.com>
34000         maint.mk: generalize _gl_tight_scope for non-recursive make
34001         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
34002         that *.h would describe additional .h files in the directory
34003         specified by $(_gl_TS_dir).  I.e., add this...
34004         (_gl_TS_other_headers): New variable.
34006         maint.mk: exempt trailing blanks found in "binary" files
34007         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
34008         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
34009         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34011 2012-09-17  Jim Meyering  <meyering@redhat.com>
34013         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
34014         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
34015         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
34016         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34018 2012-09-17  Jim Meyering  <meyering@redhat.com>
34020         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
34021         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
34022         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
34023         It is not in the same category as "exit (0)" or "exit (1)", and
34024         besides, I know of no symbolic name for that 77.  Reported by
34025         Richard W.M. Jones in
34026         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34028 2012-09-17  Jim Meyering  <meyering@redhat.com>
34030         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
34031         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
34032         all uses of #define, not just those that start in column 1.
34033         Richard W.M. Jones reported a false positive in
34034         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34036 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
34038         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
34039         * lib/localcharset.c (locale_charset) [DARWIN7]:
34040         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
34041         as these two values are incompatible.  Problem reported by Max Horn.
34042         For more discussion, please see
34043         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
34045         doc: document sticky-EOF issue
34046         * doc/posix-functions/fgetc.texi (fgetc):
34047         * doc/posix-functions/fgets.texi (fgets):
34048         * doc/posix-functions/fread.texi (fread):
34049         * doc/posix-functions/fscanf.texi (fscanf):
34050         * doc/posix-functions/getc.texi (getc):
34051         * doc/posix-functions/getchar.texi (getchar):
34052         * doc/posix-functions/scanf.texi (scanf):
34053         Mention that glibc and default Solaris do not conform to
34054         C99 and POSIX-2001 or later, with respect to how getchar
34055         etc. behave when feof reports nonzero.
34057 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34059         poll: fix poll(0, NULL, msec)
34060         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
34061         but nfd is 0.  In that case poll should behave like select.
34063 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34064             Paolo Bonzini  <bonzini@gnu.org>
34066         poll: fix for systems that can't recv() on a non-socket
34067         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
34068         is readable.  In this case POLLHUP will not be supported.
34069         * doc/posix-functions/poll.texi: Document this.
34071 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
34073         poll/select: document portability problems not fixed by Gnulib.
34074         * doc/posix-functions/poll.texi: poll does not work well on
34075         pipes under Windows.  It has the same limitations as select on
34076         BeOS.
34077         * doc/posix-functions/select.texi: select does not work well
34078         on pipes under Windows.
34080 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
34082         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
34083         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
34084         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
34085         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
34087 2012-09-06  Eric Blake  <eblake@redhat.com>
34089         net_if: give more details about the bug being fixed
34090         * doc/posix-headers/net_if.texi: Add clarification.
34092 2012-09-05  Eric Blake  <eblake@redhat.com>
34094         net_if: new module
34095         * modules/net_if: New module, borrowing ideas from netinet_in.
34096         * m4/net_if_h.m4: New file.
34097         * lib/net_if.in.h: Likewise.
34098         * doc/posix-headers/net_if.texi (net/if.h): Document it.
34099         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34100         * tests/test-net_if.c: Make function checks conditional.
34101         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
34103 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34105         readutmp: fix non-portable UT_PID use
34106         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
34107         Use `UT_PID (u) > 0' as absolute condition.
34109 2012-09-04  Jim Meyering  <meyering@redhat.com>
34111         fts: reduce two or more trailing spaces to just one, usually
34112         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
34113         or more slashes, trim all but the final one.  But if a name consists
34114         solely of two slashes, don't modify it.  If it consists solely of
34115         three or more slashes, strip all but one.
34117         This is part of the solution to a minor problem with rm:
34118         it would print a bogus ELOOP diagnostic when failing to remove
34119         the slash-decorated name of a symlink-to-directory:
34121             $ mkdir d && ln -s d s && env rm -r s/
34122             rm: cannot remove 's': Too many levels of symbolic links
34124         With the change below and a trivial don't-trim-trailing-slashes
34125         adjustment to remove.c, it does this:
34127             $ env rm -r s/
34128             rm: cannot remove 's/': Not a directory
34130         Improved by: Eric Blake
34132         fts: when there is no risk of overlap, use memcpy, not memmove
34133         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
34135 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34137         stdbool: be more compatible with mixed C/C++ compiles
34138         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
34139         Define to bool, true, false, respectively, as GCC's builtin
34140         stdbool.h does.  Problem reported by Michael Goffioul in
34141         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
34143 2012-08-28  Jim Meyering  <meyering@redhat.com>
34145         revert last change: it was not needed
34146         * tests/test-vc-list-files-git.sh: There's already a test for
34147         a working git, just below.
34149 2012-08-28  Jim Meyering  <meyering@redhat.com>
34151         tests: test-vc-list-files-git.sh: skip if git is not available
34152         * tests/test-vc-list-files-git.sh: Skip this test when git is
34153         not available.
34155 2012-08-26  Bruno Haible  <bruno@clisp.org>
34157         gnulib-tool: Remove no-op option --no-changelog.
34158         * gnulib-tool (func_usage): Don't mention --no-changelog.
34159         (do_changelog): Remove variable.
34160         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34162 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34164         doc: remove fdl-1.2.texi
34165         It is no longer used or maintained, and its use of @acronym
34166         is problematic.  See the thread containing
34167         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
34168         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
34169         * doc/old-licenses/fdl-1.2.texi: Remove.
34171         execinfo: port to FreeBSD
34172         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
34173         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
34174         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
34175         * modules/execinfo (Link): Add $(LIB_EXECINFO).
34177 2012-08-23  Jim Meyering  <meyering@redhat.com>
34179         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
34180         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
34181         to placate gcc's -Wold-style-declaration.
34183 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34185         doc: do not use @acronym
34186         * doc/inet_ntoa.texi (inet_ntoa):
34187         * doc/parse-datetime.texi (Seconds since the Epoch)
34188         (Specifying time zone rules):
34189         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
34190         Don't use @acronym.  Problem reported by John Darlington in
34191         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
34193 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34195         stdnoreturn: port to newer GCCs
34196         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
34197         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
34198         Problem reported by Jim Meyering in
34199         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
34200         Also, rename the 'test' function to a void a clash with the
34201         already-supplied 'main' function; this fixes a bug that incorrectly
34202         rejected GCC 4.7.1's <stdnoreturn.h>.
34203         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
34204         Document GCC problem.
34206 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
34208         pipe-filter: fix comment typo
34209         * lib/pipe-filter.h: Mention correct function.
34211 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
34213         execinfo: new module
34214         This is for Emacs.  Currently, it provides a no-effect stub
34215         on all platforms where it does not already work.
34216         It already works on glibc-based systems, and on Solaris 11.
34217         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
34218         New files.
34219         * doc/glibc-headers/execinfo.texi (execinfo.h):
34220         * MODULES.html.sh (Misc): Document it.
34222 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34224         extern-inline: support old GCC 'inline'
34225         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
34226         if available.  This applies to GCC versions 2.7 through 4.2, or
34227         when newer GCC is using -fgnu89-inline.  The goal is to address
34228         some of the performance issues mentioned by Bruno Haible in
34229         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
34231 2012-08-20  Eric Blake  <eblake@redhat.com>
34233         maint.mk: avoid redundant file name in message
34234         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
34235         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
34236         (sc_makefile_path_separator_check): Remove bogus $(ME).
34238 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
34240         timer-time: fix link order when static linking on glibc
34241         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
34242         _after_ -lrt so that it's significant.
34244 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34246         timespec: omit unnecessary AC_C_INLINE
34247         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
34249         stat-time: omit unnecessary AC_C_INLINE
34250         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34251         Do not require AC_C_INLINE.
34253         ignore-value: omit unnecessary AC_C_INLINE
34254         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
34256         sys_select: avoid 'static inline'
34257         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
34259         mktime: avoid 'static inline'
34260         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
34261         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
34263 2012-08-19  Bruno Haible  <bruno@clisp.org>
34265         gnulib-tool: Improve coding style.
34266         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
34267         func_emit_lib_Makefile_am.
34268         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34270 2012-08-19  Bruno Haible  <bruno@clisp.org>
34272         gnulib-tool: Fix indentation.
34273         * gnulib-tool (func_import): Fix indentation.
34275 2012-08-19  Bruno Haible  <bruno@clisp.org>
34277         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
34278         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
34279         on the list of removed files.
34281 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34283         test-parse-datetime: avoid glibc leap-second glitch
34284         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
34285         with the 2012 rules.  Problem reported by Bruce Dubbs in
34286         <http://bugs.gnu.org/12206>.
34288 2012-08-14  Bruno Haible  <bruno@clisp.org>
34290         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
34291         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
34292         from argument.
34293         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34295 2012-08-14  Eric Blake  <eblake@redhat.com>
34297         ldexp: relax license
34298         * modules/ldexp (License): Trivial relax, since the module only
34299         provides a permissively licensed m4 file.
34301 2012-08-13  Bruno Haible  <bruno@clisp.org>
34303         gnulib-tool: Fix persistence of --witness-c-macro option.
34304         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
34305         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34307 2012-08-11  Eric Blake  <eblake@redhat.com>
34309         count-leading-zeros: use a lookup table on non-gcc compilers
34310         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
34311         alternate implementation, suggested by Jim Meyering.
34313 2012-08-10  Eric Blake  <eblake@redhat.com>
34315         count-leading-zeros: new module
34316         * modules/count-leading-zeros: New module.
34317         * m4/count-leading-zeros.m4: New file.
34318         * lib/count-leading-zeros.h: Likewise.
34319         * modules/count-leading-zeros-tests: New test.
34320         * tests/test-count-leading-zeros.c: New file.
34321         * MODULES.html.sh (Integer arithmetic functions): Document it.
34323 2012-08-07  Simon Josefsson  <simon@josefsson.org>
34324             Jim Meyering  <meyering@redhat.com>
34326         maintainer-makefile: Fix syntax error with dash.
34327         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
34328         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
34330 2012-08-05  Jim Meyering  <meyering@redhat.com>
34332         extern-inline: also ignore -Wmissing-declarations
34333         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
34334         required with gcc-4.8.0-to-be.
34336         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
34337         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
34338         for /error ?([^,]*)/.  This avoids false-positives for strings like
34339         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
34341 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
34343         gnumakefile: better interaction with Automake-NG
34344         * modules/gnumakefile [Makefile.am]: The makefiles generated by
34345         Automake-NG always contain a definition of VPATH, even in non-VPATH
34346         builds (its value being simply '.' in that case).  So, in the
34347         'clean-GNUmakefile' rule, to determine whether running under a
34348         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
34349         '$(VPATH)' expands to the empty string.
34351 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
34353         base64: Use extern C scope in header file, for C++.
34354         * lib/base64.h: Add C++ namespace protection.
34356 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
34358         stat-time, timespec, u64: support naive out-of-dir builds
34359         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
34360         Use '#include "foo.h"', not '#include <foo.h>', when including
34361         one's own interface.  This works better when configuring with
34362         out-of-directory builds, since packages need not add an
34363         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
34365 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
34367         utimens: use extern-inline
34368         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
34369         * lib/utimens.h: Add copyright notice, since this is now large enough
34370         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34371         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
34372         * modules/utimens (Depends-on): Add extern-inline.
34374         u64: use extern-inline
34375         * lib/u64.c: New file.
34376         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34377         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
34378         * modules/u64 (Files): Add lib/u64.c.
34379         (Depends-on): Add extern-inline.
34380         (configure.ac): No need to require AC_C_INLINE, since extern-inline
34381         does that now.
34382         (lib_SOURCES): Add u64.c.
34384         timespec: use extern-inline
34385         * lib/timespec.c: New file.
34386         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34387         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
34388         * modules/timespec (Files): Add lib/timespec.c.
34389         (Depends-on): Add extern-inline.
34390         (lib_SOURCES): Add timespec.c.
34392         stat-time: use extern-inline
34393         * lib/stat-time.c: New file.
34394         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34395         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
34396         * modules/stat-time (Files): Add lib/stat-time.c.
34397         (Depends-on): Add extern-inline.
34398         (lib_SOURCES): Add stat-time.c.
34400         extern-inline: new module
34401         * modules/extern-inline, m4/extern-inline.m4: New files.
34402         This is for better support of 'extern inline' a la ISO C99,
34403         with a portable alternative on compilers that do not support
34404         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
34405         of the Emacs executable, when compiled with debugging disabled,
34406         which is a typical way that Emacs is built while developing.
34408 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
34410         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
34411         * build-aux/do-release-commit-and-tag: Move variable definitions
34412         together.
34413         ($branch): Instead of defaulting to "master", default to the current
34414         branch (as gnu-web-doc-update does).
34415         (help): Display the current values of the option arguments.
34416         * top/maint.mk (release-commit): New.
34417         * top/README-release: Simplify the corresponding step.
34419 2012-07-30  Eric Blake  <eblake@redhat.com>
34421         passfd: fix comment on recvfd
34422         * lib/passfd.c (recvfd): Fix comment.
34423         Reported by Jann Horn <jannhorn@googlemail.com>.
34425 2012-07-30  Jim Meyering  <meyering@redhat.com>
34427         maint.mk: avoid a sub-shell
34428         * top/maint.mk (release-prep): Remove unneeded sub-shell.
34430 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34432         maint.mk: use silent-rules support from Automake
34433         * top/maint.mk (news-check, vc-diff-check, announcement)
34434         (no-submodule-changes, alpha beta stable, release-prep)
34435         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
34437 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34439         maint.mk: provide a web-manual-update target
34440         * top/maint.mk: here.
34441         * top/README-release: Use it to simplify the web manual update step.
34443 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34445         README-release: shorten the circuit to post a news
34446         * top/README-release: Point directly to the news submission form.
34448 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34450         gnu-web-doc-update: fix --help
34451         * build-aux/gnu-web-doc-update: The information "top level" was written
34452         twice.
34454 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34456         maint.mk: absolute VPATH issue
34457         * top/maint.mk (release-prep): Help Git find .git/.
34458         From Jim Meyering.
34460 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34462         gitlog-to-changelog: fix previous change
34463         * build-aux/gitlog-to-changelog: Fix condition.
34464         Add missing ";".
34466 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34468         gitlog-to-changelog: don't expect .git to be in $srcdir
34469         Reported by Bruno Haible.
34470         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
34471         * build-aux/gitlog-to-changelog (&git_dir_option): New.
34472         Use it.
34474 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34476         maint.mk: absolute VPATH build fix
34477         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
34478         $(srcdir) is not a parent of $(builddir).
34480 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
34482         clean-temp: Fix memory leak.
34483         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
34484         'files' members of tmpdir.
34486 2012-07-27  Jim Meyering  <meyering@redhat.com>
34488         maint.mk: new rule: refresh-gnulib-patches
34489         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
34490         Use this rule to refresh them.
34491         * top/maint.mk (refresh-gnulib-patches): New rule.
34493 2012-07-24  Bruno Haible  <bruno@clisp.org>
34495         gnulib-tool: Fix handling of inctests variable.
34496         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
34497         Reported by Nick Bowler <nbowler@elliptictech.com>.
34499 2012-07-22  Bruno Haible  <bruno@clisp.org>
34501         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
34502         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
34503         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34504         Remove exemption for getpass.h.
34505         Suggested by Eric Blake.
34507 2012-07-20  Eric Blake  <eblake@redhat.com>
34509         verify: document conflict with -Wnested-externs
34510         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
34512         maint.mk: forbid exit(-1)
34513         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
34515 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34517         fsusage: port back to Solaris
34518         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
34519         error (fsd not declared) on Solaris 10.  Reported privately by
34520         Andrew Borodin.
34522 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
34524         gnu-web-doc-update: fix error messages
34525         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
34527         gnu-web-doc-update: check the requirements.
34528         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
34529         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
34530         * build-aux/bootstrap (find_tool): Comment change.
34532 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
34534         maint.mk: minor simplication.
34535         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
34536         for default values.
34538 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
34540         gitlog-to-changelog: VPATH build issues
34541         If builddir is not a subdirectory of srcdir, running git from it will
34542         fail.
34543         * build-aux/gitlog-to-changelog (--srcdir): New option.
34545 2012-07-15  Bruno Haible  <bruno@clisp.org>
34547         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
34548         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
34549         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
34550         Remove exemption for fpending.h.
34551         Suggested by Eric Blake.
34553 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34555         pthread_sigmask: fix bug on FreeBSD 9
34556         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
34557         Include string.h.
34558         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
34559         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
34560         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
34561         but pthread_sigmask (1729, NULL, NULL) returns zero.
34562         See <http://bugs.gnu.org/11884>.
34563         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
34564         by inspecting whether the main call changed the old mask.
34566 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
34568         README-release: make it more legible
34569         * top/README-release: Improve typography slightly.
34571 2012-07-15  Jim Meyering  <meyering@redhat.com>
34573         maint: require that each sc_... command start with "@"
34574         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
34575         "make sc_maint" helps us avoid this nit.
34577 2012-07-15  Jim Meyering  <meyering@redhat.com>
34579         maint.mk: add leading "@" to quiet new "make syntax-check" rule
34580         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
34582 2012-07-13  Eric Blake  <eblake@redhat.com>
34584         maint.mk: new syntax check for HAVE_DECL checks
34585         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34586         * cfg.mk
34587         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34588         Exempt some false positives.
34589         Based on a report by Karel Zak.
34591         argp: make HAVE_DECL usage consistent
34592         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
34593         macros, not whether they are defined.
34594         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
34595         convention with other declaration checks.
34596         Reported by Karel Zak, with suggestions from Paul Eggert.
34598         stat-time: relax license to LGPLv2+
34599         * modules/stat-time (License): Relax, with consent of all authors.
34601         strndup: fix m4 usage error
34602         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
34603         defined, to either 0 or 1.
34604         Reported by Karel Zak.
34606 2012-07-11  Jim Meyering  <meyering@redhat.com>
34608         maint: enable the sc_avoid_if_before_free syntax-check rule
34609         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
34610         (if_before_free_offenders_): Define.
34611         (if_before_free_basename_re_): Define.
34612         Exempt current files with useless if-before-free.
34614 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34616         gettext: do not assume '#define ... defined ...' behavior
34617         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
34618         Do not use '#define FOO ... defined BAR ...', as the C standard says
34619         it's not portable to expect that this works after macro expansion.
34620         Problem reported for gzip by Steven M. Schweda in
34621         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
34623 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34625         getloadavg: clean out old Emacs and Autoconf cruft
34626         See Glenn Morris in <http://bugs.gnu.org/11905>.
34627         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
34628         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
34629         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
34630         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
34632 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
34634         bootstrap: let warn be like tests/init.sh's warn_
34635         Reported by Jim Meyering.
34636         * build-aux/bootstrap (warn): Remove, replaced by...
34637         (warnf_, warn_): these.
34638         Adjust callers.
34639         Shorten messages that no longer fit in 80 columns.
34641 2012-07-09  Bruno Haible  <bruno@clisp.org>
34643         getopt: Simplify after Emacs changed.
34644         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
34645         (gl_GETOPT_IFELSE): Remove macro.
34647 2012-07-09  Jim Meyering  <meyering@redhat.com>
34649         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
34650         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
34652         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
34653         Bugs in both of those conspired to make the
34654         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
34655         _sc_search_regexp's handling of non-empty $in_files would filter
34656         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
34657         choice of in_files value meant there would be no match in most
34658         projects, due to the presence of two or more Makefile.in files.
34659         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
34660         Fix a bug in how a non-empty $$in_files was processed:
34661         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
34662         in spite of the name, it's a regexp, not a list of file names.
34664 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34666         getloadavg, getopt: fix commentary re configure.in
34667         Autoconf is deprecating the name 'configure.in', so change it to
34668         to the new name 'configure.ac' in a couple of places.
34669         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34670         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34671         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34672         Emacs has renamed it to configure.ac, and it no longer refers
34673         to these macros anyway.
34675         timespec: mark functions with const attributes
34676         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34677         Mark with _GL_ATTRIBUTE_CONST.
34679 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34681         canonicalize[-lgpl]: handle "guessing" values when cross-building
34682         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34683         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34684         matches "*yes" instead of just "yes".  Regression introduced in commit
34685         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34687 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34688             Bruno Haible  <bruno@clisp.org>
34690         canonicalize: make the right guess when cross-compiling to GNU
34691         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34692         determine whether cross-compiling to glibc systems, so as to
34693         include GNU/Hurd.
34695 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34697         timespec-sub: avoid duplicate include
34698         * lib/timespec-sub.c: Do not include <config.h> twice.
34699         Reported by Juanma Barranquero.
34701 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34703         bootstrap: use a more consistent error reporting scheme
34704         * build-aux/bootstrap (warn, die): New.
34705         Use them.
34707 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34709         sys_time: allow too-wide tv_sec
34710         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
34711         timeval even if tv_sec is wider than time_t.  This allows
34712         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
34713         as without this patch gnulib replaces struct timeval
34714         and OpenBSD futimes therefore has a type mismatch.
34715         * doc/posix-headers/sys_time.texi: Mention this.
34717         pthread: check for both pthread_create and pthread_join
34718         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
34719         alter the check so that it tests for both pthread_create and
34720         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
34721         Suggested by Bruno Haible and Richard Yao in
34722         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
34724         parse-datetime: doc tuneup
34725         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
34726         spacing issues.
34728 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
34730         do-release-commit-and-tag: fix the previous commit
34731         * build-aux/do-release-commit-and-tag: Actually the test was right,
34732         but the comment and the error message were misleading.
34733         Fix comment, and improve error message.
34734         Perform check first, so that NEWS is not modified uselessly.
34736         do-release-commit-and-tag: fix typo
34737         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
34738         _not_ start with a stub.
34740 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34742         pthread: check for pthread_create, not pthread_join
34743         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
34744         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
34745         pthread_join in libc.  I hope this removes the need for all the
34746         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
34747         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
34749 2012-07-04  Jim Meyering  <meyering@redhat.com>
34751         parse-datetime: fix failure to diagnose invalid input
34752         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
34753         rather than diagnosing the invalid input.  Now it reports this:
34754         date: invalid date '\260'
34755         * lib/parse-datetime.y (to_uchar): Define.
34756         (yylex): Don't sign-extend "other" bytes.
34757         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
34758         Thanks to Bruno Haible for the patch to this file.
34759         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
34760         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
34762 2012-07-03  Jim Meyering  <meyering@redhat.com>
34764         bootstrap: do not require now-removed build-aux/missing
34765         Now that build-aux/missing is, er, missing, bootstrap would
34766         silently fail.
34767         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
34768         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
34769         no longer part of gnulib.
34770         Diagnose the failure.
34772 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34774         alloca: add support for HP NonStop TNS/E native
34775         * lib/alloca.in.h (alloca): Support the new host.
34776         From a suggestion by Joachim Schmitz in
34777         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
34779 2012-07-02  Pádraig Brady  <P@draigBrady.com>
34781         fsusage: remove code not needed on non GNU/Linux systems.
34783         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34784         Don't include headers no longer needed in this case.
34785         * lib/fsusage.c [STAT_STATVFS &&
34786         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
34787         STAT_STATFS2_FRSIZE to exclude code not used in this case.
34789 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34791         fsusage: include files needed for glibc 2.6 fallback
34792         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34793         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
34794         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
34795         Problem reported by Ludovic Courtès in
34796         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
34798         fsusage: avoid needless check on GNU/Linux
34799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
34800         on GNU/Linux systems, since it can't possibly work.
34802 2012-07-01  Bruno Haible  <bruno@clisp.org>
34804         log: Fix an autoconf >= 2.64 warning.
34805         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34806         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34808 2012-06-28  Bruno Haible  <bruno@clisp.org>
34810         log10f: Fix possible configuration problem.
34811         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34812         $LOGF_LIBM.
34813         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34815 2012-06-28  Bruno Haible  <bruno@clisp.org>
34817         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34818         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34819         not gl_cv_func_unlink_works.
34820         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34822 2012-06-27  Eric Blake  <eblake@redhat.com>
34824         config: drop scripts that automake says are not independent
34825         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34826         * build-aux/elisp-comp: Delete.
34827         * build-aux/missing: Likewise.
34828         * build-aux/ylwrap: Likewise.
34829         * modules/elisp-comp: Likewise.
34830         * MODULES.html.sh: Drop mention of elisp-comp.
34831         * NEWS: Mention this.
34833 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34835         root-uid: new module
34836         This is for portability to Tandem's NonStop Kernel.
34837         * lib/root-uid.h, modules/root-uid: New files.
34838         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34839         * lib/write-any-file.c, tests/test-sethostname2.c:
34840         Include "root-uid.h".
34841         * lib/euidaccess.c (euidaccess):
34842         * lib/pt_chown.c (main):
34843         * lib/unlinkdir.c (cannot_unlink_dir):
34844         * lib/write-any-file.c (can_write_any_file):
34845         * m4/mknod.m4 (gl_FUNC_MKNOD):
34846         * tests/test-sethostname2.c (geteuid, main):
34847         Don't assume ROOT_UID == 0.
34848         * modules/euidaccess (Depends-on):
34849         * modules/pt_chown (Depends-on):
34850         * modules/sethostname-tests (Depends-on):
34851         * modules/unlinkdir (Depends-on):
34852         * modules/write-any-file (Depends-on):
34853         Add root-uid.
34855         regex: use locale-independent comparison for codeset name
34856         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34857         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34858         for codeset name.
34859         * lib/regex_internal.h: Do not include <strings.h>, since we
34860         no longer use strcasecmp.
34861         * modules/regex (Depends-on): Remove strcase.
34863 2012-06-23  Bruno Haible  <bruno@clisp.org>
34865         getopt-posix: No longer guarantee that option processing is resettable.
34866         * doc/posix-functions/getopt.texi: Drop description of problem with
34867         internal state. Fix info about mingw and msvc9.
34868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34869         option processing by getopt(). Run three test programs instead of one.
34870         Simplify cross-compilation guess.
34871         * NEWS: Mention the change.
34872         Reported by Rich Felker <dalias@aerifal.cx>.
34874 2012-06-26  Bruno Haible  <bruno@clisp.org>
34876         argp, regex: Ensure strcasecmp gets declared.
34877         * lib/argp-help.c: Include <strings.h>.
34878         * lib/regex_internal.h: Likewise.
34879         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34881 2012-06-24  Bruno Haible  <bruno@clisp.org>
34883         ptsname_r: Make it consistent with ptsname on AIX.
34884         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34885         implementation as for OSF/1.
34886         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34887         a pty master.
34889         ptsname_r: Make it consistent with ptsname on OSF/1.
34890         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34891         OSF/1.
34893 2012-06-24  Bruno Haible  <bruno@clisp.org>
34895         ttyname_r: Fix result on OSF/1, Solaris.
34896         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34898 2012-06-24  Bruno Haible  <bruno@clisp.org>
34900         ptsname_r: Add support for Solaris.
34901         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34902         Solaris.
34904         ptsname_r: Fix test failure on native Windows.
34905         * modules/ptsname_r (Depends-on): Add isatty.
34907         ptsname_r: Fix test failures on IRIX, Solaris.
34908         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34909         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34910         accordingly.
34911         * lib/ptsname_r.c: Include <fcntl.h>.
34912         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34913         set errno if fd is invalid.
34914         * tests/test-isatty.c (main): Update comments.
34916 2012-06-24  Bruno Haible  <bruno@clisp.org>
34918         ptsname test: Extend test.
34919         * tests/test-ptsname.c: Include <errno.h>.
34920         (main): Test behaviour with invalid file descriptor.
34922 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34924         time: fix obsolete comment
34925         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34926         reference to HAVE_STRUCT_TIMESPEC in comment.
34928 2012-06-23  Bruno Haible  <bruno@clisp.org>
34930         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34932         does not handle abbreviated long options with equivalent
34933         disambiguations, set gl_replace_getopt to yes.
34934         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34936 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34938         time_r: fix typo that always overrode localtime_r decl
34939         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34940         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34941         not in a standard include.
34943 2012-06-22  Bruno Haible  <bruno@clisp.org>
34945         Write "Mac OS X" instead of "MacOS X".
34946         * README: Write "Mac OS X" instead of "MacOS X".
34947         * build-aux/bootstrap: Likewise.
34948         * build-aux/install-reloc: Likewise.
34949         * lib/acl-internal.h: Likewise.
34950         * lib/acl_entries.c: Likewise.
34951         * lib/argp-ba.c: Likewise.
34952         * lib/argp-pv.c: Likewise.
34953         * lib/config.charset: Likewise.
34954         * lib/copy-acl.c: Likewise.
34955         * lib/csharpexec.c: Likewise.
34956         * lib/euidaccess.c: Likewise.
34957         * lib/fbufmode.c: Likewise.
34958         * lib/fflush.c: Likewise.
34959         * lib/file-has-acl.c: Likewise.
34960         * lib/filemode.h: Likewise.
34961         * lib/fpurge.c: Likewise.
34962         * lib/freadable.c: Likewise.
34963         * lib/freadahead.c: Likewise.
34964         * lib/freading.c: Likewise.
34965         * lib/freadptr.c: Likewise.
34966         * lib/freadseek.c: Likewise.
34967         * lib/fseeko.c: Likewise.
34968         * lib/fseterr.c: Likewise.
34969         * lib/fsusage.c: Likewise.
34970         * lib/fwritable.c: Likewise.
34971         * lib/fwriting.c: Likewise.
34972         * lib/get-rusage-as.c: Likewise.
34973         * lib/get-rusage-data.c: Likewise.
34974         * lib/getdomainname.c: Likewise.
34975         * lib/idpriv-drop.c: Likewise.
34976         * lib/idpriv-droptemp.c: Likewise.
34977         * lib/localcharset.c: Likewise.
34978         * lib/locale.in.h: Likewise.
34979         * lib/localename.c: Likewise.
34980         * lib/mbsrtowcs-state.c: Likewise.
34981         * lib/nproc.c: Likewise.
34982         * lib/passfd.c: Likewise.
34983         * lib/posix_openpt.c: Likewise.
34984         * lib/printf-parse.c: Likewise.
34985         * lib/progreloc.c: Likewise.
34986         * lib/safe-read.h: Likewise.
34987         * lib/safe-write.h: Likewise.
34988         * lib/sched.in.h: Likewise.
34989         * lib/set-mode-acl.c: Likewise.
34990         * lib/signal.in.h: Likewise.
34991         * lib/stdint.in.h: Likewise.
34992         * lib/stdio-impl.h: Likewise.
34993         * lib/stdlib.in.h: Likewise.
34994         * lib/strtod.c: Likewise.
34995         * lib/sys_select.in.h: Likewise.
34996         * lib/tcgetsid.c: Likewise.
34997         * lib/unistd.in.h: Likewise.
34998         * lib/unlockpt.c: Likewise.
34999         * lib/vasnprintf.c: Likewise.
35000         * lib/vma-iter.c: Likewise.
35001         * lib/wcsrtombs-state.c: Likewise.
35002         * m4/acl.m4: Likewise.
35003         * m4/acosl.m4: Likewise.
35004         * m4/asinl.m4: Likewise.
35005         * m4/atanl.m4: Likewise.
35006         * m4/c-stack.m4: Likewise.
35007         * m4/cosl.m4: Likewise.
35008         * m4/expl.m4: Likewise.
35009         * m4/extensions.m4: Likewise.
35010         * m4/fdatasync.m4: Likewise.
35011         * m4/fmal.m4: Likewise.
35012         * m4/frexp.m4: Likewise.
35013         * m4/frexpf.m4: Likewise.
35014         * m4/frexpl.m4: Likewise.
35015         * m4/fsusage.m4: Likewise.
35016         * m4/getdomainname.m4: Likewise.
35017         * m4/getloadavg.m4: Likewise.
35018         * m4/getopt.m4: Likewise.
35019         * m4/gettext.m4: Likewise.
35020         * m4/gnulib-common.m4: Likewise.
35021         * m4/intdiv0.m4: Likewise.
35022         * m4/intlmacosx.m4: Likewise.
35023         * m4/largefile.m4: Likewise.
35024         * m4/ldexpl.m4: Likewise.
35025         * m4/link-follow.m4: Likewise.
35026         * m4/locale-ar.m4: Likewise.
35027         * m4/locale-fr.m4: Likewise.
35028         * m4/locale-ja.m4: Likewise.
35029         * m4/locale-tr.m4: Likewise.
35030         * m4/locale-zh.m4: Likewise.
35031         * m4/locale_h.m4: Likewise.
35032         * m4/lock.m4: Likewise.
35033         * m4/logl.m4: Likewise.
35034         * m4/mathfunc.m4: Likewise.
35035         * m4/minus-zero.m4: Likewise.
35036         * m4/mktime.m4: Likewise.
35037         * m4/mmap-anon.m4: Likewise.
35038         * m4/multiarch.m4: Likewise.
35039         * m4/nanosleep.m4: Likewise.
35040         * m4/nocrash.m4: Likewise.
35041         * m4/poll.m4: Likewise.
35042         * m4/printf-frexpl.m4: Likewise.
35043         * m4/printf.m4: Likewise.
35044         * m4/signbit.m4: Likewise.
35045         * m4/sinl.m4: Likewise.
35046         * m4/sqrtl.m4: Likewise.
35047         * m4/strerror_r.m4: Likewise.
35048         * m4/tanl.m4: Likewise.
35049         * m4/threadlib.m4: Likewise.
35050         * m4/ttyname_r.m4: Likewise.
35051         * m4/unlink.m4: Likewise.
35052         * m4/visibility.m4: Likewise.
35053         * m4/wcwidth.m4: Likewise.
35054         * tests/minus-zero.h: Likewise.
35055         * tests/test-alloca-opt.c: Likewise.
35056         * tests/test-copy-acl.sh: Likewise.
35057         * tests/test-copy-file.sh: Likewise.
35058         * tests/test-fdatasync.c: Likewise.
35059         * tests/test-file-has-acl.sh: Likewise.
35060         * tests/test-flock.c: Likewise.
35061         * tests/test-fsync.c: Likewise.
35062         * tests/test-localename.c: Likewise.
35063         * tests/test-malloca.c: Likewise.
35064         * tests/test-nonblocking-pipe.h: Likewise.
35065         * tests/test-nonblocking-socket.h: Likewise.
35066         * tests/test-openpty.c: Likewise.
35067         * tests/test-posix_openpt.c: Likewise.
35068         * tests/test-ptsname.c: Likewise.
35069         * tests/test-ptsname_r.c: Likewise.
35070         * tests/test-sameacls.c: Likewise.
35071         * tests/test-select.h: Likewise.
35072         * tests/test-set-mode-acl.sh: Likewise.
35073         * tests/test-snprintf-posix.h: Likewise.
35074         * tests/test-sprintf-posix.h: Likewise.
35075         * tests/test-strtod.c: Likewise.
35076         * tests/test-time.c: Likewise.
35077         * tests/test-vasnprintf-posix.c: Likewise.
35078         * tests/test-vasprintf-posix.c: Likewise.
35079         * doc/acl-resources.txt: Likewise.
35080         * doc/**/*.texi: Likewise.
35081         Reported by Max Horn <max@quendi.de>.
35083 2012-06-22  Bruno Haible  <bruno@clisp.org>
35085         grantpt: Relax requirement regarding invalid file descriptors.
35086         * lib/grantpt.c: Don't include <fcntl.h>.
35087         (grantpt): Don't verify the validity of the file descriptor.
35088         * modules/grantpt (Depends-on): Remove fcntl-h.
35089         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
35090         file descriptors.
35091         * doc/posix-functions/grantpt.texi: Document more platforms on which
35092         grantpt succeeds for invalid file descriptors.
35093         Reported by Rich Felker <dalias@aerifal.cx>.
35095 2012-06-22  Bruno Haible  <bruno@clisp.org>
35097         fbufmode test: Don't test unportable behaviour.
35098         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
35099         (main): Invoke it three times.
35100         Reported by Szabolcs Nagy <nsz@port70.net>
35101         and Rich Felker <dalias@aerifal.cx>.
35103 2012-06-21  Bruno Haible  <bruno@clisp.org>
35105         gnulib-tool: Refactor inctests variable.
35106         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
35107         (func_modules_transitive_closure,
35108         func_modules_transitive_closure_separately,
35109         func_import, func_create_testdir): Update.
35111         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
35112         * gnulib-tool: Accept option --without-tests.
35113         (func_usage): Document --without-tests option. Rearrange.
35114         (inctests): Normalize according to the mode.
35115         * NEWS: Mention the change.
35116         Suggested by Simon Josefsson.
35118 2012-06-21  Bruce Korb  <bkorb@gnu.org>
35120         parse-duration test: Avoid spurious output.
35121         * tests/test-parse-duration.sh: Reindent with leading tabs.
35123 2012-06-21  Jim Meyering  <meyering@redhat.com>
35125         maint: disable the strncpy prohibition
35126         * cfg.mk: Do not prohibit strncpy here.
35128 2012-06-21  Bruno Haible  <bruno@clisp.org>
35130         nonblocking: Avoid compilation error on mingw64.
35131         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
35132         fscanf.
35133         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
35134         * modules/vfscanf (configure.ac): Likewise.
35135         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
35136         definition only if stdio.h has prepared it.
35137         Reported by Daniel P. Berrange <berrange@redhat.com>.
35139 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
35141         gnulib-tool: Use readlink if it is available.
35142         * gnulib-tool (func_readlink): Choose function more appropriately.
35144 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35146         posixtm-tests: port to buggy compiler
35147         Problem reported by Simon Josefsson in
35148         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
35149         * modules/posixtm-tests (Depends-on): Add stdint.
35150         * tests/test-posixtm.c (struct posixtm_test.t_expected):
35151         Now of type int_least64_t, not int64_t, both because that's
35152         what INT64_C returns and because int_least64_t works even
35153         on 72-bit hosts.
35154         (T): Use INT64_C on constants outside the traditional int range,
35155         to work around compiler bug noted by Simon.
35157         mktime: fix integer overflow in 'configure'-time test
35158         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
35159         after integer overflow.  Problem reported by Rich Felker in
35160         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
35161         Also, don't look for further instances of a bug if we've already
35162         found one instance; this helps 'configure' run faster.
35164 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
35166         tmpfile, clean-temp: Fix invocation of GetVersionEx.
35167         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
35168         GetVersionEx correctly.
35169         * lib/clean-temp.c (supports_delete_on_close): Likewise.
35171 2012-06-20  Bruno Haible  <bruno@clisp.org>
35173         fdopen: Allow implementations that don't reject invalid fd arguments.
35174         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
35175         succeeds.
35176         Reported by Rich Felker <dalias@aerifal.cx>.
35178 2012-06-20  Simon Josefsson  <simon@josefsson.org>
35180         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
35181         bring in LIBINTL.
35183 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35185         init.sh: do not rely on autoupated PWD
35186         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
35187         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
35188         Although Nelson's bug was not necessarily fixed by this patch,
35189         it seems wise to make the change for safety.
35190         * tests/init.sh (path_prepend_): Do not rely on PWD updating
35191         automagically after 'cd'; this is not reliable on older shells.
35192         (setup_): Fail if we cannot cd to temporary directory.
35194 2012-06-19  Bruno Haible  <bruno@clisp.org>
35196         stat, fstat: Avoid warnings on mingw64.
35197         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
35198         redefining.
35199         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
35200         Reported by Daniel P. Berrange <berrange@redhat.com>.
35202 2012-06-19  Bruno Haible  <bruno@clisp.org>
35204         stdioext: Add support for musl libc.
35206         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
35207         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
35209         * m4/fseterr.m4: New file.
35210         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
35211         function exists.
35212         * modules/fseterr (Files): Add m4/fseterr.m4.
35213         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
35214         __fseterr does not exist.
35215         (Makefile.am): Remove fseterr.c from lib_SOURCES.
35217         * lib/freadable.h: Update comment.
35219         * lib/fwritable.h: Update comment.
35221         * lib/freading.h: Update comment.
35223         * lib/fwriting.h: Update comment.
35225         * m4/freadahead.m4: New file.
35226         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
35227         that function exists.
35228         * modules/freadahead (Files): Add m4/freadahead.m4.
35229         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
35230         __freadahead does not exist.
35231         (Makefile.am): Remove freadahead.c from lib_SOURCES.
35233         * m4/freadptr.m4: New file.
35234         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
35235         function exists.
35236         * modules/freadptr (Files): Add m4/freadptr.m4.
35237         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
35238         __freadptr does not exist.
35239         (Makefile.am): Remove freadptr.c from lib_SOURCES.
35241         * m4/freadseek.m4: New file.
35242         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
35243         exists.
35244         * modules/freadseek (Files): Add m4/freadseek.m4.
35245         (configure.ac): Invoke gl_FUNC_FREADSEEK.
35247         * lib/fpurge.c (fpurge): Update comment.
35249         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
35251 2012-06-19  Bruno Haible  <bruno@clisp.org>
35253         *printf-posix: Put more info into config.log.
35254         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
35255         exit code into config.log.
35257 2012-06-19  Bruno Haible  <bruno@clisp.org>
35259         getopt-gnu: Fix exit code overflow in autoconf test.
35260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
35261         to keep them below < 128.
35263 2012-06-17  Jim Meyering  <meyering@redhat.com>
35265         maint.mk: fix typo in code to derive GPG key at release time
35266         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
35268 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
35270         regex: avoid warning when pointers are not long
35271         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
35272         and uintptr_t, not long, for portability to hosts where pointers and
35273         long have different sizes.  Issue noted by Daniel P. Berrange in
35274         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
35275         and fix suggested by Bruno Haible in
35276         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
35278 2012-06-17  Bruno Haible  <bruno@clisp.org>
35280         dummy: Relicense into the public domain.
35281         * modules/dummy (License): Set to "public domain".
35282         Suggested by Reuben Thomas.
35284 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35286         announce-gen: VPATH issues
35287         * build-aux/announce-gen (--srcdir): New option, used to trim the
35288         $srcdir part of the path from $builddir to NEWS.
35289         * top/maint.mk (announcement): Adjust.
35291 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35293         gnu-web-doc-update: VPATH builds
35294         * build-aux/gnu-web-doc-update (--builddir): New option.
35295         Revamp the handling of options.
35296         Prefer $(...) to `...`.
35297         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
35298         the template, and it is GNU mktemp specific.
35299         Prefer set -e to long series of &&.
35300         Restore the initial git branch, not "master".
35301         Properly initialize submodules (don't rely only on bootstrap).
35302         Do not reconfigure blindly, use config.status.
35303         * top/README-release: Update instructions for gnu-web-doc-update.
35305 2012-06-11  Jim Meyering  <meyering@redhat.com>
35307         maint.mk: revert most of the previous change re "all these"
35308         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
35309         For rationale, see the discussion at
35310         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
35312 2012-06-10  Karl Berry  <karl@gnu.org>
35314         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
35316         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
35318 2012-06-10  Bruce Korb  <bkorb@gnu.org>
35320         parse-duration: Relicense under LGPLv2+.
35321         * modules/parse-duration (License): Change to LGPLv2+.
35323 2012-06-10  Jim Meyering  <meyering@redhat.com>
35325         maint.mk: prohibit common grammar error: "all these"
35326         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
35327         the list of prohibited word sequences.  It should be "all of these".
35328         * lib/tempname.c (__gen_tempname): Fix one of them.
35330 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35332         do-release-commit-and-tag: support VPATH builds
35333         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
35334         (noteworthy): Defined earlier to factor its value.
35335         (noteworthy_stub): New.
35336         Use it to factor.
35337         (help_version): Split into...
35338         (help, version): these.
35339         Adjust the option processing part.
35340         Support "--option=value" in addition to "--option value".
35341         (builddir): New.
35342         (--builddir): New option.
35343         * top/README-release: Document this.
35344         Reword slightly so that the reader cannot understand that he
35345         has to do these steps before calling do-release-commit-and-tag.
35347 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35349         readme-release: also require announce-gen and maintainer-makefile
35350         * modules/readme-release (Depends-on): here.
35351         * modules/announce-gen, modules/do-release-commit-and-tag,
35352         modules/gnu-web-doc-update, modules/maintainer-makefile
35353         (Description): Point to readme-release.
35355 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35357         maint.mk: fix VPATH issues.
35358         * top/maint.mk (news-check): GNU Make understand $< very well.
35359         (release-prep): NEWS is in $(srcdir).
35361 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
35363         readme-release: require the promoted modules.
35364         * modules/readme-release (Depends-on): Add
35365         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
35366         in this text.
35368 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35369             Bruno Haible  <bruno@clisp.org>
35371         error, strerror-override: Support mingw64 from Fedora 17.
35372         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
35373         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
35374         EINPROGRESS.
35375         * lib/strerror-override.h (strerror_override): Test it.
35376         * lib/strerror-override.c (strerror_override): Likewise.
35377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
35379 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35380             Bruno Haible  <bruno@clisp.org>
35382         error, strerror-override: Support mingw64 from Fedora 17.
35383         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
35384         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
35385         * lib/strerror-override.h (strerror_override): Test it.
35386         * lib/strerror-override.c (strerror_override): Likewise.
35388 2012-06-03  Bruno Haible  <bruno@clisp.org>
35390         error, strerror-override: Support new errno values from POSIX:2008.
35391         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
35392         ENOTRECOVERABLE.
35393         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
35394         platforms.
35395         * lib/strerror-override.c (strerror_override): Conditionalize the
35396         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
35397         * lib/strerror-override.h (strerror_override): Declare also if
35398         GNULIB_defined_EOWNERDEAD is defined.
35399         * tests/test-errno.c (e130, e131): New variables.
35400         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
35401         ENOTRECOVERABLE.
35402         Reported by Paolo Bonzini.
35404 2012-05-31  Jim Meyering  <meyering@redhat.com>
35406         savewd: add missing dependency on sys_wait module
35407         * modules/savewd (Depends-on): Add sys_wait, needed at least
35408         for MSVC.  Report and suggested change by Michael Goffioul.
35410 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35412         system-quote-tests: port to CentOS 5
35413         Problem reported by Tom G. Christensen in
35414         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
35415         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
35417 2012-05-29  Jim Meyering  <meyering@redhat.com>
35419         maint: fix typos in comments and ChangeLog
35420         Culprits identified and fixed mostly automatically using these commands:
35421         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
35422         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
35423         using http://github.com/lyda/misspell-check
35424         * ChangeLog: Fix typos.
35425         * doc/solaris-versions: Likewise.
35426         * lib/regexec.c (re_search_stub): Likewise.
35427         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35429 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
35431         manywarnings: remove duplicate -Wmultichar entry
35432         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
35433         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
35434         so keep the entry marked as documented.
35436 2012-05-27  Karl Berry  <karl@gnu.org>
35438         * config/srclist.txt (mktime.c): remove last libc sync,
35439         perhaps just temporarily.
35441 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
35443         regex: don't assume uint64_t or uint32_t
35444         * lib/regcomp.c (init_word_char): Don't assume that the types
35445         uint64_t and uint32_t exist.  The C standard doesn't guarantee
35446         them, and on some 32-bit compilers there is no uint64_t.
35447         Problem reported by Gianluigi Tiesi in
35448         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
35450 2012-05-25  Jim Meyering  <meyering@redhat.com>
35452         maint.mk: add strncpy-prohibiting syntax-check rule
35453         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
35455 2012-05-24  Jim Meyering  <meyering@redhat.com>
35457         maint.mk: compute $(gpg_key_ID) more portably
35458         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
35459         That use of sed is not portable to some fringe systems.
35460         Reported by Paul Eggert in
35461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
35463 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35465         mktime: sync from glibc
35466         * config/srclist.txt: Uncomment mktime.c.
35467         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
35468         First, indent with tabs, since glibc uses tabs and doesn't want to
35469         change and we'd rather be identical to glibc.  Also, two small
35470         coding changes:
35471         (isdst_differ): Use &&, not &, as && is the usual style.
35472         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
35473         for clarity.
35475 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35477         announce-gen: du -h is more portable than du --human
35478         * build-aux/announce-gen (sizes): Invoke du with -h instead
35479         of --human.  Accept leading white space in its output.
35481 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35483         announce-gen: Improve diagnostics.
35484         * build-aux/announce-gen: When parsing command line options,
35485         prefer "announce-gen: option --release-type requires an argument"
35486         to "Option release-type requires an argument".
35488 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35490         maint.mk: gpg_key_ID: use sed more portably
35491         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
35492         the closing brace.
35493         (refresh-po): Fuse two sed invocations into one.
35495 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
35497         gitlog-to-changelog: support the log message format used in Bison.
35498         * build-aux/gitlog-to-changelog: Support --strip-tab and
35499         --strip-cherry-picked.
35501 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35503         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
35504         the rest of the current time slice to another thread in the current
35505         process. So if the thread that feeds the file decscriptor we're
35506         polling is not in the current process, we get busy-waiting.
35507         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
35508         Patch from Theodore Leblond.
35509         * lib/select.c: Split polling out of the loop that sets the output
35510         fd_sets.  Check for zero result and loop if the wait timeout is
35511         infinite.
35513 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35515         select: Fix build error on IRIX 6.5.
35516         * lib/select.c: Include stddef.h for NULL.
35518 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35520         gc: fix libgcrypt detection on older machines.
35521         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
35522         copyright years because the file has been distributed every year
35523         since it was created.
35525 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35527         crypto: fix bug in large buffer handling
35528         Problem reported by Serge Belyshev for glibc in
35529         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
35530         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
35531         * lib/md4.c (md4_process_block):
35532         * lib/md5.c (md5_process_block):
35533         * lib/sha1.c (sha1_process_block):
35534         * lib/sha256.c (sha256_process_block):
35535         Don't assume the buffer length is less than 2**32.
35536         * lib/sha512.c (sha512_process_block): Likewise.
35537         Here, the bug is present only in the rare case where the host does
35538         not support uint64_t or where size_t is wider than 64 bits.
35539         Use u64size to work around the problems.
35540         * lib/u64.h (u64size): New macro.
35542 2012-05-15  Pádraig Brady  <P@draigBrady.com>
35544         fsusage: fix block size returned on older Linux 2.6
35546         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
35547         which is available since Linux 2.6.
35548         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
35549         when the member is available so it can be used as a fallback.
35550         * doc/posix-functions/statvfs.texi: Mention the hang issue
35551         on Linux < 2.6.36.
35553 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35555         bootstrap: suppress stderr chatter
35556         * build-aux/bootstrap (insert_sorted_if_absent, main program):
35557         Omit unnecessary chatter to stderr.  The main program chatter
35558         was there only inadvertantly.
35560         bootstrap: .gitignore files created by autopoint, libtool
35561         I ran into this problem when bootstrapping the latest diffutils.
35562         After './bootstrap', 'git status' reported lots of untracked files
35563         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
35564         autopoint and do not need to be version-controlled.
35565         * build-aux/bootstrap: Put into .gitignore the files that
35566         autopoint and libtool create, by keeping track of files that exist
35567         after but not before these programs are run.
35568         (version_controlled_file): Move up.  2nd arg is now full file
35569         name, not base name; this is more convenient.  Put CVS at the end,
35570         as it's now somewhat deprecated.
35572 2012-05-14  Jim Meyering  <meyering@redhat.com>
35574         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
35575         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
35576         definition.  Reported by Bruno Haible.
35578 2012-05-13  Bruno Haible  <bruno@clisp.org>
35579             Paul Eggert  <eggert@cs.ucla.edu>
35581         binary-io: Define set_binary_mode function.
35582         * lib/binary-io.h (set_binary_mode): New function.
35583         (SET_BINARY): Define in terms of set_binary_mode.
35584         * modules/binary-io (configure.ac): Require AC_C_INLINE.
35585         * tests/test-binary-io.c (main): Accept an argument, and test either
35586         set_binary_mode or SET_BINARY depending on the argument.
35587         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
35588         argument. Clean up also t-bin-out0.tmp.
35590 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
35592         bootstrap: take advantage of POSIX shell features
35594         The 'bootstrap' script offered by Gnulib script already uses POSIX
35595         shell features (like $((...)) arithmetic expansions) that are not
35596         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
35597         means that bootstrap must already be run using a proper POSIX shell,
35598         which will thus provide more features, like ${var#pattern} parameter
35599         expansion or inversion of a command exit status with '!'.  We can
35600         thus use these features to improve the clarity and the performances
35601         of the bootstrap script.
35603         Suggested by Eric Blake.
35605         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
35606         of sed/expr plus command substitutions, to save some forks.  While
35607         we are at it, prefer the POSIX $(...) form of command substitution,
35608         rather than the legacy form `...` (since the former is visually
35609         clearer and interacts better with quoting), and prefer the idiom:
35610           "if ! CMD; then ACTION ..."
35611         over the idiom:
35612           "if CMD; then :; else ACTION ..."
35613         which was required by legacy Bourne shells not supporting '!'.
35615 2012-05-12  Bruno Haible  <bruno@clisp.org>
35617         system-quote: Add more comments.
35618         * lib/system-quote.h: Add more comments about wilcards and limitations.
35619         Suggested by Eli Zaretskii <eliz@gnu.org>.
35621         sh-quote, system-quote: Add comments about wildcards.
35622         * lib/sh-quote.h: Clarify what happens with wildcard characters.
35623         * lib/system-quote.h: Likewise.
35624         Reported by Eli Zaretskii <eliz@gnu.org>.
35626 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35628         fsusage: check for GNU/Linux statvfs problem dynamically
35629         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
35630         Define STAT_STATFS2_BSIZE too, since in this case the code now
35631         checks dynamically whether statvfs is reliable, falling back on
35632         Linux-style statfs otherwise.
35633         (statvfs_works): New function, for dynamically testing statvfs.
35634         (get_fs_usage) [STAT_STATVFS]: Use it.
35635         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
35636         statvfs on GNU/Linux hosts, since it's now done dynamically.
35638 2012-05-10  Bruno Haible  <bruno@clisp.org>
35640         system-quote, execute, spawn-pipe: Escape '?' on Windows.
35641         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
35642         '?' character.
35643         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
35644         * tests/test-system-quote-main.c (check_all): Check also strings like
35645         "??????????".
35646         Reported by Eli Zaretskii <eliz@gnu.org>.
35648 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35650         _Noreturn: port config.h to gcc -Wundef
35651         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
35652         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
35653         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
35655 2012-05-10  Bruno Haible  <bruno@clisp.org>
35657         system-quote: Refactor.
35658         * lib/system-quote.h (system_quote_copy): Fix comment.
35659         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35660         New functions, extracted from system_quote_copy.
35661         (system_quote_length, system_quote_copy): Use these functions.
35662         Reported by Paul Eggert.
35664 2012-05-08  Bruno Haible  <bruno@clisp.org>
35666         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35667         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35669 2012-05-08  Bruno Haible  <bruno@clisp.org>
35671         Tests for module 'system-quote'.
35672         * modules/system-quote-tests: New file.
35673         * tests/test-system-quote.sh: New file.
35674         * tests/test-system-quote-main.c: New file.
35675         * tests/test-system-quote-child.c: New file.
35677         New module 'system-quote'.
35678         * lib/system-quote.h: New file.
35679         * lib/system-quote.c: New file.
35680         * modules/system-quote: New file.
35682 2012-05-08  Bruno Haible  <bruno@clisp.org>
35684         sh-quote: Make C++ safe and allow multiple inclusion.
35685         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35686         declarations in extern "C".
35688 2012-05-08  Bruno Haible  <bruno@clisp.org>
35690         sh-quote tests: Make tests stricter.
35691         * tests/test-sh-quote.c (check_one): Check the return value of
35692         shell_quote_copy.
35693         (main): Check a string with a CR character. Check a string that
35694         contains UCHAR_MAX.
35696 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35698         warnings.m4: provide a means to specify the program to compile.
35699         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35700         (gl_WARN_ADD): here.
35701         Use gl_AS_VAR_APPEND.
35702         Support an argument to specify the program to compile.
35703         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35704         AC_SUBST the WARN_CFLAGS when they are used.
35705         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35706         leave this to gl_WARN_ADD.
35708 2012-05-08  Eric Blake  <eblake@redhat.com>
35710         doc: recommendations on gettext version
35711         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
35712         choice between versions.
35713         * DEPENDENCIES (gettext): Cover both approaches.
35715 2012-05-08  Jim Meyering  <meyering@redhat.com>
35717         init.sh: explain why EXEEXT support uses aliases rather than functions
35718         * tests/init.sh: Add a comment.
35720         init.sh: don't let bash aliases interfere with tests
35721         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
35722         is bash.  This avoids problems for those who alias standard commands to
35723         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
35724         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
35726 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35728         stdint: be more consistent with glibc, SunOS libc
35729         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
35730         (gl_int_fast16_t, gl_uint_fast16_t)
35731         (gl_int_fast32_t, gl_uint_fast32_t)
35732         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
35733         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
35734         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35735         Be consistent with glibc by default, and with SunOS 5.10 and later
35736         if __sun is defined.  This lessens the likelihood of clashes if
35737         code compiled for older hosts is combined with code compiled for
35738         newer ones.  Problem reported by Niels Möller in
35739         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
35741 2012-05-07  Eric Blake  <eblake@redhat.com>
35743         isatty: relax license to LGPLv2+
35744         * modules/isatty (License): Relax license.
35746 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35748         stat-size: comment fix
35749         * lib/stat-size.h: Remove obsolete comment about indenting.
35751 2012-05-06  Bruno Haible  <bruno@clisp.org>
35753         Tests for module 'sh-quote'.
35754         * modules/sh-quote-tests: New file.
35755         * tests/test-sh-quote.c: New file.
35757 2012-05-06  Bruno Haible  <bruno@clisp.org>
35759         sh-quote: Improve shell_quote_argv's signature.
35760         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
35761         * lib/sh-quote.c (shell_quote_argv): Likewise.
35763 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35765         stdint: document issues with int_fast8_t etc.
35766         * doc/posix-headers/stdint.texi (stdint.h): Say that other
35767         stdint.h substitutes may define these types differently.  See
35768         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
35770 2012-05-05  Bruno Haible  <bruno@clisp.org>
35772         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
35773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
35774         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
35775         or 'guessing no (mishandles large arguments)'.
35777 2012-05-05  Bruno Haible  <bruno@clisp.org>
35779         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35780         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
35781         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35782         set gl_cv_func_link_follows_symlink to "guessing no".
35784 2012-05-05  Bruno Haible  <bruno@clisp.org>
35786         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
35787         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
35788         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
35789         "guessing no".
35790         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
35792 2012-05-05  Bruno Haible  <bruno@clisp.org>
35794         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
35795         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
35796         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35797         set gl_cv_struct_dirent_d_ino to "guessing yes".
35799 2012-05-05  Bruno Haible  <bruno@clisp.org>
35801         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
35802         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
35803         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35804         "guessing yes".
35806 2012-05-05  Bruno Haible  <bruno@clisp.org>
35808         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35809         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35810         compiling to a glibc system, set gl_cv_func_signbit and
35811         gl_cv_func_signbit_gcc to "guessing yes".
35813 2012-05-05  Bruno Haible  <bruno@clisp.org>
35815         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35816         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35817         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35818         to "guessing yes".
35819         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35820         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35822 2012-05-05  Bruno Haible  <bruno@clisp.org>
35824         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35825         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35826         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35827         gl_cv_func_realpath_works to "guessing yes".
35829 2012-05-05  Bruno Haible  <bruno@clisp.org>
35831         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35832         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35833         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35835 2012-05-04  Bruno Haible  <bruno@clisp.org>
35837         Tweak last commit.
35838         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35839         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35841 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35843         unistd_h: make it easier to avoid sys_types_h
35844         This is useful for Emacs, which has its own method of porting to
35845         Windows, and which therefore does not need the sys_types_h module.
35846         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35847         code moved here from gl_SYS_TYPES_H.
35848         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35849         using the code directly.
35850         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35851         gl_SYS_TYPES_H.
35852         * modules/sys_types (Files):
35853         * modules/unistd (Files): Add m4/off_t.m4.
35855 2012-05-03  Bruno Haible  <bruno@clisp.org>
35857         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35858         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35859         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35860         "guessing yes" or "guessing no".
35861         (gl_FUNC_LSTAT): Update.
35862         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35863         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35864         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35866 2012-05-03  Bruno Haible  <bruno@clisp.org>
35868         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35869         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35870         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35871         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35872         cross-compiling, choose the first alternative on glibc systems.
35873         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35875 2012-05-03  Bruno Haible  <bruno@clisp.org>
35877         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35878         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35879         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35881 2012-05-03  Bruno Haible  <bruno@clisp.org>
35883         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35884         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35886 2012-05-03  Bruno Haible  <bruno@clisp.org>
35888         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35889         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35890         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35891         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35892         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35893         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35894         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35895         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35896         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35897         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35898         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35899         gl_cv_func_chown_ctime_works to "guessing yes".
35900         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35901         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35902         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35903         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35904         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35906         compiling to glibc systems, set gl_cv_func_open_directory_works to
35907         "guessing yes".
35908         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35909         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35910         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35911         "guessing yes".
35912         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35913         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35914         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35915         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35916         "guessing yes".
35917         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35918         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35919         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35920         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35921         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35922         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35923         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35924         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35925         "guessing yes".
35926         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35927         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35928         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35929         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35930         "guessing yes".
35931         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35932         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35933         "guessing yes".
35934         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35935         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35936         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35937         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35938         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35939         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35940         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35941         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35942         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35943         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35944         "guessing yes".
35945         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35946         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35947         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35948         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35949         "guessing yes".
35950         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35951         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35952         "guessing yes".
35953         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35954         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35955         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35956         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35957         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35958         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35959         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35960         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35961         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35962         "guessing yes".
35963         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35964         compiling to glibc systems, set gl_cv_func_mknod_works to
35965         "guessing yes".
35966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35967         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35968         "guessing yes".
35969         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35970         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35971         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35972         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35973         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35974         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35975         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35976         compiling to glibc systems, set gl_cv_func_svid_putenv to
35977         "guessing yes".
35978         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35979         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35980         "guessing yes".
35981         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35982         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35983         "guessing yes".
35984         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35985         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35986         to "guessing yes".
35987         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35988         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35989         to "guessing yes".
35990         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35991         compiling to glibc systems, set gl_cv_func_rmdir_works to
35992         "guessing yes".
35993         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35994         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35995         gl_cv_func_unlink_parent_fails to "guessing yes".
35996         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35997         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35998         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35999         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
36000         gl_cv_func_rename_dest_works to "guessing yes".
36001         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
36002         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
36003         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
36004         compiling to glibc systems, set gl_cv_func_roundf_ieee to
36005         "guessing yes".
36006         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
36007         compiling to glibc systems, set gl_cv_func_roundl_ieee to
36008         "guessing yes".
36009         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
36010         compiling to glibc systems, set gl_cv_func_setenv_works to
36011         "guessing yes".
36012         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
36013         compiling to glibc systems, set gl_cv_func_unsetenv_works to
36014         "guessing yes".
36015         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
36016         compiling to glibc systems, set gl_cv_func_sleep_works to
36017         "guessing yes".
36018         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
36019         compiling to glibc systems, set gl_cv_func_stat_file_slash to
36020         "guessing yes".
36021         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
36022         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
36023         "guessing yes".
36024         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
36025         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
36026         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
36027         compiling to glibc systems, set gl_cv_func_truncf_ieee to
36028         "guessing yes".
36029         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
36030         compiling to glibc systems, set gl_cv_func_truncl_ieee to
36031         "guessing yes".
36032         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
36033         compiling to glibc systems, set gl_cv_func_usleep_works to
36034         "guessing yes".
36035         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
36036         compiling to glibc systems, set gl_cv_func_futimesat_works to
36037         "guessing yes".
36039 2012-05-03  Bruno Haible  <bruno@clisp.org>
36041         Say "guessing yes" or "guessing no" when cross-compiling.
36042         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
36043         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
36044         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
36045         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
36046         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
36047         am_cv_func_working_getline to "guessing yes" or "guessing no".
36048         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
36049         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
36050         (gl_FUNC_MEMMEM): When cross-compiling, set
36051         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
36052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
36053         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
36054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
36055         set gl_cv_func_strcasestr_works_always to "guessing yes" or
36056         "guessing no".
36057         (gl_FUNC_STRCASESTR): When cross-compiling, set
36058         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
36059         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
36060         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
36061         (gl_FUNC_STRSTR): When cross-compiling, set
36062         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
36063         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
36064         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
36065         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
36066         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
36068 2012-05-01  Bruno Haible  <bruno@clisp.org>
36070         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
36071         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
36072         * build-aux/reloc-ldflags: Likewise.
36073         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
36075 2012-05-01  Bruno Haible  <bruno@clisp.org>
36077         gnulib-tool: Remove transitional code.
36078         * gnulib-tool: Don't warn about --import with 0 arguments any more.
36079         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36081 2012-05-01  Bruno Haible  <bruno@clisp.org>
36083         getcwd: Fix misindentation.
36084         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
36086 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36088         exclude: process exclude and include directives in order
36089         This restores the pre-2009 behavior, and is part of a fix of a
36090         grep bug reported by Quentin Arce in
36091         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
36092         * lib/exclude.c (struct exclude): Remove 'tail' member.
36093         (new_exclude_segment): Prepend the new segment instead of appending.
36094         Return void, since that's now more convenient.
36095         (file_pattern_matches): Renamed from excluded_file_pattern_p.
36096         (file_name_matches): Renamed from excluded_file_name_p.
36097         (file_pattern_matches, file_name_matches):
36098         Return true if the pattern matches, not if it excludes.
36099         All callers changed.
36100         (excluded_file_name): Process the list in reverse order;
36101         since the list is now reversed this restores the pre-2009 behavior.
36102         (add_exclude): Adjust to new reversed-order list.  Use local var
36103         rather than macro, for clarity.
36104         * tests/test-exclude7.sh: Adjust to corrected behavior.
36106         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
36107         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
36108         it's not possible here.  Handle the case of \ at end of pattern
36109         without dumping core.
36110         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
36112         _Noreturn: future-proof non-GNU and non-MSVC compilers
36113         * build-aux/snippet/_Noreturn.h (_Noreturn):
36114         * m4/gnulib-common.m4 (gl_COMMON_BODY):
36115         Do not define _Noreturn if __STDC_VERSION__ indicates this is
36116         C11 or later.  This is more likely to work with random future C
36117         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
36118         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
36120         exclude: handle wildcards with FNM_EXTMATCH
36121         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
36122         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
36123         comment that "has wildcards" really means "has or may have
36124         wildcards".  Simplify by avoiding the need to call strcspn.
36126 2012-04-29  Bruno Haible  <bruno@clisp.org>
36128         gnulib-tool: Fix list of authors.
36129         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
36131 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
36133         bootstrap: support Automake-NG in $buildreq
36134         * bootstrap (check_versions): Handle automake and aclocal from
36135         Automake-NG specially.  They can be specified as respectively
36136         the "automake-ng" and "aclocal-ng" requirements.
36138 2012-04-25  Eric Blake  <eblake@redhat.com>
36140         bootstrap: only force latest Makefile.in.in for gettext module
36141         * build-aux/bootstrap (with_gettext): Only install latest
36142         Makefile.in.in for projects requesting bleeding edge gettext.
36144 2012-04-22  Bruno Haible  <bruno@clisp.org>
36146         doc: Mention reason for replacement on glibc/Linux systems.
36147         * doc/posix-functions/dprintf.texi: Mention the problem with special
36148         'long double' values.
36149         * doc/posix-functions/fprintf.texi: Likewise.
36150         * doc/posix-functions/printf.texi: Likewise.
36151         * doc/posix-functions/snprintf.texi: Likewise.
36152         * doc/posix-functions/sprintf.texi: Likewise.
36153         * doc/posix-functions/vdprintf.texi: Likewise.
36154         * doc/posix-functions/vfprintf.texi: Likewise.
36155         * doc/posix-functions/vprintf.texi: Likewise.
36156         * doc/posix-functions/vsnprintf.texi: Likewise.
36157         * doc/posix-functions/vsprintf.texi: Likewise.
36158         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
36159         platforms with F_DUPFD_CLOEXEC problems.
36160         * doc/posix-functions/glob.texi: Mention which platforms are affected
36161         by the problem with symbolic links.
36162         * doc/posix-functions/linkat.texi: Mention the problem with
36163         AT_SYMLINK_FOLLOW on Linux.
36165 2012-04-22  Bruno Haible  <bruno@clisp.org>
36167         pwrite: Don't replace on all platforms.
36168         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
36170 2012-04-22  Bruno Haible  <bruno@clisp.org>
36172         rint* tests: Avoid gcc warnings.
36173         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
36174         * tests/test-rintf.c (INFINITY, NAN): Likewise.
36175         * tests/test-rintl.c (INFINITY, NAN): Likewise.
36177 2012-04-21  Bruno Haible  <bruno@clisp.org>
36179         users.txt: Update.
36180         * users.txt: Add freedink, wdiff. Update URLs for projects that have
36181         switched from CVS to git, bzr, or svn.
36183 2012-04-21  Bruno Haible  <bruno@clisp.org>
36185         Large File Support for native Windows platforms.
36187         * m4/largefile.m4 (gl_LARGEFILE): New macro.
36188         * modules/largefile (configure.ac): Require gl_LARGEFILE.
36190         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
36191         type.
36192         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
36193         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
36194         * doc/posix-headers/sys_types.texi: Mention the effect of the
36195         'largefile' module.
36197         * lib/fcntl.in.h: Add comments about off_t.
36198         * modules/fcntl-h (Depends-on): Add sys_types.
36200         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
36201         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
36202         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
36203         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
36204         * modules/unistd (Depends-on): Add sys_types.
36205         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
36207         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
36208         instead of lseek.
36209         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
36210         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
36211         * modules/lseek (Depends-on): Add sys_types.
36213         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
36214         msvc-nothrow.h.
36215         (SetFileSize): New function.
36216         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
36217         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
36218         if Large File Support is requested.
36219         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
36220         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
36222         * lib/stdio.in.h: Add comments about off_t.
36223         * modules/stdio (Depends-on): Add sys_types.
36225         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
36226         instead of ftello.
36227         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
36228         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
36229         (gl_PREREQ_FTELLO): New macro.
36230         * modules/ftello (Depends-on): Add sys_types.
36231         (configure.ac): Incoke gl_PREREQ_FTELLO.
36233         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
36234         instead of fseeko.
36235         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
36236         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
36237         (gl_PREREQ_FSEEKO): New macro.
36238         * modules/fseeko (Depends-on): Add sys_types.
36239         (configure.ac): Invoke gl_PREREQ_FSEEKO.
36241         * lib/sys_stat.in.h: Add comments about off_t.
36242         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
36243         64-bit integer for st_size in 'struct stat'.
36244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
36245         Define _GL_WINDOWS_64_BIT_ST_SIZE.
36246         * modules/sys_stat (Depends-on): Add sys_types.
36247         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
36249         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
36250         instead of stat or _stat.
36252         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
36253         'struct _stati64' instead of fstat and 'struct stat'.
36254         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
36255         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
36257         Reported by Ray Satiro <raysatiro@yahoo.com>.
36259 2012-04-19  Eric Blake  <eblake@redhat.com>
36261         bootstrap: accommodate older libtool
36262         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
36263         Reported by Daniel P. Berrange.
36265 2012-04-19  Jim Meyering  <meyering@redhat.com>
36267         announce-gen: avoid failure due to lack of Digest::SHA1
36268         Even with the preferred Digest::SHA available, this script
36269         would fail when the backup module, Digest::SHA1, was not installed.
36270         * build-aux/announce-gen: Quote the conditional use of "use".
36271         Reported by Reuben Thomas in:
36272         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
36274         bootstrap: don't let a user's CDPATH setting affect this script
36275         When CDPATH is set, cd will sometimes generate output.
36276         When "cd" is run in a subshell whose output matters, that
36277         surprising-to-some output can cause malfunction.
36278         Unsetting CDPATH turns off this shell "feature."
36279         * build-aux/bootstrap (CDPATH): Unset.
36280         Reported by Reuben Thomas in:
36281         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
36282         and inspired by his patch here:
36283         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
36285 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
36286         and Jim Meyering  <meyering@redhat.com>
36288         maint.mk: catch "see @xref{}" and similar
36289         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
36290         prohibit "See also @xref{", "Also see @pxref{", and similar.
36292 2012-04-16  Jim Meyering  <meyering@redhat.com>
36294         bootstrap: really use gnulib's po/Makefile.in.in
36295         * build-aux/bootstrap: Correct the source file name in previous change.
36296         Reported by Akim Demaille.
36298         configmake: correct minor inconsistency in Makefile rule
36299         * modules/configmake (Makefile.am): All other rules like this one
36300         run the final "mv -f ..." in the same backslash-continued command
36301         as the one that does everything else.  This one put the mv -f ...
36302         command on a separate, non-backslash-continued line.
36303         Make it like the others.
36305         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
36306         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
36307         the one from gettext.  Reported by Akim Demaille.
36309 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
36311         Fix recursion of install-* into po directories.
36312         Bison's install-pdf bug reported by Hans Aberg at
36313         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
36314         * build-aux/po/Makefile.in.in (install-dvi, install-html)
36315         (install-info, install-pdf, install-ps): New targets.
36317 2012-04-16  Jim Meyering  <meyering@redhat.com>
36319         maint: avoid spurious "make sc_maint" failure
36320         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
36321         exempt all *.class file names, for lib/javaversion.class.
36323 2012-04-15  Bruno Haible  <bruno@clisp.org>
36325         lseek: Make configure test independent of environment.
36326         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
36327         Windows, we know that lseek() on pipes is broken; skip the runtime
36328         test.
36330 2012-04-14  Bruno Haible  <bruno@clisp.org>
36332         stat: Bypass buggy override in mingw64.
36333         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
36334         * lib/stat.c (stat) [mingw64]: Define to _stat.
36335         * doc/posix-functions/stat.texi: Mention mingw64 bug.
36337 2012-04-14  Bruno Haible  <bruno@clisp.org>
36339         pathmax: Fix compilation error on MSVC 9.
36340         * modules/pathmax (Depends-on): Add unistd.
36342 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
36344         README: document pointer comparison assumption
36345         * README (Portability guidelines): Document assumption about
36346         pointer comparisons, in response to a recent bug-gnulib comment by
36347         Jeffrey Kegler.
36349 2012-04-12  Bruno Haible  <bruno@clisp.org>
36351         Tests for module 'getrusage'.
36352         * modules/getrusage-tests: New file.
36353         * tests/test-getrusage.c: New file.
36355         New module 'getrusage'.
36356         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
36357         warn-on-use.h.
36358         (getrusage): New declaration.
36359         * lib/getrusage.c: New file.
36360         * m4/getrusage.m4: New file.
36361         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
36362         is declared.
36363         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
36364         HAVE_GETRUSAGE.
36365         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
36366         snippet/c++defs, snippet/warn-on-use.
36367         (Makefile.am): Update generation of sys/resource.h. Substitute
36368         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
36369         * modules/getrusage: New file.
36370         * doc/posix-functions/getrusage.texi: Mention the new module.
36372 2012-04-12  Bruno Haible  <bruno@clisp.org>
36374         Tests for module 'sys_resource'.
36375         * modules/sys_resource-tests: New file.
36376         * tests/test-sys_resource.c: New file.
36378         New module 'sys_resource'.
36379         * lib/sys_resource.in.h: New file.
36380         * m4/sys_resource_h.m4: New file.
36381         * modules/sys_resource: New file.
36382         * doc/posix-headers/sys_resource.texi: Mention the new module.
36384 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
36386         ioctl: Fix compilation error on mingw.
36387         * lib/ioctl.c: Include <windows.h>.
36388         Also reported by Ray Satiro <raysatiro@yahoo.com>.
36390 2012-04-04  Jim Meyering  <meyering@redhat.com>
36392         regex: correct #pragma guard expression
36393         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
36394         not 4.3.  Correct its cpp guard expression.
36396 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36398         regex: remove unnecessary type punning
36399         Problem reported by Vladimir Serbinenko in
36400         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
36401         * lib/regex.h (struct re_pattern_buffer): Change the type of
36402         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
36403         Fix comment to match code.
36404         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
36405         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
36406         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36407         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
36408         (set_regs):
36409         Omit no-longer-necessary casts.
36411 2012-04-03  Bruno Haible  <bruno@clisp.org>
36413         Tests for module 'ilogbl'.
36414         * modules/ilogbl-tests: New file.
36415         * tests/test-ilogbl.c: New file.
36417         New module 'ilogbl'.
36418         * lib/math.in.h (ilogbl): New declaration.
36419         * lib/ilogbl.c: New file.
36420         * m4/ilogbl.m4: New file.
36421         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
36422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
36423         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
36424         Split sed invocation, to avoid the limit of 100 substitutions of
36425         HP-UX 'sed'.
36426         * modules/ilogbl: New file.
36427         * tests/test-math-c++.cc: Check the declaration of ilogbl.
36428         * doc/posix-functions/ilogbl.texi: Mention the new module.
36430 2012-04-03  Bruno Haible  <bruno@clisp.org>
36432         Tests for module 'ilogbf'.
36433         * modules/ilogbf-tests: New file.
36434         * tests/test-ilogbf.c: New file.
36436         New module 'ilogbf'.
36437         * lib/math.in.h (ilogbf): New declaration.
36438         * lib/ilogbf.c: New file.
36439         * m4/ilogbf.m4: New file.
36440         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
36441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
36442         REPLACE_ILOGBF.
36443         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
36444         REPLACE_ILOGBF.
36445         * modules/ilogbf: New file.
36446         * tests/test-math-c++.cc: Check the declaration of ilogbf.
36447         * doc/posix-functions/ilogbf.texi: Mention the new module.
36449 2012-04-03  Bruno Haible  <bruno@clisp.org>
36451         Tests for module 'ilogb'.
36452         * modules/ilogb-tests: New file.
36453         * tests/test-ilogb.c: New file.
36454         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
36455         tests/test-logb-ieee.h.
36457         New module 'ilogb'.
36458         * lib/math.in.h (ilogb): New declaration.
36459         * lib/ilogb.c: New file.
36460         * m4/ilogb.m4: New file.
36461         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
36462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
36463         REPLACE_ILOGB.
36464         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
36465         REPLACE_ILOGB.
36466         * modules/ilogb: New file.
36467         * tests/test-math-c++.cc: Check the declaration of ilogb.
36468         * doc/posix-functions/ilogb.texi: Mention the new module.
36470 2012-04-03  Bruno Haible  <bruno@clisp.org>
36472         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
36473         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
36474         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
36475         (main): Check their values.
36476         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
36477         problem.
36479 2012-04-03  Bruno Haible  <bruno@clisp.org>
36481         Tests for module 'logbl-ieee'.
36482         * modules/logbl-ieee-tests: New file.
36483         * tests/test-logbl-ieee.c: New file.
36485         New module 'logbl-ieee'.
36486         * modules/logbl-ieee: New file.
36488         Tests for module 'logb-ieee'.
36489         * modules/logb-ieee-tests: New file.
36490         * tests/test-logb-ieee.c: New file.
36492         New module 'logb-ieee'.
36493         * modules/logb-ieee: New file.
36495         Tests for module 'logbf-ieee'.
36496         * modules/logbf-ieee-tests: New file.
36497         * tests/test-logbf-ieee.c: New file.
36498         * tests/test-logb-ieee.h: New file.
36500         New module 'logbf-ieee'.
36501         * modules/logbf-ieee: New file.
36503 2012-04-03  Bruno Haible  <bruno@clisp.org>
36505         Tests for module 'logbl'.
36506         * modules/logbl-tests: New file.
36507         * tests/test-logbl.c: New file.
36509         New module 'logbl'.
36510         * lib/math.in.h (logbl): New declaration.
36511         * lib/logbl.c: New file.
36512         * m4/logbl.m4: New file.
36513         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
36514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
36515         REPLACE_LOGBL.
36516         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
36517         REPLACE_LOGBL.
36518         * modules/logbl: New file.
36519         * tests/test-math-c++.cc: Check the declaration of logbl.
36520         * doc/posix-functions/logbl.texi: Mention the new module.
36522 2012-04-02  Bruno Haible  <bruno@clisp.org>
36524         Tests for module 'logbf'.
36525         * modules/logbf-tests: New file.
36526         * tests/test-logbf.c: New file.
36528         New module 'logbf'.
36529         * lib/math.in.h (logbf): New declaration.
36530         * lib/logbf.c: New file.
36531         * m4/logbf.m4: New file.
36532         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
36533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
36534         REPLACE_LOGBF.
36535         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
36536         REPLACE_LOGBF.
36537         * modules/logbf: New file.
36538         * tests/test-math-c++.cc: Check the declaration of logbf.
36539         * doc/posix-functions/logbf.texi: Mention the new module.
36541 2012-04-02  Bruno Haible  <bruno@clisp.org>
36543         logb tests: More tests.
36544         * tests/test-logb.h: New file, based on tests/test-logb.c and
36545         tests/test-frexp.h.
36546         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
36547         (main): Just invoke test_function.
36548         * modules/logb-tests (Files): Add tests/test-logb.h,
36549         tests/minus-zero.h, tests/randomd.c.
36550         (Makefile.am): Add randomd.c to test_logb_SOURCES.
36552         logb: Provide replacement and workarounds.
36553         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
36554         is 1.
36555         * lib/logb.c: New file.
36556         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
36557         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
36558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
36559         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
36560         * modules/logb (Files): Add lib/logb.c.
36561         (Depends-on): Add isfinite, frexp, isnand.
36562         (configure.ac): Compile the replacement code logb.c if needed.
36563         * tests/test-math-c++.cc: Check the declaration of logb.
36564         * doc/posix-functions/logb.texi: Mention the replacement and the bug
36565         with subnormal numbers.
36567 2012-04-02  Bruno Haible  <bruno@clisp.org>
36569         log10* tests: Speed up.
36570         * tests/test-log10.h (test_function): Reduce amount of random numbers
36571         to test.
36573 2012-04-01  Bruno Haible  <bruno@clisp.org>
36575         logf-ieee: Fix test whether logf works.
36576         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
36578 2012-04-01  Bruno Haible  <bruno@clisp.org>
36580         log10l: Work around log10l-ieee test failure on IRIX 6.5.
36581         * lib/log10l.c: Include <float.h>
36582         (log10l): On IRIX, normalize the +Infinity value.
36583         * modules/log10l (Depends-on): Add 'float'.
36584         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
36585         +Infinity.
36587         log10f-ieee: Work around test failure on NetBSD 5.1.
36588         * m4/log10f-ieee.m4: New file.
36589         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
36590         test whether log10f works with a negative argument. Replace it if not.
36591         * lib/log10f.c (log10f): For negative arguments, return NaN.
36592         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
36593         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
36594         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
36596         log10f-ieee: Work around test failure on Solaris 9.
36597         * modules/log10f-ieee (Depends-on): Add log10-ieee.
36598         (configure.ac): Require gl_FUNC_LOG10F.
36600         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36601         * m4/log10-ieee.m4: New file.
36602         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
36603         whether log10 works with a negative argument. Replace it if not.
36604         * lib/log10.c (log10): For negative arguments, return NaN.
36605         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
36606         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
36607         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
36609         Tests for module 'log10l-ieee'.
36610         * modules/log10l-ieee-tests: New file.
36611         * tests/test-log10l-ieee.c: New file.
36613         New module 'log10l-ieee'.
36614         * modules/log10l-ieee: New file.
36616         Tests for module 'log10-ieee'.
36617         * modules/log10-ieee-tests: New file.
36618         * tests/test-log10-ieee.c: New file.
36620         New module 'log10-ieee'.
36621         * modules/log10-ieee: New file.
36623         Tests for module 'log10f-ieee'.
36624         * modules/log10f-ieee-tests: New file.
36625         * tests/test-log10f-ieee.c: New file.
36626         * tests/test-log10-ieee.h: New file.
36628         New module 'log10f-ieee'.
36629         * modules/log10f-ieee: New file.
36631 2012-04-01  Bruno Haible  <bruno@clisp.org>
36633         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
36634         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
36635         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
36636         workaround.
36637         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
36638         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
36639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
36640         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
36641         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
36642         (Depends-on): Update conditions.
36643         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
36644         IRIX 6.5, OSF/1 5.1 problems.
36646 2012-04-01  Bruno Haible  <bruno@clisp.org>
36648         log10f: Work around OSF/1 5.1 bug.
36649         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
36650         * lib/log10f.c (log10f): If logf exists, use it and provide just the
36651         workaround.
36652         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
36653         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
36654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
36655         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
36656         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
36657         (Depends-on): Update conditions.
36658         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
36660 2012-04-01  Bruno Haible  <bruno@clisp.org>
36662         log10: Work around OSF/1 5.1 bug.
36663         * lib/math.in.h (log10): New declaration.
36664         * lib/log10.c: New file.
36665         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36666         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36667         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36669         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36670         * modules/log10 (Files): Add lib/log10.c.
36671         (Depends-on): Add math.
36672         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36673         * tests/test-math-c++.cc: Check the declaration of log10.
36674         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36676 2012-03-31  Bruno Haible  <bruno@clisp.org>
36678         log10l tests: More tests.
36679         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36680         tests/minus-zero.h, tests/randoml.c.
36681         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36682         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36683         (main): Invoke test_function.
36685         log10f tests: More tests.
36686         * modules/log10f-tests (Files): Add tests/test-log10.h,
36687         tests/minus-zero.h, tests/randomf.c.
36688         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36689         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36690         (main): Invoke test_function.
36692         log10 tests: More tests.
36693         * tests/test-log10.h: New file.
36694         * modules/log10-tests (Files): Add tests/test-log10.h,
36695         tests/minus-zero.h, tests/randomd.c.
36696         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36697         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36698         (main): Invoke test_function.
36700 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36702         fflush: Fix syntax error.
36703         * lib/fflush.c: Include unused-parameter.h, needed for
36704         _GL_UNUSED_PARAMETER.
36705         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36707 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36709         regex: pacify GCC when compiling GRUB
36710         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
36711         a diagnostic.  Reported by Vladimir Serbinenko in
36712         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
36714 2012-03-29  Eric Blake  <eblake@redhat.com>
36716         stdio: don't assume gets any more
36717         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
36718         support.
36719         * modules/stdio (Makefile.am): Likewise.
36720         * lib/stdio-read.c (gets): Likewise.
36721         * tests/test-stdio-c++.cc: Likewise.
36722         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
36723         * lib/stdio.in.h (gets): Make warning occur in more places.
36724         * doc/posix-functions/gets.texi (gets): Update documentation.
36725         Reported by Christer Solskogen.
36727         maint.mk: fix syntax checks without exclusions
36728         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
36729         Reported by Daniel P. Berrange.
36731         strerror_r: avoid compiler warning
36732         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
36733         level.
36735         fflush: avoid compiler warning
36736         * lib/fflush.c (update_fpos_cache): Mark variables that are
36737         potentially unused.
36739 2012-03-25  Bruno Haible  <bruno@clisp.org>
36741         Tests for module 'localeconv'.
36742         * modules/localeconv-tests: New file.
36743         * tests/test-localeconv.c: New file.
36745         New module 'localeconv'.
36746         * lib/locale.in.h (localeconv): New declaration.
36747         * lib/localeconv.c: New file.
36748         * m4/localeconv.m4: New file.
36749         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
36750         REPLACE_LOCALECONV.
36751         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
36752         REPLACE_LOCALECONV.
36753         * modules/localeconv: New file.
36754         * modules/nl_langinfo (Depends-on): Add localeconv.
36755         * modules/human (Depends-on): Likewise.
36756         * doc/posix-functions/localeconv.texi: Mention the new module.
36758 2012-03-25  Bruno Haible  <bruno@clisp.org>
36760         locale: Provide a complete 'struct lconv'.
36761         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36762         'struct lconv' does not contain int_p_cs_precedes.
36763         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36764         * doc/posix-headers/locale.texi: Update.
36766         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
36767         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
36768         * doc/posix-headers/locale.texi: Update.
36770         locale: Provide a working 'struct lconv'.
36771         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
36772         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36773         'struct lconv' does not even contain decimal_point.
36774         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
36775         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
36776         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36777         * doc/posix-headers/locale.texi: Mention the problems with
36778         'struct lconv'.
36779         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
36781 2012-03-24  Bruno Haible  <bruno@clisp.org>
36783         Enable common subexpression optimization in GCC.
36784         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
36785         macros.
36786         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
36787         GCC attribute 'const'.
36788         (uc_locale_language): Declare with GCC attribute 'pure'.
36789         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
36790         with GCC attribute 'const'.
36791         * lib/unictype.in.h (uc_is_general_category_withtable,
36792         uc_combining_class, uc_combining_class_name,
36793         uc_combining_class_long_name, uc_bidi_class_name,
36794         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
36795         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
36796         uc_decimal_value, uc_digit_value, uc_numeric_value,
36797         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
36798         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
36799         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
36800         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
36801         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
36802         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
36803         Declare with GCC attribute 'const'.
36804         (uc_general_category_name, uc_general_category_long_name,
36805         uc_general_category_byname, uc_general_category,
36806         uc_is_general_category, uc_combining_class_byname,
36807         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36808         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36809         Declare with GCC attribute 'pure'.
36810         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36811         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36812         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36813         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36814         with GCC attribute 'pure'.
36815         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36816         'const'.
36817         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36818         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36819         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36820         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36821         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36822         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36823         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36824         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36825         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36826         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36827         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36828         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36829         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36830         GCC attribute 'pure'.
36831         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36832         'const'.
36833         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36834         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36835         u32_strwidth): Declare with GCC attribute 'pure'.
36837         Enable common subexpression optimization in GCC.
36838         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36839         (alphasort): Declare with GCC attribute 'pure'.
36840         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36841         (atoll): Declare with GCC attribute 'pure'.
36842         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36843         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36844         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36845         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36846         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36847         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36848         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36850 2012-03-24  Bruno Haible  <bruno@clisp.org>
36852         gnulib-tool: Avoid unintended error output from 'cmp'.
36853         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36854         "cmp -s", not "cmp > /dev/null".
36856 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36858         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36860         It's not just Automake versions < 1.9b that creates an empty
36861         pkgdatadir at installation time if pkgdata_DATA is specified
36862         to empty; modern automake versions do this as well, at least
36863         until automake 1.11.4 (not yet released at the moment of writing,
36864         but soon to appear).  That behaviour was generally considered a
36865         feature rather than a bug, at least until this discussion:
36866         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36868         See also automake bugs #10997 and #11030.
36870         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36871         reference to relevant automake bug numbers.
36872         (func_emit_tests_Makefile_am): Likewise.
36874 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36876         announce-gen: use Digest::SHA when possible
36877         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36878         back to Digest::SHA1 if necessary.
36880 2012-03-20  Jim Meyering  <meyering@redhat.com>
36882         tests: avoid gcc warnings about argv vs. const initializers
36883         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36884         warnings about discarding 'const' qualifier from pointer target type.
36885         * tests/test-posix_spawn2.c (main): Likewise.
36887 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36889         README-release: simplify slightly
36890         * top/README-release: Run "git checkout master" only once.
36892 2012-03-15  Mark Wielaard  <mark@klomp.org>
36894         git-merge-changelog: add specific example on how to use with hg.
36895         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36897 2012-03-18  Mark Wielaard  <mark@klomp.org>
36899         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36901 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36903         git-version-gen: don't let "prefix" envvar cause trouble
36904         * build-aux/git-version-gen (prefix): Initialize properly,
36905         so as not to use a value specified via the environment.
36906         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36908 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36910         regex: diagnose too-large repeat counts in EREs
36911         Previously, the code did not diagnose the too-large repeat count
36912         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36913         as if it were 'b\{1000000000}', which is unexpected.
36914         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36915         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36916         is a reasonable one for this problem.  Another option would be to
36917         create a new REG_OVERFLOW error for repeat counts that are too large.
36918         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36919         count is too large, so that the caller can distinguish the two cases.
36920         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36921         "Too large" return code, and that repeat counts are one example of this.
36923 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36925         doc: some glibc x32 integer width issues
36926         * doc/posix-headers/sys_types.texi (sys/types.h):
36927         * doc/posix-headers/time.texi (time.h):
36928         Mention that glibc x32 does not conform to POSIX in a couple of
36929         areas related to integer widths.
36931 2012-03-15  Bruno Haible  <bruno@clisp.org>
36933         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36934         * lib/fma.c (VOLATILE): New macro.
36935         (FUNC): Use it to work around a GCC compiler bug.
36937 2012-03-13  Bruno Haible  <bruno@clisp.org>
36939         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36940         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36941         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36942         REPLACE_HYPOTL to 1.
36943         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36945 2012-03-13  Bruno Haible  <bruno@clisp.org>
36947         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36948         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36949         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36950         REPLACE_REMAINDERL to 1.
36951         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36952         bug.
36954 2012-03-13  Bruno Haible  <bruno@clisp.org>
36956         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36957         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36958         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36959         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36960         too big rounding errors.
36961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36962         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36963         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36964         (Depends-on): Update conditions.
36965         * tests/test-sqrtl.c (my_ldexpl): New function.
36966         (main): Add test of a particular value.
36967         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36969 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36971         doc: Update timer_* platform portability notes.
36972         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36973         that always return ENOSYS.
36974         * doc/posix-functions/timer_delete.texi: Likewise.
36975         * doc/posix-functions/timer_gettime.texi: Likewise.
36976         * doc/posix-functions/timer_settime.texi: Likewise.
36978 2012-03-13  Bruno Haible  <bruno@clisp.org>
36980         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36981         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36982         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36983         REPLACE_CBRTL to 1.
36984         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36986 2012-03-13  Bruno Haible  <bruno@clisp.org>
36988         remainderl: Avoid compilation error on AIX >= 5.2.
36989         * lib/math.in.h (remainderl): Undefine macro from the system header.
36991 2012-03-13  Bruno Haible  <bruno@clisp.org>
36993         Avoid compilation errors with MSVC option -fp:strict.
36994         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36995         * lib/cbrtf.c: Likewise.
36996         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36998 2012-03-12  Bruno Haible  <bruno@clisp.org>
37000         uninorm: Don't crash in out-of-memory conditions.
37001         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
37002         gracefully.
37003         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
37004         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
37006 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
37008         quote: fix syntax-check
37009         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
37010         also exports quote_quoting_options.
37012 2012-03-12  Simon Josefsson  <simon@josefsson.org>
37014         Collapse list of copyright years to ranges.  See
37015         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
37016         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
37017         build-aux/csharpexec.sh.in, build-aux/gnupload,
37018         build-aux/install-reloc, build-aux/javacomp.sh.in,
37019         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
37020         build-aux/move-if-change, build-aux/reloc-ldflags,
37021         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
37023 2012-03-11  Bruno Haible  <bruno@clisp.org>
37025         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37026         * m4/log2f-ieee.m4: New file.
37027         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
37028         whether log2f works with a minus zero argument. Replace it if not.
37029         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
37030         (Depends-on): Add log2-ieee.
37031         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
37032         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
37034         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37035         * m4/log2-ieee.m4: New file.
37036         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
37037         whether log2 works with a minus zero argument. Replace it if not.
37038         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
37039         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
37040         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
37042         Tests for module 'log2l-ieee'.
37043         * modules/log2l-ieee-tests: New file.
37044         * tests/test-log2l-ieee.c: New file.
37046         New module 'log2l-ieee'.
37047         * modules/log2l-ieee: New file.
37049         Tests for module 'log2-ieee'.
37050         * modules/log2-ieee-tests: New file.
37051         * tests/test-log2-ieee.c: New file.
37053         New module 'log2-ieee'.
37054         * modules/log2-ieee: New file.
37056         Tests for module 'log2f-ieee'.
37057         * modules/log2f-ieee-tests: New file.
37058         * tests/test-log2f-ieee.c: New file.
37059         * tests/test-log2-ieee.h: New file.
37061         New module 'log2f-ieee'.
37062         * modules/log2f-ieee: New file.
37064 2012-03-11  Bruno Haible  <bruno@clisp.org>
37066         Tests for module 'log2l'.
37067         * modules/log2l-tests: New file.
37068         * tests/test-log2l.c: New file.
37070         New module 'log2l'.
37071         * lib/math.in.h (log2l): New declaration.
37072         * lib/log2l.c: New file.
37073         * m4/log2l.m4: New file.
37074         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
37075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
37076         REPLACE_LOG2L.
37077         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
37078         REPLACE_LOG2L.
37079         * modules/log2l: New file.
37080         * tests/test-math-c++.cc: Check the declaration of log2l.
37081         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
37082         and OSF/1 problems.
37084 2012-03-11  Bruno Haible  <bruno@clisp.org>
37086         Tests for module 'log2f'.
37087         * modules/log2f-tests: New file.
37088         * tests/test-log2f.c: New file.
37090         New module 'log2f'.
37091         * lib/math.in.h (log2f): New declaration.
37092         * lib/log2f.c: New file.
37093         * m4/log2f.m4: New file.
37094         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
37095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
37096         REPLACE_LOG2F.
37097         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
37098         REPLACE_LOG2F.
37099         * modules/log2f: New file.
37100         * tests/test-math-c++.cc: Check the declaration of log2f.
37101         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
37102         and OSF/1 and Cygwin problems.
37104 2012-03-11  Bruno Haible  <bruno@clisp.org>
37106         Tests for module 'log2'.
37107         * modules/log2-tests: New file.
37108         * tests/test-log2.c: New file.
37109         * tests/test-log2.h: New file.
37111         New module 'log2'.
37112         * lib/math.in.h (log2): New declaration.
37113         * lib/log2.c: New file.
37114         * m4/log2.m4: New file.
37115         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
37116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
37117         REPLACE_LOG2.
37118         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
37119         REPLACE_LOG2.
37120         * modules/log2: New file.
37121         * tests/test-math-c++.cc: Check the declaration of log2.
37122         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
37123         and OSF/1 and Cygwin problems.
37125 2012-03-11  Bruno Haible  <bruno@clisp.org>
37127         exp2* tests: More tests.
37128         * tests/test-exp2.h (test_function): Test all integral arguments that
37129         don't need to overflow or denormalized numbers.
37130         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
37131         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
37132         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
37134 2012-03-10  Bruno Haible  <bruno@clisp.org>
37136         log1pl-ieee: Work around test failure on AIX 7.1.
37137         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
37139         log1pl-ieee: Work around test failure on IRIX 6.5.
37140         * m4/log1pl-ieee.m4: New file.
37141         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
37142         test whether log1pl works with a minus zero argument. Replace it if
37143         not.
37144         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
37145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
37146         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
37147         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
37148         (Depends-on): Update conditions.
37149         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37150         m4/signbit.m4.
37151         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
37152         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
37154         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
37155         * m4/log1pf-ieee.m4: New file.
37156         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
37157         test whether log1pf works with a minus zero argument. Replace it if
37158         not.
37159         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
37160         m4/signbit.m4.
37161         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
37162         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
37164         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
37165         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
37166         (configure.ac): Require gl_FUNC_LOG1PF.
37168         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
37169         * m4/log1p-ieee.m4: New file.
37170         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
37171         whether log1p works with a minus zero argument. Replace it if not.
37172         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
37173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
37174         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
37175         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
37176         (Depends-on): Update conditions.
37177         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37178         m4/signbit.m4.
37179         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
37180         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
37182         Tests for module 'log1pl-ieee'.
37183         * modules/log1pl-ieee-tests: New file.
37184         * tests/test-log1pl-ieee.c: New file.
37186         New module 'log1pl-ieee'.
37187         * modules/log1pl-ieee: New file.
37189         Tests for module 'log1p-ieee'.
37190         * modules/log1p-ieee-tests: New file.
37191         * tests/test-log1p-ieee.c: New file.
37193         New module 'log1p-ieee'.
37194         * modules/log1p-ieee: New file.
37196         Tests for module 'log1pf-ieee'.
37197         * modules/log1pf-ieee-tests: New file.
37198         * tests/test-log1pf-ieee.c: New file.
37199         * tests/test-log1p-ieee.h: New file.
37201         New module 'log1pf-ieee'.
37202         * modules/log1pf-ieee: New file.
37204 2012-03-10  Bruno Haible  <bruno@clisp.org>
37206         Tests for module 'log1pl'.
37207         * modules/log1pl-tests: New file.
37208         * tests/test-log1pl.c: New file.
37210         New module 'log1pl'.
37211         * lib/math.in.h (log1pl): New declaration.
37212         * lib/log1pl.c: New file.
37213         * m4/log1pl.m4: New file.
37214         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
37215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
37216         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
37217         * modules/log1pl: New file.
37218         * tests/test-math-c++.cc: Check the declaration of log1pl.
37219         * doc/posix-functions/log1pl.texi: Mention the new module.
37221 2012-03-10  Bruno Haible  <bruno@clisp.org>
37223         Tests for module 'log1pf'.
37224         * modules/log1pf-tests: New file.
37225         * tests/test-log1pf.c: New file.
37227         New module 'log1pf'.
37228         * lib/math.in.h (log1pf): New declaration.
37229         * lib/log1pf.c: New file.
37230         * m4/log1pf.m4: New file.
37231         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
37232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
37233         REPLACE_LOG1PF.
37234         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
37235         REPLACE_LOG1PF.
37236         * modules/log1pf: New file.
37237         * tests/test-math-c++.cc: Check the declaration of log1pf.
37238         * doc/posix-functions/log1pf.texi: Mention the new module.
37240 2012-03-10  Bruno Haible  <bruno@clisp.org>
37242         log1p tests: More tests.
37243         * tests/test-log1p.h: New file.
37244         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
37245         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
37246         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
37247         (main): Invoke test_function.
37249         log1p: Provide replacement for Minix and MSVC.
37250         * lib/math.in.h (log1p): New declaration.
37251         * lib/log1p.c: New file.
37252         * m4/log1p.m4: New file.
37253         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
37254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
37255         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
37256         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
37257         (Depends-on): Add math, isnand, log, round.
37258         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
37259         HAVE_LOG1P is 0.
37260         * tests/test-math-c++.cc: Check the declaration of log1p.
37261         * doc/posix-functions/log1p.texi: Mention the replacement.
37263 2012-03-10  Bruno Haible  <bruno@clisp.org>
37265         math tests: Small simplification.
37266         * tests/test-exp.h (test_function): Use the same err_bound for
37267         'double' on platforms with sizeof (long double) == sizeof (double)
37268         than on platforms with sizeof (long double) > sizeof (double).
37269         * tests/test-exp2.h (test_function): Likewise.
37270         * tests/test-expm1.h (test_function): Likewise.
37271         * tests/test-log.h (test_function): Likewise.
37273 2012-03-10  Bruno Haible  <bruno@clisp.org>
37275         Fix some comments.
37276         * lib/expl.c: Fix an ambiguous comment.
37277         * lib/expm1.c: Likewise.
37278         * lib/expm1l.c: Likewise.
37279         * lib/exp2.c: Likewise.
37280         * lib/exp2l.c: Likewise.
37282 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
37284         regex: allow inclusion of <regex.h> before <limits.h>
37285         Without this patch, portable programs had to include <limits.h> before
37286         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
37287         I ran into this problem with a test version of GNU grep on Solaris 8.
37288         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
37289         This is done conditionally so that this change can be merged
37290         back to glibc.
37291         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
37292         using the included regex.
37294         fts: depend on fdopendir
37295         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
37296         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
37297         problem was introduced when fdopendir was split out.
37299 2012-03-10  Bruno Haible  <bruno@clisp.org>
37301         Remove unused variables.
37302         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
37303         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37305 2012-03-10  Bruno Haible  <bruno@clisp.org>
37307         isnanf-nolibm: Fix last commit.
37308         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
37310         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
37311         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
37313 2012-03-10  Bruno Haible  <bruno@clisp.org>
37315         logf-ieee: Work around test failure on NetBSD 5.1.
37316         * m4/logf-ieee.m4: New file.
37317         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
37318         whether logf works with a negative argument. Replace it if not.
37319         * lib/logf.c (logf): For negative arguments, return NaN.
37320         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
37321         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
37322         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
37324         logf-ieee: Work around test failure on Solaris 9.
37325         * modules/logf-ieee (Depends-on): Add log-ieee.
37326         (configure.ac): Require gl_FUNC_LOGF.
37328         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37329         * m4/log-ieee.m4: New file.
37330         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
37331         log works with a negative argument. Replace it if not.
37332         * lib/log.c (log): For negative arguments, return NaN.
37333         * modules/log-ieee (Files): Add m4/log-ieee.m4.
37334         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
37335         * doc/posix-functions/log.texi: Mention the log-ieee module.
37337         Tests for module 'logl-ieee'.
37338         * modules/logl-ieee-tests: New file.
37339         * tests/test-logl-ieee.c: New file.
37341         New module 'logl-ieee'.
37342         * modules/logl-ieee: New file.
37344         Tests for module 'log-ieee'.
37345         * modules/log-ieee-tests: New file.
37346         * tests/test-log-ieee.c: New file.
37348         New module 'log-ieee'.
37349         * modules/log-ieee: New file.
37351         Tests for module 'logf-ieee'.
37352         * modules/logf-ieee-tests: New file.
37353         * tests/test-logf-ieee.c: New file.
37354         * tests/test-log-ieee.h: New file.
37356         New module 'logf-ieee'.
37357         * modules/logf-ieee: New file.
37359 2012-03-10  Bruno Haible  <bruno@clisp.org>
37361         log: Fix bug introduced on 2012-03-09.
37362         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
37364 2012-03-10  Pádraig Brady  <P@draigBrady.com>
37366         timer-time: link explicitly with pthreads on glibc
37367         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37368         to support static linking, when newer glibc is
37369         detected, as that contains pthread emulation of
37370         POSIX timer functions where required.
37371         * modules/timer-time: Depend on threadlib to
37372         pull in the appropriate library to link.
37374 2012-03-10  Bruno Haible  <bruno@clisp.org>
37376         log* tests: More tests.
37377         * tests/test-log.h: New file.
37378         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
37379         (main): Invoke test_function.
37380         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
37381         (main): Invoke test_function.
37382         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
37383         (main): Invoke test_function.
37384         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37385         tests/randomd.c.
37386         (Makefile.am): Add randomd.c to test_log_SOURCES.
37387         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37388         tests/randomf.c.
37389         (Makefile.am): Add randomf.c to test_logf_SOURCES.
37390         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37391         tests/randoml.c.
37392         (Depends-on): Add 'float'.
37393         (Makefile.am): Add randoml.c to test_logl_SOURCES.
37395 2012-03-09  Bruno Haible  <bruno@clisp.org>
37397         logl: Work around OSF/1 5.1 bug.
37398         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
37399         * lib/logl.c (logl): If logl exists, use it and provide just the
37400         workaround.
37401         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
37402         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
37403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
37404         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
37405         * modules/logl (configure.ac): Consider REPLACE_LOGL.
37406         (Depends-on): Update conditions.
37407         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
37409 2012-03-09  Bruno Haible  <bruno@clisp.org>
37411         logf: Work around OSF/1 5.1 bug.
37412         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
37413         * lib/logf.c (logf): If logf exists, use it and provide just the
37414         workaround.
37415         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
37416         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
37417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
37418         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
37419         * modules/logf (configure.ac): Consider REPLACE_LOGF.
37420         (Depends-on): Update conditions.
37421         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
37423 2012-03-09  Bruno Haible  <bruno@clisp.org>
37425         log: Work around OSF/1 5.1 bug.
37426         * lib/math.in.h (log): New declaration.
37427         * lib/log.c: New file.
37428         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
37429         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
37430         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
37431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
37432         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
37433         * modules/log (Files): Add lib/log.c.
37434         (Depends-on): Add math.
37435         (configure.ac): If REPLACE_LOG is 1, compile an override.
37436         * tests/test-math-c++.cc: Check the declaration of log.
37437         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
37439 2012-03-09  Jim Meyering  <meyering@redhat.com>
37441         readtokens.c: adjust wording in a comment
37442         * lib/readtokens.c: Insert omitted "that" in a comment.
37444 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37446         modechange: add notations +40, 00440, etc.
37447         * lib/modechange.c (mode_compile): Support new notations
37448         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
37450 2012-03-08  Bruno Haible  <bruno@clisp.org>
37452         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
37453         * m4/exp2l-ieee.m4: New file.
37454         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
37455         test whether exp2l works with a NaN argument and with a negative
37456         infinity argument. Replace it if not.
37457         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
37458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
37459         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
37460         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
37461         (Depends-on): Update conditions.
37462         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
37463         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
37464         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
37466         Tests for module 'exp2l-ieee'.
37467         * modules/exp2l-ieee-tests: New file.
37468         * tests/test-exp2l-ieee.c: New file.
37470         New module 'exp2l-ieee'.
37471         * modules/exp2l-ieee: New file.
37473         Tests for module 'exp2-ieee'.
37474         * modules/exp2-ieee-tests: New file.
37475         * tests/test-exp2-ieee.c: New file.
37477         New module 'exp2-ieee'.
37478         * modules/exp2-ieee: New file.
37480         Tests for module 'exp2f-ieee'.
37481         * modules/exp2f-ieee-tests: New file.
37482         * tests/test-exp2f-ieee.c: New file.
37483         * tests/test-exp2-ieee.h: New file.
37485         New module 'exp2f-ieee'.
37486         * modules/exp2f-ieee: New file.
37488 2012-03-08  Bruno Haible  <bruno@clisp.org>
37490         Tests for module 'exp2l'.
37491         * modules/exp2l-tests: New file.
37492         * tests/test-exp2l.c: New file.
37494         New module 'exp2l'.
37495         * lib/math.in.h (exp2l): New declaration.
37496         * lib/exp2l.c: New file.
37497         * lib/expl-table.c: New file, extracted from lib/expl.c.
37498         * lib/expl.c (gl_expl_table): New declaration.
37499         (expl): Remove expl_table. Update reference.
37500         * m4/exp2l.m4: New file.
37501         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
37502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
37503         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
37504         * modules/exp2l: New file.
37505         * modules/expl (Files): Add lib/expl-table.c.
37506         (configure.ac): Compile also expl-table.c.
37507         * tests/test-math-c++.cc: Check the declaration of exp2l.
37508         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
37509         problem.
37511 2012-03-08  Bruno Haible  <bruno@clisp.org>
37513         Tests for module 'exp2f'.
37514         * modules/exp2f-tests: New file.
37515         * tests/test-exp2f.c: New file.
37517         New module 'exp2f'.
37518         * lib/math.in.h (exp2f): New declaration.
37519         * lib/exp2f.c: New file.
37520         * m4/exp2f.m4: New file.
37521         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
37522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
37523         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
37524         * modules/exp2f: New file.
37525         * tests/test-math-c++.cc: Check the declaration of exp2f.
37526         * doc/posix-functions/exp2f.texi: Mention the new module and the
37527         IRIX problem.
37529 2012-03-08  Bruno Haible  <bruno@clisp.org>
37531         Tests for module 'exp2'.
37532         * modules/exp2-tests: New file.
37533         * tests/test-exp2.c: New file.
37534         * tests/test-exp2.h: New file.
37536         New module 'exp2'.
37537         * lib/math.in.h (exp2): New declaration.
37538         * lib/exp2.c: New file.
37539         * m4/exp2.m4: New file.
37540         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
37541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
37542         REPLACE_EXP2.
37543         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
37544         REPLACE_EXP2.
37545         * modules/exp2: New file.
37546         * tests/test-math-c++.cc: Check the declaration of exp2.
37547         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
37548         and OpenBSD problems.
37550 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37552         savedir: fix comment typo
37553         * lib/savedir.c (savedirstream): Fix typo in comment.
37555 2012-03-08  Bruno Haible  <bruno@clisp.org>
37557         test-readtokens.c: use const; remove unwarranted cast
37558         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
37560 2012-03-08  Bruno Haible  <bruno@clisp.org>
37562         fmal: Avoid compilation error on AIX.
37563         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
37564         AIX 5.2..7.1.
37566 2012-03-08  Bruno Haible  <bruno@clisp.org>
37568         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
37569         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
37570         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
37571         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
37572         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
37573         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
37574         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
37576 2012-03-08  Bruno Haible  <bruno@clisp.org>
37578         remainderf: Override buggy system function on IRIX 6.5.
37579         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
37580         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
37581         when it exists.
37582         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
37584 2012-03-08  Jim Meyering  <meyering@redhat.com>
37586         test-readtokens.c: avoid const-related compilation warnings
37587         * tests/test-readtokens.c: Avoid const-related compilation warnings.
37589 2012-03-07  Jim Meyering  <meyering@redhat.com>
37590             Bruno Haible  <bruno@clisp.org>
37592         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
37593         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
37594         tests/randomd.c.
37595         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
37596         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
37597         tests/randoml.c.
37598         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
37600 2012-03-07  Bruno Haible  <bruno@clisp.org>
37602         expm1l: Avoid compilation error on AIX.
37603         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
37604         AIX 5.2..7.1.
37606 2012-03-07  Bruno Haible  <bruno@clisp.org>
37608         expm1l: Don't override undeclared system function on IRIX 6.5.
37609         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
37610         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
37611         it exists. Set HAVE_DECL_EXPM1L.
37612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
37613         HAVE_EXPM1L.
37614         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
37615         HAVE_EXPM1L.
37616         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
37618 2012-03-07  Bruno Haible  <bruno@clisp.org>
37620         remainderl: Don't override undeclared system function on IRIX 6.5.
37621         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
37622         HAVE_REMAINDERL.
37623         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
37624         declared when it exists. Set HAVE_DECL_REMAINDERL.
37625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
37626         not HAVE_REMAINDERL.
37627         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
37628         HAVE_REMAINDERL.
37629         * doc/posix-functions/remainderl.texi: Mention missing declaration
37630         problem.
37632 2012-03-07  Bruno Haible  <bruno@clisp.org>
37634         rintf: Don't override undeclared system function on IRIX 6.5.
37635         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
37636         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
37637         exists. Set HAVE_DECL_RINTF.
37638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
37639         HAVE_RINTF.
37640         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
37641         HAVE_RINTF.
37642         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
37644 2012-03-07  Bruno Haible  <bruno@clisp.org>
37646         roundl: Avoid compilation error on AIX.
37647         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
37648         AIX 5.2..7.1.
37650 2012-03-07  Bruno Haible  <bruno@clisp.org>
37652         roundl: Don't override undeclared system function on IRIX 6.5.
37653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
37654         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
37655         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37656         * modules/roundl (configure.ac): For replacement code, test
37657         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37658         (Depends-on): Update conditions.
37659         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
37661 2012-03-07  Bruno Haible  <bruno@clisp.org>
37663         roundf: Don't override undeclared system function on IRIX 6.5.
37664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
37665         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
37666         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37667         * modules/roundf (configure.ac): For replacement code, test
37668         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37669         (Depends-on): Update conditions.
37670         * modules/roundf-ieee (Depends-on): Update conditions.
37671         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37673 2012-03-07  Bruno Haible  <bruno@clisp.org>
37675         round: Don't override undeclared system function on IRIX 6.5.
37676         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37677         argument.
37678         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37679         also when it is not declared. Set HAVE_ROUND. For replacement code,
37680         test HAVE_ROUND, not HAVE_DECL_ROUND.
37681         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37682         not HAVE_DECL_ROUND.
37683         (Depends-on): Update conditions.
37684         * modules/round-ieee (Depends-on): Update conditions.
37685         * doc/posix-functions/round.texi: Mention the IRIX problem.
37687 2012-03-07  Bruno Haible  <bruno@clisp.org>
37689         copysignf: Don't override undeclared system function on IRIX 6.5.
37690         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37691         HAVE_COPYSIGNF.
37692         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37693         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37695         not HAVE_COPYSIGNF.
37696         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37697         HAVE_COPYSIGNF.
37698         * doc/posix-functions/copysignf.texi: Mention missing declaration
37699         problem.
37701 2012-03-07  Jim Meyering  <meyering@redhat.com>
37703         readtokens: add tests
37704         * modules/readtokens-tests: New file.
37705         * tests/test-readtokens.c: New file.
37707 2012-03-07  Jim Meyering  <meyering@redhat.com>
37709         quotearg: the module must now include quote.h
37710         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
37711         So must the module.
37712         * modules/quotearg (Files): Add quote.h.
37714 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
37716         readtokens: avoid core dumps with unusual calling patterns
37717         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
37718         * lib/readtokens.c: Include limits.h.
37719         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
37720         (readtoken): Don't cache the delimiters; the cache code was buggy
37721         if !delim && saved_delim, or if the new n_delim differs from the old.
37722         Also, it wasn't thread-safe.
37724 2012-03-07  Bruno Haible  <bruno@clisp.org>
37726         quote: Adhere to common module description layout.
37727         * modules/quote (Makefile.am): Add back empty section.
37729 2012-03-06  Akim Demaille  <demaille@gostai.com>
37731         quote: fuse into quotearg
37732         This patch is made for the benefit of Bison.
37733         quote does not leave the choice of the quoting style to the user.
37734         quoting_style provides poor customizability, yet quoting_options,
37735         which is very rich, is hidden inside quotearg.c.  So in order to
37736         allow quote customization, move its implementation to quotearg.c.
37737         * lib/quote.c: Remove.
37738         * modules/quote: Adjust.
37739         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
37740         warning: provide all the members of literal structs.
37741         (quote_quoting_options): New.
37742         (quote, quote_n): Import implementation from quote.c.
37743         * lib/quote.h: Import the comments from quote.c.
37744         (quote_quoting_options): New.
37746 2012-03-06  Bruno Haible  <bruno@clisp.org>
37748         Tests for module 'expm1l-ieee'.
37749         * modules/expm1l-ieee-tests: New file.
37750         * tests/test-expm1l-ieee.c: New file.
37752         New module 'expm1l-ieee'.
37753         * modules/expm1l-ieee: New file.
37755         Tests for module 'expm1f-ieee'.
37756         * modules/expm1f-ieee-tests: New file.
37757         * tests/test-expm1f-ieee.c: New file.
37759         New module 'expm1f-ieee'.
37760         * modules/expm1f-ieee: New file.
37762         Tests for module 'expm1-ieee'.
37763         * modules/expm1-ieee-tests: New file.
37764         * tests/test-expm1-ieee.c: New file.
37765         * tests/test-expm1-ieee.h: New file.
37767         New module 'expm1-ieee'.
37768         * modules/expm1-ieee: New file.
37769         * m4/expm1-ieee.m4: New file.
37770         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
37771         whether expm1 works with a minus zero argument. Replace it if not.
37772         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
37773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
37774         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
37775         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
37776         (Depends-on): Update conditions.
37777         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
37778         AIX problem.
37780 2012-03-06  Bruno Haible  <bruno@clisp.org>
37782         Work around expm1f bug on IRIX 6.5.
37783         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
37784         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
37785         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
37786         not work.
37787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
37788         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
37789         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
37790         (Depends-on): Update conditions.
37791         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
37793 2012-03-06  Bruno Haible  <bruno@clisp.org>
37795         Tests for module 'expm1l'.
37796         * modules/expm1l-tests: New file.
37797         * tests/test-expm1l.c: New file.
37799         New module 'expm1l'.
37800         * lib/math.in.h (expm1l): New declaration.
37801         * lib/expm1l.c: New file.
37802         * m4/expm1l.m4: New file.
37803         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
37804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
37805         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37806         * modules/expm1l: New file.
37807         * tests/test-math-c++.cc: Check the declaration of expm1l.
37808         * doc/posix-functions/expm1l.texi: Mention the new module.
37810 2012-03-06  Bruno Haible  <bruno@clisp.org>
37812         Tests for module 'expm1f'.
37813         * modules/expm1f-tests: New file.
37814         * tests/test-expm1f.c: New file.
37816         New module 'expm1f'.
37817         * lib/math.in.h (expm1f): New declaration.
37818         * lib/expm1f.c: New file.
37819         * m4/expm1f.m4: New file.
37820         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37822         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37823         * modules/expm1f: New file.
37824         * tests/test-math-c++.cc: Check the declaration of expm1f.
37825         * doc/posix-functions/expm1f.texi: Mention the new module.
37827 2012-03-06  Bruno Haible  <bruno@clisp.org>
37829         Tests for module 'expm1'.
37830         * modules/expm1-tests: New file.
37831         * tests/test-expm1.c: New file.
37832         * tests/test-expm1.h: New file.
37834         New module 'expm1'.
37835         * lib/math.in.h (expm1): New declaration.
37836         * lib/expm1.c: New file.
37837         * m4/expm1.m4: New file.
37838         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37840         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37841         * modules/expm1: New file.
37842         * tests/test-math-c++.cc: Check the declaration of expm1.
37843         * doc/posix-functions/expm1.texi: Mention the new module.
37845 2012-03-06  Bruno Haible  <bruno@clisp.org>
37847         math: Ensure declarations of math functions.
37848         * modules/acosf (Depends-on): Add 'extensions'.
37849         * modules/asinf (Depends-on): Likewise.
37850         * modules/atan2f (Depends-on): Likewise.
37851         * modules/atanf (Depends-on): Likewise.
37852         * modules/cbrt (Depends-on): Likewise.
37853         * modules/cbrtf (Depends-on): Likewise.
37854         * modules/cbrtl (Depends-on): Likewise.
37855         * modules/copysignf (Depends-on): Likewise.
37856         * modules/copysignl (Depends-on): Likewise.
37857         * modules/cosf (Depends-on): Likewise.
37858         * modules/coshf (Depends-on): Likewise.
37859         * modules/expf (Depends-on): Likewise.
37860         * modules/fabsf (Depends-on): Likewise.
37861         * modules/fabsl (Depends-on): Likewise.
37862         * modules/fmaf (Depends-on): Likewise.
37863         * modules/fmal (Depends-on): Likewise.
37864         * modules/fmodf (Depends-on): Likewise.
37865         * modules/fmodl (Depends-on): Likewise.
37866         * modules/frexpf (Depends-on): Likewise.
37867         * modules/frexpl (Depends-on): Likewise.
37868         * modules/hypot (Depends-on): Likewise.
37869         * modules/hypotf (Depends-on): Likewise.
37870         * modules/hypotl (Depends-on): Likewise.
37871         * modules/ldexpf (Depends-on): Likewise.
37872         * modules/ldexpl (Depends-on): Likewise.
37873         * modules/log10f (Depends-on): Likewise.
37874         * modules/log10l (Depends-on): Likewise.
37875         * modules/log1p (Depends-on): Likewise.
37876         * modules/logb (Depends-on): Likewise.
37877         * modules/logf (Depends-on): Likewise.
37878         * modules/modff (Depends-on): Likewise.
37879         * modules/modfl (Depends-on): Likewise.
37880         * modules/powf (Depends-on): Likewise.
37881         * modules/remainderf (Depends-on): Likewise.
37882         * modules/remainderl (Depends-on): Likewise.
37883         * modules/rintf (Depends-on): Likewise.
37884         * modules/rintl (Depends-on): Likewise.
37885         * modules/sinf (Depends-on): Likewise.
37886         * modules/sinhf (Depends-on): Likewise.
37887         * modules/sqrtf (Depends-on): Likewise.
37888         * modules/tanf (Depends-on): Likewise.
37889         * modules/tanhf (Depends-on): Likewise.
37890         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37891         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37892         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37893         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37894         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37895         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37896         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37897         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37898         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37899         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37900         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37901         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37902         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37903         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37904         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37905         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37906         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37907         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37908         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37909         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37910         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37911         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37912         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37913         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37915         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37916         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37917         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37918         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37919         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37920         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37921         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37922         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37923         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37924         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37925         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37926         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37927         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37928         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37929         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37930         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37932 2012-03-06  Bruno Haible  <bruno@clisp.org>
37934         math: Update module names in warnings.
37935         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37936         tanl): Use specific module name in warn-on-use warning.
37938 2012-03-06  Bruno Haible  <bruno@clisp.org>
37940         expl: Simplify computation.
37941         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37943 2012-03-05  Bruno Haible  <bruno@clisp.org>
37945         exp* tests: More tests.
37946         * tests/test-exp.h: New file.
37947         * tests/test-exp.c: Include <float.h> and test-exp.h.
37948         (main): Invoke test_function.
37949         * tests/test-expf.c: Include <float.h> and test-exp.h.
37950         (main): Invoke test_function.
37951         * tests/test-expl.c: Include <float.h> and test-exp.h.
37952         (main): Invoke test_function.
37953         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37954         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37955         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37956         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37957         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37958         (Depends-on): Add 'float'.
37959         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37961         expl: Fix precision of computed result.
37962         * lib/expl.c: Completely rewritten.
37963         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37964         (Maintainer): Add me.
37965         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37967 2012-03-05  Bruno Haible  <bruno@clisp.org>
37969         cbrt* tests: More tests.
37970         * tests/test-cbrt.h: New file.
37971         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37972         (main): Invoke test_function.
37973         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37974         (main): Invoke test_function.
37975         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37976         (main): Invoke test_function.
37977         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37978         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37979         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37980         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37981         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37982         (Depends-on): Add 'float'.
37983         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37985 2012-03-05  Bruno Haible  <bruno@clisp.org>
37987         hypot* tests: More tests.
37988         * tests/test-hypot.h: New file, partially extracted from
37989         tests/test-hypotl.c.
37990         * tests/test-hypot.c: Include test-hypot.h.
37991         (main): Invoke test_function.
37992         * tests/test-hypotf.c: Include test-hypot.h.
37993         (main): Invoke test_function.
37994         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37995         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37996         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37997         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37998         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37999         tests/randomf.c.
38000         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
38001         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
38002         tests/randoml.c.
38003         (Depends-on): Add 'fpucw', 'float'.
38004         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
38006 2012-03-05  Bruno Haible  <bruno@clisp.org>
38008         fpucw: Doc about FreeBSD.
38009         * lib/fpucw.h: Mention FreeBSD in comments.
38011 2012-03-04  Bruno Haible  <bruno@clisp.org>
38013         sqrt* tests: More tests.
38014         * tests/test-sqrt.h: New file.
38015         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
38016         (main): Invoke test_function.
38017         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
38018         (main): Invoke test_function.
38019         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
38020         (main): Invoke test_function.
38021         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
38022         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
38023         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
38024         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
38025         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
38026         (Depends-on): Add 'float'.
38027         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
38029 2012-03-04  Bruno Haible  <bruno@clisp.org>
38031         remainder* tests: More tests.
38032         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
38033         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
38034         (main): Invoke test_function.
38035         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
38036         (main): Invoke test_function.
38037         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
38038         (main): Invoke test_function.
38039         * modules/remainder-tests (Files): Add tests/test-remainder.h,
38040         tests/randomd.c.
38041         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
38042         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
38043         tests/randomf.c.
38044         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
38045         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
38046         tests/randoml.c.
38047         (Depends-on): Add 'float'.
38048         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
38050 2012-03-04  Bruno Haible  <bruno@clisp.org>
38052         remainder, remainderf, remainderl: Fix computation for large quotients.
38053         * lib/remainder.c: Completely rewritten.
38054         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
38055         USE_FLOAT.
38056         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
38057         USE_LONG_DOUBLE.
38058         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
38059         isnand, isinf. Remove round, fma.
38060         * modules/remainderf (Files): Add lib/remainder.c.
38061         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
38062         Remove roundf, fmaf.
38063         * modules/remainderl (Files): Add lib/remainder.c.
38064         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
38065         isinf. Remove roundl, fmal.
38066         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
38067         REMAINDER_LIBM.
38068         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
38069         REMAINDERF_LIBM.
38070         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
38071         REMAINDERL_LIBM.
38073 2012-03-04  Bruno Haible  <bruno@clisp.org>
38075         fmod* tests: More tests.
38076         * tests/test-fmod.h (my_ldexp): New function.
38077         (test_function): Reduce amount of random numbers to test. Add tests
38078         of very large quotients x / y.
38079         * tests/test-fmod.c (MAX_EXP): New macro.
38080         * tests/test-fmodf.c (MAX_EXP): Likewise.
38081         * tests/test-fmodl.c (MAX_EXP): Likewise.
38083 2012-03-04  Bruno Haible  <bruno@clisp.org>
38085         fmod, fmodl: Fix computation for large quotients x / y.
38086         * lib/fmod.c: Completely rewritten.
38087         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
38088         USE_LONG_DOUBLE.
38089         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
38090         isnand. Remove fma.
38091         * modules/fmodl (Files): Add lib/fmod.c.
38092         (Depends-on): Add float, isfinite, signbit, fabsl,
38093         frexpl, ldexpl, isnanl. Remove fma.
38094         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
38095         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
38097 2012-03-03  Bruno Haible  <bruno@clisp.org>
38099         fmod* tests: More tests.
38100         * tests/test-fmod.h: New file.
38101         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
38102         (main): Invoke test_function.
38103         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
38104         (main): Invoke test_function.
38105         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
38106         (main): Invoke test_function.
38107         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
38108         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
38109         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
38110         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
38111         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
38112         (Depends-on): Add 'float'.
38113         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
38115 2012-03-03  Bruno Haible  <bruno@clisp.org>
38117         rint* tests: More tests.
38118         * tests/test-rint.h: New file, partially extracted from
38119         tests/test-rintl.c.
38120         * tests/test-rint.c: Include test-rint.h.
38121         (main): Invoke test_function.
38122         * tests/test-rintf.c: Include test-rint.h.
38123         (main): Invoke test_function.
38124         * tests/test-rintl.c: Include test-rint.h.
38125         (main): Invoke test_function.
38126         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
38127         (Makefile.am): Add randomd.c to test_rint_SOURCES.
38128         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
38129         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
38130         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
38131         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
38133 2012-03-03  Bruno Haible  <bruno@clisp.org>
38135         modf* tests: More tests.
38136         * tests/test-modf.h: New file.
38137         * tests/test-modf.c: Include <float.h> and test-modf.h.
38138         (main): Invoke test_function.
38139         * tests/test-modff.c: Include <float.h> and test-modf.h.
38140         (main): Invoke test_function.
38141         * tests/test-modfl.c: Include <float.h> and test-modf.h.
38142         (main): Invoke test_function.
38143         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
38144         (Makefile.am): Add randomd.c to test_modf_SOURCES.
38145         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
38146         (Makefile.am): Add randomf.c to test_modff_SOURCES.
38147         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
38148         (Depends-on): Add 'float'.
38149         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
38151 2012-03-03  Bruno Haible  <bruno@clisp.org>
38153         fabs* tests: More tests.
38154         * tests/test-fabs.h: New file, partially extracted from
38155         tests/test-fabsl.c.
38156         * tests/test-fabs.c (RANDOM): New macro.
38157         * tests/test-fabsf.c (RANDOM): New macro.
38158         * tests/test-fabsl.c (RANDOM): New macro.
38159         * modules/fabs-tests (Files): Add tests/randomd.c.
38160         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
38161         * modules/fabsf-tests (Files): Add tests/randomf.c.
38162         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
38163         * modules/fabsl-tests (Files): Add tests/randoml.c.
38164         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
38166 2012-03-03  Bruno Haible  <bruno@clisp.org>
38168         ldexp* tests: More tests.
38169         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
38170         * tests/test-ldexp.c (RANDOM): New macro.
38171         * tests/test-ldexpf.c (RANDOM): New macro.
38172         * tests/test-ldexpl.c (RANDOM): New macro.
38173         * modules/ldexp-tests (Files): Add tests/randomd.c.
38174         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
38175         * modules/ldexpf-tests (Files): Add tests/randomf.c.
38176         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
38177         * modules/ldexpl-tests (Files): Add tests/randoml.c.
38178         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
38180 2012-03-03  Bruno Haible  <bruno@clisp.org>
38182         frexp* tests: More tests.
38183         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
38184         * tests/test-frexp.c (RANDOM): New macro.
38185         * tests/test-frexpf.c (RANDOM): New macro.
38186         * tests/test-frexpl.c (RANDOM): New macro.
38187         * modules/frexp-tests (Files): Add tests/randomd.c.
38188         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
38189         * modules/frexpf-tests (Files): Add tests/randomf.c.
38190         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
38191         * modules/frexpl-tests (Files): Add tests/randoml.c.
38192         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
38194 2012-03-03  Bruno Haible  <bruno@clisp.org>
38196         Support for pseudo-random numbers in tests.
38197         * tests/randomf.c: New file.
38198         * tests/randomd.c: New file.
38199         * tests/randoml.c: New file.
38200         * tests/macros.h (randomf, randomd, randoml): New declarations.
38202 2012-03-03  Bruno Haible  <bruno@clisp.org>
38204         frexp* tests: Refactor.
38205         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
38206         * tests/test-frexp.c: Include and use it.
38207         * tests/test-frexpf.c: Likewise.
38208         * tests/test-frexpl.c: Likewise.
38209         * modules/frexp-tests (Files): Add tests/test-frexp.h.
38210         * modules/frexpf-tests (Files): Likewise.
38211         * modules/frexpl-tests (Files): Likewise.
38213 2012-03-02  Jim Meyering  <meyering@redhat.com>
38215         maint: don't specify XZ_OPT=-9ev in dist-related rule
38216         Using xz's -9 option is warranted only if you have a very large
38217         tarball (see xz's documentation for the sizes vs. presets), and
38218         requires 64MiB of memory at decompression time.
38219         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
38220         Automake's default of just "-e" is fine.  Override on a
38221         per-package basis by setting XZ_OPT e.g., in cfg.mk.
38223 2012-03-01  Eric Blake  <eblake@redhat.com>
38225         maint.mk: allow announcement for non-gnulib project
38226         * maint.mk (announcement): Skip gnulib version if not used.
38228 2012-03-01  Jim Meyering  <meyering@redhat.com>
38230         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
38231         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
38232         envvar settings cannot interfere.  Otherwise, setting envvars like
38233         prohibit=foo require=bar, etc. would cause spurious test failures.
38235 2012-03-01  Eric Blake  <eblake@redhat.com>
38237         maint.mk: add per-line exclusions to prohibitions
38238         * maint.mk (_sc_search_regexp): Add $exclude parameter.
38239         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38240         (sc_const_long_option): Use it.
38242 2012-03-01  Bruno Haible  <bruno@clisp.org>
38244         Tests for module 'expl-ieee'.
38245         * modules/expl-ieee-tests: New file.
38246         * tests/test-expl-ieee.c: New file.
38248         New module 'expl-ieee'.
38249         * modules/expl-ieee: New file.
38251         Tests for module 'exp-ieee'.
38252         * modules/exp-ieee-tests: New file.
38253         * tests/test-exp-ieee.c: New file.
38255         New module 'exp-ieee'.
38256         * modules/exp-ieee: New file.
38258         Tests for module 'expf-ieee'.
38259         * modules/expf-ieee-tests: New file.
38260         * tests/test-expf-ieee.c: New file.
38261         * tests/test-exp-ieee.h: New file.
38263         New module 'expf-ieee'.
38264         * modules/expf-ieee: New file.
38266 2012-02-29  Bruno Haible  <bruno@clisp.org>
38268         cbrtl-ieee: Work around test failure on IRIX 6.5.
38269         * m4/cbrtl-ieee.m4: New file.
38270         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
38271         test whether cbrtl works with a minus zero argument. Replace it if not.
38272         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
38273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
38274         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
38275         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
38276         (Depends-on): Update conditions.
38277         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
38278         m4/signbit.m4.
38279         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
38280         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
38281         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
38283         Tests for module 'cbrtl-ieee'.
38284         * modules/cbrtl-ieee-tests: New file.
38285         * tests/test-cbrtl-ieee.c: New file.
38287         New module 'cbrtl-ieee'.
38288         * modules/cbrtl-ieee: New file.
38290         Tests for module 'cbrt-ieee'.
38291         * modules/cbrt-ieee-tests: New file.
38292         * tests/test-cbrt-ieee.c: New file.
38294         New module 'cbrt-ieee'.
38295         * modules/cbrt-ieee: New file.
38297         Tests for module 'cbrtf-ieee'.
38298         * modules/cbrtf-ieee-tests: New file.
38299         * tests/test-cbrtf-ieee.c: New file.
38300         * tests/test-cbrt-ieee.h: New file.
38302         New module 'cbrtf-ieee'.
38303         * modules/cbrtf-ieee: New file.
38305 2012-02-29  Bruno Haible  <bruno@clisp.org>
38307         cbrtf: Work around bug in IRIX 6.5 system function.
38308         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
38309         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
38310         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
38311         work.
38312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
38313         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
38314         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
38315         (Depends-on): Update conditions.
38316         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
38318 2012-02-29  Bruno Haible  <bruno@clisp.org>
38320         Tests for module 'cbrtl'.
38321         * modules/cbrtl-tests: New file.
38322         * tests/test-cbrtl.c: New file.
38324         New module 'cbrtl'.
38325         * lib/math.in.h (cbrtl): New declaration.
38326         * lib/cbrtl.c: New file.
38327         * m4/cbrtl.m4: New file.
38328         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
38329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
38330         HAVE_DECL_CBRTL.
38331         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
38332         HAVE_DECL_CBRTL.
38333         * modules/cbrtl: New file.
38334         * tests/test-math-c++.cc: Check the declaration of cbrtl.
38335         * doc/posix-functions/cbrtl.texi: Mention the new module.
38337 2012-02-29  Bruno Haible  <bruno@clisp.org>
38339         Tests for module 'cbrtf'.
38340         * modules/cbrtf-tests: New file.
38341         * tests/test-cbrtf.c: New file.
38343         New module 'cbrtf'.
38344         * lib/math.in.h (cbrtf): New declaration.
38345         * lib/cbrtf.c: New file.
38346         * m4/cbrtf.m4: New file.
38347         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
38348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
38349         HAVE_DECL_CBRTF.
38350         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
38351         HAVE_DECL_CBRTF.
38352         * modules/cbrtf: New file.
38353         * tests/test-math-c++.cc: Check the declaration of cbrtf.
38354         * doc/posix-functions/cbrtf.texi: Mention the new module.
38356 2012-02-29  Bruno Haible  <bruno@clisp.org>
38358         cbrt: Provide replacement on MSVC and Minix.
38359         * lib/math.in.h (cbrt): New declaration.
38360         * lib/cbrt.c: New file.
38361         * m4/cbrt.m4: New file.
38362         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
38363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
38364         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
38365         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
38366         (Depends-on): Add dependencies.
38367         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
38368         * tests/test-math-c++.cc: Check the declaration of cbrt.
38369         * doc/posix-functions/cbrt.texi: Mention that the module provides a
38370         replacement.
38372 2012-02-29  Bruno Haible  <bruno@clisp.org>
38374         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
38375         * m4/hypotl-ieee.m4: New file.
38376         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
38377         test whether hypotl works with mixed NaN and Infinity arguments.
38378         Replace it if not.
38379         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
38380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
38381         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
38382         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
38383         (Depends-on): Update conditions.
38384         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
38385         (Depends-on): Add hypot-ieee.
38386         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
38387         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
38389         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
38390         * m4/hypotf-ieee.m4: New file.
38391         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
38392         test whether hypotf works with mixed NaN and Infinity arguments.
38393         Replace it if not.
38394         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
38395         (Depends-on): Add hypot-ieee.
38396         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
38397         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
38399         hypot-ieee: Work around test failure on OSF/1 and native Windows.
38400         * lib/math.in.h (hypot): New declaration.
38401         * lib/hypot.c: New file.
38402         * m4/hypot-ieee.m4: New file.
38403         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
38404         whether hypot works with mixed NaN and Infinity arguments. Replace it
38405         if not.
38406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
38407         REPLACE_HYPOT.
38408         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
38409         * modules/hypot (Files): Add lib/hypot.c.
38410         (Depends-on): Add dependencies.
38411         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
38412         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
38413         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
38414         * tests/test-math-c++.cc: Check the declaration of hypot.
38415         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
38417         Tests for module 'hypotl-ieee'.
38418         * modules/hypotl-ieee-tests: New file.
38419         * tests/test-hypotl-ieee.c: New file.
38421         New module 'hypotl-ieee'.
38422         * modules/hypotl-ieee: New file.
38424         Tests for module 'hypot-ieee'.
38425         * modules/hypot-ieee-tests: New file.
38426         * tests/test-hypot-ieee.c: New file.
38428         New module 'hypot-ieee'.
38429         * modules/hypot-ieee: New file.
38431         Tests for module 'hypotf-ieee'.
38432         * modules/hypotf-ieee-tests: New file.
38433         * tests/test-hypotf-ieee.c: New file.
38434         * tests/test-hypot-ieee.h: New file.
38436         New module 'hypotf-ieee'.
38437         * modules/hypotf-ieee: New file.
38439 2012-02-29  Bruno Haible  <bruno@clisp.org>
38441         Remove unused variables.
38442         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
38443         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38444         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
38445         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38447 2012-02-29  Eric Blake  <eblake@redhat.com>
38449         termios: fix pid_t always, not just for tcgetsid
38450         * doc/posix-headers/termios.texi (termios.h): Mention problem.
38451         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
38452         just when building tcgetsid.
38454 2012-02-29  Bruno Haible  <bruno@clisp.org>
38456         Tests for module 'hypotl'.
38457         * modules/hypotl-tests: New file.
38458         * tests/test-hypotl.c: New file.
38460         New module 'hypotl'.
38461         * lib/math.in.h (hypotl): New declaration.
38462         * lib/hypotl.c: New file.
38463         * m4/hypotl.m4: New file.
38464         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
38466         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
38467         * modules/hypotl: New file.
38468         * tests/test-math-c++.cc: Check the hypotl declaration.
38469         * doc/posix-functions/hypotl.texi: Mention the new module.
38471 2012-02-29  Eric Blake  <eblake@redhat.com>
38473         tcgetsid: fix cygwin header bug
38474         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
38476         docs: update cygwin progress
38477         * doc/posix-functions/llround.texi (llround): Added in cygwin
38478         1.7.8.
38479         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
38480         * doc/glibc-functions/program_invocation_name.texi
38481         (program_invocation_name): Likewise.
38482         * doc/glibc-functions/program_invocation_short_name.texi
38483         (program_invocation_short_name): Likewise.
38484         * doc/glibc-functions/madvise.texi (madvise): Likewise.
38485         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
38486         Likewise.
38487         * doc/posix-functions/pthread_spin_destroy.texi
38488         (pthread_spin_destroy): Added in cygwin 1.7.10.
38489         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
38490         Likewise.
38491         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
38492         Likewise.
38493         * doc/posix-functions/pthread_spin_trylock.texi
38494         (pthread_spin_trylock): Likewise.
38495         * doc/posix-functions/pthread_spin_unlock.texi
38496         (pthread_spin_unlock): Likewise.
38497         * doc/posix-functions/pthread_setschedprio.texi
38498         (pthread_setschedprio): Likewise.
38499         * doc/posix-functions/pthread_attr_getstack.texi
38500         (pthread_attr_getstack): Likewise.
38501         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
38502         (pthread_attr_getstackaddr): Likewise.
38503         * doc/glibc-functions/pthread_getattr_np.texi
38504         (pthread_getattr_np): Likewise.
38505         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
38506         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
38507         * doc/posix-functions/clock_settime.texi (clock_settime):
38508         Likewise.
38509         * doc/posix-functions/pthread_attr_getguardsize.texi
38510         (pthread_attr_getguardsize): Likewise.
38511         * doc/posix-functions/pthread_attr_setguardsize.texi
38512         (pthread_attr_setguardsize): Likewise.
38513         * doc/posix-functions/pthread_attr_setstack.texi
38514         (pthread_attr_setstack): Likewise.
38515         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
38516         (pthread_attr_setstackaddr): Likewise.
38517         * doc/posix-functions/clock_getcpuclockid.texi
38518         (clock_getcpuclockid): Likewise.
38519         * doc/posix-functions/pthread_getcpuclockid.texi
38520         (pthread_getcpuclockid): Likewise.
38521         * doc/glibc-functions/error.texi (error): Likewise.
38522         * doc/glibc-functions/error_at_line.texi (error_at_line):
38523         Likewise.
38524         * doc/glibc-functions/error_message_count.texi
38525         (error_message_count): Likewise.
38526         * doc/glibc-functions/error_one_per_line.texi
38527         (error_one_per_line): Likewise.
38528         * doc/glibc-functions/error_print_progname.texi
38529         (error_print_progname): Likewise.
38530         * doc/posix-functions/pthread_condattr_getclock.texi
38531         (pthread_condattr_getclock): Likewise.
38532         * doc/posix-functions/pthread_condattr_setclock.texi
38533         (pthread_condattr_setclock): Likewise.
38534         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
38535         Likewise.
38536         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
38537         * doc/glibc-functions/getpt.texi (getpt): Likewise.
38538         * doc/glibc-functions/get_current_dir_name.texi
38539         (get_current_dir_name): Likewise.
38540         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
38541         Likewise.
38542         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
38543         wrong return type.
38544         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
38545         1.7.11.
38547 2012-02-29  Bruno Haible  <bruno@clisp.org>
38549         Tests for module 'hypotf'.
38550         * modules/hypotf-tests: New file.
38551         * tests/test-hypotf.c: New file.
38553         New module 'hypotf'.
38554         * lib/math.in.h (hypotf): New declaration.
38555         * lib/hypotf.c: New file.
38556         * m4/hypotf.m4: New file.
38557         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
38559         REPLACE_HYPOTF.
38560         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
38561         REPLACE_HYPOTF.
38562         * modules/hypotf: New file.
38563         * tests/test-math-c++.cc: Check the hypotf declaration.
38564         * doc/posix-functions/hypotf.texi: Mention the new module.
38566         hypot: Prepare for hypotf module.
38567         * m4/hypot.m4: New file.
38568         * modules/hypot (Files): Add m4/hypot.m4.
38569         (configure.ac): Invoke gl_FUNC_HYPOT.
38571 2012-02-29  Bruno Haible  <bruno@clisp.org>
38573         hypot tests: More tests.
38574         * tests/test-hypot.c: Include <float.h>.
38575         (main): Add tests about overflow and underflow.
38577 2012-02-29  Bruno Haible  <bruno@clisp.org>
38579         math code: Add comments.
38580         * lib/acosl.c: Add comment about related glibc source files.
38581         * lib/asinl.c: Likewise.
38582         * lib/atanl.c: Likewise.
38583         * lib/expl.c: Likewise.
38584         * lib/logl.c: Likewise.
38585         * lib/sincosl.c: Likewise.
38586         * lib/sinl.c: Likewise.
38587         * lib/tanl.c: Likewise.
38588         * lib/trigl.c: Likewise.
38589         * lib/cosl.c: Likewise. Fix comments.
38591 2012-02-28  Bruno Haible  <bruno@clisp.org>
38593         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
38594         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
38595         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
38596         HUGE_VALL are defined.
38597         (numeric_equald): Renamed from numeric_equal.
38598         (numeric_equalf, numeric_equall): New functions.
38599         (main): Check also HUGE_VALF, HUGE_VALL.
38600         * modules/math-tests (Files): Add tests/macros.h.
38601         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
38602         HUGE_VALL.
38604 2012-02-28  Bruno Haible  <bruno@clisp.org>
38606         doc: Move ISO C11 feature notes into POSIX chapters.
38607         * doc/posix-functions/aligned_alloc.texi: Renamed from
38608         doc/glibc-functions/aligned_alloc.texi.
38609         * doc/posix-functions/quick_exit.texi: Renamed from
38610         doc/glibc-functions/quick_exit.texi.
38611         * doc/posix-headers/uchar.texi: Renamed from
38612         doc/glibc-headers/uchar.texi.
38613         * doc/posix-functions/c16rtomb.texi: Renamed from
38614         doc/glibc-functions/c16rtomb.texi.
38615         * doc/posix-functions/c32rtomb.texi: Renamed from
38616         doc/glibc-functions/c32rtomb.texi.
38617         * doc/posix-functions/mbrtoc16.texi: Renamed from
38618         doc/glibc-functions/mbrtoc16.texi.
38619         * doc/posix-functions/mbrtoc32.texi: Renamed from
38620         doc/glibc-functions/mbrtoc32.texi.
38621         * doc/gnulib.texi: Update.
38622         (Glibc uchar.h): Remove section.
38623         Suggested by Eric Blake.
38625 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
38627         stdnoreturn: port to MSVC better
38628         MSVC standard headers use __declspec(noreturn), so #define noreturn
38629         to empty on that platform.  Reported by Bruno Haible in
38630         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
38631         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
38632         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
38634 2012-02-28  Bruno Haible  <bruno@clisp.org>
38636         doc: Mention new glibc headers and functions.
38637         * doc/glibc-headers/uchar.texi: New file.
38638         * doc/glibc-functions/aligned_alloc.texi: New file.
38639         * doc/glibc-functions/c16rtomb.texi: New file.
38640         * doc/glibc-functions/c32rtomb.texi: New file.
38641         * doc/glibc-functions/clock_adjtime.texi: New file.
38642         * doc/glibc-functions/fanotify_init.texi: New file.
38643         * doc/glibc-functions/fanotify_mark.texi: New file.
38644         * doc/glibc-functions/inet6_opt_append.texi: New file.
38645         * doc/glibc-functions/inet6_opt_find.texi: New file.
38646         * doc/glibc-functions/inet6_opt_finish.texi: New file.
38647         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
38648         * doc/glibc-functions/inet6_opt_init.texi: New file.
38649         * doc/glibc-functions/inet6_opt_next.texi: New file.
38650         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
38651         * doc/glibc-functions/inet6_rth_add.texi: New file.
38652         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
38653         * doc/glibc-functions/inet6_rth_init.texi: New file.
38654         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
38655         * doc/glibc-functions/inet6_rth_segments.texi: New file.
38656         * doc/glibc-functions/inet6_rth_space.texi: New file.
38657         * doc/glibc-functions/login.texi: New file.
38658         * doc/glibc-functions/mbrtoc16.texi: New file.
38659         * doc/glibc-functions/mbrtoc32.texi: New file.
38660         * doc/glibc-functions/name_to_handle_at.texi: New file.
38661         * doc/glibc-functions/ntp_gettimex.texi: New file.
38662         * doc/glibc-functions/open_by_handle_at.texi: New file.
38663         * doc/glibc-functions/prlimit.texi: New file.
38664         * doc/glibc-functions/process_vm_readv.texi: New file.
38665         * doc/glibc-functions/process_vm_writev.texi: New file.
38666         * doc/glibc-functions/recvmmsg.texi: New file.
38667         * doc/glibc-functions/scandirat.texi: New file.
38668         * doc/glibc-functions/sendmmsg.texi: New file.
38669         * doc/glibc-functions/setns.texi: New file.
38670         * doc/glibc-functions/timespec_get.texi: New file.
38671         * doc/gnulib.texi: Include them.
38672         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38673         sections.
38674         Reported by Eric Blake.
38676 2012-02-28  Bruno Haible  <bruno@clisp.org>
38678         Avoid compilation errors with MSVC option -fp:strict.
38679         * lib/floor.c: Use MSVC specific pragma fenv_access.
38680         * lib/ceil.c: Likewise.
38681         * lib/trunc.c: Likewise.
38682         * lib/round.c: Likewise.
38683         * lib/rint.c: Likewise.
38684         * lib/fma.c: Likewise.
38685         * lib/integer_length.c: Likewise.
38686         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38687         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38688         * tests/test-floor2.c: Likewise.
38689         * tests/test-floorf2.c: Likewise.
38690         * tests/test-ceil2.c: Likewise.
38691         * tests/test-ceilf2.c: Likewise.
38692         * tests/test-trunc2.c: Likewise.
38693         * tests/test-truncf2.c: Likewise.
38694         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38696 2012-02-27  Bruno Haible  <bruno@clisp.org>
38698         Tests for module 'sqrtl-ieee'.
38699         * modules/sqrtl-ieee-tests: New file.
38700         * tests/test-sqrtl-ieee.c: New file.
38702         New module 'sqrtl-ieee'.
38703         * modules/sqrtl-ieee: New file.
38705         Tests for module 'sqrt-ieee'.
38706         * modules/sqrt-ieee-tests: New file.
38707         * tests/test-sqrt-ieee.c: New file.
38709         New module 'sqrt-ieee'.
38710         * modules/sqrt-ieee: New file.
38712         Tests for module 'sqrtf-ieee'.
38713         * modules/sqrtf-ieee-tests: New file.
38714         * tests/test-sqrtf-ieee.c: New file.
38715         * tests/test-sqrt-ieee.h: New file.
38717         New module 'sqrtf-ieee'.
38718         * modules/sqrtf-ieee: New file.
38720 2012-02-27  Bruno Haible  <bruno@clisp.org>
38722         remainderl-ieee: Work around test failure on OSF/1.
38723         * m4/remainderl-ieee.m4: New file.
38724         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
38725         present, test whether remainderl works with a zero second argument.
38726         Replace it if not.
38727         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
38728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
38729         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
38730         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
38731         (Depends-on): Update conditions.
38732         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38733         (Depends-on): Add remainder-ieee.
38734         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
38735         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
38736         module.
38738         remainderf-ieee: Work around test failure on OSF/1.
38739         * m4/remainderf-ieee.m4: New file.
38740         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
38741         present, test whether remainderf works with a zero second argument.
38742         Replace it if not.
38743         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
38745         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
38746         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
38747         (Depends-on): Update conditions.
38748         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
38749         (Depends-on): Add remainder-ieee.
38750         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
38751         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
38752         module.
38754         remainder-ieee: Work around test failure on OSF/1.
38755         * m4/remainder-ieee.m4: New file.
38756         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
38757         present, test whether remainder works with a zero second argument.
38758         Replace it if not.
38759         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
38760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
38761         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
38762         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
38763         (Depends-on): Update dependencies.
38764         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
38765         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
38766         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
38768         Tests for module 'remainderl-ieee'.
38769         * modules/remainderl-ieee-tests: New file.
38770         * tests/test-remainderl-ieee.c: New file.
38772         New module 'remainderl-ieee'.
38773         * modules/remainderl-ieee: New file.
38775         Tests for module 'remainder-ieee'.
38776         * modules/remainder-ieee-tests: New file.
38777         * tests/test-remainder-ieee.c: New file.
38779         New module 'remainder-ieee'.
38780         * modules/remainder-ieee: New file.
38782         Tests for module 'remainderf-ieee'.
38783         * modules/remainderf-ieee-tests: New file.
38784         * tests/test-remainderf-ieee.c: New file.
38785         * tests/test-remainder-ieee.h: New file.
38787         New module 'remainderf-ieee'.
38788         * modules/remainderf-ieee: New file.
38790 2012-02-27  Bruno Haible  <bruno@clisp.org>
38792         modff, modfl: Fix configure syntax error.
38793         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
38794         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38796 2012-02-27  Bruno Haible  <bruno@clisp.org>
38798         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
38799         * m4/fmodl-ieee.m4: New file.
38800         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
38801         whether fmodl works with zero arguments. Replace it if not.
38802         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
38803         (Depends-on): Add fmod-ieee.
38804         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
38805         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38807         fmodf-ieee: Work around test failure on OSF/1.
38808         * m4/fmodf-ieee.m4: New file.
38809         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38810         whether fmodf works with zero arguments. Replace it if not.
38811         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38813         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38814         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38815         (Depends-on): Update dependencies.
38816         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38817         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38818         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38820         fmodf-ieee: Work around test failure on MSVC 9.
38821         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38822         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38824         fmod-ieee: Work around test failures on OSF/1, mingw.
38825         * m4/fmod-ieee.m4: New file.
38826         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38827         whether fmod works with zero arguments. Replace it if not.
38828         * lib/math.in.h (fmod): New declaration.
38829         * lib/fmod.c: New file.
38830         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38832         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38833         * modules/fmod (Files): Add lib/fmod.c.
38834         (Depends-on): Add math, isinf, trunc, fma.
38835         (configure.ac): Arrange to compile lib/fmod.c if needed.
38836         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38837         m4/signbit.m4.
38838         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38839         * tests/test-math-c++.cc: Check the declaration of fmod.
38840         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38842         fmodl-ieee: Fix test failures.
38843         * lib/fmodl.c (fmodl): Treat Inf specially.
38844         * modules/fmodl (Depends-on): Add isinf.
38846         Tests for module 'fmodl-ieee'.
38847         * modules/fmodl-ieee-tests: New file.
38848         * tests/test-fmodl-ieee.c: New file.
38850         New module 'fmodl-ieee'.
38851         * modules/fmodl-ieee: New file.
38853         Tests for module 'fmod-ieee'.
38854         * modules/fmod-ieee-tests: New file.
38855         * tests/test-fmod-ieee.c: New file.
38857         New module 'fmod-ieee'.
38858         * modules/fmod-ieee: New file.
38860         Tests for module 'fmodf-ieee'.
38861         * modules/fmodf-ieee-tests: New file.
38862         * tests/test-fmodf-ieee.c: New file.
38863         * tests/test-fmod-ieee.h: New file.
38865         New module 'fmodf-ieee'.
38866         * modules/fmodf-ieee: New file.
38868 2012-02-27  Bruno Haible  <bruno@clisp.org>
38870         Tests for module 'rintl-ieee'.
38871         * modules/rintl-ieee-tests: New file.
38872         * tests/test-rintl-ieee.c: New file.
38874         New module 'rintl-ieee'.
38875         * modules/rintl-ieee: New file.
38877         Tests for module 'rint-ieee'.
38878         * modules/rint-ieee-tests: New file.
38879         * tests/test-rint-ieee.c: New file.
38881         New module 'rint-ieee'.
38882         * modules/rint-ieee: New file.
38884         Tests for module 'rintf-ieee'.
38885         * modules/rintf-ieee-tests: New file.
38886         * tests/test-rintf-ieee.c: New file.
38887         * tests/test-rint-ieee.h: New file.
38889         New module 'rintf-ieee'.
38890         * modules/rintf-ieee: New file.
38892 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38894         regex: re_search etc. should return -2 when memory exhausted
38895         This bug was uncovered when testing 'grep'.  Without the fix,
38896         re_search and friends return -1 when memory is exhausted, but -1
38897         means no match, and this causes grep to falsely report no-match
38898         instead of memory-exhaustion.  See
38899         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38900         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38901         trouble; this can occur if re_search_internal ran out of memory.
38903 2012-02-26  Bruno Haible  <bruno@clisp.org>
38905         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38906         * m4/modfl-ieee.m4: New file.
38907         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38908         whether modfl works with Inf. Replace it if not.
38909         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38911         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38912         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38913         (Depends-on): Update dependencies.
38914         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38915         m4/signbit.m4.
38916         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38917         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38919         modfl-ieee: Fix dependencies.
38920         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38922         modfl-ieee: Fix test failures.
38923         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38924         * modules/modfl (Depends-on): Add isfinite, isinf.
38926         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38927         * m4/modff-ieee.m4: New file.
38928         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38929         whether modff works with NaN and Inf. Replace it if not.
38930         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38932         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38933         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38934         (Depends-on): Update dependencies.
38935         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38936         m4/signbit.m4.
38937         (Depends-on): Add modf-ieee.
38938         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38939         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38941         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38942         * m4/modf-ieee.m4: New file.
38943         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38944         whether modf works with NaN and Inf. Replace it if not.
38945         * lib/math.in.h (modf): New declaration.
38946         * lib/modf.c: New file.
38947         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38949         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38950         * modules/modf (Files): Add lib/modf.c.
38951         (Depends-on): Add math, isfinite, trunc, isinf.
38952         (configure.ac): Addrange to compile lib/modf.c if needed.
38953         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38954         m4/signbit.m4.
38955         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38956         * tests/test-math-c++.cc: Check the declaration of modf.
38957         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38959         Tests for module 'modfl-ieee'.
38960         * modules/modfl-ieee-tests: New file.
38961         * tests/test-modfl-ieee.c: New file.
38963         New module 'modfl-ieee'.
38964         * modules/modfl-ieee: New file.
38966         Tests for module 'modf-ieee'.
38967         * modules/modf-ieee-tests: New file.
38968         * tests/test-modf-ieee.c: New file.
38970         New module 'modf-ieee'.
38971         * modules/modf-ieee: New file.
38973         Tests for module 'modff-ieee'.
38974         * modules/modff-ieee-tests: New file.
38975         * tests/test-modff-ieee.c: New file.
38976         * tests/test-modf-ieee.h: New file.
38978         New module 'modff-ieee'.
38979         * modules/modff-ieee: New file.
38981 2012-02-26  Bruno Haible  <bruno@clisp.org>
38983         Tests for module 'fabsl-ieee'.
38984         * modules/fabsl-ieee-tests: New file.
38985         * tests/test-fabsl-ieee.c: New file.
38987         New module 'fabsl-ieee'.
38988         * modules/fabsl-ieee: New file.
38990         Tests for module 'fabs-ieee'.
38991         * modules/fabs-ieee-tests: New file.
38992         * tests/test-fabs-ieee.c: New file.
38994         New module 'fabs-ieee'.
38995         * modules/fabs-ieee: New file.
38997         Tests for module 'fabsf-ieee'.
38998         * modules/fabsf-ieee-tests: New file.
38999         * tests/test-fabsf-ieee.c: New file.
39000         * tests/test-fabs-ieee.h: New file.
39002         New module 'fabsf-ieee'.
39003         * modules/fabsf-ieee: New file.
39005 2012-02-26  Bruno Haible  <bruno@clisp.org>
39007         Tests for module 'fmal-ieee'.
39008         * modules/fmal-ieee-tests: New file.
39009         * tests/test-fmal-ieee.c: New file.
39011         New module 'fmal-ieee'.
39012         * modules/fmal-ieee: New file.
39014         Tests for module 'fma-ieee'.
39015         * modules/fma-ieee-tests: New file.
39016         * tests/test-fma-ieee.c: New file.
39018         New module 'fma-ieee'.
39019         * modules/fma-ieee: New file.
39021         Tests for module 'fmaf-ieee'.
39022         * modules/fmaf-ieee-tests: New file.
39023         * tests/test-fmaf-ieee.c: New file.
39024         * tests/test-fma-ieee.h: New file.
39026         New module 'fmaf-ieee'.
39027         * modules/fmaf-ieee: New file.
39029 2012-02-26  Bruno Haible  <bruno@clisp.org>
39031         Tests for module 'ldexpl-ieee'.
39032         * modules/ldexpl-ieee-tests: New file.
39033         * tests/test-ldexpl-ieee.c: New file.
39035         New module 'ldexpl-ieee'.
39036         * modules/ldexpl-ieee: New file.
39038         Tests for module 'ldexp-ieee'.
39039         * modules/ldexp-ieee-tests: New file.
39040         * tests/test-ldexp-ieee.c: New file.
39042         New module 'ldexp-ieee'.
39043         * modules/ldexp-ieee: New file.
39045         Tests for module 'ldexpf-ieee'.
39046         * modules/ldexpf-ieee-tests: New file.
39047         * tests/test-ldexpf-ieee.c: New file.
39048         * tests/test-ldexp-ieee.h: New file.
39050         New module 'ldexpf-ieee'.
39051         * modules/ldexpf-ieee: New file.
39053 2012-02-26  Bruno Haible  <bruno@clisp.org>
39055         Refactor frexp*-ieee tests.
39056         * tests/test-frexp-ieee.h: New file.
39057         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
39058         (main): Just call test_function.
39059         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
39060         (main): Just call test_function.
39061         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
39062         (main): Just call test_function.
39063         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
39064         * modules/frexp-ieee-tests (Files): Likewise.
39065         * modules/frexpl-ieee-tests (Files): Likewise.
39067         Tests for module 'frexpl-ieee'.
39068         * modules/frexpl-ieee-tests: New file.
39069         * tests/test-frexpl-ieee.c: New file.
39071         New module 'frexpl-ieee'.
39072         * modules/frexpl-ieee: New file.
39074         Tests for module 'frexp-ieee'.
39075         * modules/frexp-ieee-tests: New file.
39076         * tests/test-frexp-ieee.c: New file.
39078         New module 'frexp-ieee'.
39079         * modules/frexp-ieee: New file.
39081         Tests for module 'frexpf-ieee'.
39082         * modules/frexpf-ieee-tests: New file.
39083         * tests/test-frexpf-ieee.c: New file.
39085         New module 'frexpf-ieee'.
39086         * modules/frexpf-ieee: New file.
39088 2012-02-26  Bruno Haible  <bruno@clisp.org>
39090         roundl-ieee tests: More tests.
39091         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39092         (main): Add tests for [MX] shaded specification in POSIX.
39093         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39094         (Depends-on): Add isnanl-nolibm.
39096         round-ieee tests: More tests.
39097         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39098         (main): Add tests for [MX] shaded specification in POSIX.
39099         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39100         (Depends-on): Add isnand-nolibm.
39102         roundf-ieee tests: More tests.
39103         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39104         (main): Add tests for [MX] shaded specification in POSIX.
39105         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39106         (Depends-on): Add isnanf-nolibm.
39108         truncl-ieee tests: More tests.
39109         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39110         (main): Add tests for [MX] shaded specification in POSIX.
39111         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39112         (Depends-on): Add isnanl-nolibm.
39114         trunc-ieee tests: More tests.
39115         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39116         (main): Add tests for [MX] shaded specification in POSIX.
39117         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39118         (Depends-on): Add isnand-nolibm.
39120         truncf-ieee tests: More tests.
39121         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39122         (main): Add tests for [MX] shaded specification in POSIX.
39123         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39124         (Depends-on): Add isnanf-nolibm.
39126         ceill-ieee tests: More tests.
39127         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39128         (main): Add tests for [MX] shaded specification in POSIX.
39129         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39130         (Depends-on): Add isnanl-nolibm.
39132         ceil-ieee tests: More tests.
39133         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39134         (main): Add tests for [MX] shaded specification in POSIX.
39135         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39136         (Depends-on): Add isnand-nolibm.
39138         ceilf-ieee tests: More tests.
39139         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39140         (main): Add tests for [MX] shaded specification in POSIX.
39141         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39142         (Depends-on): Add isnanf-nolibm.
39144         floorl-ieee tests: More tests.
39145         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39146         (main): Add tests for [MX] shaded specification in POSIX.
39147         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39148         (Depends-on): Add isnanl-nolibm.
39150         floor-ieee tests: More tests.
39151         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39152         (main): Add tests for [MX] shaded specification in POSIX.
39153         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39154         (Depends-on): Add isnand-nolibm.
39156         floorf-ieee tests: More tests.
39157         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39158         (main): Add tests for [MX] shaded specification in POSIX.
39159         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39160         (Depends-on): Add isnanf-nolibm.
39162 2012-02-26  Bruno Haible  <bruno@clisp.org>
39164         fpieee: More comments.
39165         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
39167 2012-02-25  Bruno Haible  <bruno@clisp.org>
39169         Tests for module 'log10l'.
39170         * modules/log10l-tests: New file.
39171         * tests/test-log10l.c: New file.
39172         * tests/test-math-c++.cc: Check the declaration of log10l.
39174         New module 'log10l'.
39175         * lib/math.in.h (log10l): New declaration.
39176         * lib/log10l.c: New file.
39177         * m4/log10l.m4: New file.
39178         * modules/log10l: New file.
39179         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
39180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
39181         HAVE_DECL_LOG10L.
39182         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
39183         HAVE_DECL_LOG10L.
39184         * doc/posix-functions/log10l.texi: Mention the new module.
39186 2012-02-25  Bruno Haible  <bruno@clisp.org>
39188         fmodl, remainder*: Avoid wrong results due to rounding errors.
39189         * lib/fmodl.c (fmodl): Correct the result if it is not within the
39190         expected bounds.
39191         * lib/remainderf.c (remainderf): Likewise.
39192         * lib/remainder.c (remainder): Likewise.
39193         * lib/remainderl.c (remainderl): Likewise.
39195 2012-02-25  Bruno Haible  <bruno@clisp.org>
39197         Tests for module 'remainderl'.
39198         * modules/remainderl-tests: New file.
39199         * tests/test-remainderl.c: New file.
39200         * tests/test-math-c++.cc: Check the declaration of remainderl.
39202         New module 'remainderl'.
39203         * lib/math.in.h (remainderl): New declaration.
39204         * lib/remainderl.c: New file.
39205         * m4/remainderl.m4: New file.
39206         * modules/remainderl: New file.
39207         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
39208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
39209         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
39210         HAVE_REMAINDERL.
39211         * doc/posix-functions/remainderl.texi: Mention the new module.
39213 2012-02-25  Bruno Haible  <bruno@clisp.org>
39215         Tests for module 'remainderf'.
39216         * modules/remainderf-tests: New file.
39217         * tests/test-remainderf.c: New file.
39218         * tests/test-math-c++.cc: Check the declaration of remainderf.
39220         New module 'remainderf'.
39221         * lib/math.in.h (remainderf): New declaration.
39222         * lib/remainderf.c: New file.
39223         * m4/remainderf.m4: New file.
39224         * modules/remainderf: New file.
39225         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
39226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
39227         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
39228         HAVE_REMAINDERF.
39229         * doc/posix-functions/remainderf.texi: Mention the new module.
39231 2012-02-25  Bruno Haible  <bruno@clisp.org>
39233         remainder: Support for MSVC.
39234         * lib/math.in.h (remainder): New declaration.
39235         * lib/remainder.c: New file.
39236         * m4/remainder.m4: New file.
39237         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
39238         (Depends-on): Add math, round, fma.
39239         (configure.ac): Use results of gl_FUNC_REMAINDER.
39240         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
39241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
39242         HAVE_DECL_REMAINDER.
39243         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
39244         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
39245         * tests/test-math-c++.cc: Check the declaration of remainder.
39246         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
39247         problems are fixed.
39249 2012-02-25  Bruno Haible  <bruno@clisp.org>
39251         Tests for module 'fmodl'.
39252         * modules/fmodl-tests: New file.
39253         * tests/test-fmodl.c: New file.
39254         * tests/test-math-c++.cc: Check the declaration of fmodl.
39256         New module 'fmodl'.
39257         * lib/math.in.h (fmodl): New declaration.
39258         * lib/fmodl.c: New file.
39259         * m4/fmodl.m4: New file.
39260         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
39261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
39262         REPLACE_FMODL.
39263         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
39264         REPLACE_FMODL.
39265         * modules/fmodl: New file.
39266         * doc/posix-functions/fmodl.texi: Mention the new module.
39268 2012-02-25  Bruno Haible  <bruno@clisp.org>
39270         Tests for module 'modfl'.
39271         * modules/modfl-tests: New file.
39272         * tests/test-modfl.c: New file.
39273         * tests/test-math-c++.cc: Check the declaration of modfl.
39275         New module 'modfl'.
39276         * lib/math.in.h (modfl): New declaration.
39277         * lib/modfl.c: New file.
39278         * m4/modfl.m4: New file.
39279         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
39280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
39281         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
39282         * modules/modfl: New file.
39283         * doc/posix-functions/modfl.texi: Mention the new module.
39285 2012-02-25  Bruno Haible  <bruno@clisp.org>
39287         Tests for module 'fabsl'.
39288         * modules/fabsl-tests: New file.
39289         * tests/test-fabsl.c: New file.
39290         * tests/test-math-c++.cc: Check the declaration of fabsl.
39292         New module 'fabsl'.
39293         * lib/math.in.h (fabsl): New declaration.
39294         * lib/fabsl.c: New file.
39295         * m4/fabsl.m4: New file.
39296         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
39297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
39298         REPLACE_FABSL.
39299         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
39300         REPLACE_FABSL.
39301         * modules/fabsl: New file.
39302         * doc/posix-functions/fabsl.texi: Mention the new module.
39304 2012-02-25  Bruno Haible  <bruno@clisp.org>
39306         fabs tests: More tests.
39307         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
39308         (zero): New variable.
39309         (main): Add tests for signed zero.
39310         * modules/fabs-tests (Files): Add tests/minus-zero.h.
39312         fabsf tests: More tests.
39313         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
39314         (zero): New variable.
39315         (main): Add tests for signed zero.
39316         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
39318 2012-02-24  Bruno Haible  <bruno@clisp.org>
39320         atanl: Provide function definition on MSVC.
39321         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
39322         function pointer.
39323         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
39325 2012-02-24  Bruno Haible  <bruno@clisp.org>
39327         acosl: Provide function definition on MSVC.
39328         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
39329         function pointer.
39330         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
39332 2012-02-24  Bruno Haible  <bruno@clisp.org>
39334         asinl: Provide function definition on MSVC.
39335         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
39336         function pointer.
39337         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
39339 2012-02-24  Bruno Haible  <bruno@clisp.org>
39341         tanl: Provide function definition on MSVC.
39342         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
39343         function pointer.
39344         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
39346 2012-02-24  Bruno Haible  <bruno@clisp.org>
39348         cosl: Provide function definition on MSVC.
39349         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
39350         function pointer.
39351         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
39353 2012-02-24  Bruno Haible  <bruno@clisp.org>
39355         sinl: Provide function definition on MSVC.
39356         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
39357         function pointer.
39358         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
39360 2012-02-24  Bruno Haible  <bruno@clisp.org>
39362         logl: Provide function definition on MSVC.
39363         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
39364         function pointer.
39365         * lib/math.in.h (logl): Undefine if it does not exist as a function.
39367 2012-02-24  Bruno Haible  <bruno@clisp.org>
39369         expl: Provide function definition on MSVC.
39370         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
39371         function pointer.
39372         * lib/math.in.h (expl): Undefine if it does not exist as a function.
39374 2012-02-24  Bruno Haible  <bruno@clisp.org>
39376         sqrtl: Provide function definition on MSVC.
39377         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
39378         a function pointer.
39379         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
39381 2012-02-24  Bruno Haible  <bruno@clisp.org>
39383         ceill: Provide function definition on MSVC.
39384         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
39385         used as a function pointer.
39386         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
39388 2012-02-24  Bruno Haible  <bruno@clisp.org>
39390         floorl: Provide function definition on MSVC.
39391         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
39392         used as a function pointer.
39393         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
39395 2012-02-24  Bruno Haible  <bruno@clisp.org>
39397         ceilf: Provide function definition on MSVC.
39398         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
39399         used as a function pointer.
39400         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
39402 2012-02-24  Bruno Haible  <bruno@clisp.org>
39404         floorf: Provide function definition on MSVC.
39405         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
39406         used as a function pointer.
39407         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
39409 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39411         stdnoreturn: new module
39412         This implements a replacement for C11's <stdnoreturn.h>.
39413         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
39414         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
39415         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39416         * tests/test-stdnoreturn.c: New files.
39418 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
39420         regex: fix false multibyte matches in some regular expressions
39421         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
39422         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
39423         * lib/regex_internal.c (re_string_skip_chars):
39424         Fix miscomputation of remain_len that may cause incomplete
39425         multi-byte character and false match.
39427 2012-02-24  Jim Meyering  <meyering@redhat.com>
39429         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
39430         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
39431         uses with "==" *before* the call, e.g., 0 == strcmp (...)
39432         Remove now-unnecessary str''cmp obfuscation.
39433         Suggested by Akim Demaille.
39435 2012-02-24  Bruno Haible  <bruno@clisp.org>
39437         streq: Rename macro.
39438         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
39439         * NEWS: Mention the change.
39440         * lib/mbrtowc.c (mbrtowc): Update.
39441         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
39442         * lib/wcwidth.c (wcwidth): Update.
39443         Suggested by Akim Demaille and Jim Meyering.
39445 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
39447         regex: fix typo in definition of MIN
39448         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
39449         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
39451 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39452             Bruno Haible  <bruno@clisp.org>
39454         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
39455         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
39456         entries into a stack-allocated buffer directly.
39457         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
39459 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39460             Bruno Haible  <bruno@clisp.org>
39462         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
39464          - There were several instances of this pattern:
39466              for (;;) {
39467                n = acl (f, GETACLCNT, 0, NULL);
39468                [ allocate an array A of size N ]
39469                if (acl (f, GETACL, n, a) == n)
39470                  break;
39471              }
39473            This loop might never terminate if some other process is constantly
39474            manipulating the file's ACL.  The loop should be rewritten to
39475            terminate.
39477          - The acl (... GETACLNT ...) call is merely an optimization; its value
39478            is merely a hint as to how big to make the array.  A better
39479            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
39480            and just guess a reasonably-big size, growing the size and trying
39481            again if it's not large enough.  This guarantees termination, and
39482            saves a system call.
39484         * lib/acl-internal.h: Include <limits.h>.
39485         (MIN, SIZE_MAX): New macros.
39486         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
39487         a stack-allocated buffer, and use malloc if it does not fit. Don't
39488         use GETACLCNT.
39489         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39491 2012-02-19  Bruno Haible  <bruno@clisp.org>
39493         acl: Fix endless loop on Solaris with vxfs.
39494         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
39495         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
39496         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39497         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
39498         * tests/test-sameacls.c (main)[Solaris]: Likewise.
39499         Reported by Bill Jones in
39500         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
39502 2012-02-19  Bruno Haible  <bruno@clisp.org>
39504         acl: Fix copy-acl test failure on Solaris 11.0.
39505         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
39506         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
39507         that this function returns 0 in some more cases.
39509 2012-02-19  Bruno Haible  <bruno@clisp.org>
39511         acl: Update doc references.
39512         * doc/acl-resources.txt: Update links to Solaris documentation.
39514 2012-02-19  Bruno Haible  <bruno@clisp.org>
39516         Fix test failure in many locales on Solaris 11.
39517         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
39518         'tr' arguments.
39519         * tests/test-pipe-filter-ii1.c (main): Likewise.
39520         * build-aux/bootstrap (check_versions): Run 'tr' command with range
39521         expressions in the C locale.
39522         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
39523         * m4/host-os.m4 (gl_HOST_OS): Likewise.
39525 2012-02-19  Bruno Haible  <bruno@clisp.org>
39527         gnulib-tool: Improve usage message.
39528         * gnulib-tool (func_usage): Move doc of --help and --version to the
39529         section "Operation modes".
39531 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
39533         README-release: make it easier to execute commands
39534         * top/README-release: break commands out on to separate lines.
39536 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
39538         GNUmakefile: simplify detection of unconfigured trees
39539         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
39540         whether the tree make is being run from is already configured or
39541         not.  Related simplifications.
39543 2012-02-13  Simon Josefsson  <simon@josefsson.org>
39545         * gnulib-tool (func_usage): Document --help and --version.
39547 2012-02-11  Jim Meyering  <meyering@redhat.com>
39549         bootstrap: don't exit 0 upon gnulib-tool failure
39550         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
39551         its exit status, not 0.
39553 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
39555         README-release: various improvements
39556         * top/README-release: Give a command to push changes for the
39557         release.  Add "distcheck" to list of other pre-release checks.
39558         Fix instance of "make stable" which should be "make TYPE".
39560 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39562         maint: replace FSF snail-mail addresses with URLs
39563         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
39564         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
39565         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
39566         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
39567         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
39568         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
39569         * lib/check-version.c, lib/check-version.h, lib/config.charset:
39570         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
39571         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
39572         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
39573         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
39574         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
39575         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
39576         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
39577         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
39578         * lib/glthread/thread.c, lib/glthread/thread.h:
39579         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
39580         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
39581         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
39582         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
39583         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
39584         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
39585         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
39586         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
39587         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
39588         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
39589         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
39590         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
39591         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
39592         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
39593         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
39594         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
39595         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
39596         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
39597         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
39598         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
39599         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
39600         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
39601         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
39602         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
39603         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
39604         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
39605         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
39606         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
39607         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
39608         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
39609         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
39610         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
39611         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
39612         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
39613         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
39614         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
39615         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
39616         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
39617         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
39618         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
39619         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
39620         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
39621         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
39622         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
39623         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
39624         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
39625         * tests/test-poll.c, tests/test-quotearg-simple.c:
39626         * tests/test-quotearg.c, tests/test-quotearg.h:
39627         * tests/test-round-ieee.c, tests/test-round1.c:
39628         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
39629         * tests/test-roundl-ieee.c, tests/test-roundl.c:
39630         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
39631         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
39632         * tests/test-strerror.c, tests/test-strerror_r.c:
39633         * tests/test-strsignal.c, tests/test-strverscmp.c:
39634         * tests/test-xmemdup0.c:
39635         Replace FSF snail mail addresses with URLs, as per GNU coding
39636         standards.  See glibc bug
39637         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
39639 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
39641         README-release: capitalize a word and split a line
39642         * top/README-release: Fix punctuation and spacing.
39644 2012-02-08  Akim Demaille  <demaille@gostai.com>
39646         fatal-signal: use C prototypes (with explicit void).
39647         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39648         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
39650 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39652         regex: spelling fix
39653         * lib/regexec.c: spelling fix
39655         regex: rely on stdint.h for SIZE_MAX
39656         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
39658 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39660         regex: merge glibc changes
39662         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
39663         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
39664         (init_word_char): Work even if bitset words are not exactly 32 or
39665         64 bits wide.  Don't assume there are no padding bits.
39666         * lib/regex.c [_LIBC]: Do not include <config.h>.
39667         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39668         and -Wtype-limits.
39669         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39670         needless disagreement with glibc.  All uses changed.  Define it to
39671         1 only if _GNU_SOURCE, to match glibc.
39672         (_REG_RM_NAME): Remove; no longer needed, since the names in
39673         question are now all protected by __USE_GNU.
39674         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39675         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39676         * lib/regex_internal.h (MIN): New macro.
39678         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39679         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39681         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39682         * lib/regex_internal.c (re_string_fetch_byte_case):
39683         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39684         is miscompiled, and it turns out it is because of an incorrect
39685         attribute on re_string_fetch_byte_case.  Unlike
39686         re_string_peek_byte_case, this one is really not pure, it modifies
39687         memory (increments pstr->cur_idx), and with the pure attribute GCC
39688         assumed it doesn't and it cached the presumed value of
39689         regexp->cur_idx in a variable across the
39690          for (;; ++i)
39691            {
39692              if (i >= BRACKET_NAME_BUF_SIZE)
39693                return REG_EBRACK;
39694              if (token->type == OP_OPEN_CHAR_CLASS)
39695                ch = re_string_fetch_byte_case (regexp);
39696              else
39697                ch = re_string_fetch_byte (regexp);
39698              if (re_string_eoi(regexp))
39699                return REG_EBRACK;
39700              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39701                break;
39702              elem->opr.name[i] = ch;
39703            }
39705         2011-11-29 Andreas Schwab <schwab@redhat.com>
39706         * lib/regcomp.c (build_equiv_class):
39707         Fix access after end of search string in regex matcher.
39709         2011-11-12 Ulrich Drepper <drepper@redhat.com>
39710         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
39712         2011-10-12 Ulrich Drepper <drepper@redhat.com>
39713         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
39715         2011-10-11 Ulrich Drepper <drepper@redhat.com>
39716         * lib/regcomp.c (parse_branch, parse_sub_exp):
39717         More regex memory leak fixes and tests.
39718         (parse_sub_exp, parse_bracket_exp):
39719         Fix memory leak for some invalid regular expressions.
39721         2011-05-28 Ulrich Drepper <drepper@gmail.com>
39722         * lib/regex_internal.c, lib/regexec.c:
39723         Fix unnecessary overallocation due to incomplete character.  When
39724         incomplete characters are found at the end of a string the code
39725         ran amok and allocated lots of memory.  Stricter limits are now in
39726         place.
39728         2011-05-20 Reuben Thomas <rrt@sc3d.org>
39729         * lib/regex.h: Update documentation.
39731         2011-05-16 Aharon Robbins <arnold@skeeve.com>
39732         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
39734         2010-05-05 Andreas Schwab <schwab@redhat.com>
39735         * lib/regexec.c (find_collation_sequence_value):
39736         Fix lookup of collation sequence value during regexp matching.
39738         2010-01-22 Ulrich Drepper <drepper@redhat.com>
39739         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
39741         2008-01-16 Ulrich Drepper <drepper@redhat.com>
39742         * lib/regex.h: Cleanup namespace.
39744         2007-11-26 Ulrich Drepper <drepper@redhat.com>
39745         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
39747         2007-08-26 Ulrich Drepper <drepper@redhat.com>
39748         * lib/regex_internal.h: Prevent some declarations and definitions
39749         to be seen when used in tests.
39751         2005-05-06 Ulrich Drepper <drepper@redhat.com>
39752         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
39753         __libc_lock_* macros if not _LIBC.
39754         (struct re_dfa_t): Add lock.
39756 2012-02-07  Eric Blake  <eblake@redhat.com>
39758         maint.mk: also prohibit lower-case @var@
39759         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
39760         lower case, like @top_srcdir@.
39762 2012-02-04  Eric Blake  <eblake@redhat.com>
39764         canonicalize: avoid uninitialized memory use
39765         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
39766         random '/' left in dest.
39767         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
39769 2012-02-04  Bruno Haible  <bruno@clisp.org>
39771         isatty: Fix test failure of ptsname_r on native Windows.
39772         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
39773         and don't set errno.
39774         (isatty): Test first whether fd is valid. Set errno when returning 0.
39776 2012-02-04  Bruno Haible  <bruno@clisp.org>
39778         spawn-pipe tests: Fix a NULL program name in a diagnostic.
39779         * tests/test-spawn-pipe-main.c: Include progname.h.
39780         (main): Invoke set_program_name.
39781         * modules/spawn-pipe-tests (Depends-on): Add progname.
39783         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
39784         * tests/test-nonblocking-socket-main.c: Include progname.h.
39785         (main): Invoke set_program_name.
39786         * modules/nonblocking-socket-tests (Depends-on): Add progname.
39788         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
39789         * tests/test-nonblocking-pipe-main.c: Include progname.h.
39790         (main): Invoke set_program_name.
39791         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
39793 2012-02-04  Eric Blake  <eblake@redhat.com>
39795         canonicalize-lgpl: fix // handling
39796         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
39798         canonicalize: fix // handling
39799         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
39800         /// to //, since only // is special.
39802 2012-02-04  Bruno Haible  <bruno@clisp.org>
39804         ioctl: Fix test failure on native Windows.
39805         * lib/ioctl.c: Include msvc-nothrow.h.
39806         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39808 2012-02-04  Bruno Haible  <bruno@clisp.org>
39810         fsync: Avoid test failure on native Windows.
39811         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39812         read-only.
39814 2012-02-04  Bruno Haible  <bruno@clisp.org>
39816         sys_select: Avoid syntax error on OpenBSD 5.0.
39817         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
39818         currently being included, just include the system's <sys/select.h>.
39820 2012-02-04  Bruno Haible  <bruno@clisp.org>
39822         sys_select: Avoid syntax error on OpenBSD 5.0.
39823         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39824         <sys/select.h>, not before.
39825         Reported by Jiri B <jirib@devio.us>.
39827 2012-02-04  Bruno Haible  <bruno@clisp.org>
39829         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39830         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39831         global variables.
39832         * tests/test-get-rusage-data.c (main): Likewise.
39833         Reported by Jim Meyering.
39835 2012-02-04  Bruno Haible  <bruno@clisp.org>
39837         stdioext: Fix last commit.
39838         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39840 2012-02-03  Bruno Haible  <bruno@clisp.org>
39842         stdioext: Add tentative support for Plan9.
39843         * lib/stdio-impl.h: Include <errno.h>.
39844         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39845         * lib/freadable.c (freadable): Likewise.
39846         * lib/fwritable.c (fwritable): Likewise.
39847         * lib/fbufmode.c (fbufmode): Likewise.
39848         * lib/freading.c (freading): Likewise.
39849         * lib/fwriting.c (fwriting): Likewise.
39850         * lib/freadptr.c (freadptr): Likewise.
39851         * lib/freadseek.c (freadptrinc): Likewise.
39852         * lib/freadahead.c (freadahead): Likewise.
39853         * lib/fpurge.c (fpurge): Likewise.
39854         * lib/fseeko.c (rpl_fseeko): Likewise.
39855         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39856         Reported by Jens Staal <staal1978@gmail.com>.
39858 2012-02-02  Jim Meyering  <meyering@redhat.com>
39860         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39861         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39862         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39863         not even to try to add the attribute.  Instead, add a pragma to suppress
39864         the suggestion/warning.
39866 2012-01-31  Karl Berry  <karl@gnu.org>
39868         setstate doc: typo.
39869         * doc/posix-functions/setstate.texi (setstate): { not (.
39871 2012-01-31  Bruno Haible  <bruno@clisp.org>
39873         popen: Make more robust on Windows.
39874         * lib/popen.c: On native Windows, use the _popen based code even if
39875         HAVE_POPEN is set.
39876         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39877         environment variable on native Windows.
39879 2012-01-30  Bruno Haible  <bruno@clisp.org>
39881         pclose: Fix typo.
39882         * lib/stdio.in.h (pclose): Fix typo in warning message.
39884 2012-01-30  Bruno Haible  <bruno@clisp.org>
39886         doc about getlogin_r, setstate.
39887         * doc/posix-functions/getlogin_r.texi: List the incompatible
39888         declaration problem under "not fixed by gnulib".
39889         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39890         problem on Solaris 11 and other platforms.
39892 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39893             Bruno Haible  <bruno@clisp.org>
39895         poll tests: Make test more robust.
39896         * tests/test-poll.c: Include macros.h.
39897         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39898         return value of various I/O operations.
39899         * modules/poll-tests (Files): Add tests/macros.h.
39901 2012-01-30  Bruno Haible  <bruno@clisp.org>
39903         sys_stat: Fix support for mingw64 and MSVC.
39904         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39905         header files already do it.
39906         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39907         stat itself.
39908         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39910 2012-01-30  Bruno Haible  <bruno@clisp.org>
39912         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39914         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39916 2012-01-29  Bruno Haible  <bruno@clisp.org>
39918         quotearg: Fix test failure on MacOS X 10.5.
39919         * tests/test-quotearg-simple.c: Include localcharset.h.
39920         (main): If the locale encoding is not ASCII, bypass the tests of
39921         locale_quoting_style and clocale_quoting_style.
39922         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39924 2012-01-29  Jim Meyering  <meyering@redhat.com>
39926         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39927         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39928         detect uses of canonicalize_file_name.
39930 2012-01-28  Bruno Haible  <bruno@clisp.org>
39932         test-framework-sh: Fix test failure with AIX 7.1 diff.
39933         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39934         in column 1, like 'diff -c' does.
39935         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39936         whether 'diff -u' is used. Instead, test whether the output contains
39937         some '@' character.
39939 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39941         strtoimax: eliminate need for stdint.h, inttypes.h checks
39942         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39943         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39944         the prerequisites for a recently-introduced strtoimax test.
39945         I guess this might cause strtoimax to be replaced when not
39946         strictly necessary on older hosts, but this shouldn't introduce
39947         any bugs and it should make Emacs 'configure' faster on typical
39948         modern hosts.  Problem discovered when importing the latest gnulib
39949         to an Emacs test version.
39950         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39952 2012-01-28  Bruno Haible  <bruno@clisp.org>
39954         sys_time: Override 'struct timeval' on some native Windows platforms.
39955         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39956         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39957         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39958         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39959         needs to be overridden.
39960         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39961         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39962         * tests/test-sys_select.c: Check that the tv_sec member has the same
39963         size as a 'time_t'.
39964         * tests/test-sys_time.c: Likewise.
39965         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39966         is set, set also REPLACE_GETTIMEOFDAY.
39967         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39968         convert the resulting 'struct timeval' before returning.
39969         * lib/select.c: Include <sys/time.h>.
39970         (select, timeval): Undefine at the right place.
39971         * modules/select (Depends-on): Add sys_time.
39972         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39973         some Windows platforms.
39974         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39976 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39978         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39979         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39980         an integer.
39981         * lib/fcntl.c (dupfd): Likewise.
39982         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39984 2012-01-28  Bruno Haible  <bruno@clisp.org>
39986         fcntl: Avoid compilation error on native Windows.
39987         * modules/fcntl (Depends-on): Add 'close'.
39989 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39991         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39992         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39993         pointer to an integer.
39994         * lib/poll.c (IsConsoleHandle): Likewise.
39995         * lib/isatty.c (IsConsoleHandle): Likewise.
39997 2012-01-28  Jim Meyering  <meyering@redhat.com>
39999         doc: clarify README-release
40000         * top/README-release: Clarify: you should make a point to have
40001         the latest stable versions of build tools in your PATH, and the
40002         reference to buildreq is solely for its list of tool names, not
40003         for its minimal-functional version numbers.
40004         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
40006         maint.mk: use more readable (yet functionally equivalent) quoting
40007         It is common to quote a single quote in a single quoted string like
40008         this:  '...'\''...'.  Unless you know the idiom, that looks like
40009         gibberish, so prefer to double-quote the string when possible.
40010         Then you can use a more readable, lone single quote: "...'..."
40011         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
40012         "don't" is more readable than the equivalent 'don'\''t'.
40013         (sc_cast_of_x_alloc_return_value): Likewise.
40014         (sc_cast_of_alloca_return_value): Likewise.
40015         (sc_makefile_path_separator_check): Similar: use ":" in '...',
40016         rather than '\'':'\''.
40018 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40020         stdalign: relax _Alignof and tighten _Alignas test
40021         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
40022         as it was too strict: alignof must divide offsetof, but it need
40023         not equal offsetof.  Inspired by Joseph S. Myers's comment
40024         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
40025         Conversely, tighten the _Alignas test a bit, as the resulting
40026         alignment must be exactly 8.
40028 2012-01-27  Bruno Haible  <bruno@clisp.org>
40030         stdalign: Document the last change.
40031         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
40033 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40035         stdalign: check that alignof and offsetof are consistent
40036         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
40037         Problem reported for gnulib by Richard W.M. Jones in
40038         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
40040 2012-01-27  Jim Meyering  <meyering@redhat.com>
40042         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
40043         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
40044         convert a sequence with gaps to the minimal containing range.
40045         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
40046         * tests/test-update-copyright.sh: Test for this.
40047         The FSF confirmed it is ok to do this, assuming there is at
40048         least one significant change per year in the affected range:
40049         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
40051 2012-01-26  Bruno Haible  <bruno@clisp.org>
40053         pipe2: refine doc about thread-safety
40054         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
40055         multithread-safety problem.
40056         * doc/glibc-functions/accept4.texi: Likewise.
40058 2012-01-26  Bruno Haible  <bruno@clisp.org>
40060         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
40061         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
40062         In the test program, include <fcntl.h>, for O_RDONLY.
40064 2012-01-26  Eric Blake  <eblake@redhat.com>
40066         pipe2: document lack of thread-safety in replacement
40067         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
40068         issue in replacement.
40069         * doc/glibc-functions/accept4.texi (accept4): Likewise.
40070         Based on a report by Eric Wong.
40072 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40073             Bruno Haible  <bruno@clisp.org>
40075         malloca: Avoid warnings on x86_64 mingw64.
40076         * lib/malloca.c: Include <stdint.h>.
40077         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
40078         * modules/malloca (Depends-on): Add stdint.
40079         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
40081 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40083         obstack: remove __STDC__ conditionals
40084         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
40085         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
40086         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
40087         m4/include_next.m4 as the only gnulib-maintained places that still
40088         refer to __STDC__.
40090 2012-01-24  Bruno Haible  <bruno@clisp.org>
40092         havelib: Modern quoting.
40093         * build-aux/config.rpath: Quote 'like this', not `like this', as per
40094         the recent change to the GNU coding standards.
40096 2012-01-24  Bruno Haible  <bruno@clisp.org>
40098         stdint: Improve support for Android.
40099         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
40100         Reported by Simon Josefsson <simon@josefsson.org>.
40102 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40104         doc: omit trailing empty lines from INSTALL etc.
40105         * doc/Makefile (INSTALL): Omit trailing empty lines.
40106         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
40107         omit trailing empty lines.  This simplifies the build procedure.
40109 2012-01-23  Jim Meyering  <meyering@redhat.com>
40111         tests: avoid spurious warnings about gl_sockets_startup
40112         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
40113         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
40114         reporting a "statement with no effect".
40115         * tests/test-accept.c (main): Mark as "(void)".
40116         * tests/test-accept4.c (main): Likewise.
40117         * tests/test-bind.c (main): Likewise.
40118         * tests/test-connect.c (main): Likewise.
40119         * tests/test-getpeername.c (main): Likewise.
40120         * tests/test-getsockname.c (main): Likewise.
40121         * tests/test-getsockopt.c (main): Likewise.
40122         * tests/test-listen.c (main): Likewise.
40123         * tests/test-recv.c (main): Likewise.
40124         * tests/test-recvfrom.c (main): Likewise.
40125         * tests/test-send.c (main): Likewise.
40126         * tests/test-sendto.c (main): Likewise.
40127         * tests/test-setsockopt.c (main): Likewise.
40128         * tests/test-shutdown.c (main): Likewise.
40130 2012-01-21  Bruno Haible  <bruno@clisp.org>
40132         locale-fr.m4: Fix for Android.
40133         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
40134         failure of the test program on Bionic libc.
40136 2012-01-21  Jim Meyering  <meyering@redhat.com>
40138         bootstrap: fail when bootstrap_post_import_hook fails
40139         Otherwise, it's far too easy to miss diagnostics emitted
40140         between gnulib-tool's output and that of running configure.
40141         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
40143 2012-01-17  Jim Meyering  <meyering@redhat.com>
40145         maint: enable sc_trailing_blank
40146         * build-aux/pmccabe.css: Remove trailing blanks.
40147         * doc/acl-cygwin.txt: Likewise.
40148         * doc/gnu-oids.texi: Likewise
40149         * cfg.mk: Enable sc_trailing_blank.
40150         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
40152 2012-01-17  Jim Meyering  <meyering@redhat.com>
40154         maint: enable sc_prohibit_openat_without_use
40155         * cfg.mk: Enable sc_prohibit_openat_without_use.
40156         Exempt lib/selinux-at.c.
40158 2012-01-17  Jim Meyering  <meyering@redhat.com>
40160         maint: enable sc_prohibit_cloexec_without_use
40161         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
40162         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
40164 2012-01-17  Jim Meyering  <meyering@redhat.com>
40166         maint: enable sc_prohibit_intprops_without_use
40167         * cfg.mk: Enable sc_prohibit_intprops_without_use
40168         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
40170 2012-01-17  Jim Meyering  <meyering@redhat.com>
40172         maint: enable sc_prohibit_hash_pjw_without_use
40173         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
40174         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40175         to match any use of \<hash_pjw\>, i.e., not necessarily with a
40176         following " (".
40178 2012-01-17  Jim Meyering  <meyering@redhat.com>
40180         maint: enable double-word-prohibiting rule
40181         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
40182         Exempt three files.
40184 2012-01-17  Jim Meyering  <meyering@redhat.com>
40186         maint: remove empty lines at EOF, but excluding modules/*
40187         Apply syntax rules at home as well as abroad.  Most changes
40188         were induced by running this:
40189           make srcdir=. _build-aux=build-aux -f top/maint.mk \
40190             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
40191             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
40192         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
40193         Exempt modules/* and two binary files.
40194         Also exempt doc/INSTALL*, per request from Bruno Haible.
40195         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
40196         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40197         * doc/Copyright/request-assign.future: Likewise.
40198         * doc/Copyright/request-disclaim.changes: Likewise.
40199         * doc/INSTALL: Likewise.
40200         * doc/INSTALL.ISO: Likewise.
40201         * doc/INSTALL.UTF-8: Likewise.
40202         * doc/acl-cygwin.txt: Likewise.
40203         * doc/acl-resources.txt: Likewise.
40204         * doc/fdl-1.2.texi: Likewise.
40205         * doc/fdl-1.3.texi: Likewise.
40206         * doc/fdl.texi: Likewise.
40207         * lib/argp-pin.c: Likewise.
40208         * lib/round.c: Likewise.
40209         * lib/unicase/u16-totitle.c: Likewise.
40210         * lib/unictype/block_test.c: Likewise.
40211         * lib/uninorm/canonical-decomposition.c: Likewise.
40212         * m4/README: Likewise.
40213         * m4/relocatable-lib.m4: Likewise.
40214         * tests/test-isnand-nolibm.c: Likewise.
40215         * tests/test-isnand.c: Likewise.
40216         * tests/uninorm/NormalizationTest.txt: Likewise.
40218 2012-01-17  Jim Meyering  <meyering@redhat.com>
40220         maint: add framework to run syntax-check rules against gnulib sources
40221         * cfg.mk: New file, to disable all currently-failing tests.
40222         We'll enable them one by one, as they are made to pass.
40223         * Makefile (sc_maint): New rule.
40225 2012-01-21  Bruno Haible  <bruno@clisp.org>
40227         stdint: Add support for Android.
40228         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
40229         include the system's <stdint.h>.
40230         Reported by Simon Josefsson <simon@josefsson.org>.
40232 2012-01-19  Jim Meyering  <meyering@redhat.com>
40234         bootstrap: add bootstrap_post_import_hook
40235         Bison does still need something like the gnulib_mk_hook whose
40236         invocation I had to remove along with slurp in commit 767ccd40.
40237         Technically, we could get along without it, but doing so would
40238         have required living with a warning and a mandatory post-bootstrap
40239         automake rerun.
40240         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
40241         (bootstrap_post_import_hook): New function.
40242         Invoke it after gnulib-tool --import and before autoreconf.
40244 2012-01-18  Jim Meyering  <meyering@redhat.com>
40246         gitlog-to-changelog: don't use "no_"-prefixed variable name
40247         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
40248         to enable both --cluster and --no-cluster.  Change variable name,
40249         s/\$no_cluster/$cluster/, and reverse usage to match.
40251         gitlog-to-changelog: use "||", not "or" in expressions
40252         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
40253         expressions.
40255 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
40257         gitlog-to-changelog: new option --no-cluster
40258         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
40259         clustering of adjacent commit messages.
40261 2012-01-17  Jim Meyering  <meyering@redhat.com>
40263         maint: spell file systems with two words, not one
40264         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
40265         two words, not one.
40267 2012-01-16  Jim Meyering  <meyering@redhat.com>
40269         bootstrap: add a FIXME comment to ensure we eventually remove the hack
40270         * build-aux/bootstrap (gnulib_tool_options): Add comment.
40272 2012-01-16  Eric Blake  <eblake@redhat.com>
40274         bootstrap: cater to autoconf 2.59
40275         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
40276         is not available.
40278         bootstrap: properly check for libtool
40279         * build-aux/bootstrap (libtoolize): Also run libtool when older
40280         usage is detected.
40282 2012-01-15  Bruno Haible  <bruno@clisp.org>
40284         Improve support for MSVC 9.
40285         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
40286         clashes on MSVC.
40287         * lib/fcntl.in.h: Likewise.
40288         * lib/stdlib.in.h: Likewise.
40289         * lib/sys_stat.in.h: Likewise.
40291 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
40293         gnupload: we hold the master copy of this script now
40294         For motivation and more information, see:
40295         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
40296         * build-aux/gnupload: Make it clear in the heading comments that the
40297         master copy of this file is maintained by gnulib.  Since we are at
40298         it, bump its copyright year and ...
40299         ($scriptversion): ... the date in its version.
40300         ($usage): Patches and bug reports should be sent to the gnulib list,
40301         not the automake one.
40302         * config/srclist.txt: Don't try to sync 'gnupload' from automake
40303         anymore.
40305 2012-01-15  Bruno Haible  <bruno@clisp.org>
40307         Fix module 'random'.
40308         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
40309         initstate, setstate are declared.
40311 2012-01-14  Bruno Haible  <bruno@clisp.org>
40313         Tests for module 'random'.
40314         * modules/random-tests: New file.
40315         * tests/test-random.c: New file, based on tests/test-random_r.c.
40317         New module 'random'.
40318         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
40319         declarations.
40320         * lib/random.c: New file, based on glibc/stdlib/random.c.
40321         * m4/random.m4: New file.
40322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
40323         HAVE_RANDOM.
40324         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
40325         * modules/random: New file.
40326         * config/srclist.txt: Add an entry for random.c.
40327         * doc/posix-functions/random.texi: Mention the 'random' module.
40328         * doc/posix-functions/initstate.texi: Likewise.
40329         * doc/posix-functions/setstate.texi: Likewise.
40330         * doc/posix-functions/srandom.texi: Likewise.
40332 2012-01-12  Bruno Haible  <bruno@clisp.org>
40334         random_r: Use common idioms.
40335         * lib/random_r.c: Include <stdlib.h> first.
40337         random_r: Override incompatible API on AIX, OSF/1.
40338         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
40339         Override the system function if REPLACE_RANDOM_R is 1.
40340         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
40341         and OSF/1, set REPLACE_RANDOM_R.
40342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
40343         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
40344         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
40345         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
40346         * doc/glibc-functions/random_r.texi: Likewise.
40347         * doc/glibc-functions/setstate_r.texi: Likewise.
40349         random_r: Support for MSVC 9.
40350         * lib/random_r.c: Include stdint.h, not inttypes.h.
40352 2012-01-12  Eric Blake  <eblake@redhat.com>
40354         inet_ntop: guard extra work by IF_LINT
40355         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
40356         better code generation when not checking for warnings.
40357         Suggested by Paul Eggert and Jim Meyering.
40359         strptime: fix regression on mingw
40360         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
40361         Fix regression.  Reported by Bruno Haible.
40363 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
40364             Bruno Haible  <bruno@clisp.org>
40366         copy-file: add error-code-returning variant.
40367         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
40368         (qcopy_file_preserving): New declaration.
40369         * lib/copy-file.c (qcopy_file_preserving): Renamed from
40370         copy_file_preserving. Change return type to 'int'. Don't emit an error
40371         message here.
40372         (copy_file_preserving): New function.
40373         * tests/test-copy-file.c: Include <stdlib.h>.
40374         (main): Test qcopy_file_preserving if the environment variable
40375         NO_STDERR_OUTPUT is set.
40376         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
40377         with NO_STDERR_OUTPUT
40378         * tests/test-copy-file-2.sh: Likewise.
40380 2012-01-10  Bruno Haible  <bruno@clisp.org>
40382         copy-file: Use 'quote' module consistently.
40383         * lib/copy-file.c (copy_file_preserving): Use quote().
40385         copy-file: Refactor.
40386         * lib/copy-file.c: Include quote.h.
40387         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
40388         message here.
40389         * modules/copy-file (Depends-on): Add quote.
40391         acl: Export qcopy_acl.
40392         * lib/acl.h (qcopy_acl): New declaration.
40393         * lib/copy-acl.c (qcopy_acl): Make non-static.
40395         acl: Rename a local variable.
40396         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
40398         acl: Align return values of copy_acl and qcopy_acl.
40399         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
40400         maybe < -1.
40402 2012-01-11  Eric Blake  <eblake@redhat.com>
40404         strptime: silence gcc warnings
40405         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
40406         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
40407         Reported by Daniel P. Berrange.
40409         inet_ntop: silence gcc warning
40410         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
40411         Reported by Daniel P. Berrange.
40413 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
40415         getloadavg test: skip the test on GNU/Linux without /proc mounted
40416         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
40417         file.  When /proc is not mounted, it always fails with ENOENT.
40418         * tests/test-getloadavg.c (main): Treat ENOENT return code from
40419         getloadavg(3) the same way as ENOSYS and ENOTSUP.
40421 2012-01-10  Bruno Haible  <bruno@clisp.org>
40423         regex: Avoid link error on MSVC 9.
40424         * modules/regex (Depends-on): Add wctype.
40426 2012-01-10  Bruno Haible  <bruno@clisp.org>
40428         doc: Mention --with-tests option.
40429         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
40430         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
40431         --with-tests.
40432         Reported by Reuben Thomas.
40434 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
40436         users.txt: order package names lexicographically.
40437         * users.txt: Order package names lexicographically.
40439 2012-01-10  Jim Meyering  <meyering@redhat.com>
40441         maint.mk: fix description in comment
40442         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
40444         ignore-value: remove deprecated ignore_ptr function
40445         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
40446         * NEWS: Note this.
40448 2012-01-09  Jim Meyering  <meyering@redhat.com>
40450         test-init.sh: avoid a subshell
40451         * tests/test-init.sh: Remove protective subshell.
40452         Suggested by Bernhard Voelker.  While a subshell is normally
40453         required to protect against older shells (Solaris, FreeBSD) that
40454         warn about a missing program before performing redirection, the
40455         shell-selection tests performed by init.sh probably exclude any
40456         offending shell.
40458 2012-01-08  Bruno Haible  <bruno@clisp.org>
40460         setlocale tests: Avoid test failure on Solaris 11.0.
40461         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
40462         variable.
40464 2012-01-08  Bruno Haible  <bruno@clisp.org>
40466         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
40467         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40468         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40469         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
40470         macro.
40471         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
40472         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40473         * lib/spawn_faction_addopen.c: Add workaround implementation if
40474         HAVE_WORKING_POSIX_SPAWN.
40475         * modules/spawn (Makefile): Substitute
40476         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40477         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
40478         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
40479         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40480         (Depends-on): Update conditions.
40481         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40482         the Solaris 11 bug.
40484 2012-01-08  Bruno Haible  <bruno@clisp.org>
40486         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
40487         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40488         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40489         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
40490         macro.
40491         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
40492         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40493         * lib/spawn_faction_adddup2.c: Add workaround implementation if
40494         HAVE_WORKING_POSIX_SPAWN.
40495         * modules/spawn (Makefile): Substitute
40496         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40497         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
40498         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
40499         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40500         (Depends-on): Update conditions.
40501         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40502         the Solaris 11 bug.
40504 2012-01-08  Bruno Haible  <bruno@clisp.org>
40506         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
40507         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40508         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
40510         HAVE_WORKING_POSIX_SPAWN.
40511         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
40512         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
40513         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40514         * lib/spawn_faction_addclose.c: Add workaround implementation if
40515         HAVE_WORKING_POSIX_SPAWN.
40516         * modules/spawn (Makefile): Substitute
40517         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40518         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
40519         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
40520         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40521         (Depends-on): Update conditions.
40522         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40523         the Solaris 11 bug.
40525 2012-01-08  Bruno Haible  <bruno@clisp.org>
40527         doc: Update for Solaris 11.0.
40528         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
40529         * m4/printf.m4: Update comments.
40531 2012-01-08  Bruno Haible  <bruno@clisp.org>
40533         mktime: Avoid compilation error on Solaris 11.
40534         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
40536 2012-01-08  Bruno Haible  <bruno@clisp.org>
40538         doc: Small fix.
40539         * doc/posix-headers/nl_types.texi: Correct platforms list.
40541 2012-01-08  Simon Josefsson  <simon@josefsson.org>
40543         Add lgpl-3.0 module.
40544         * MODULES.html.sh (Support for building documentation): Add
40545         lgpl-3.0.
40546         * modules/lgpl-3.0: New file.
40548 2012-01-08  Jim Meyering  <meyering@redhat.com>
40550         select.c: indent with spaces, not TABs
40551         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
40553 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40555         quotearg: do not use grave accent for left quote
40556         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
40557         locale_quoting_style.
40558         (quotearg_buffer_restyled): Fix example.
40559         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
40561 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40563         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
40564         Most programs do not have translation catalogs for English and much
40565         less separate catalogs for British and American English.  Drop the
40566         suggestion to translators about these two, and provide it
40567         automatically for Unicode locales.  Like most programs, even those
40568         using American English, we use single quotation marks.  This conflicts
40569         with the American typographic convention, but works better when you
40570         cite the entire error message within double quotes.  It also tries not
40571         to clash with established practice and with what non-gnulib programs
40572         will usually do.
40573         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
40574         using an UTF-8 or GB-18030 locale.  The list of other locales with
40575         quotes was provided by Bruno Haible.
40576         (quotearg_buffer_restyled): Adjust instructions to translators.
40577         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
40578         text, since this would be wrong when using Unicode.
40579         * modules/quotearg: Depend on c-strcaseeq.
40581 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40583         quotearg: fix Wikipedia link
40584         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
40586 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40588         Fix for mingw with MSVC9.
40589         * m4/ld-version-script.m4: Check that compiler rejects version
40590         scripts with syntax errors.  Reported by Bruno Haible
40591         <bruno@clisp.org>.
40593 2012-01-06  Bruno Haible  <bruno@clisp.org>
40595         Talk about "native Windows API", not "Woe32".
40596         * lib/accept4.c: Update comments to mention native Windows.
40597         * lib/execute.c: Likewise.
40598         * lib/fatal-signal.c: Likewise.
40599         * lib/localcharset.c: Likewise.
40600         * lib/nanosleep.c: Likewise.
40601         * lib/nl_langinfo.c: Likewise.
40602         * lib/pclose.c: Likewise.
40603         * lib/pipe-filter-gi.c: Likewise.
40604         * lib/pipe-filter-ii.c: Likewise.
40605         * lib/pipe.c: Likewise.
40606         * lib/pipe2.c: Likewise.
40607         * lib/popen.c: Likewise.
40608         * lib/progreloc.c: Likewise.
40609         * lib/relocatable.c: Likewise.
40610         * lib/sigaction.c: Likewise.
40611         * lib/sigprocmask.c: Likewise.
40612         * lib/spawn-pipe.h: Likewise.
40613         * lib/spawn-pipe.c: Likewise.
40614         * lib/spawni.c: Likewise.
40615         * lib/stat-time.h: Likewise.
40616         * lib/w32spawn.h: Likewise.
40617         * tests/test-isatty.c: Likewise.
40618         * lib/config.charset: More comments.
40619         * doc/gnulib-intro.texi: Mention native Windows.
40620         * doc/posix-functions/_Exit_C99.texi: Likewise.
40621         * doc/posix-headers/fcntl.texi: Likewise.
40623 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
40625         argp: Avoid crash if translator uses % characters in a translation.
40626         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
40627         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40629 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
40631         doc: C11 and C++11 are now official
40632         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
40633         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
40634         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
40635         * modules/stdalign:
40636         Replace references to draft C1X to C11, and to draft C++0X to C++11.
40638 2012-01-06  Bruno Haible  <bruno@clisp.org>
40640         uc-is-grapheme-break tests: Tweak.
40641         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
40642         message.
40644 2012-01-06  Bruno Haible  <bruno@clisp.org>
40646         test-init.sh: correct the test for diff -u
40647         * tests/test-init.sh: Also redirect stdout to /dev/null.
40649 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40651         Use ', not `, for quoting output.
40652         * build-aux/announce-gen (usage, sizes, print_news_deltas)
40653         (print_changelog_deltas, get_tool_versions, main program):
40654         * build-aux/git-version-gen:
40655         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
40656         * build-aux/move-if-change (help):
40657         * build-aux/useless-if-before-free (usage, main program):
40658         * check-module (parse_module_file, usage)
40659         (find_included_lib_files, check_module):
40660         * lib/argmatch.c (main) [TEST]:
40661         * lib/argp-help.c (_help):
40662         * lib/getopt1.c (main) [TEST]:
40663         * lib/git-merge-changelog.c (usage):
40664         * lib/xstrtol-error.c (xstrtol_error):
40665         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
40666         * m4/argz.m4 (gl_FUNC_ARGZ):
40667         * m4/bison.m4 (gl_BISON):
40668         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40669         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40670         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40671         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40672         * m4/gc-random.m4 (gl_GC_RANDOM):
40673         * m4/intl.m4 (gt_CHECK_DECL):
40674         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40675         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40676         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40678         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40679         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40680         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40681         * tests/test-dirname.c (main):
40682         * tests/test-getpass.c (main):
40683         * tests/test-iconvme.c (main):
40684         * tests/test-parse-datetime.c (LOG):
40685         * tests/test-xstrtoimax.sh:
40686         * tests/test-xstrtol.sh:
40687         * tests/test-xstrtoll.sh:
40688         * tests/test-xstrtoumax.sh:
40689         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40690         * top/GNUmakefile (abort-due-to-no-makefile):
40691         Quote 'like this', not `like this', as per the recent change to
40692         the GNU coding standards.
40694 2012-01-05  Bruno Haible  <bruno@clisp.org>
40696         strtoimax: Don't force a replacement on systems where intmax_t is int.
40697         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40698         'intmax_t' is not larger than 'int'.
40699         Reported by Pádraig Brady <P@draigBrady.com>.
40701 2012-01-05  Bruno Haible  <bruno@clisp.org>
40703         doc: Mention NetBSD bugs.
40704         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40705         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40707 2012-01-05  Bruno Haible  <bruno@clisp.org>
40709         strtoumax tests: Enhance tests.
40710         * tests/test-strtoumax.c (main): Add tests for large values.
40712 2012-01-05  Bruno Haible  <bruno@clisp.org>
40714         strtoimax: Work around AIX 5.1 bug.
40715         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
40716         definition.
40717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
40718         Set HAVE_STRTOIMAX.
40719         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
40720         REPLACE_STRTOIMAX.
40721         * modules/inttypes-incomplete (Makefile.am): Substitute
40722         REPLACE_STRTOIMAX.
40723         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40724         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
40725         (Depends-on): Update conditions.
40726         * tests/test-strtoimax.c (main): Add tests for large values.
40727         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
40729 2012-01-05  Bruno Haible  <bruno@clisp.org>
40731         inttypes: Modernize.
40732         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40733         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
40734         (Makefile.am): Update inttypes.h rule.
40736 2012-01-05  Jim Meyering  <meyering@redhat.com>
40738         init.sh: don't waste a subshell just to redirect stderr
40739         * tests/init.sh: In testing for diff -u and diff -c, use a
40740         stderr-redirecting exec inside `...` rather than a subshell.
40742         test-init.sh: avoid failure on HP-UX 11.00
40743         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
40744         resolves to diff -c or cmp.  Reported by Bruno Haible.
40746 2012-01-05  Bruno Haible  <bruno@clisp.org>
40748         Tests for module 'strtoull'.
40749         * modules/strtoull-tests: New file.
40750         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
40752 2012-01-05  Bruno Haible  <bruno@clisp.org>
40754         Tests for module 'strtoll'.
40755         * modules/strtoll-tests: New file.
40756         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
40758 2012-01-05  Bruno Haible  <bruno@clisp.org>
40760         Tests for module 'strtoul'.
40761         * modules/strtoul-tests: New file.
40762         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
40764 2012-01-05  Bruno Haible  <bruno@clisp.org>
40766         Tests for module 'strtol'.
40767         * modules/strtol-tests: New file.
40768         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
40770 2012-01-04  Jim Meyering  <meyering@redhat.com>
40772         test-init.sh: accommodate Solaris 5.10's different diff -u output
40773         * tests/test-init.sh: Also exempt @@ lines from the comparison
40774         of diff output, since Solaris 5.10 and GNU diff formats differ.
40775         Reported by Stefano Lattarini.
40777 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40779         test-posixtm: don't assume signed integer wraparound
40780         * tests/test-posixtm.c (main): Don't assume wraparound semantics
40781         after signed integer overflow.  Inspired by (though it may not
40782         fix) Bruno Haible's bug report in
40783         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
40785         Spell out "Windows 9x" and "Windows XP".
40786         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
40787         "Windows 9x" and "WinXP" with "Windows XP".
40789 2012-01-04  Jim Meyering  <meyering@redhat.com>
40791         test-vc-list-files-cvs.sh: remove obsolete comment
40792         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
40793         double exit.  Now that's all encapsulated via skip_ and Exit.
40795 2012-01-04  Bruno Haible  <bruno@clisp.org>
40797         Talk about "native Windows API", not "Win32".
40798         * lib/classpath.c: Update comments to mention native Windows.
40799         * lib/csharpexec.c: Likewise.
40800         * lib/dup2.c: Likewise.
40801         * lib/error.c: Likewise.
40802         * lib/fcntl.c: Likewise.
40803         * lib/filename.h: Likewise.
40804         * lib/findprog.c: Likewise.
40805         * lib/get-rusage-as.c: Likewise.
40806         * lib/get-rusage-data.c: Likewise.
40807         * lib/getpagesize.c: Likewise.
40808         * lib/javaexec.c: Likewise.
40809         * lib/msvc-inval.c: Likewise.
40810         * lib/msvc-nothrow.c: Likewise.
40811         * lib/nanosleep.c: Likewise.
40812         * lib/nonblocking.c: Likewise.
40813         * lib/printf-parse.c: Likewise.
40814         * lib/setlocale.c: Likewise.
40815         * lib/sigaction.c: Likewise.
40816         * lib/strerror_r.c: Likewise.
40817         * lib/tmpdir.c: Likewise.
40818         * lib/vasnprintf.c: Likewise.
40819         * lib/w32spawn.h: Likewise.
40820         * lib/waitpid.c: Likewise.
40821         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40822         * m4/locale-ar.m4: Likewise.
40823         * m4/locale-fr.m4: Likewise.
40824         * m4/locale-ja.m4: Likewise.
40825         * m4/locale-tr.m4: Likewise.
40826         * m4/locale-zh.m4: Likewise.
40827         * m4/printf.m4: Likewise.
40828         * tests/test-cloexec.c: Likewise.
40829         * tests/test-copy-acl.sh: Likewise.
40830         * tests/test-copy-file.sh: Likewise.
40831         * tests/test-file-has-acl.sh: Likewise.
40832         * tests/test-set-mode-acl.sh: Likewise.
40833         * tests/test-dup-safer.c: Likewise.
40834         * tests/test-dup2.c: Likewise.
40835         * tests/test-dup3.c: Likewise.
40836         * tests/test-fcntl.c: Likewise.
40837         * tests/test-nonblocking-pipe.h: Likewise.
40838         * tests/test-nonblocking-socket.h: Likewise.
40839         * tests/test-pipe.c: Likewise.
40840         * tests/test-pipe2.c: Likewise.
40841         * tests/test-spawn-pipe-child.c: Likewise.
40842         * doc/acl-resources.txt: Likewise.
40843         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40844         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40845         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40846         * lib/localcharset.c: Update comments to mention native Windows.
40847         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40848         * lib/localename.c: Likewise.
40849         * lib/progreloc.c: Likewise.
40850         * lib/relocatable.c: Likewise.
40851         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40852         (windows_compute_revents): Renamed from win32_compute_revents.
40853         (windows_compute_revents_socket): Renamed from
40854         win32_compute_revents_socket.
40855         * lib/select.c: Update comments to mention native Windows.
40856         (windows_poll_handle): Renamed from win32_poll_handle.
40857         * m4/threadlib.m4: Update comments to mention native Windows.
40858         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40859         --enable-threads=windows instead of --enable-threads=win32. Set
40860         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40861         * lib/glthread/lock.h: Update comments to mention native Windows.
40862         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40863         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40864         USE_WIN32_THREADS.
40865         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40866         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40867         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40868         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40869         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40870         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40871         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40872         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40873         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40874         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40875         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40876         * tests/test-tls.c: Likewise.
40877         Rationale:
40878         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40879         on both 32-bit and 64-bit Windows systems.
40880         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40881         line of distinction is between "native Windows" on one side and Unix/
40882         POSIX systems on the other side. More details in
40883         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40884         Suggested by Paul Eggert.
40886 2012-01-03  Bruno Haible  <bruno@clisp.org>
40888         isatty: Support for MSVC 9.
40889         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40890         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40891         (_isatty_nothrow): New function.
40892         (isatty): Use it instead of _isatty.
40893         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40894         * lib/poll.c (IsConsoleHandle): Likewise.
40895         * lib/select.c (IsConsoleHandle): Likewise.
40896         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40897         (gl_PREREQ_ISATTY): New macro.
40898         * modules/isatty (Depends-on): Add msvc-inval.
40899         (configure.ac): Invoke gl_PREREQ_ISATTY.
40901 2012-01-03  Jim Meyering  <meyering@redhat.com>
40903         maint.mk: remove temporary transition aid from over 1.5 years ago
40904         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40905         purpose was to aid in the transition (avoiding silent malfunction)
40906         from that old name to the new _sc_search_regexp.  This shim was
40907         added by commit 219c504b.
40909         init.sh: do not try to accommodate compare arguments starting with "-"
40910         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40911         compare arguments that start with "-".  Besides, we do not worry
40912         about this when invoking diff or cmp; why start now with sed?
40913         Using "--" to separate options from argument would trigger sed
40914         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40915         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40917 2012-01-02  Bruno Haible  <bruno@clisp.org>
40919         Enhance tests for module 'isatty'.
40920         * modules/isatty-tests (Depends-on): Add pipe-posix.
40921         * tests/test-isatty.c: Include <fcntl.h>.
40922         (DEV_NULL): New macro.
40923         (main): Test the resut of isatty() also on regular files, pipes, and
40924         /dev/null.
40926         New module 'isatty'.
40927         * lib/unistd.in.h (isatty): New declaration.
40928         * lib/isatty.c: New file, based on an idea of
40929         Bastien Roucariès <roucaries.bastien@gmail.com>.
40930         * m4/isatty.m4: New file.
40931         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40932         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40933         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40934         REPLACE_ISATTY.
40935         * modules/isatty: New file.
40936         * doc/posix-functions/isatty.texi: Mention the new module.
40937         Suggested by Paolo Bonzini.
40939 2012-01-02  Bruno Haible  <bruno@clisp.org>
40941         canonicalize: Tweak 2011-12-29 commit.
40942         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40943         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40945 2012-01-02  Jim Meyering  <meyering@redhat.com>
40947         gitlog-to-changelog: describe input syntax in --help output
40948         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40950         gitlog-to-changelog: fix typo in --help: show backslash before email @
40951         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40952         in sources, but not in actual output.
40954 2011-12-30  Jim Meyering  <meyering@redhat.com>
40956         gitlog-to-changelog: don't malfunction when name contains %-directive
40957         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40958         in a name string cause trouble.  E.g., with a user name of "%s",
40959         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40961 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40963         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40964         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40965         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40966         the "  (tiny change)" notation that is appended to the standard
40967         ChangeLog "date  name  email" header line.
40969 2012-01-01  Jim Meyering  <meyering@redhat.com>
40971         test-framework-sh: init.sh: fix "make dist" failure
40972         When using gnulib-tool's --with-tests option and any module that
40973         depends on test-framework-sh, "make dist" would fail due to the
40974         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40975         in the gltests directory, and not in the gllib/ directory.
40976         One way to work around that is to move the EXTRA_DIST += init.sh
40977         from the primary module to the -tests one:
40978         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40979         * modules/test-framework-sh (Makefile.am): ...not here.
40980         Reported by Tom G. Christensen in
40981         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40983         version-etc: update copyright year reported by --version
40984         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40986 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40988         canonicalize: only stat() if required
40989         * lib/canonicalize.c (canonicalize_filename_mode):
40990         Avoid calling l?stat() when both CAN_MISSING,
40991         and CAN_NOLINKS are set, as we neither need
40992         to resolve symlinks or test component existence.
40994 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40996         doc: cover st_ino issues once; add OpenVMS etc.
40997         * doc/posix-functions/stat.texi (stat):
40998         * doc/posix-functions/lstat.texi (lstat):
40999         * doc/posix-functions/fstatat.texi (fstatat):
41000         * doc/posix-functions/fstat.texi (fstat):
41001         Move general 'struct stat' stuff to sys_stat.texi,
41002         leaving behind a pointer.
41003         * doc/posix-headers/sys_stat.texi (sys/stat.h):
41004         Merge duplicate info about 'struct stat' problems into here.
41005         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
41006         and suggest partial workarounds.
41008         same-inode: port to OpenVMS
41009         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
41010         three st_ino values.
41012 2011-12-30  Pádraig Brady  <P@draigBrady.com>
41014         canonicalize: fix references to stat() and lstat()
41015         * lib/canonicalize.c (canonicalize_filename_mode):
41016         Ensure references always resolve to a replacement
41017         function if required (even via a macro).
41019 2011-12-30  Jim Meyering  <meyering@redhat.com>
41021         gitlog-to-changelog: remove a little duplication
41022         * build-aux/gitlog-to-changelog (main): Grep @lines once,
41023         rather than twice.
41025 2011-12-29  Pádraig Brady  <P@draigBrady.com>
41027         canonicalize: add support for not resolving symlinks
41028         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
41029         indicate we don't want to follow symlinks.  Also
41030         provide CAN_MODE_MASK to aid setting these existing
41031         mutually exclusive values.
41032         * lib/canonicalize.c (canonicalize_filename_mode):
41033         Extract the flags from can_mode parameter, which
41034         are currently just used to select between stat()
41035         and lstat().  Also ensure that mutually exclusive
41036         values are flagged immediately as invalid.
41037         * tests/test-canonicalize.c: Verify symlinks are
41038         not followed, and that invalid flag combinations
41039         are diagnosed.
41041 2011-12-25  Jim Meyering  <meyering@redhat.com>
41043         gitlog-to-changelog: do not clump multi-paragraph entries
41044         Identical header lines (date,name,email+coauthors) are suppressed,
41045         thus putting all entries with those same characteristics under
41046         a single header.  However, when a log entry consists of two or
41047         more paragraphs, it may not be clear where it starts and ends.
41048         This change makes it so that such an entry is always separated
41049         from others by a header line, even when that header would
41050         otherwise be suppressed.
41051         * build-aux/gitlog-to-changelog: Implement the above.
41052         Inspired by a related request from Stefano Lattarini in
41053         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
41055 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41057         announce-gen: fix `cmd' typo in diagnostic
41058         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
41059         diagnostic: a missing '$' meant that the command was not output.
41061 2011-12-23  Jim Meyering  <meyering@redhat.com>
41063         test-framework-sh: distribute init.sh
41064         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
41065         Otherwise, "make -C gnulib-tests check" (at least in grep) would
41066         fail due to the lack of init.sh.
41068         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
41069         * modules/atexit-tests: Rather than listing tests/init.sh,
41070         now that there's a module for it, simply depend on that new module.
41071         * modules/closein-tests: Likewise.
41072         * modules/exclude-tests: Likewise.
41073         * modules/getcwd-tests: Likewise.
41074         * modules/perror-tests: Likewise.
41075         * modules/pread-tests: Likewise.
41076         * modules/pwrite-tests: Likewise.
41077         * modules/vc-list-files-tests: Likewise.
41078         * modules/verify-tests: Likewise.
41079         * modules/xalloc-die-tests: Likewise.
41080         * modules/xstrtoimax-tests: Likewise.
41081         * modules/xstrtol-tests: Likewise.
41082         * modules/xstrtoll-tests: Likewise.
41083         * modules/xstrtoumax-tests: Likewise.
41084         * modules/yesno-tests: Likewise.
41086 2011-12-22  Jim Meyering  <meyering@redhat.com>
41088         test-framework-sh: add minimal tests of init.sh's compare function
41089         * modules/test-framework-sh-tests: New file.
41090         * tests/test-init.sh: New file.
41092         test-framework-sh: new module
41093         * modules/test-framework-sh: New file.
41094         * MODULES.html.sh (Support for maintaining and releasing projects):
41095         List it.
41097         init.sh: do not emit simulated diff output to stderr
41098         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
41100 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41102         .gitignore: ignore gnulib.dvi and regex.info
41103         * doc/.gitignore:add gnulib.dvi and regex.info
41105 2011-12-22  Jim Meyering  <meyering@redhat.com>
41107         init.sh: correct previous change
41108         * tests/init.sh (compare): My previous change was wrong.
41109         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
41111         init.sh: avoid unwarranted test failure when using "set -e"
41112         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
41113         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
41114         a use like "compare exp out" would get evoke an unconditional failure.
41116 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
41118         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
41119         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
41120         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
41121         autoreconf that did not.
41122         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
41123         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41125 2011-12-17  Jim Meyering  <meyering@redhat.com>
41127         bootstrap: remove some now-unneeded code
41128         This script arose back when gnulib-tool was young.
41129         Since then, it has seen improvements that render much of this
41130         script unnecessary.  In particular, it can now make symlinks
41131         to the files it uses.  Also, I no longer see as much value in
41132         marking files as read-only via comments.
41133         If you relied on the symlink-creation feature of the preceding
41134         version of this script, you can get most of that functionality
41135         by adding the --symlink option to the definition of
41136         gnulib_tool_option_extras in your bootstrap.conf file.
41137         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
41138         Run autopoint and libtoolize *before* gnulib-tool.
41139         After it, run an abbreviated autoreconf, rather than a loop around
41140         all tools.
41141         (slirp, bt_mark_as_generated): Remove functions.
41143 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41145         ftoastr: fix typo
41146         * lib/ftoastr.h: Fix misspelling in comment.
41148 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
41150         * top/README-release: fix punctuation.
41152 2011-12-17  Jim Meyering  <meyering@redhat.com>
41154         bootstrap: correct the recent buildreq change
41155         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
41156         had no effect.
41157         * build-aux/bootstrap (buildreq): Bracket each search term with
41158         "*...*", so that the shell "case" statement works as intended.
41159         Add comments.
41161 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
41163         build: let bootstrap resort to wget when downloading .po files
41164         * build-aux/bootstrap (download_po_files): Fallback to wget when
41165         downloading the .po files via rsync fails.  This is necessary to
41166         bootstrap from behind a strict firewall.
41168 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41170         stdint: don't assume C++11 when compiling with g++
41171         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
41172         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
41173         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
41174         work also in C++ before C++11, as that improperly inhibits
41175         generating a substitute stdint.h for that case.
41177 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41179         alloca: protect comment from gnulib-tool
41180         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
41181         that gnulib-tool doesn't think it's a license, and munge it to
41182         say "GCC version 3".
41184 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
41186         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
41187         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41188         $(abs_top_builddir) instead of $(top_builddir).
41190 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
41192         strftime-tests: also test nanoseconds
41193         * tests/test-strftime.c (T): Add a test of %N.
41195 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
41197         inttypes, stdint: add C++11 support
41198         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
41199         when including inttypes.h and stdint.h.  Support this change to
41200         the standard.
41201         * doc/posix-headers/inttypes.texi (inttypes.h):
41202         * doc/posix-headers/stdint.texi (stdint.h): Document this.
41203         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
41204         Define if not defined already, for the benefit of pre-C++11 hosts.
41205         Define the standard format macros (e.g., PRId8) always.
41206         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
41207         Likewise, if __cpluspus.  Define the standard constant and limit
41208         macros (e.g., INT8_C, INT8_MAX) always.
41209         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
41210         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
41211         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
41212         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
41213         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
41214         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
41215         Likewise.
41217 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41219         nonblocking tests: Fix test failure on Linux/PPC.
41220         Suggested by Prerna Saxena in
41221         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
41222         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
41223         Set to 1100000.
41225 2011-12-12  Jim Meyering  <meyering@redhat.com>
41227         argmatch: don't hard-code `' when listing valid option arguments
41228         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
41229         use the quote function to add quotes.  Use fputs rather than
41230         fprintf for the format string with no format directive.
41232 2011-12-07  Eric Blake  <eblake@redhat.com>
41234         bootstrap: detect tools required by gnulib-tool
41235         * build-aux/bootstrap (buildreq): Provide minimum implicit
41236         dependencies.
41237         * DEPENDENCIES: Mention patch as a prereq.
41239 2011-12-04  Bruno Haible  <bruno@clisp.org>
41241         sethostname: Port to Windows platforms.
41242         * lib/sethostname.c: Provide an alternate implementation for Windows
41243         platforms.
41244         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
41245         (main): Skip the test if sethostname() fails with EPERM. On Windows
41246         platforms, don't check the result of gethostname().
41248 2011-12-04  Bruno Haible  <bruno@clisp.org>
41249             Jim Meyering  <meyering@redhat.com>
41251         tests: Avoid spurious error message on platforms without mktemp program.
41252         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
41254 2011-12-04  Bruno Haible  <bruno@clisp.org>
41256         sethostname: Fix documentation.
41257         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
41258         "not fixed" section.
41260 2011-12-03  Bruno Haible  <bruno@clisp.org>
41262         gnulib-tool: Verify that the License field is present and non-empty.
41263         * gnulib-tool (func_get_license_raw): New function, extracted from
41264         func_get_license.
41265         (func_get_license): Use it. Warn if the module is not a test module and
41266         has no license.
41267         Suggested by Jim Meyering.
41269 2011-12-03  Bruno Haible  <bruno@clisp.org>
41271         sethostname tests: Fix link error on mingw.
41272         * tests/test-sethostname1.c: New file, extracted from
41273         tests/test-sethostname.c.
41274         * tests/test-sethostname2.c: New file, extracted from
41275         tests/test-sethostname.c.
41276         * tests/test-sethostname.c: Remove file.
41277         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
41278         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
41279         (Depends-on): Add gethostname.
41280         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
41281         Link the latter with $(GETHOSTNAME_LIB).
41283         sethostname tests: Fix compilation error on mingw.
41284         * tests/test-sethostname.c: Don't include <sys/types.h>.
41285         (geteuid): Use a dummy value without uid_t.
41286         * modules/sethostname-tests (Depends-on): Remove sys_types.
41288         sethostname tests: Avoid a gcc warning.
41289         * tests/test-sethostname.c (main): Remove an unused variable.
41291         Tweak last commit.
41292         * modules/sethostname-tests (Files): Sort by decreasing importance.
41293         (configure.ac): Check for geteuid.
41294         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
41295         the test when there's nothing to test. Drop an unnecessary cast.
41296         Improve an error message. Verify that the final sethostname() call
41297         succeeds.
41299 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41301         Add a test suite for the sethostname module.
41302         * modules/sethostname-tests: New file.  A test program
41303         for the sethostname module.
41304         * tests/test-sethostname.c: Likewise.
41306 2011-12-03  Bruno Haible  <bruno@clisp.org>
41308         Tweak last commit.
41309         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
41310         Fix preprocessor directives indentation. Fix typos.
41311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
41312         * modules/unistd (Makefile): Likewise.
41314 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41316         Integrate the sethostname module into unistd.
41317         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
41318         into the unistd.h header.
41319         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
41320         preprocessor directives.
41321         * modules/unistd: Setup the Makefile substitutions of the
41322         SETHOSTNAME preprocessor directives.
41324 2011-12-03  Bruno Haible  <bruno@clisp.org>
41326         Tweak last commit.
41327         * lib/sethostname.c: Don't include <string.h>.
41328         (sethostname): No need to copy the argument string to the stack. Don't
41329         call clearerr. Preserve errno when fprintf failed.
41330         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
41331         Don't invoke AC_REPLACE_FUNCS.
41332         * modules/sethostname (Link): Remove empty section.
41333         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
41334         failure problem.
41336 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41338         New module 'sethostname'.
41339         * lib/sethostname.c (sethostname): New file.  Provide sethostname
41340         for systems that lack it.
41341         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
41342         sethostname declaration and function.
41343         * modules/sethostname: New file.  Define the sethostname module.
41345 2011-12-03  Bruno Haible  <bruno@clisp.org>
41347         Tweak last commit.
41348         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
41350 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41352         Split the HOST_NAME_MAX detection into a separate m4 macro.
41353         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
41354         macro so it can be used by the pending sethostname module.
41356 2011-12-03  Bruno Haible  <bruno@clisp.org>
41358         Fix module descriptions syntax.
41359         * modules/argv-iter (License): Fix syntax.
41360         * modules/di-set (License): Likewise.
41361         * modules/ino-map (License): Likewise.
41362         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
41364 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
41366         stdalign: port to Clang 3.0
41367         Problem reported by Simon Josefsson in
41368         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
41369         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
41370         which has <stdalign.h> but which does not define alignof.
41371         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
41373 2011-12-01  Eric Blake  <eblake@redhat.com>
41375         mktempd: silence dd usage
41376         * build-aux/mktempd (rand_bytes): Silence dd.
41378 2011-11-30  Simon Josefsson  <simon@josefsson.org>
41380         manywarnings: Don't mention gcc version in docstring.
41381         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
41382         Jim Meyering <meyering@redhat.com>.
41384 2011-11-30  Jim Meyering  <meyering@redhat.com>
41386         hash: mark a few floating point constants with "f" suffix
41387         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
41388         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
41389         floating point constants with "f", since they're destined to be
41390         saved/used as "float"s.
41392 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
41394         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
41395         * tests/test-float.c (test_long_double): Correct and re-enable the
41396         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
41398 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
41400         Avoid subtracting two pointers that don't point into the same block.
41401         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
41402         only pointers into the same memory block are subtracted. We cannot
41403         assume that sizeof (ptrdiff_t) == sizeof (void *).
41405 2011-11-29  Eric Blake  <eblake@redhat.com>
41407         maint.mk: add syntax check for use of compare from init.sh
41408         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
41409         moved here from coreutils.
41411         manywarnings: drop -Wunsuffixed-float-constants
41412         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
41413         '1.0D', which is the only way to silence this warning for 'double'.
41415 2011-11-29  Jim Meyering  <meyering@redhat.com>
41417         hash: mark compute_bucket_size with the pure attribute
41418         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
41420         quotearg, propername: correct pragma guard expression
41421         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
41422         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
41424 2011-11-28  Jim Meyering  <meyering@redhat.com>
41426         propername: do not mark proper_name with the const attribute
41427         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
41428         since it examines data pointed to by its parameter.
41429         * lib/propername.c (proper_name): Instead, add a pragma to suppress
41430         the suggestion from -Wsuggest-attribute=const.
41432         propername: mark one more function as const
41433         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
41435 2011-11-27  Jim Meyering  <meyering@redhat.com>
41437         mark functions with const and pure attributes
41439         Mark functions per suggestions from gcc-4.6 when using these options:
41440         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
41441         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
41442         Follow these guidelines: when possible, apply the attribute to
41443         an extern declaration, not to its definition.  Apply it to the
41444         definition only when the definition is static.
41445         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
41446         * lib/argv-iter.h (argv_iter_n_args): Likewise.
41447         * lib/base64.h (isbase64): Likewise.
41448         * lib/basename-lgpl.c (last_component, base_len): Likewise.
41449         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
41450         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
41451         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
41452         (c_tolower, c_toupper): Likewise.
41453         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
41454         * lib/chdir-long.c (find_non_slash): Likewise.
41455         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
41456         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
41457         * lib/file-type.h (file_type): Likewise.
41458         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
41459         * lib/filevercmp.c (verrevcmp): Likewise.
41460         * lib/freadahead.h (freadahead): Likewise.
41461         * lib/fts.c (fts_maxarglen): Likewise.
41462         * lib/hash-pjw.h (hash_pjw): Likewise.
41463         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
41464         * lib/hash.c (is_prime, next_prime): Likewise.
41465         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
41466         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
41467         (hash_table_ok, hash_get_first, hash_string): Likewise.
41468         (compute_bucket_size): Likewise.
41469         * lib/i-ring.h (i_ring_empty): Likewise.
41470         * lib/isnan.c (isnanl): Likewise.
41471         * lib/math.h (isnanl, rpl_isnanl): Likewise.
41472         * lib/memcasecmp.h (memcasecmp): Likewise.
41473         * lib/memchr2.h (memchr2): Likewise.
41474         * lib/memcmp2.h (memcmp2): Likewise.
41475         * lib/parse-datetime.y (lookup_zone): Likewise.
41476         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
41477         [!WINDOWS_SOCKETS]: Likewise.
41478         * lib/strnlen1.h (strnlen1): Likewise.
41479         * lib/uniwidth.in.h (uc_width): Likewise.
41480         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
41481         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
41482         (quoting_options_from_style): Add a comment.
41483         * lib/propername.h (proper_name): Add a comment.
41485 2011-11-27  Bruno Haible  <bruno@clisp.org>
41487         Remove unused macros from !_LIBC code in glibc-borrowed files.
41488         * lib/fnmatch.c (STRCOLL): Remove macro.
41489         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
41490         * lib/glob.c (__stat, __readdir64): Remove macros.
41491         * lib/tempname.c (__open64, __xstat64): Remove macros.
41492         Suggested by Paul Eggert.
41494 2011-11-27  Bruno Haible  <bruno@clisp.org>
41496         getcwd: Fix link error on MSVC 9.
41497         * modules/getcwd (Depends-on): Add readdir, rewinddir.
41499 2011-11-27  Bruno Haible  <bruno@clisp.org>
41501         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
41502         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
41503         HAVE_OPENDIR is 0.
41504         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
41505         HAVE_CLOSEDIR is 0.
41506         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
41507         is 0.
41508         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
41510 2011-11-27  Bruno Haible  <bruno@clisp.org>
41512         getcwd: Fix bug from 2011-08-17.
41513         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
41514         platforms that need it.
41515         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
41516         code of 4 to be a failure, not a success. This ensures that
41517         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
41519 2011-11-27  Bruno Haible  <bruno@clisp.org>
41521         binary-io tests: Avoid test failure on mingw when libtool is used.
41522         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
41523         Don't verify the size of t-bin-out1.tmp here.
41524         * tests/test-binary-io.sh: Verify it here.
41525         Reported by Simon Josefsson.
41527 2011-11-26  Bruno Haible  <bruno@clisp.org>
41529         Fix conflict between two instantiations of module 'unistd'.
41530         * gnulib-tool (func_emit_autoconf_snippet): Substitute
41531         ${include_guard_prefix} also in the autoconf snippet.
41532         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
41533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
41534         GNULIB_UNISTD_H_GETOPT.
41535         * modules/getopt-posix (configure.ac): Set the
41536         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
41537         * modules/getopt-gnu (configure.ac): Likewise.
41538         * modules/unistd (Makefile.am): Change the substitution value of
41539         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
41540         Reported by Simon Josefsson.
41542 2011-11-25  Bruno Haible  <bruno@clisp.org>
41544         pagealign_alloc: Doc and comments.
41545         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
41546         module.
41547         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
41549 2011-11-25  Jim Meyering  <meyering@redhat.com>
41551         test-update-copyright.sh: avoid false-positive failure
41552         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
41553         around false positive failure on Cygwin/Windows.  The latter was
41554         matching erroneously-created files with names like
41555         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
41557 2011-11-25  Simon Josefsson  <simon@josefsson.org>
41559         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
41560         * m4/valgrind-tests.m4: Check that the parameters that will be
41561         used works, not just a subset of them.  Reported by Bruno Haible
41562         <bruno@clisp.org>.
41564 2011-11-24  Jim Meyering  <meyering@redhat.com>
41566         test-stdalign.c: comment out long double tests
41567         * tests/test-stdalign.c: Don't try to reduce alignment of long double
41568         variables.  That provokes errors like this from gcc-4.7.0 20111124:
41569         error: '_Alignas' specifiers cannot reduce alignment of \
41570         'static_longdouble_alignas'.
41572 2011-11-22  Jim Meyering  <meyering@redhat.com>
41574         init.sh: make "compare /dev/null FILE" output more readable
41575         * tests/init.sh (compare_): Document the preferred order of arguments.
41576         (emit_diff_u_header_): New function.
41577         (compare_dev_null_): Emit a simulated diff, rather than just the
41578         contents of the unexpected file.  Suggestion from Bruno Haible.
41580 2011-11-21  Jim Meyering  <meyering@redhat.com>
41581             Eric Blake  <eblake@redhat.com>
41583         init.sh: work around OSF/1 5.1's mishandling of /dev/null
41584         * tests/init.sh: Make our compare function slightly more portable.
41585         Reported by Bruno Haible in
41586         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
41588 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41590         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
41591         before using it, in code that ends up in config.h.
41593 2011-11-20  Bruno Haible  <bruno@clisp.org>
41595         getcwd: Work around getcwd bug on AIX 5..7.
41596         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
41597         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
41598         Use a different value for gl_cv_func_getcwd_path_max. Move the
41599         definition of HAVE_PARTLY_WORKING_GETCWD from here...
41600         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
41601         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
41602         Define HAVE_MINIMALLY_WORKING_GETCWD.
41603         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
41604         where it is not even minimally working, that is, on AIX.
41605         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
41606         m4/getcwd-path-max.m4.
41607         (main): Update exit code computation.
41608         * doc/posix-functions/getcwd.texi: Mention list of platforms where
41609         getcwd does not handle long file names.
41611 2011-11-20  Bruno Haible  <bruno@clisp.org>
41613         getcwd: Fix bug from 2009-09-10.
41614         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
41615         like "no".
41617 2011-11-20  Simon Josefsson  <simon@josefsson.org>
41619         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
41621 2011-11-20  Bruno Haible  <bruno@clisp.org>
41623         fma tests: Avoid shadowing local variables.
41624         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
41625         expected.
41627 2011-11-20  Bruno Haible  <bruno@clisp.org>
41629         copysignf tests: Fix.
41630         * tests/test-copysignf.c: Fix signature check.
41632 2011-11-20  Bruno Haible  <bruno@clisp.org>
41634         fma: Remove unused code.
41635         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
41636         unused macros.
41638 2011-11-20  Bruno Haible  <bruno@clisp.org>
41640         sethostname: Fix doc about AIX.
41641         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
41642         sethostname; it has it.
41644         sethostname: Mention more portability problems.
41645         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
41646         problem.
41647         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
41649 2011-11-19  Bruno Haible  <bruno@clisp.org>
41651         Depend on module fcntl-h when AT_FDCWD is used.
41652         * modules/utimens (Depends-on): Add fcntl-h.
41653         * modules/areadlinkat (Depends-on): Likewise.
41654         * modules/areadlinkat-with-size (Depends-on): Likewise.
41655         * modules/faccessat (Depends-on): Likewise.
41656         * modules/fchmodat (Depends-on): Likewise.
41657         * modules/fchownat (Depends-on): Likewise.
41658         * modules/getcwd (Depends-on): Likewise.
41659         * modules/mkdirat (Depends-on): Likewise.
41660         * modules/mkfifoat (Depends-on): Likewise.
41661         * modules/readlinkat (Depends-on): Likewise.
41662         * modules/symlinkat (Depends-on): Likewise.
41663         * modules/dup2-tests (Depends-on): Likewise.
41664         * modules/fdutimensat-tests (Depends-on): Likewise.
41665         * modules/futimens-tests (Depends-on): Likewise.
41667 2011-11-19  Bruno Haible  <bruno@clisp.org>
41669         euidaccess: Update a comment.
41670         * lib/euidaccess.c: Update comment about platforms with faccessat.
41672 2011-11-19  Bruno Haible  <bruno@clisp.org>
41674         openat: Fix file list.
41675         * modules/openat (Files): Remove lib/at-func.c.
41677 2011-11-19  Bruno Haible  <bruno@clisp.org>
41679         fstatat: Simplify.
41680         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41681         gnulib should define rpl_fstatat, there is a
41682         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41684 2011-11-19  Bruno Haible  <bruno@clisp.org>
41686         Ensure 'inline' can be used in tests/test-utimens-common.h.
41687         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41688         * modules/futimens-tests (configure.ac): Likewise.
41689         * modules/utimens-tests (configure.ac): Likewise.
41690         * modules/utimensat-tests (configure.ac): Likewise.
41692 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41694         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41695         not hash_insert0.
41696         (hash_insert_if_absent): Doc fix.
41698 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41700         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41702 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41704         test-getcwd: disambiguate exit status
41705         * tests/test-getcwd.c (test_long_name): Return 0..7.
41706         (main): Exit with an unambiguous exit status.  The old
41707         code yielded a mysterious mixture of two failure codes.
41709         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
41710         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
41711         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
41712         rpl_fstatat or fstatat.  This should fix the other problem
41713         reported by Kai Habel in
41714         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41715         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
41716         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
41717         and I reproduced it on a Solaris 8 host we still have in production.
41719 2011-11-18  Jim Meyering  <meyering@redhat.com>
41721         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
41722         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
41723         Add a sentence to the comment.
41724         (hash_insert0): New function that simply calls hash_insert_if_absent.
41725         * lib/hash.h (hash_insert_if_absent): Declare it.
41726         (hash_insert0): Add deprecation attribute.
41727         (_GL_ATTRIBUTE_DEPRECATED): Define.
41728         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
41729         not hash_insert0.
41730         * NEWS: Mention it, even though it's not really an incompatible change.
41732 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
41734         openat: avoid compilation failure due to lack of <errno.h> inclusion
41735         * lib/openat.c: Include <errno.h>.
41737 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41739         * modules/getcwd (Depends-on): Add fdopendir.
41740         This fixes one of the two problems reported by Kai Habel in
41741         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41743         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
41744         stdalign problem reported by Ian Beckwith in
41745         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
41746         * modules/crypto/gc-arcfour (Depends-on):
41747         Depend conditionally on crypto/arcfour.
41748         * modules/crypto/gc-arctwo (Depends-on):
41749         Depend conditionally on crypto/arctwo.
41750         * modules/crypto/gc-des (Depends-on):
41751         Depend conditionally on crypto/des.
41752         * modules/crypto/gc-hmac-md5 (Depends-on):
41753         Depend conditionally on crypto/hmac-md5.
41754         * modules/crypto/gc-hmac-sha1 (Depends-on):
41755         Depend conditionally on crypto/hmac-sha1.
41756         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
41757         * modules/crypto/gc-md4 (Depends-on):
41758         Depend conditionally on crypto/md4.
41759         * modules/crypto/gc-md5 (Depends-on):
41760         Depend conditionally on crypto/md5.
41761         * modules/crypto/gc-rijndael (Depends-on):
41762         Depend conditionally on crypto/rijndael.
41763         * modules/crypto/gc-sha1 (Depends-on):
41764         Depend conditionally on crypto/sha1.
41765         * modules/crypto/gc-arcfour:
41766         * modules/crypto/gc-arctwo:
41767         * modules/crypto/gc-des:
41768         * modules/crypto/gc-hmac-md5:
41769         * modules/crypto/gc-hmac-sha1:
41770         * modules/crypto/gc-md2:
41771         * modules/crypto/gc-md4:
41772         * modules/crypto/gc-md5:
41773         * modules/crypto/gc-rijndael:
41774         * modules/crypto/gc-sha1:
41775         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
41776         now that the conditional dependencies do the work for us.
41778 2011-11-17  Jim Meyering  <meyering@redhat.com>
41780         tests: factor st_ctime-comparison out of two headers
41781         * tests/test-utimens-common.h (ctime_compare): Define.
41782         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
41783         * tests/test-lutimens.h (test_lutimens): Likewise.
41784         * tests/test-utimens.h (test_utimens): Likewise.
41786         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
41787         Invoke the test program via an init.sh-using wrapper.
41788         * tests/test-getcwd.sh: New file.
41789         * modules/getcwd-tests (Files): Add it.
41790         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
41792 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
41794         gitlog-to-changelog: support multi-author commits.
41795         The FSF cares about keeping track of all authors of patches to its
41796         projects, but Git doesn't provide obvious support for multi-author
41797         changesets. Consensus seems to be forming around the use of extra
41798         Signed-off-by inspired lines in the log message formatted as
41799         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
41800         multi-author commits between version control systems.
41801         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
41802         log message and output in standard ChangeLog multi-author format.
41803         Reported by Peter Rosin <peda@lysator.liu.se>
41805 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41806             Bruno Haible  <bruno@clisp.org>
41808         Fix some modules' file list.
41809         * modules/fstatat (Files): Add m4/lstat.m4.
41810         * modules/openat (Files): Likewise.
41811         * modules/unlinkat (Files): Likewise.
41813 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41815         maint.mk: fix tight-scope.mk generation in VPATH builds.
41816         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41817         reference with $(srcdir) so that the file is found correctly even
41818         when running `make syntax-check' in a VPATH build.
41820 2011-11-13  Bruno Haible  <bruno@clisp.org>
41821             Jim Meyering  <meyering@redhat.com>
41823         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41824         * tests/init.sh (compare): Remove "No differences encountered" or
41825         synonymous output from the 'diff' program.
41827 2011-11-13  Bruno Haible  <bruno@clisp.org>
41829         Makefile: Tweak indentation.
41830         * Makefile: Use tab as first character in every line that contains rule
41831         commands.
41833 2011-11-13  Bruno Haible  <bruno@clisp.org>
41835         Syntax check for copyright statements.
41836         * check-copyright: New file.
41837         * Makefile (sc_check_copyright): New rule.
41839 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41841         * build-aux/git-version-gen: Add --prefix to configure the tag
41842         match string.
41844 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41846         * build-aux/git-version-gen: Add --help and --version.
41848 2011-11-12  Jim Meyering  <meyering@redhat.com>
41850         revamp the other test-exclude?.sh scripts to use init.sh, too
41851         * tests/test-exclude1.sh: Use init.sh.
41852         * tests/test-exclude2.sh: Likewise.
41853         * tests/test-exclude3.sh: Likewise.
41854         * tests/test-exclude4.sh: Likewise.
41855         * tests/test-exclude5.sh: Likewise.
41856         * tests/test-exclude6.sh: Likewise.
41857         * tests/test-exclude7.sh: Likewise.
41858         * tests/test-exclude8.sh: Likewise.
41859         * modules/exclude-tests (Files): List init.sh.
41861         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41862         These shell scripts ignored failure of the binary test-exclude,
41863         so making the latter return 77 didn't cause them to be skipped.
41864         * tests/test-exclude5.sh: Exit with test-exclude's error status
41865         when that program fails.  Revamp to use init.sh.
41866         * tests/test-exclude2.sh: Likewise.
41868         test-exclude: fix a typo
41869         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41871 2011-11-11  Bruno Haible  <bruno@clisp.org>
41873         obstack: Fix compilation error on MSVC 9.
41874         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41876 2011-11-11  Jim Meyering  <meyering@redhat.com>
41878         test-exclude: skip tests rather than failing on deficient systems
41879         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41880         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41881         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41882         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41884 2011-11-10  Bruno Haible  <bruno@clisp.org>
41886         ptsname_r test: Avoid gcc warning on glibc systems.
41887         * tests/test-ptsname_r.c (null_ptr): New function.
41888         (test_errors): Use it.
41890 2011-11-10  Bruno Haible  <bruno@clisp.org>
41892         ptsname_r: Avoid compilation error on OSF/1 5.1.
41893         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41895         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41896         function is not declared or incompatibly declared.
41897         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41898         * modules/ptsname_r (Depends-on, configure.ac): Update.
41899         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41901 2011-11-10  Bruno Haible  <bruno@clisp.org>
41903         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41904         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41905         When cross-compiling, guess yes on all platforms except AIX.
41906         Reported by Ludovic Courtès <ludo@gnu.org>.
41908 2011-11-09  Bruno Haible  <bruno@clisp.org>
41910         ptsname_r tests: Fix bugs.
41911         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41912         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41914 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41916         fstatat: work with cross-compilation
41917         Problem reported by Ludovic Courtès in
41918         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41919         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41920         "cross-compiling" and assume the bug is present.  Replace
41921         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41922         an inverted sense, to be more conservative about our assumptions.
41923         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41925 2011-11-09  Bruno Haible  <bruno@clisp.org>
41927         Improve MODULES.html output.
41928         * modules/mkfifoat (Description): Use the word "function".
41929         * modules/readlinkat (Description): Likewise.
41930         * modules/symlinkat (Description): Likewise.
41932 2011-11-09  Eric Blake  <eblake@redhat.com>
41934         ptsname_r-tests: new test module
41935         * modules/ptsname_r-tests: New module.
41936         * tests/test-ptsname_r.c: New file.
41938         ptsname_r: new module
41939         * modules/ptsname_r: New module.
41940         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41941         * lib/ptsname.c (__ptsname_r): Split...
41942         * lib/ptsname_r.c: ...into new file.
41943         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41944         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41945         * modules/stdlib (Makefile.am): Substitute witnesses.
41946         * lib/stdlib.in.h (ptsname_r): Declare it.
41947         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41948         * MODULES.html.sh (Misc): Likewise.
41949         * modules/ptsname (Depends-on): Alter dependency.
41950         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41952 2011-11-09  Jim Meyering  <meyering@redhat.com>
41954         announce-gen: be more concise when there's only one URL+tarball
41955         * build-aux/announce-gen (get_tool_versions): When you distribute
41956         only one type of tarball, combine the first two "Here are..."
41957         sections and make the key-checking grammar independent of
41958         how many tarballs there are.
41960 2011-11-09  Eric Blake  <eblake@redhat.com>
41962         openpty: provide a stub on mingw
41963         * lib/pty.in.h (includes): Provide forward declarations.
41964         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41966         raise: fix mingw handling of SIGPIPE
41967         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41969 2011-11-08  Bruno Haible  <bruno@clisp.org>
41971         More conditional dependencies.
41972         * modules/faccessat (Depends-on): Add conditions.
41973         * modules/fchmodat (Depends-on): Likewise.
41974         * modules/fchownat (Depends-on): Likewise.
41975         * modules/fstatat (Depends-on): Likewise.
41976         * modules/mkfifoat (Depends-on): Likewise.
41977         * modules/readlinkat (Depends-on): Likewise.
41978         * modules/symlinkat (Depends-on): Likewise.
41979         * modules/unlinkat (Depends-on): Likewise.
41980         * modules/utimensat (Depends-on): Likewise.
41981         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41982         * modules/linkat (Depends-on): Refine the conditions.
41983         * modules/renameat (Depends-on): Likewise.
41985 2011-11-08  Bruno Haible  <bruno@clisp.org>
41987         faccessat: Move AC_LIBOBJ invocation to module description.
41988         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41989         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41990         invocation from here...
41991         * modules/faccessat (configure.ac): ... to here. Invoke
41992         gl_PREREQ_FACCESSAT.
41994 2011-11-08  Bruno Haible  <bruno@clisp.org>
41996         faccessat: Simplify autoconf macro.
41997         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41998         gl_FUNC_EUIDACCESS.
42000 2011-11-08  Bruno Haible  <bruno@clisp.org>
42002         renameat: Fix dependencies.
42003         * modules/renameat (Depends-on): Add stdbool.
42005 2011-11-08  Bruno Haible  <bruno@clisp.org>
42007         mkfifoat: Fix module description.
42008         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
42009         not gl_UNISTD_MODULE_INDICATOR.
42011 2011-11-08  Bruno Haible  <bruno@clisp.org>
42013         fstatat: Remove unused dependency.
42014         * modules/fstatat (Depends-on): Remove fstat.
42016 2011-11-08  Simon Josefsson  <simon@josefsson.org>
42018         GNUmakefile: behave when Makefile is missing.
42019         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
42021 2011-11-08  Bruno Haible  <bruno@clisp.org>
42023         openat: Conditionalize dependencies.
42024         * lib/openat.c: Reduce the scope of some #includes.
42025         * modules/openat (Depends-on): Add conditions.
42027 2011-11-07  Jim Meyering  <meyering@redhat.com>
42029         maint.mk: extract GPG key ID without using a temporary file
42030         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
42031         without using a temporary file.  Based on a suggestion from Werner Koch
42032         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
42034 2011-11-07  Eric Blake  <eblake@redhat.com>
42036         grantpt: fix typo
42037         * lib/stdlib.in.h (grantpt): Check correct function.
42039         maint.mk: silence new syntax check
42040         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
42042 2011-11-06  Bruno Haible  <bruno@clisp.org>
42044         Doc about floating-point and math API.
42045         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
42046         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
42048 2011-11-06  Bruno Haible  <bruno@clisp.org>
42050         stdalign tests: Skip the test when compiled by Sun C.
42051         * tests/test-stdalign.c (main): Skip the test on Sun C.
42053 2011-11-06  Bruno Haible  <bruno@clisp.org>
42055         ansi-c++-opt: Complete the 2011-06-05 change.
42056         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
42057         does not support namespaces, set the variable to "no", not to ":".
42059 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42061         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
42063 2011-11-06  Bruno Haible  <bruno@clisp.org>
42065         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
42066         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
42067         (minus_zerol) [HP-UX]: New macro.
42068         (unary_minus) [HP-UX]: New function.
42069         (copysignl) [HP-UX]: Use unary_minus function.
42071 2011-11-06  Bruno Haible  <bruno@clisp.org>
42073         ldexp, ldexpf, ldexpl: Enhance tests.
42074         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
42075         and tests/test-ldexpl.c.
42076         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
42077         LDEXP, MIN_EXP, MAX_EXP): New macros.
42078         Include test-ldexp.h.
42079         (main): Just call test_function.
42080         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
42081         infinity.h, nan.h.
42082         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42083         MAX_EXP): New macros.
42084         Include test-ldexp.h.
42085         (x, y): Remove variables.
42086         (main): Just call test_function.
42087         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
42088         infinity.h, nan.h.
42089         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42090         MAX_EXP): New macros.
42091         Include test-ldexp.h.
42092         (x, y): Remove variables.
42093         (main): Just call test_function.
42094         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
42095         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
42096         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42097         (Depends-on): Add isnand-nolibm, signbit, float.
42098         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
42099         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42100         (Depends-on): Add isnanf-nolibm, signbit, float.
42102 2011-11-06  Bruno Haible  <bruno@clisp.org>
42104         math tests: Cosmetics.
42105         * tests/test-math-c++.cc: Reorder declarations.
42107 2011-11-05  Bruno Haible  <bruno@clisp.org>
42109         fma*: Simplify test.
42110         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
42111         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
42113         Tests for module 'fmal'.
42114         * modules/fmal-tests: New file.
42115         * tests/test-fmal1.c: New file.
42116         * tests/test-fmal2.c: New file.
42118         New module 'fmal'.
42119         * lib/math.in.h (fmal): New declaration.
42120         * lib/fmal.c: New file.
42121         * m4/fmal.m4: New file.
42122         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
42123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
42124         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
42125         REPLACE_FMAL.
42126         * modules/fmal: New file.
42127         * doc/posix-functions/fmal.texi: Mention the new module and the various
42128         bugs.
42130         Tests for module 'fmaf'.
42131         * modules/fmaf-tests: New file.
42132         * tests/test-fmaf1.c: New file.
42133         * tests/test-fmaf2.c: New file.
42135         New module 'fmaf'.
42136         * lib/math.in.h (fmaf): New declaration.
42137         * lib/fmaf.c: New file.
42138         * m4/fmaf.m4: New file.
42139         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
42140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
42141         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
42142         REPLACE_FMAF.
42143         * modules/fmaf: New file.
42144         * doc/posix-functions/fmaf.texi: Mention the new module and the various
42145         bugs.
42147         Tests for module 'fma'.
42148         * modules/fma-tests: New file.
42149         * tests/test-fma1.c: New file.
42150         * tests/test-fma1.h: New file.
42151         * tests/test-fma2.c: New file.
42152         * tests/test-fma2.h: New file.
42154         New module 'fma'.
42155         * lib/math.in.h (fma): New declaration.
42156         * lib/fma.c: New file.
42157         * m4/fma.m4: New file.
42158         * m4/fegetround.m4: New file.
42159         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
42160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
42161         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
42162         REPLACE_FMA.
42163         * modules/fma: New file.
42164         * doc/posix-functions/fma.texi: Mention the new module and the various
42165         bugs.
42167         Extend gl_MATHFUNC.
42168         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
42169         Support 'void' as argument type.
42170         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
42172 2011-11-05  Jim Meyering  <meyering@redhat.com>
42174         maint.mk: also prohibit inclusion of dirent.h without use
42175         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
42177 2011-11-05  Bruno Haible  <bruno@clisp.org>
42179         ldexpl tests: Avoid test failure on MSVC 9.
42180         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
42181         value. Needed in order to enforce the conversion from a value greater
42182         than LDBL_MAX to Infinity.
42184 2011-11-05  Bruno Haible  <bruno@clisp.org>
42186         New modules 'at-internal', 'openat-h', split off from module 'openat'.
42187         * modules/at-internal: New file, extracted from modules/openat.
42188         * modules/openat-h: New file.
42189         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
42190         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
42191         * modules/openat (Description): Add reference to POSIX function.
42192         (Files): Remove lib/openat.h, lib/openat-proc.c.
42193         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
42194         intprops, unistd.
42195         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
42196         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
42197         gl_FCNTL_MODULE_INDICATOR.
42198         (Include): Remove unistd.h, openat.h.
42199         * modules/areadlinkat (Files): Add lib/at-func.c.
42200         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42201         openat-die, openat-h, save-cwd.
42202         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
42203         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42204         openat-die, openat-h, save-cwd, unistd.
42205         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
42206         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42207         openat-h, save-cwd. Remove fcntl-h, openat.
42208         * modules/fchmodat (Files): Remove lib/openat.h.
42209         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42210         openat, stdbool, unistd.
42211         * modules/fchownat (Files): Remove lib/openat.h.
42212         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42213         openat, stdbool, sys_stat.
42214         * modules/fdopendir (Files): Remove lib/openat-priv.h,
42215         lib/openat-proc.c.
42216         (Depends-on): Add at-internal.
42217         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
42218         * modules/fstatat (Files): Remove lib/openat.h.
42219         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42220         stdbool, unistd.
42221         * modules/fts (Depends-on): Add openat-h.
42222         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
42223         openat.
42224         * modules/mkdirat (Files): Remove lib/openat.h.
42225         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42226         openat, stdbool, sys_stat.
42227         * modules/mkfifoat (Files): Add lib/at-func.c.
42228         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42229         openat-h, save-cwd. Remove fcntl-h, openat.
42230         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
42231         * modules/readlinkat (Files): Add lib/at-func.c.
42232         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42233         openat-h, save-cwd. Remove fcntl-h, openat.
42234         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
42235         openat.
42236         * modules/selinux-at (Files): Add lib/at-func.c.
42237         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42238         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
42239         * modules/symlinkat (Files): Add lib/at-func.c.
42240         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42241         openat-h, save-cwd. Remove fcntl-h, openat.
42242         * modules/unlinkat (Files): Remove lib/openat.h.
42243         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42244         stdbool.
42245         * modules/utimensat (Files): Add lib/at-func.c.
42246         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
42247         openat-die, openat-h, save-cwd.
42248         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
42249         * modules/fdutimensat-tests (Depends-on): Add openat.
42250         * modules/fstatat-tests (Depends-on): Add openat-h.
42251         * modules/readlinkat-tests (Depends-on): Add openat.
42252         * modules/symlinkat-tests (Depends-on): Add openat.
42254 2011-11-05  Bruno Haible  <bruno@clisp.org>
42256         openat: Include <stdbool.h>.
42257         * lib/openat.c: Include <stdbool.h>.
42259 2011-11-04  Bruno Haible  <bruno@clisp.org>
42261         fchownat, renameat, unlinkat: Fix dependencies.
42262         * modules/fchownat (Depends-on): Add fstatat.
42263         * modules/renameat (Depends-on): Likewise.
42264         * modules/unlinkat (Depends-on): Likewise.
42266 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
42268         openat: remove direct dependency on dirent
42269         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
42270         and hasn't been needed ever since fdopendir was split into its own
42271         module on 2009-08-31.
42272         * modules/openat (Depends-on): Remove dirent.
42274 2011-11-04  Bruno Haible  <bruno@clisp.org>
42276         renameat: Optimize code size.
42277         * modules/renameat (configure.ac): Don't compile at-func2.c if
42278         REPLACE_RENAMEAT is 1.
42280 2011-11-04  Bruno Haible  <bruno@clisp.org>
42282         openat tests: Fix file list.
42283         * modules/openat-tests (Files): Add tests/test-open.h.
42285 2011-11-04  Bruno Haible  <bruno@clisp.org>
42287         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
42288         * modules/fchmodat (Depends-on): Add openat-die.
42289         * modules/fchownat (Depends-on): Likewise.
42290         * modules/linkat (Depends-on): Likewise.
42291         * modules/renameat (Depends-on): Likewise.
42292         * modules/openat (Depends-on): Add dirent.
42294 2011-11-04  Jim Meyering  <meyering@redhat.com>
42296         at-func*.c: fix comments
42297         * lib/at-func2.c: Correct/improve first-line comment.
42298         * lib/at-func.c: Correct grammar in first-line comment.
42300 2011-11-04  Bruno Haible  <bruno@clisp.org>
42302         New module 'mkdirat', split off from module 'openat'.
42303         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
42304         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
42305         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
42306         * modules/mkdirat: New file, extracted from modules/openat.
42307         * modules/openat (Files): Remove lib/mkdirat.c.
42308         (Depends-on): Remove mkdir.
42309         (configure.ac): Remove AC_LIBOBJ of mkdirat.
42310         (Include): Remove <sys/stat.h>.
42311         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
42312         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
42313         tests/test-mkdir.h.
42314         (Depends-on): Remove ignore-value.
42315         (Makefile.am): Remove rules for test-mkdirat.
42316         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
42317         of module 'openat'.
42318         * NEWS: Mention the change.
42320 2011-11-04  Bruno Haible  <bruno@clisp.org>
42322         closedir: Avoid warning on mingw.
42323         * lib/closedir.c: Include <unistd.h>.
42325 2011-11-04  Bruno Haible  <bruno@clisp.org>
42327         New module 'fstatat', split off from module 'openat'.
42328         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
42329         defined.
42330         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
42331         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
42332         gl_FUNC_FSTATAT.
42333         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
42334         * modules/fstatat: New file, extracted from modules/openat.
42335         * modules/openat (Files): Remove lib/fstatat.c.
42336         (Depends-on): Remove lstat.
42337         (configure.ac): Remove AC_LIBOBJ of fstatat.
42338         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
42339         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
42340         tests/test-lstat.h, tests/test-stat.h.
42341         (Depends-on): Remove getcwd-lgpl.
42342         (Makefile.am): Remove rules for test-fstatat.
42343         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
42344         of module 'openat'.
42345         * NEWS: Mention the change.
42346         * modules/getcwd (Depends-on): Add fstatat.
42347         * modules/linkat (Depends-on): Likewise.
42348         * modules/mkfifoat-tests (Depends-on): Likewise.
42349         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
42351 2011-11-03  Bruno Haible  <bruno@clisp.org>
42353         New module 'unlinkat', split off from module 'openat'.
42354         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
42355         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
42356         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
42357         * modules/unlinkat: New file, extracted from modules/openat. Correct
42358         the dependency conditions.
42359         * modules/openat (Files): Remove lib/unlinkat.c.
42360         (Depends-on): Remove rmdir, unlink.
42361         (configure.ac): Remove AC_LIBOBJ of unlinkat.
42362         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
42363         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
42364         tests/test-rmdir.h, tests/test-unlink.h.
42365         (Depends-on): Remove unlinkdir.
42366         (Makefile.am): Remove rules for test-unlinkat.
42367         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
42368         of module 'openat'.
42369         * NEWS: Mention the change.
42370         * modules/linkat-tests (Depends-on): Add unlinkat.
42371         * modules/mkfifoat-tests (Depends-on): Likewise.
42372         * modules/readlinkat-tests (Depends-on): Likewise.
42374 2011-11-02  Bruno Haible  <bruno@clisp.org>
42376         New module 'fchmodat', split off from module 'openat'.
42377         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
42378         defined.
42379         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
42380         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
42381         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
42382         * modules/fchmodat: New file, extracted from modules/openat.
42383         * modules/openat (Files): Remove lib/fchmodat.c.
42384         (configure.ac): Remove AC_LIBOBJ of fchmodat.
42385         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
42386         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
42387         (Makefile.am): Remove rules for test-fchmodat.
42388         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
42389         of module 'openat'.
42390         * NEWS: Mention the change.
42392 2011-11-02  Jim Meyering  <meyering@redhat.com>
42394         putenv: indent #definition of "environ" to placate cppi
42395         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
42397         gitlog-to-changelog: provide a ChangeLog-repair mechanism
42398         Git logs are often treated as immutable, because editing them
42399         changes the SHA1 checksums of all descendants.  Thus, errors in
42400         git logs tend to stay there forever.  However, when we generate
42401         a ChangeLog file -- typically for distribution -- from that git log,
42402         we can actually make corrections in the generated file.  The key
42403         lies in recording in machine-readable/applicable form the desired
42404         corrections.  See --help for description and an example.
42405         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
42406         (usage): Describe it; alphabetize option descriptions.
42407         (main): Honor the new option, carefully.
42409 2011-11-01  Jim Meyering  <meyering@redhat.com>
42411         gitlog-to-changelog: avoid an infloop
42412         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
42413         that ends up being empty.
42415 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42417         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
42418         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
42419         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
42420         contains (possibly-quoted) backslashes.  This should avoid
42421         all-too-common shell bugs if COMPLICATED contains backslashes in
42422         the "wrong" places.  Reported by David Evans in
42423         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
42424         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
42425         because we want ASCII ranges.  Is there some reason we don't use
42426         the C locale everywhere in this script?
42427         (func_module, top level): Avoid unwanted pathname expansion when
42428         $repo_url_prefix or $repo_url_suffix_repl contain shell
42429         metacharacters like '?' and '*'.
42431 2011-11-01  Bruno Haible  <bruno@clisp.org>
42433         fchownat: Improve description.
42434         * modules/fchownat (Description): Add link to function.
42436 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42438         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
42439         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
42440         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
42441         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
42443 2011-11-01  Bruno Haible  <bruno@clisp.org>
42445         alignof: Avoid collision with stdalign module.
42446         * lib/alignof.h (alignof): Remove macro.
42447         * NEWS: Mention the change.
42448         Reported by Paul Eggert.
42450 2011-11-01  Bruno Haible  <bruno@clisp.org>
42452         New module 'fchownat', split off from module 'openat'.
42453         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
42454         defined.
42455         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
42456         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
42457         invoke gl_FUNC_FCHOWNAT.
42458         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
42459         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
42460         * modules/fchownat: New file, extracted from modules/openat.
42461         * modules/openat (Files): Remove lib/fchownat.c.
42462         (Depends-on): Remove lchown.
42463         (configure.ac): Remove AC_LIBOBJ of fchownat.
42464         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
42465         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
42466         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
42467         (Depends-on): Remove mgetgroups, usleep, stat-time.
42468         (configure.ac): Remove test for getegid.
42469         (Makefile.am): Remove rules for test-fchownat.
42470         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
42471         of module 'openat'.
42472         * NEWS: Mention the change.
42474 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42476         stdalign: port better to MSVC and to Sun C 5.11
42477         This fixes some of the problems reported by Bruno Haible in
42478         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
42479         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
42480         shortcomings of MSVC and of Sun C 5.11.
42481         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
42482         around __declspec arg.
42483         * modules/stdalign-tests (Files): Add tests/macros.h.
42484         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
42485         Include macros.h, for ASSERT.
42486         (DECLARE_ALIGNED): Remove.
42487         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
42488         to catch bug), and to 1 if not (simplifies the rest of the code).
42489         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
42490         (CHECK_AUTO): Remove.
42491         (CHECK_ALIGNED): Check only the alignment of the static vars,
42492         since auto var alignment isn't supported by Sun C 5.11.
42493         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
42494         ASSERT failures are easier to diagnose.
42496 2011-10-31  Bruno Haible  <bruno@clisp.org>
42498         doc about some IRIX 5.3 problems.
42499         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
42500         on IRIX 5.3.
42501         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
42502         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
42503         5.3.
42504         * doc/posix-functions/grantpt.texi: Likewise.
42505         * doc/posix-functions/unlockpt.texi: Likewise.
42506         * doc/posix-functions/lgamma.texi: Likewise.
42507         * doc/posix-functions/nextafter.texi: Likewise.
42508         * doc/posix-functions/remainder.texi: Likewise.
42509         * doc/posix-functions/select.texi: Mention misplaced declaration on
42510         IRIX 5.3.
42511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42513 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
42515         gitlog-to-changelog: fix git-log invocation.
42516         git-log mishandles date strings before 1970-01-01 UTC, and there is
42517         no use to specify --since=1970-01-01 by default anyway.
42518         * build-aux/gitlog-to-changelog: By default, when no --since option
42519         was given, do not specify explicit --since option to git-log.
42521 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
42523         gitlog-to-changelog: new option --append-dot.
42524         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
42525         first non-blank line of each commit message terminated with a dot.
42527 2011-10-30  Bruno Haible  <bruno@clisp.org>
42529         ffsl, ffsll: Avoid compilation error due to 'restrict'.
42530         * lib/ffsl.h: Include <config.h>.
42531         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
42533 2011-10-30  Jim Meyering  <meyering@redhat.com>
42535         GNUmakefile: reenable "make syntax-check" for most projects
42536         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
42537         build-aux variable", "syntax-check" would do nothing but succeed with
42538         the "No version control files detected..." diagnostic (unless you
42539         happened to override _build-aux via cfg.mk).
42540         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
42541         to precede inclusion of maint.mk.  Otherwise, these variables would
42542         be used undefined in any project that does not override the default.
42544 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
42546         gitlog-to-changelog: treat a message with only blank lines as empty.
42547         * build-aux/gitlog-to-changelog: Move the code that removes leading and
42548         trailing blank lines before the code that issues a warning about an
42549         empty commit message.
42551 2011-10-30  Jim Meyering  <meyering@redhat.com>
42553         test-parse-datetime.c: avoid new DST-related false positive test failure
42554         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
42555         based on the time/date we'll convert, not the current time.
42556         Otherwise, the moment we cross a DST boundary like today's in
42557         Europe, (CEST to CET), that offset ends up being one hour off.
42559 2011-10-27  Bruno Haible  <bruno@clisp.org>
42561         fstat: Tweak documentation.
42562         * modules/fstat (Description): More precise description.
42564 2011-10-27  Bruno Haible  <bruno@clisp.org>
42566         Update documentation regarding 'largefile' module.
42567         * doc/posix-functions/fstat.texi: Tweak wording.
42568         * doc/posix-functions/opendir.texi: Mention that the module fixes the
42569         problems with huge directories and/or small ino_t types.
42570         * doc/posix-functions/readdir.texi: Likewise.
42571         * doc/posix-functions/rewinddir.texi: Likewise.
42573 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
42575         maint.mk: don't maintain a second build-aux variable.
42576         * maint.mk (build_aux): Removed.  The maintainer-makefile module
42577         depends on GNUmakefile, which already maintains a cfg.mk
42578         overridable $(_build-aux) for projects with a non-standard
42579         build-aux directory location, although without the $(srcdir)
42580         prefix.  Use that variable consistently instead of introducing a
42581         second one.  Adjust all call sites.
42583 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42585         Add stdalign module and use it in other modules.
42586         This is based on a previous proposal by Bruno Haible
42587         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
42589         stdalign: new module
42590         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
42591         * modules/stdalign: New files.
42592         * MODULES.html.sh (c1x_core_properties): Add stdalign.
42593         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
42595         stdalign-tests: new module
42596         * modules/stdalign-tests, tests/test-stdalign.c: New files.
42598         argp: use stdalign
42599         * lib/argp-parse.c: Include <stdalign.h>.
42600         (alignof): Remove.
42601         * modules/argp (Depends-on): Add stdalign.
42603         crypto libraries: use stdalign
42604         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
42605         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
42606         Do not include <stdlib.h> twice, in md4.c.
42607         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
42608         because we are accessing a pointer's bit-pattern, not a size.
42609         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
42610         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
42611         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
42612         * modules/crypto/sha512: Likewise.
42614         sys_socket: use stdalign, not alignof
42615         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
42616         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
42618 2011-10-27  Bruno Haible  <bruno@clisp.org>
42620         raise test: Avoid a test failure on Linux/MIPS.
42621         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
42622         because 99 is a valid signal on Linux/MIPS.
42624 2011-10-27  Bruno Haible  <bruno@clisp.org>
42626         nonblocking tests: Fix test failure on Linux/MIPS.
42627         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
42628         Set to 270000.
42630 2011-10-27  Bruno Haible  <bruno@clisp.org>
42632         utimensat: Work around problem on Linux/hppa.
42633         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
42634         values.
42635         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
42637 2011-10-25  Jim Meyering  <meyering@redhat.com>
42639         maint.mk: fix a bug in sc_prohibit_stddef_without_use
42640         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
42641         after symbols like NULL, size_t, etc.
42642         Reported by Alfred M. Szmidt.
42644         maint.mk: exempt ENODATA from a syntax-check rule
42645         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
42646         from the sc_prohibit_always-defined_macros syntax-check rule.
42647         Add a comment.  See this for more details:
42648         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
42650 2011-10-23  Jim Meyering  <meyering@redhat.com>
42652         fts: close parent dir FD before returning from post-traversal fts_read
42653         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
42654         unlink A, even though an FD open on A remained.  This is suboptimal
42655         (holding a file descriptor open longer than needed), but otherwise not
42656         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
42657         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
42658         that represents a real problem: it causes the removal of A to fail
42659         with e.g., "rm: cannot remove `A': Device or resource busy"
42661         fts visits each directory twice and keeps a cache (fts_fd_ring) of
42662         directory file descriptors.  After completing the final, FTS_DP,
42663         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
42664         cache, but then proceeded to add a new FD to it via the subsequent
42665         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
42666         final file descriptor would be closed only via fts_close's call to
42667         fd_ring_clear.  Now, it is usually closed earlier, via the final
42668         FTS_DP-returning fts_read call.
42669         * lib/fts.c (restore_initial_cwd): New function, converted from
42670         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42671         Update callers.
42672         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42673         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42675 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42676             Bruno Haible  <bruno@clisp.org>
42677             Jim Meyering  <jim@meyering.net>
42679         readme-release: improve safety of release prep instructions.
42680         * README-release: Don't git pull all branches when only master
42681         is needed for the release process.
42682         Run make maintainer-clean before changing trees and merging.
42683         Don't try to run ./configure right after git pull in case files
42684         that influence the bootstrap process have changed, move the
42685         ./configure step to after running ./bootstrap.
42686         Don't bootstrap "one last time"... it's the first time!
42688 2011-10-22  Bruno Haible  <bruno@clisp.org>
42690         errno, strerror-override: Support for MSVC 10.
42691         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42692         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42693         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42694         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42695         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42696         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42697         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42698         Assign values compatible with MSVC 10.
42699         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42700         New macros.
42701         (GNULIB_defined_EWINSOCK): New macro.
42702         * lib/strerror-override.c (strerror_override): Update accordingly.
42703         * lib/strerror-override.h: Likewise.
42704         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42705         longer equal to the corresponding errno value.
42706         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42708 2011-10-22  Bruno Haible  <bruno@clisp.org>
42710         perror: Recognize when test program crashes.
42711         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
42712         strerror, set gl_cv_func_perror_works to no.
42713         Reported by Daniel Richard G. <skunk@iskunk.org>.
42715         perror: Fix indentation.
42716         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
42718 2011-10-22  Bruno Haible  <bruno@clisp.org>
42720         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
42721         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
42722         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
42723         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
42724         functions, not as a macro.
42725         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
42726         macros.
42727         (isfinite, isinf, isnan, signbit): Check overloaded functions and
42728         absence of macro.
42729         Suggested by Eric Blake.
42730         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42732 2011-10-21  Bruno Haible  <bruno@clisp.org>
42734         relocatable-prog-wrapper: Don't leave object files behind.
42735         * build-aux/install-reloc: Re-synchronize list of .o files to be
42736         removed with list of compilation units.
42738 2011-10-20  Bruno Haible  <bruno@clisp.org>
42740         openpty, posix_openpt: Remove code duplication.
42741         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
42742         * lib/openpty.c: Include <stdlib.h>.
42743         (openpty): Use posix_openpt on all platforms except IRIX.
42744         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
42746 2011-10-20  Bruno Haible  <bruno@clisp.org>
42748         unlockpt: Detect invalid argument.
42749         * lib/unlockpt.c: Include <fcntl.h>.
42750         (unlockpt): Check whether fd is valid, using fcntl().
42751         * modules/unlockpt (Depends-on): Add fcntl-h.
42753 2011-10-20  Bruno Haible  <bruno@clisp.org>
42755         openpty: Avoid compilation error on AIX 6.1.
42756         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
42758 2011-10-20  Bruno Haible  <bruno@clisp.org>
42760         posix_openpt: Support for OpenBSD.
42761         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
42762         (posix_openpt) [OpenBSD]: New code.
42763         * lib/grantpt.c: Include <fcntl.h>.
42764         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
42765         * modules/grantpt (Depends-on): Add fcntl-h.
42767 2011-10-20  Bruno Haible  <bruno@clisp.org>
42769         posix_openpt test: Coding style.
42770         * tests/test-posix_openpt.c: Use GNU coding style.
42772 2011-10-20  Bruno Haible  <bruno@clisp.org>
42774         grantpt: Support --avoid=pt_chown.
42775         * modules/grantpt (Files): Add lib/pty-private.h.
42777 2011-10-20  Bruno Haible  <bruno@clisp.org>
42779         posix_openpt: Fix autoconf macro.
42780         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
42781         unneeded check for _getpty.
42783 2011-10-20  Bruno Haible  <bruno@clisp.org>
42785         openpty: Update comments.
42786         * lib/openpty.c: Add comments about Minix.
42788 2011-10-19  Eric Blake  <eblake@redhat.com>
42790         openpty: relax license
42791         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
42793         pt_chown: use configmake to simplify build
42794         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
42796         ptsname and others: relax license
42797         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
42798         * modules/unlockpt (License): Likewise.
42799         * modules/pt_chown (License): Likewise.
42800         * modules/ptsname (License): Likewise.
42801         * modules/ttyname_r (License): Likewise.
42803 2011-10-19  Jim Meyering  <meyering@redhat.com>
42805         posix_openpt: remove spurious #endif
42806         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42808 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42810         maint.mk: Respect $(build_aux) in web-manual rule.
42811         * top/maint.mk (web-manual): Find gen-announce script in user's
42812         $(build_aux) directory instead of hard-coding 'build-aux'.
42814 2011-10-19  Bruno Haible  <bruno@clisp.org>
42816         posix_openpt: Fix compilation error.
42817         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42818         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42819         Mention the openpty module as an alternative.
42821 2011-10-19  Bruno Haible  <bruno@clisp.org>
42823         Support for old NeXTstep 3.3 frexp().
42824         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42825         execution time of the test to 5 seconds.
42826         Reported by Daniel Richard G. <skunk@iskunk.org>.
42828 2011-10-19  Bruno Haible  <bruno@clisp.org>
42830         Support for old NeXTstep 3.3 sed.
42831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42832         part, use /.../, not \|...|. Escape periods in the header file name.
42833         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42834         Reported by Daniel Richard G. <skunk@iskunk.org>.
42836 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42838         Support for old NeXTstep 3.3 gcc.
42839         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42840         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42841         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42842         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42843         * lib/regex.h (_Restrict_arr_): Likewise.
42844         * lib/regex_internal.h (re_token_t): Likewise.
42845         * lib/regexec.c (check_node_accept_bytes): Likewise.
42846         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42848 2011-10-18  Eric Blake  <eblake@redhat.com>
42850         posix_openpt: new module
42851         * modules/posix_openpt: New module.
42852         * m4/posix_openpt.m4: New file.
42853         * lib/posix_openpt.c: Likewise.
42854         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42855         (gl_STDLIB_H_DEFAULTS): Set defaults.
42856         * modules/stdlib (Makefile.am): Substitute macros.
42857         * lib/stdlib.in.h (posix_openpt): Declare.
42858         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42859         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42860         * modules/posix_openpt-tests: New test module.
42861         * tests/test-posix_openpt.c: New test.
42863 2011-10-15  Bruno Haible  <bruno@clisp.org>
42865         xstrtoll: Fix compilation failure.
42866         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42867         from lib/strtol.c.
42868         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42869         some platforms.
42870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42872 2011-10-15  Bruno Haible  <bruno@clisp.org>
42874         vasnprintf: Optimize bit search operation.
42875         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42877         gl_DOUBLE_EXPONENT_LOCATION.
42878         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42879         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42880         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42881         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42882         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42883         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42884         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42885         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42886         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42888 2011-10-15  Bruno Haible  <bruno@clisp.org>
42890         vasnprintf: Fix comments.
42891         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42893 2011-10-14  Bruno Haible  <bruno@clisp.org>
42895         Tests for module 'integer_length_ll'.
42896         * modules/integer_length_ll-tests: New file.
42897         * tests/test-integer_length_ll.c: New file.
42899         New module 'integer_length_ll'.
42900         * lib/integer_length_ll.c: New file.
42901         * modules/integer_length_ll: New file.
42903 2011-10-14  Bruno Haible  <bruno@clisp.org>
42905         Tests for module 'integer_length_l'.
42906         * modules/integer_length_l-tests: New file.
42907         * tests/test-integer_length_l.c: New file.
42909         New module 'integer_length_l'.
42910         * lib/integer_length_l.c: New file.
42911         * modules/integer_length_l: New file.
42913 2011-10-14  Bruno Haible  <bruno@clisp.org>
42915         Tests for module 'integer_length'.
42916         * modules/integer_length-tests: New file.
42917         * tests/test-integer_length.c: New file.
42919         New module 'integer_length'.
42920         * lib/integer_length.h: New file.
42921         * lib/integer_length.c: New file.
42922         * modules/integer_length: New file.
42924 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42926         popen: Fix dependency conditions.
42927         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42929 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42931         perror: Fix autoconf test.
42932         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42933         <stdlib.h> and <string.h>.
42935 2011-10-14  Bruno Haible  <bruno@clisp.org>
42937         ffsl: Optimize on 64-bit platforms.
42938         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42939         unrolling.
42941 2011-10-13  Bruno Haible  <bruno@clisp.org>
42943         ffsl: Optimize on 32-bit platforms.
42944         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42945         use ffs() without a loop.
42947         ffsl, ffsll: Optimize for GCC.
42948         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42949         * lib/ffsl.c (GCC_BUILTIN): New macro.
42950         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42952 2011-10-13  Bruno Haible  <bruno@clisp.org>
42954         ffs, bcopy, memset: Support symbol renaming via config.h.
42955         * lib/ffs.c: Include <config.h>.
42956         * lib/bcopy.c: Likewise.
42957         * lib/memset.c: Likewise.
42959 2011-10-10  Bruno Haible  <bruno@clisp.org>
42961         atanl: Simplify for platforms where 'long double' == 'double'.
42962         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42963         alternative implementation.
42964         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42965         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42966         * modules/atanl (Depends-on): Add atan. Update conditions.
42968 2011-10-10  Bruno Haible  <bruno@clisp.org>
42970         acosl: Simplify for platforms where 'long double' == 'double'.
42971         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42972         alternative implementation.
42973         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42974         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42975         * modules/acosl (Depends-on): Add acos. Update conditions.
42977 2011-10-10  Bruno Haible  <bruno@clisp.org>
42979         asinl: Simplify for platforms where 'long double' == 'double'.
42980         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42981         alternative implementation.
42982         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42983         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42984         * modules/asinl (Depends-on): Add asin. Update conditions.
42986 2011-10-10  Bruno Haible  <bruno@clisp.org>
42988         tanl: Simplify for platforms where 'long double' == 'double'.
42989         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42990         implementation.
42991         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42992         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42993         * modules/tanl (Depends-on): Add tan. Update conditions.
42994         (configure.ac): Don't compile trigl.c if
42995         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42997 2011-10-10  Bruno Haible  <bruno@clisp.org>
42999         cosl: Simplify for platforms where 'long double' == 'double'.
43000         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43001         implementation.
43002         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43003         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43004         * modules/cosl (Depends-on): Add cos. Update conditions.
43005         (configure.ac): Don't compile sincosl.c and trigl.c if
43006         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43008 2011-10-10  Bruno Haible  <bruno@clisp.org>
43010         sinl: Simplify for platforms where 'long double' == 'double'.
43011         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43012         implementation.
43013         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43014         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43015         * modules/sinl (Depends-on): Add sin. Update conditions.
43016         (configure.ac): Don't compile sincosl.c and trigl.c if
43017         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43019 2011-10-10  Bruno Haible  <bruno@clisp.org>
43021         logl: Simplify for platforms where 'long double' == 'double'.
43022         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43023         implementation.
43024         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43025         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43026         * modules/logl (Depends-on): Add log. Update conditions.
43028 2011-10-10  Bruno Haible  <bruno@clisp.org>
43030         expl: Simplify for platforms where 'long double' == 'double'.
43031         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43032         implementation.
43033         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43034         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43035         * modules/expl (Depends-on): Add exp. Update conditions.
43037 2011-10-10  Bruno Haible  <bruno@clisp.org>
43039         sqrtl: Simplify for platforms where 'long double' == 'double'.
43040         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43041         alternative implementation.
43042         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43043         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43044         * modules/sqrtl (Depends-on): Update conditions.
43046 2011-10-10  Bruno Haible  <bruno@clisp.org>
43048         ldexpl: Simplify for platforms where 'long double' == 'double'.
43049         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43050         alternative implementation.
43051         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43052         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43053         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
43055 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
43057         ffsll: set correct witness
43058         * modules/ffsll (configure.ac): Fix typo.
43060 2011-10-10  Bruno Haible  <bruno@clisp.org>
43062         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
43063         * lib/printf-frexpl.c: Include <config.h>.
43064         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43065         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
43066         second time.
43067         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
43068         gl_LONG_DOUBLE_VS_DOUBLE.
43069         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
43070         conditions.
43072 2011-10-10  Bruno Haible  <bruno@clisp.org>
43074         frexpl: Simplify for platforms where 'long double' == 'double'.
43075         * lib/frexpl.c: Include <config.h>.
43076         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43077         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43078         time.
43079         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43080         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43081         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
43082         * modules/frexpl (Depends-on): Add frexp. Update conditions.
43083         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
43084         conditions.
43086 2011-10-10  Jim Meyering  <meyering@redhat.com>
43088         test-renameat: don't leave behind a temporary file
43089         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
43090           ERROR: files left in build directory after distclean:
43091           ./gltests/test-renameat.too
43092           make[1]: *** [distcleancheck] Error 1
43093         Reported by Tom G. Christensen.
43095 2011-10-09  Bruno Haible  <bruno@clisp.org>
43097         rint: Determine RINT_LIBM correctly on AIX 7.
43098         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
43099         directly, not only through a function pointer. Also accept an optional
43100         4th argument with extra code.
43101         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
43102         rintf() call by gcc when optimizing.
43104         mathfunc.m4: Refactor.
43105         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
43106         m4 variable.
43108 2011-10-09  Bruno Haible  <bruno@clisp.org>
43110         rintl: Simplify for platforms where 'long double' == 'double'.
43111         * lib/rintl.c: Include <config.h>.
43112         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43113         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43114         time.
43115         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43116         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43117         * modules/rintl (Depends-on): Add rint. Update conditions.
43119 2011-10-09  Bruno Haible  <bruno@clisp.org>
43121         roundl: Simplify for platforms where 'long double' == 'double'.
43122         * lib/roundl.c: Include <config.h>.
43123         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43124         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43125         time.
43126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43127         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43128         * modules/roundl (Depends-on): Add round. Update conditions.
43130 2011-10-09  Bruno Haible  <bruno@clisp.org>
43132         truncl: Simplify for platforms where 'long double' == 'double'.
43133         * lib/truncl.c: Include <config.h>.
43134         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43135         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43136         time.
43137         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43138         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43139         * modules/truncl (Depends-on): Add trunc. Update conditions.
43141 2011-10-09  Bruno Haible  <bruno@clisp.org>
43143         ceill: Simplify for platforms where 'long double' == 'double'.
43144         * lib/ceill.c: Include <config.h>.
43145         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43146         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43147         time.
43148         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43149         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43150         * modules/ceill (Depends-on): Add ceil. Update conditions.
43152 2011-10-09  Bruno Haible  <bruno@clisp.org>
43154         floorl: Simplify for platforms where 'long double' == 'double'.
43155         * lib/floorl.c: Include <config.h>.
43156         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43157         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43158         time.
43159         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43160         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43161         * modules/floorl (Depends-on): Add floor. Update conditions.
43163 2011-10-09  Bruno Haible  <bruno@clisp.org>
43165         rint: Fix ordering constraints.
43166         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
43167         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
43168         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
43170 2011-10-09  Bruno Haible  <bruno@clisp.org>
43172         copysignl: Simplify for platforms where 'long double' == 'double'.
43173         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43174         alternative.
43175         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43176         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43177         * modules/copysignl (Depends-on): Add copysign. Update conditions.
43179 2011-10-09  Bruno Haible  <bruno@clisp.org>
43181         Tests for module 'rintl'.
43182         * modules/rintl-tests: New file.
43183         * tests/test-rintl.c: New file.
43185         New module 'rintl'.
43186         * lib/math.in.h (rintl): New declaration.
43187         * lib/rintl.c: New file.
43188         * m4/rintl.m4: New file.
43189         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
43190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
43191         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
43192         * modules/rintl: New file.
43193         * tests/test-math-c++.cc: Check the declaration of rintl.
43194         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43195         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
43196         * doc/posix-functions/rintl.texi: Mention the new module.
43198 2011-10-09  Bruno Haible  <bruno@clisp.org>
43200         Tests for module 'rintf'.
43201         * modules/rintf-tests: New file.
43202         * tests/test-rintf.c: New file.
43204         New module 'rintf'.
43205         * lib/math.in.h (rintf): New declaration.
43206         * lib/rintf.c: New file.
43207         * m4/rintf.m4: New file.
43208         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
43209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
43210         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
43211         * modules/rintf: New file.
43212         * tests/test-math-c++.cc: Check the declaration of rintf.
43213         * doc/posix-functions/rintf.texi: Mention the new module.
43215 2011-10-09  Bruno Haible  <bruno@clisp.org>
43217         rint: Support for MSVC.
43218         * lib/math.in.h (rint): New declaration.
43219         * lib/rint.c: New file.
43220         * m4/rint.m4: New file.
43221         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
43222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
43223         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
43224         * modules/rint (Description): Fix.
43225         (Files): Add lib/rint.c, m4/rint.m4.
43226         (Depends-on): Add math.
43227         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
43228         gl_MATH_MODULE_INDICATOR.
43229         * tests/test-math-c++.cc: Check the declaration of rint.
43230         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43231         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
43232         * doc/posix-functions/rint.texi: Mention the replacement provided by
43233         the module.
43235         rint tests: More tests.
43236         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
43237         minus-zero.h, infinity.h, nan.h.
43238         (main): Skip the test if the current rounding mode is not standard. Add
43239         tests for negative numbers, minus zero, infinity, NaN.
43240         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
43241         tests/nan.h.
43242         (Depends-on): Add isnand-nolibm.
43244 2011-10-09  Bruno Haible  <bruno@clisp.org>
43246         Tests for module 'copysignl'.
43247         * modules/copysignl-tests: New file.
43248         * tests/test-copysignl.c: New file.
43250         New module 'copysignl'.
43251         * lib/math.in.h (copysignl): New declaration.
43252         * lib/copysignl.c: New file.
43253         * m4/copysignl.m4: New file.
43254         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
43255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
43256         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
43257         HAVE_COPYSIGNL.
43258         * modules/copysignl: New file.
43259         * tests/test-math-c++.cc: Check the declaration of copysignl.
43260         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43261         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
43262         * doc/posix-functions/copysignl.texi: Mention the new module.
43264 2011-10-09  Bruno Haible  <bruno@clisp.org>
43266         Tests for module 'copysignf'.
43267         * modules/copysignf-tests: New file.
43268         * tests/test-copysignf.c: New file.
43270         New module 'copysignf'.
43271         * lib/math.in.h (copysignf): New declaration.
43272         * lib/copysignf.c: New file.
43273         * m4/copysignf.m4: New file.
43274         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
43275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
43276         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
43277         HAVE_COPYSIGNF.
43278         * modules/copysignf: New file.
43279         * tests/test-math-c++.cc: Check the declaration of copysignf.
43280         * doc/posix-functions/copysignf.texi: Mention the new module.
43282 2011-10-09  Bruno Haible  <bruno@clisp.org>
43284         Ensure that HAVE_* variables are set to 1 before they are set to 0.
43285         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
43286         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
43287         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43288         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
43289         gl_SIGNAL_H_DEFAULTS.
43291 2011-10-09  Bruno Haible  <bruno@clisp.org>
43293         poll: Make macro safer.
43294         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
43295         ac_cv_header_poll_h is not set.
43297 2011-10-09  Bruno Haible  <bruno@clisp.org>
43299         copysign: Provide replacement.
43300         * lib/math.in.h (copysign): New declaration.
43301         * lib/copysign.c: New file.
43302         * m4/copysign.m4: New file.
43303         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
43304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
43305         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
43306         HAVE_COPYSIGN.
43307         * modules/copysign (Description): Clarify.
43308         (Files): Add lib/copysign.c, m4/copysign.m4.
43309         (Depends-on): Add math, signbit.
43310         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
43311         gl_MATH_MODULE_INDICATOR.
43312         * tests/test-math-c++.cc: Check the declaration of copysign.
43313         * doc/posix-functions/copysign.texi: Mention the effects of the module
43314         on Minix and MSVC.
43316 2011-10-09  Bruno Haible  <bruno@clisp.org>
43318         isinf: Ensure macro on AIX 5.1.
43319         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
43320         macro.
43321         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
43323 2011-10-09  Bruno Haible  <bruno@clisp.org>
43325         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
43326         * modules/snprintf-posix-tests (configure.ac): Require
43327         gl_LONG_DOUBLE_VS_DOUBLE.
43328         * modules/sprintf-posix-tests (configure.ac): Likewise.
43329         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
43330         * modules/vasprintf-posix-tests (configure.ac): Likewise.
43331         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
43332         * modules/vsprintf-posix-tests (configure.ac): Likewise.
43333         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
43334         tests on platforms where 'long double' is the same as 'double'.
43335         * tests/test-sprintf-posix.h (test_function): Likewise.
43336         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43337         * tests/test-vasprintf-posix.c (test_function): Likewise.
43339         *printf: Fix for platforms where 'long double' == 'double'.
43340         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43341         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
43342         * modules/dprintf-posix (Files): Add m4/math_h.m4.
43343         * modules/fprintf-posix (Files): Likewise.
43344         * modules/obstack-printf-posix (Files): Likewise.
43345         * modules/snprintf-posix (Files): Likewise.
43346         * modules/sprintf-posix (Files): Likewise.
43347         * modules/vasnprintf (Files): Likewise.
43348         * modules/vasnprintf-posix (Files): Likewise.
43349         * modules/vasprintf-posix (Files): Likewise.
43350         * modules/vdprintf-posix (Files): Likewise.
43351         * modules/vfprintf-posix (Files): Likewise.
43352         * modules/vsnprintf-posix (Files): Likewise.
43353         * modules/vsprintf-posix (Files): Likewise.
43354         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43355         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43356         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43357         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43358         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43359         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43360         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43362         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
43363         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
43364         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43365         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
43366         'long double'.
43367         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
43369         isinf: Fix for platforms where 'long double' == 'double'.
43370         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43371         Don't blindly assume 80-bit 'long double'.
43373         isfinite: Fix for platforms where 'long double' == 'double'.
43374         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43375         Don't blindly assume 80-bit 'long double'.
43377         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
43378         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
43379         * modules/isfinite-tests (configure.ac): Require
43380         gl_LONG_DOUBLE_VS_DOUBLE.
43381         * modules/isinf-tests (configure.ac): Likewise.
43382         * modules/isnan-tests (configure.ac): Likewise.
43383         * modules/isnanl-tests (configure.ac): Likewise.
43384         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
43385         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
43386         tests on platforms where 'long double' is the same as 'double'.
43387         * tests/test-isinf.c (test_isinfl): Likewise.
43388         * tests/test-isnan.c (test_long_double): Likewise.
43389         * tests/test-isnanl.h (main): Likewise.
43391 2011-10-08  Bruno Haible  <bruno@clisp.org>
43393         Tests for module 'tanhf'.
43394         * modules/tanhf-tests: New file.
43395         * tests/test-tanhf.c: New file.
43397         New module 'tanhf'.
43398         * lib/math.in.h (tanhf): New declaration.
43399         * lib/tanhf.c: New file.
43400         * m4/tanhf.m4: New file.
43401         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
43402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
43403         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
43404         * modules/tanhf: New file.
43405         * tests/test-math-c++.cc: Check the declaration of tanhf.
43406         * doc/posix-functions/tanhf.texi: Mention the new module.
43408         tanh: Use a .m4 file.
43409         * m4/tanh.m4: New file.
43410         * modules/tanh (Files): Add it.
43411         (configure.ac): Just invoke gl_FUNC_TANH.
43413 2011-10-08  Bruno Haible  <bruno@clisp.org>
43415         Tests for module 'coshf'.
43416         * modules/coshf-tests: New file.
43417         * tests/test-coshf.c: New file.
43419         New module 'coshf'.
43420         * lib/math.in.h (coshf): New declaration.
43421         * lib/coshf.c: New file.
43422         * m4/coshf.m4: New file.
43423         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
43424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
43425         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
43426         * modules/coshf: New file.
43427         * tests/test-math-c++.cc: Check the declaration of coshf.
43428         * doc/posix-functions/coshf.texi: Mention the new module.
43430         cosh: Use a .m4 file.
43431         * m4/cosh.m4: New file.
43432         * modules/cosh (Files): Add it.
43433         (configure.ac): Just invoke gl_FUNC_COSH.
43435 2011-10-08  Bruno Haible  <bruno@clisp.org>
43437         Tests for module 'sinhf'.
43438         * modules/sinhf-tests: New file.
43439         * tests/test-sinhf.c: New file.
43441         New module 'sinhf'.
43442         * lib/math.in.h (sinhf): New declaration.
43443         * lib/sinhf.c: New file.
43444         * m4/sinhf.m4: New file.
43445         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
43446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
43447         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
43448         * modules/sinhf: New file.
43449         * tests/test-math-c++.cc: Check the declaration of sinhf.
43450         * doc/posix-functions/sinhf.texi: Mention the new module.
43452         sinh: Use a .m4 file.
43453         * m4/sinh.m4: New file.
43454         * modules/sinh (Files): Add it.
43455         (configure.ac): Just invoke gl_FUNC_SINH.
43457 2011-10-08  Bruno Haible  <bruno@clisp.org>
43459         Tests for module 'atan2f'.
43460         * modules/atan2f-tests: New file.
43461         * tests/test-atan2f.c: New file.
43463         New module 'atan2f'.
43464         * lib/math.in.h (atan2f): New declaration.
43465         * lib/atan2f.c: New file.
43466         * m4/atan2f.m4: New file.
43467         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
43468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
43469         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
43470         * modules/atan2f: New file.
43471         * tests/test-math-c++.cc: Check the declaration of atan2f.
43472         * doc/posix-functions/atan2f.texi: Mention the new module.
43474         atan2: Use a .m4 file.
43475         * m4/atan2.m4: New file.
43476         * modules/atan2 (Files): Add it.
43477         (configure.ac): Just invoke gl_FUNC_ATAN2.
43479 2011-10-08  Bruno Haible  <bruno@clisp.org>
43481         Tests for module 'atanf'.
43482         * modules/atanf-tests: New file.
43483         * tests/test-atanf.c: New file.
43485         New module 'atanf'.
43486         * lib/math.in.h (atanf): New declaration.
43487         * lib/atanf.c: New file.
43488         * m4/atanf.m4: New file.
43489         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
43490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
43491         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
43492         * modules/atanf: New file.
43493         * tests/test-math-c++.cc: Check the declaration of atanf.
43494         * doc/posix-functions/atanf.texi: Mention the new module.
43496         atan: Use a .m4 file.
43497         * m4/atan.m4: New file.
43498         * modules/atan (Files): Add it.
43499         (configure.ac): Just invoke gl_FUNC_ATAN.
43501 2011-10-08  Bruno Haible  <bruno@clisp.org>
43503         Tests for module 'acosf'.
43504         * modules/acosf-tests: New file.
43505         * tests/test-acosf.c: New file.
43507         New module 'acosf'.
43508         * lib/math.in.h (acosf): New declaration.
43509         * lib/acosf.c: New file.
43510         * m4/acosf.m4: New file.
43511         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
43512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
43513         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
43514         * modules/acosf: New file.
43515         * tests/test-math-c++.cc: Check the declaration of acosf.
43516         * doc/posix-functions/acosf.texi: Mention the new module.
43518         acos: Use a .m4 file.
43519         * m4/acos.m4: New file.
43520         * modules/acos (Files): Add it.
43521         (configure.ac): Just invoke gl_FUNC_ACOS.
43523 2011-10-08  Bruno Haible  <bruno@clisp.org>
43525         Tests for module 'asinf'.
43526         * modules/asinf-tests: New file.
43527         * tests/test-asinf.c: New file.
43529         New module 'asinf'.
43530         * lib/math.in.h (asinf): New declaration.
43531         * lib/asinf.c: New file.
43532         * m4/asinf.m4: New file.
43533         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
43534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
43535         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
43536         * modules/asinf: New file.
43537         * tests/test-math-c++.cc: Check the declaration of asinf.
43538         * doc/posix-functions/asinf.texi: Mention the new module.
43540         asin: Use a .m4 file.
43541         * m4/asin.m4: New file.
43542         * modules/asin (Files): Add it.
43543         (configure.ac): Just invoke gl_FUNC_ASIN.
43545 2011-10-08  Bruno Haible  <bruno@clisp.org>
43547         Tests for module 'tanf'.
43548         * modules/tanf-tests: New file.
43549         * tests/test-tanf.c: New file.
43551         New module 'tanf'.
43552         * lib/math.in.h (tanf): New declaration.
43553         * lib/tanf.c: New file.
43554         * m4/tanf.m4: New file.
43555         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
43556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
43557         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
43558         * modules/tanf: New file.
43559         * tests/test-math-c++.cc: Check the declaration of tanf.
43560         * doc/posix-functions/tanf.texi: Mention the new module.
43562         tan: Use a .m4 file.
43563         * m4/tan.m4: New file.
43564         * modules/tan (Files): Add it.
43565         (configure.ac): Just invoke gl_FUNC_TAN.
43567 2011-10-08  Bruno Haible  <bruno@clisp.org>
43569         Tests for module 'cosf'.
43570         * modules/cosf-tests: New file.
43571         * tests/test-cosf.c: New file.
43573         New module 'cosf'.
43574         * lib/math.in.h (cosf): New declaration.
43575         * lib/cosf.c: New file.
43576         * m4/cosf.m4: New file.
43577         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
43578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
43579         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
43580         * modules/cosf: New file.
43581         * tests/test-math-c++.cc: Check the declaration of cosf.
43582         * doc/posix-functions/cosf.texi: Mention the new module.
43584         cos: Use a .m4 file.
43585         * m4/cos.m4: New file.
43586         * modules/cos (Files): Add it.
43587         (configure.ac): Just invoke gl_FUNC_COS.
43589 2011-10-08  Bruno Haible  <bruno@clisp.org>
43591         Tests for module 'sinf'.
43592         * modules/sinf-tests: New file.
43593         * tests/test-sinf.c: New file.
43595         New module 'sinf'.
43596         * lib/math.in.h (sinf): New declaration.
43597         * lib/sinf.c: New file.
43598         * m4/sinf.m4: New file.
43599         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
43600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
43601         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
43602         * modules/sinf: New file.
43603         * tests/test-math-c++.cc: Check the declaration of sinf.
43604         * doc/posix-functions/sinf.texi: Mention the new module.
43606         sin: Use a .m4 file.
43607         * m4/sin.m4: New file.
43608         * modules/sin (Files): Add it.
43609         (configure.ac): Just invoke gl_FUNC_SIN.
43611 2011-10-08  Bruno Haible  <bruno@clisp.org>
43613         Tests for module 'powf'.
43614         * modules/powf-tests: New file.
43615         * tests/test-powf.c: New file.
43617         New module 'powf'.
43618         * lib/math.in.h (powf): New declaration.
43619         * lib/powf.c: New file.
43620         * m4/powf.m4: New file.
43621         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
43622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
43623         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
43624         * modules/powf: New file.
43625         * tests/test-math-c++.cc: Check the declaration of powf.
43626         * doc/posix-functions/powf.texi: Mention the new module.
43628         pow: Use a .m4 file.
43629         * m4/pow.m4: New file.
43630         * modules/pow (Files): Add it.
43631         (configure.ac): Just invoke gl_FUNC_POW.
43633 2011-10-08  Bruno Haible  <bruno@clisp.org>
43635         Tests for module 'log10f'.
43636         * modules/log10f-tests: New file.
43637         * tests/test-log10f.c: New file.
43639         New module 'log10f'.
43640         * lib/math.in.h (log10f): New declaration.
43641         * lib/log10f.c: New file.
43642         * m4/log10f.m4: New file.
43643         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
43644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
43645         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
43646         * modules/log10f: New file.
43647         * tests/test-math-c++.cc: Check the declaration of log10f.
43648         * doc/posix-functions/log10f.texi: Mention the new module.
43650         log10: Use a .m4 file.
43651         * m4/log10.m4: New file.
43652         * modules/log10 (Files): Add it.
43653         (configure.ac): Just invoke gl_FUNC_LOG10.
43655 2011-10-08  Bruno Haible  <bruno@clisp.org>
43657         Tests for module 'logf'.
43658         * modules/logf-tests: New file.
43659         * tests/test-logf.c: New file.
43661         New module 'logf'.
43662         * lib/math.in.h (logf): New declaration.
43663         * lib/logf.c: New file.
43664         * m4/logf.m4: New file.
43665         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
43666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43667         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43668         * modules/logf: New file.
43669         * tests/test-math-c++.cc: Check the declaration of logf.
43670         * doc/posix-functions/logf.texi: Mention the new module.
43672         log: Use a .m4 file.
43673         * m4/log.m4: New file.
43674         * modules/log (Files): Add it.
43675         (configure.ac): Just invoke gl_FUNC_LOG.
43677 2011-10-08  Bruno Haible  <bruno@clisp.org>
43679         Tests for module 'expf'.
43680         * modules/expf-tests: New file.
43681         * tests/test-expf.c: New file.
43683         New module 'expf'.
43684         * lib/math.in.h (expf): New declaration.
43685         * lib/expf.c: New file.
43686         * m4/expf.m4: New file.
43687         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43689         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43690         * modules/expf: New file.
43691         * tests/test-math-c++.cc: Check the declaration of expf.
43692         * doc/posix-functions/expf.texi: Mention the new module.
43694         exp: Use a .m4 file.
43695         * m4/exp.m4: New file.
43696         * modules/exp (Files): Add it.
43697         (configure.ac): Just invoke gl_FUNC_EXP.
43699 2011-10-08  Bruno Haible  <bruno@clisp.org>
43701         Tests for module 'sqrtf'.
43702         * modules/sqrtf-tests: New file.
43703         * tests/test-sqrtf.c: New file.
43705         New module 'sqrtf'.
43706         * lib/math.in.h (sqrtf): New declaration.
43707         * lib/sqrtf.c: New file.
43708         * m4/sqrtf.m4: New file.
43709         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
43710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
43711         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
43712         * modules/sqrtf: New file.
43713         * tests/test-math-c++.cc: Check the declaration of sqrtf.
43714         * doc/posix-functions/sqrtf.texi: Mention the new module.
43716 2011-10-08  Bruno Haible  <bruno@clisp.org>
43718         Tests: Avoid link failures w.r.t. libintl.
43719         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
43720         $(LIBINTL).
43721         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
43722         $(LIBINTL).
43723         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
43724         against $(LIBINTL).
43725         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
43726         $(LIBINTL).
43727         * modules/openat-tests (Makefile.am): Link test-fchmodat against
43728         $(LIBINTL).
43729         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
43731 2011-10-08  Bruno Haible  <bruno@clisp.org>
43733         pow tests: Defeat compiler optimizations.
43734         * tests/test-pow.c (main): Assign arguments to x and y before use.
43736 2011-10-08  Bruno Haible  <bruno@clisp.org>
43738         gnulib-tool: Improve last commit.
43739         * gnulib-tool (func_modules_transitive_closure): Simplify code.
43740         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
43741         ignore dependencies that are not among the modules list.
43743 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
43745         gnulib-tool: don't follow dependencies to avoided modules
43746         This fixes a bug that is related to the previous one.
43747         * gnulib-tool (func_modules_transitive_closure)
43748         (func_emit_autoconf_snippets):
43749         Check whether a dependency is acceptable before using it.
43750         (--extract-dependencies): Report an error if --avoid is also used,
43751         since this combination of options is not yet supported.
43753         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
43754         Problem reported by Peter Dyballa in
43755         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
43756         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
43757         when echoing "$condition".
43759 2011-10-07  Bruno Haible  <bruno@clisp.org>
43761         Fix documentation about math functions on MacOS X.
43762         * doc/posix-functions/exp2.texi: Don't say the function is missing on
43763         MacOS X 10.5.
43764         * doc/posix-functions/fdim.texi: Likewise.
43765         * doc/posix-functions/feclearexcept.texi: Likewise.
43766         * doc/posix-functions/fegetenv.texi: Likewise.
43767         * doc/posix-functions/fegetround.texi: Likewise.
43768         * doc/posix-functions/feholdexcept.texi: Likewise.
43769         * doc/posix-functions/feraiseexcept.texi: Likewise.
43770         * doc/posix-functions/fesetenv.texi: Likewise.
43771         * doc/posix-functions/fesetround.texi: Likewise.
43772         * doc/posix-functions/fetestexcept.texi: Likewise.
43773         * doc/posix-functions/feupdateenv.texi: Likewise.
43774         * doc/posix-functions/fmax.texi: Likewise.
43775         * doc/posix-functions/fmin.texi: Likewise.
43776         * doc/posix-functions/log2.texi: Likewise.
43777         * doc/posix-functions/modff.texi: Likewise.
43778         * doc/posix-functions/nan.texi: Likewise.
43779         * doc/posix-functions/nanf.texi: Likewise.
43780         * doc/posix-functions/nextafterf.texi: Likewise.
43781         * doc/posix-functions/remquo.texi: Likewise.
43783 2011-10-07  Bruno Haible  <bruno@clisp.org>
43785         modff: Drop assumption about library that defines modff.
43786         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
43787         AC_CHECK_FUNCS.
43788         * modules/modff (Files): Add m4/mathfunc.m4.
43790 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
43792         raise tests: Avoid a GCC warning.
43793         * tests/test-raise.c (handler): Use _Noreturn.
43795 2011-10-07  Bruno Haible  <bruno@clisp.org>
43797         Tests for module 'ldexpf'.
43798         * modules/ldexpf-tests: New file.
43799         * tests/test-ldexpf.c: New file.
43801         New module 'ldexpf'.
43802         * lib/math.in.h (ldexpf): New declaration.
43803         * lib/ldexpf.c: New file.
43804         * m4/ldexpf.m4: New file.
43805         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43807         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43808         * modules/ldexpf: New file.
43809         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43810         * doc/posix-functions/ldexpf.texi: Mention the new module.
43812 2011-10-06  Bruno Haible  <bruno@clisp.org>
43814         frexpf: Work around problems on IRIX and mingw.
43815         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43817         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43818         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43819         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43820         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43821         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43823 2011-10-06  Bruno Haible  <bruno@clisp.org>
43825         fabsf: Drop assumption about library that defines fabsf.
43826         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43827         AC_CHECK_FUNCS.
43828         * modules/fabsf (Files): Add m4/mathfunc.m4.
43830 2011-10-06  Bruno Haible  <bruno@clisp.org>
43832         frexpf: Drop assumption about library that defines frexpf.
43833         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43834         'int *', 'float *', 'long double *', 'float', 'long double'.
43835         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43836         AC_CHECK_FUNCS.
43837         * modules/frexpf (Files): Add m4/mathfunc.m4.
43839         Tests for module 'frexpf'.
43840         * modules/frexpf-tests: New file.
43841         * tests/test-frexpf.c: New file.
43843         New module 'frexpf'.
43844         * lib/math.in.h (frexpf): New declaration.
43845         * lib/frexpf.c: New file.
43846         * m4/frexpf.m4: New file.
43847         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43849         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43850         * modules/frexpf: New file.
43851         * tests/test-math-c++.cc: Check the declaration of frexpf.
43852         * doc/posix-functions/frexpf.texi: Mention the new module.
43854 2011-10-06  Bruno Haible  <bruno@clisp.org>
43856         math: Sort function declarations of math.in.h.
43857         * lib/math.in.h (frexp, logb): Move declarations.
43859 2011-10-05  Bruno Haible  <bruno@clisp.org>
43861         Tests for module 'modff'.
43862         * modules/modff-tests: New file.
43863         * tests/test-modff.c: New file.
43865         New module 'modff'.
43866         * lib/math.in.h (modff): New declaration.
43867         * lib/modff.c: New file.
43868         * m4/modff.m4: New file.
43869         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43871         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43872         * modules/modff: New file.
43873         * tests/test-math-c++.cc: Check the declaration of modff.
43874         * doc/posix-functions/modff.texi: Mention the new module.
43876         modf tests: Make test sharper.
43877         * tests/test-modf.c (main): Strengthen upper bound.
43879         modf: Use a .m4 file.
43880         * m4/modf.m4: New file.
43881         * modules/modf (Files): Add it.
43882         (configure.ac): Just invoke gl_FUNC_MODF.
43884 2011-10-05  Bruno Haible  <bruno@clisp.org>
43886         Tests for module 'fmodf'.
43887         * modules/fmodf-tests: New file.
43888         * tests/test-fmodf.c: New file.
43890         New module 'fmodf'.
43891         * lib/math.in.h (fmodf): New declaration.
43892         * lib/fmodf.c: New file.
43893         * m4/fmodf.m4: New file.
43894         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43896         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43897         * modules/fmodf: New file.
43898         * tests/test-math-c++.cc: Check the declaration of fmodf.
43899         * doc/posix-functions/fmodf.texi: Mention the new module.
43901         fmod: Use a .m4 file.
43902         * m4/fmod.m4: New file.
43903         * modules/fmod (Files): Add it.
43904         (configure.ac): Just invoke gl_FUNC_FMOD.
43906 2011-10-05  Bruno Haible  <bruno@clisp.org>
43908         Tests for module 'fabsf'.
43909         * modules/fabsf-tests: New file.
43910         * tests/test-fabsf.c: New file.
43912         New module 'fabsf'.
43913         * lib/math.in.h (fabsf): New declaration.
43914         * lib/fabsf.c: New file.
43915         * m4/fabsf.m4: New file.
43916         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43918         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43919         * modules/fabsf: New file.
43920         * tests/test-math-c++.cc: Check the declaration of fabsf.
43921         * doc/posix-functions/fabsf.texi: Mention the new module.
43923         fabs: Use a .m4 file.
43924         * m4/fabs.m4: New file.
43925         * modules/fabs (Files): Add it.
43926         (configure.ac): Just invoke gl_FUNC_FABS.
43928 2011-10-05  Jim Meyering  <meyering@redhat.com>
43930         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43931         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43932         ls -lL regression introduced in coreutils-8.12, it does so at the
43933         cost of an additional stat call in the common case.  Besides, now
43934         that the kernel change that prompted commit 95f7c57f has been reverted
43935         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43936         we have no use for commit 95f7c57f, "file-has-acl: use
43937         acl_extended_file_nofollow if available".
43939 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43941         file-has-acl: revert unintended change in behavior of ls -L
43942         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43943         derived from...
43944         (file_has_acl): ...code here.  Call it.
43945         This problem was introduced with 2011-07-22 commit 95f7c57f,
43946         "file-has-acl: use acl_extended_file_nofollow if available".
43947         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43949 2011-10-03  Bruno Haible  <bruno@clisp.org>
43951         poll: Avoid link errors on MSVC.
43952         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43953         * modules/poll (Depends-on): Add sockets.
43954         (Link): New section.
43955         * NEWS: Mention the change.
43956         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43957         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43958         $(LIB_POLL) instead of $(LIBSOCKET).
43960 2011-10-03  Bruno Haible  <bruno@clisp.org>
43962         sys_select tests: Fix link error on MSVC 9.
43963         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43964         with $(LIB_SELECT) instead of $(LIBSOCKET).
43966 2011-10-03  Bruno Haible  <bruno@clisp.org>
43968         sys_select: Fix compilation error on mingw.
43969         * lib/sys_select.in.h: On native Windows, include <io.h>.
43971 2011-10-03  Bruno Haible  <bruno@clisp.org>
43973         wmemset: Support for MSVC.
43974         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43975         whether wmemset() exists.
43977 2011-10-03  Bruno Haible  <bruno@clisp.org>
43979         wmemmove: Support for MSVC.
43980         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43981         whether wmemmove() exists.
43983 2011-10-03  Bruno Haible  <bruno@clisp.org>
43985         wmemcpy: Support for MSVC.
43986         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43987         whether wmemcpy() exists.
43989 2011-10-03  Bruno Haible  <bruno@clisp.org>
43991         wmemcmp: Support for MSVC.
43992         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43993         whether wmemcmp() exists.
43995 2011-10-03  Bruno Haible  <bruno@clisp.org>
43997         wmemchr: Support for MSVC.
43998         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43999         whether wmemchr() exists.
44001 2011-10-03  Bruno Haible  <bruno@clisp.org>
44003         glthread/*, strsignal: Support for MSVC.
44004         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
44005         including <winsock.h> on MSVC 9.
44006         * lib/glthread/lock.h: Likewise.
44007         * lib/glthread/thread.h: Likewise.
44008         * lib/glthread/tls.h: Likewise.
44009         * lib/glthread/yield.h: Likewise.
44010         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
44011         if HAVE_UNISTD_H is false.
44012         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
44014 2011-10-03  Bruno Haible  <bruno@clisp.org>
44016         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
44017         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
44018         Set to 100000.
44020 2011-10-03  Bruno Haible  <bruno@clisp.org>
44022         acl: Fix specification.
44023         * lib/file-has-acl.c (file_has_acl): Fix specification.
44025 2011-10-03  Bruno Haible  <bruno@clisp.org>
44027         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
44028         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
44029         (compute_curr_prefix, shared_library_fullname,
44030         find_shared_library_fullname, get_shared_library_fullname, relocate):
44031         Use it together with PIC && INSTALLDIR.
44032         Reported by <jojelino@gmail.com>
44033         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
44035 2011-10-01  Jim Meyering  <meyering@redhat.com>
44037         maint.mk: adjust a release-related rule not to require use of gzip
44038         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
44039         Instead, check each file in $(DIST_ARCHIVES).  This is better for
44040         projects that build only .tar.xz files.  Also fix an erroneous test.
44042         test-linkat: don't leave behind a temporary file
44043         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
44044         Otherwise, coreutils' "make distcheck" would fail with this:
44045           Only in /c/cu/tests/torture/coreutils/test/\
44046             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
44047           make[2]: *** [my-distcheck] Error 1
44049         float, math: add omitted file
44050         * lib/itold.c: Add file, required for yesterday's float change.
44052 2011-10-01  Bruno Haible  <bruno@clisp.org>
44054         isinf: Fix for OpenBSD/x86.
44055         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
44056         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
44057         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
44059 2011-10-01  Bruno Haible  <bruno@clisp.org>
44061         isfinite: Fix syntax error in configure test.
44062         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
44064         isfinite: Fix typo.
44065         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
44066         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
44068 2011-10-01  Bruno Haible  <bruno@clisp.org>
44070         nonblocking tests: Fix test failure on Linux/IA-64.
44071         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
44072         Set to 270000.
44074 2011-10-01  Bruno Haible  <bruno@clisp.org>
44076         mkfifoat tests: Fix a test failure on mingw.
44077         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
44078         with error ENOSYS.
44080 2011-09-30  Bruno Haible  <bruno@clisp.org>
44082         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
44083         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
44084         'long double'. Set REPLACE_ITOLD.
44085         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
44086         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
44087         * lib/itold.c: New file.
44088         * modules/float (Files): Add lib/itold.c.
44089         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
44090         (Makefile.am): Substitute REPLACE_ITOLD.
44091         * modules/math (Depends-on): Add float.
44092         (Makefile.am): Substitute REPLACE_ITOLD.
44093         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
44094         * doc/posix-headers/math.texi: Likewise.
44095         * doc/posix-functions/logl.texi: Likewise.
44097 2011-09-30  Bruno Haible  <bruno@clisp.org>
44099         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
44100         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
44101         Set to 140000.
44103 2011-09-30  Bruno Haible  <bruno@clisp.org>
44105         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
44106         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
44107         invocation, say "right after AC_PROG_CC_STDC", not "right after
44108         AC_PROG_CC".
44109         Reported by Gary V. Vaughan <gary@gnu.org>.
44111 2011-09-30  Bruno Haible  <bruno@clisp.org>
44113         Centralize C99 requirement.
44114         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
44115         * modules/stdarg (configure.ac-early): Invoke it instead of
44116         AC_PROG_CC_STDC.
44117         Reported by Gary V. Vaughan and Paul Eggert.
44119 2011-09-29  Bruno Haible  <bruno@clisp.org>
44121         float: Fix LDBL_MAX value on Linux/PowerPC.
44122         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
44123         on Linux/PowerPC.
44124         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
44125         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
44126         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
44127         platform.
44128         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
44130 2011-09-29  Bruno Haible  <bruno@clisp.org>
44132         doc: Improve doc about gl_EARLY.
44133         * doc/gnulib-tool.texi (Initial import): Mention where to place an
44134         AC_PROG_CC_STDC invocation.
44135         Reported by Gary V. Vaughan <gary@gnu.org>.
44137 2011-09-28  Bruno Haible  <bruno@clisp.org>
44139         fgetc, fputc, fread, fwrite tests: Fix link error.
44140         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
44141         on non-MSVC platforms.
44142         * tests/test-fputc.c (main): Likewise.
44143         * tests/test-fread.c (main): Likewise.
44144         * tests/test-fwrite.c (main): Likewise.
44145         Reported by Jim Meyering.
44147 2011-09-27  Bruno Haible  <bruno@clisp.org>
44149         fputc, fwrite tests: Avoid test failure on MSVC.
44150         * tests/test-fgetc.c: Include msvc-inval.h.
44151         (main): Invoke gl_msvc_inval_ensure_handler.
44152         * tests/test-fputc.c: Include msvc-inval.h.
44153         (main): Invoke gl_msvc_inval_ensure_handler.
44154         * tests/test-fread.c: Include msvc-inval.h.
44155         (main): Invoke gl_msvc_inval_ensure_handler.
44156         * tests/test-fwrite.c: Include msvc-inval.h.
44157         (main): Invoke gl_msvc_inval_ensure_handler.
44158         * modules/fgetc-tests (Depends-on): Add msvc-inval.
44159         * modules/fputc-tests (Depends-on): Likewise.
44160         * modules/fread-tests (Depends-on): Likewise.
44161         * modules/fwrite-tests (Depends-on): Likewise.
44163 2011-09-27  Bruno Haible  <bruno@clisp.org>
44165         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
44166         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
44167         (raise): Remove older, duplicated declaration.
44168         (_gl_raise_SIGPIPE): New declaration.
44169         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
44170         (rpl_raise): Remove function.
44171         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
44172         a gnulib-defined SIGPIPE here.
44173         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
44174         'sigprocmask' has detected missing signal-blocking and the module
44175         'sigpipe' is enabled.
44176         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44178 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
44180         base64-tests: avoid memory leak
44181         * tests/test-base64.c (main): Plug memory leak.
44183         base32: new module
44184         * modules/base32: New module.
44185         * lib/base32.c: New file.
44186         * lib/base32.h: Likewise.
44187         * m4/base32.m4: Likewise.
44188         * modules/base32-tests: New test.
44189         * tests/test-base32.c: Likewise.
44190         * MODULES.html.sh (Misc): Mention it.
44192 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44194         gnulib: use more-standard license notice wording
44195         * gnulib-tool (func_emit_copyright_notice): When emitting a
44196         license notice into a file, use the standard wording as suggested
44197         by the current information for GNU maintainers, except say "file"
44198         rather than "program".  The new wording gives a license version
44199         number, which addresses an issue raised by Glenn Morris in
44200         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
44201         * m4/onceonly.m4: Use that same wording here, too.
44203         dup2: minor simplification
44204         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
44205         as lib/dup2.c no longer uses 'inline'.
44207 2011-09-25  Bruno Haible  <bruno@clisp.org>
44209         strings: Fix compilation error on MSVC.
44210         * lib/strings.in.h: Include <stddef.h> for size_t.
44212 2011-09-25  Bruno Haible  <bruno@clisp.org>
44214         fflush et al.: Document limitation on MSVC.
44215         * doc/posix-functions/fflush.texi: Document possible crash in handling
44216         mode other than DEFAULT_HANDLING.
44217         * doc/posix-functions/fgetc.texi: Likewise.
44218         * doc/posix-functions/fputc.texi: Likewise.
44219         * doc/posix-functions/fread.texi: Likewise.
44220         * doc/posix-functions/fwrite.texi: Likewise.
44222 2011-09-25  Bruno Haible  <bruno@clisp.org>
44224         msvc-inval: Allow three invalid parameter handling modes.
44225         * lib/msvc-inval.h: Don't include <stdlib.h> here.
44226         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
44227         macros.
44228         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
44229         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
44230         SANE_LIBRARY_HANDLING as a no-op.
44231         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
44232         <stdlib.h>.
44233         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
44235 2011-09-25  Bruno Haible  <bruno@clisp.org>
44237         msvc-inval: Make handler multithread-safe.
44238         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
44239         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
44240         declarations.
44241         (gl_msvc_inval_current): New declaration.
44242         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44243         Operate on the structure returned by gl_msvc_inval_current().
44244         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
44245         Remove varaiables.
44246         (tls_index, tls_initialized): New variables.
44247         (not_per_thread): New variable.
44248         (gl_msvc_inval_current): New function.
44249         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
44250         returned by gl_msvc_inval_current().
44252 2011-09-25  Bruno Haible  <bruno@clisp.org>
44254         msvc-inval: Install handler globally.
44255         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
44256         !_MSC_VER.
44257         (gl_msvc_invalid_parameter_handler): Remove declaration.
44258         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
44259         declarations.
44260         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44261         Install the handler globally, don't uninstall it.
44262         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
44263         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
44264         currently valid, call RaiseException instead.
44265         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
44266         for !_MSC_VER.
44268 2011-09-25  Bruno Haible  <bruno@clisp.org>
44270         strerror_r-posix: Fix for MSVC 9.
44271         * lib/strerror_r.c (local_snprintf): New function.
44272         (snprintf): Define to local_snprintf, not to _snprintf.
44274 2011-09-25  Bruno Haible  <bruno@clisp.org>
44276         ftruncate: Support for MSVC 9.
44277         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
44278         (chsize_nothrow): New function.
44279         (chsize): Redefine as a macro.
44280         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
44281         * modules/ftruncate (Depends-on): Add msvc-inval.
44283 2011-09-25  Bruno Haible  <bruno@clisp.org>
44285         New module 'fstat'.
44286         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
44287         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
44288         * lib/fchdir.c (rpl_fstat): Remove function.
44289         * m4/fstat.m4: New file.
44290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
44291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
44292         declared.
44293         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
44294         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
44295         * modules/fstat: New file.
44296         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
44297         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
44298         is set.
44299         * doc/posix-functions/fstat.texi: Mention the new module and the
44300         problem on MSVC.
44301         * NEWS: Mention the change.
44302         * modules/acl (Depends-on): Add fstat.
44303         * modules/chdir-safer (Depends-on): Likewise.
44304         * modules/chown (Depends-on): Likewise.
44305         * modules/copy-file (Depends-on): Likewise.
44306         * modules/fchdir (Depends-on): Likewise.
44307         * modules/fdopendir (Depends-on): Likewise.
44308         * modules/fopen (Depends-on): Likewise.
44309         * modules/fts (Depends-on): Likewise.
44310         * modules/getcwd (Depends-on): Likewise.
44311         * modules/isapipe (Depends-on): Likewise.
44312         * modules/linkat (Depends-on): Likewise.
44313         * modules/lseek (Depends-on): Likewise.
44314         * modules/mkdir-p (Depends-on): Likewise.
44315         * modules/open (Depends-on): Likewise.
44316         * modules/openat (Depends-on): Likewise.
44317         * modules/read-file (Depends-on): Likewise.
44318         * modules/renameat (Depends-on): Likewise.
44319         * modules/utimens (Depends-on): Likewise.
44321 2011-09-25  Bruno Haible  <bruno@clisp.org>
44323         linkat: Fix compilation on MSVC 9.
44324         * lib/linkat.c: Don't include <stdint.h>.
44326 2011-09-25  Bruno Haible  <bruno@clisp.org>
44328         fclose: Support for MSVC 9.
44329         * lib/fclose.c: Include msvc-inval.h.
44330         (fclose_nothrow): New function.
44331         (rpl_fclose): Use it.
44332         * modules/fclose (Depends-on): Add msvc-inval.
44333         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
44335 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
44337         dup2: minor simplifications
44338         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
44339         that it's a performance win.
44340         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
44341         ! defined __CYGWIN__)" to "ifdef F_GETFL".
44343 2011-09-24  Jim Meyering  <meyering@redhat.com>
44345         test-futimens: avoid a warning from gcc -Wshadow
44346         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
44347         to avoid a shadowing warning.
44349 2011-09-24  Bruno Haible  <bruno@clisp.org>
44351         fdopen: Support for MSVC 9.
44352         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
44353         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
44354         * lib/fdopen.c: Include msvc-inval.h.
44355         (fdopen_nothrow): New function.
44356         (rpl_fdopen): Use it.
44357         * modules/fdopen (Depends-on): Add msvc-inval.
44358         * modules/fclose-tests (Depends-on): Add fdopen.
44359         * modules/fflush-tests (Depends-on): Likewise.
44360         * modules/fgetc-tests (Depends-on): Likewise.
44361         * modules/fputc-tests (Depends-on): Likewise.
44362         * modules/fread-tests (Depends-on): Likewise.
44363         * modules/freopen-tests (Depends-on): Likewise.
44364         * modules/fseeko-tests (Depends-on): Likewise.
44365         * modules/ftello-tests (Depends-on): Likewise.
44366         * modules/fwrite-tests  (Depends-on): Likewise.
44367         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
44369 2011-09-24  Bruno Haible  <bruno@clisp.org>
44371         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
44372         * modules/fgetc-tests (Depends-on): Add unistd.
44373         * modules/fputc-tests (Depends-on): Likewise.
44374         * modules/fread-tests (Depends-on): Likewise.
44375         * modules/fwrite-tests (Depends-on): Likewise.
44377 2011-09-24  Bruno Haible  <bruno@clisp.org>
44379         dup: Simplify autoconf test.
44380         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
44381         on gl_MSVC_INVAL's result.
44383 2011-09-24  Bruno Haible  <bruno@clisp.org>
44385         Tests for function fwrite().
44386         * modules/fwrite-tests: New file.
44387         * tests/test-fwrite.c: New file.
44388         * modules/stdio-tests (Depends-on): Add fwrite-tests.
44390         Tests for function fread().
44391         * modules/fread-tests: New file.
44392         * tests/test-fread.c: New file.
44393         * modules/stdio-tests (Depends-on): Add fread-tests.
44395         Activate fputc tests.
44396         * modules/stdio-tests (Depends-on): Add fputc-tests.
44398         Enhance fgetc, fputc tests.
44399         * tests/test-fgetc.c (main): Also test the stream's error indicator.
44400         * tests/test-fputc.c (main): Likewise.
44402 2011-09-24  Bruno Haible  <bruno@clisp.org>
44404         write: Support for MSVC 9.
44405         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44406         is not 1.
44407         * lib/write.c (write_nothrow): New function.
44408         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
44409         not 1. Use write_nothrow.
44410         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
44411         invalid parameter handler.
44412         (gl_PREREQ_WRITE): New macro.
44413         * modules/write (Depends-on): Add msvc-inval.
44414         (configure.ac): Invoke gl_PREREQ_WRITE.
44415         * doc/posix-functions/write.texi: Mention the problem on MSVC.
44417 2011-09-24  Bruno Haible  <bruno@clisp.org>
44419         read: Fix last commit.
44420         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
44422 2011-09-24  Bruno Haible  <bruno@clisp.org>
44424         dup2: Fix last commit.
44425         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
44426         (rpl_dup2): Disable fcntl workaround on native Windows.
44428         sigprocmask: Make code safer.
44429         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
44430         section that changes macro definitions for this compilation unit.
44432 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
44434         dup2: clarify by coalescing Windows-specific material
44435         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
44436         "msvc-nothrow.h"' to the Windows-specific section, so that the
44437         Emacs source need not contain these include files.
44438         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
44439         Windows-specific fixes into this function rather than just the
44440         nothrow fix, as this shortens and clarifies the code.  Always
44441         define as a function, as that's a bit cleaner than having it be
44442         sometimes a function and sometimes a macro.
44443         (rpl_dup2): Move the Windows-specific stuff out of here and into
44444         ms_windows_dup2.  Don't protect the Haiku-related fix with
44445         "#if !defined __linux__", as the same code also works around
44446         a Linux kernel bug, and it doesn't add any system calls on any
44447         platform.  Add comment about FreeBSD 6.1.
44449         sigprocmask: move #include directive
44450         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
44451         Windows-specific section, so that the Emacs source need not
44452         contain msvc-inval.h.
44454 2011-09-23  Bruno Haible  <bruno@clisp.org>
44456         read: Support for MSVC 9.
44457         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44458         is not 1.
44459         * lib/read.c (read_nothrow): New function.
44460         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
44461         read_nothrow.
44462         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
44463         invalid parameter handler.
44464         (gl_PREREQ_READ): New macro.
44465         * modules/read (Depends-on): Add msvc-inval.
44466         (configure.ac): Invoke gl_PREREQ_READ.
44467         * doc/posix-functions/read.texi: Mention the problem on MSVC.
44469 2011-09-23  Bruno Haible  <bruno@clisp.org>
44471         close: Support for MSVC 9.
44472         * lib/close.c: Include <errno.h>, msvc-inval.h.
44473         (close_nothrow): New function.
44474         (rpl_close): Use it.
44475         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
44476         invalid parameter handler.
44477         * modules/close (Depends-on): Add msvc-inval.
44478         * modules/dup2-tests (Depends-on): Add close.
44479         * modules/dup3-tests (Depends-on): Likewise.
44480         * modules/fcntl-tests (Depends-on): Likewise.
44481         * modules/spawn-pipe-tests (Depends-on): Likewise.
44482         * modules/unistd-safer-tests (Depends-on): Likewise.
44483         * doc/posix-functions/close.texi: Mention the problem on MSVC.
44485 2011-09-23  Bruno Haible  <bruno@clisp.org>
44487         New module 'dup'.
44488         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
44489         Allow replacement.
44490         * lib/dup.c: New file.
44491         * lib/fchdir.c (rpl_dup): Remove function.
44492         * m4/dup.m4: New file.
44493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
44494         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
44495         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
44496         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
44497         * modules/dup: New file.
44498         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
44499         'dup' module is in use.
44500         * modules/fdopendir (Depends-on): Add dup.
44501         * modules/fdutimensat-tests (Depends-on): Likewise.
44502         * modules/fts (Depends-on): Likewise.
44503         * modules/futimens-tests (Depends-on): Likewise.
44504         * modules/posix_spawnp-tests (Depends-on): Likewise.
44505         * modules/unistd-safer-tests (Depends-on): Likewise.
44506         * modules/utimens-tests (Depends-on): Likewise.
44507         * doc/posix-functions/dup.texi: Mention the new module and the problem
44508         on MSVC.
44510 2011-09-23  Bruno Haible  <bruno@clisp.org>
44512         getdtablesize: Support for MSVC 9.
44513         * lib/getdtablesize.c: Include msvc-inval.h.
44514         (_setmaxstdio_nothrow): New function.
44515         (_setmaxstdio): Redefine it.
44516         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
44517         * modules/getdtablesize (Depends-on): Add msvc-inval.
44518         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
44520 2011-09-23  Bruno Haible  <bruno@clisp.org>
44522         signal-h: Rename from signal.
44523         * modules/signal-h: Renamed from modules/signal.
44524         * modules/pthread_sigmask (Depends-on): Update.
44525         * modules/raise (Depends-on): Likewise.
44526         * modules/sigaction (Depends-on): Likewise.
44527         * modules/sigpipe (Depends-on): Likewise.
44528         * modules/sigprocmask (Depends-on): Likewise.
44529         * modules/sys_select (Depends-on): Likewise.
44530         * modules/signal-h-tests: Renamed from modules/signal-tests.
44531         (Files, Depends-on, Makefile.am): Update.
44532         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
44533         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
44534         (Files, Makefile.am): Update.
44535         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
44536         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
44537         * modules/signal: New placeholder file.
44538         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
44539         * doc/posix-headers/signal.texi: Update.
44540         * NEWS: Mention the change.
44542 2011-09-23  Bruno Haible  <bruno@clisp.org>
44544         sigprocmask: Avoid crashes through signal() on MSVC 9.
44545         * lib/sigprocmask.c: Include msvc-inval.h.
44546         (signal_nothrow): New function.
44547         (signal): Redefine it.
44548         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
44549         * modules/sigprocmask (Depends-on): Add msvc-inval.
44550         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
44552 2011-09-23  Bruno Haible  <bruno@clisp.org>
44554         Tests for module 'raise'.
44555         * modules/raise-tests: New file.
44556         * tests/test-raise.c: New file.
44558         raise: Support for MSVC.
44559         * lib/signal.in.h (raise): New declaration.
44560         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
44561         for native Windows platforms.
44562         * m4/raise.m4: New file.
44563         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
44564         HAVE_RAISE, REPLACE_RAISE.
44565         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
44566         REPLACE_RAISE.
44567         * modules/raise (Status, Notice): Remove fields.
44568         (Files): Add m4/raise.m4.
44569         (Depends-on): Add signal, msvc-inval.
44570         (configure.ac): Use the common idioms.
44571         (Maintainer): Add me.
44572         * tests/test-signal-c++.cc: Check the signature of raise.
44573         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
44575 2011-09-23  Bruno Haible  <bruno@clisp.org>
44577         pipe2: Fix compilation on pre-C99 compilers.
44578         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
44580 2011-09-23  Bruno Haible  <bruno@clisp.org>
44582         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
44583         * lib/msvc-nothrow.h: New file.
44584         * lib/msvc-nothrow.c: New file.
44585         * m4/msvc-nothrow.m4: New file.
44586         * modules/msvc-nothrow: New file.
44587         * lib/dup2.c: Include msvc-nothrow.h.
44588         (rpl_dup2): No need to protect _get_osfhandle call here.
44589         * lib/accept4.c: Include msvc-nothrow.h.
44590         * lib/error.c: Likewise.
44591         * lib/fcntl.c: Likewise.
44592         * lib/lseek.c: Likewise.
44593         * lib/nonblocking.c: Likewise.
44594         * lib/poll.c: Likewise.
44595         * lib/read.c: Likewise.
44596         * lib/select.c: Likewise.
44597         * lib/sockets.h: Likewise.
44598         * lib/sockets.c: Likewise.
44599         * lib/stdio-read.c: Likewise.
44600         * lib/stdio-write.c: Likewise.
44601         * lib/write.c: Likewise.
44602         * lib/w32sock.h: Likewise.
44603         * lib/w32spawn.h: Likewise.
44604         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
44605         * lib/fsync.c: Likewise.
44606         * lib/isapipe.c: Likewise.
44607         * modules/dup2 (Depends-on): Add msvc-nothrow.
44608         * modules/accept4 (Depends-on): Likewise.
44609         * modules/error (Depends-on): Likewise.
44610         * modules/fcntl (Depends-on): Likewise.
44611         * modules/lseek (Depends-on): Likewise.
44612         * modules/nonblocking (Depends-on): Likewise.
44613         * modules/poll (Depends-on): Likewise.
44614         * modules/read (Depends-on): Likewise.
44615         * modules/select (Depends-on): Likewise.
44616         * modules/sockets (Depends-on): Likewise.
44617         * modules/sigpipe (Depends-on): Likewise.
44618         * modules/write (Depends-on): Likewise.
44619         * modules/accept (Depends-on): Likewise.
44620         * modules/bind (Depends-on): Likewise.
44621         * modules/connect (Depends-on): Likewise.
44622         * modules/gethostname (Depends-on): Likewise.
44623         * modules/getpeername (Depends-on): Likewise.
44624         * modules/getsockname (Depends-on): Likewise.
44625         * modules/getsockopt (Depends-on): Likewise.
44626         * modules/ioctl (Depends-on): Likewise.
44627         * modules/listen (Depends-on): Likewise.
44628         * modules/recv (Depends-on): Likewise.
44629         * modules/recvfrom (Depends-on): Likewise.
44630         * modules/send (Depends-on): Likewise.
44631         * modules/sendto (Depends-on): Likewise.
44632         * modules/setsockopt (Depends-on): Likewise.
44633         * modules/shutdown (Depends-on): Likewise.
44634         * modules/socket (Depends-on): Likewise.
44635         * modules/execute (Depends-on): Likewise.
44636         * modules/spawn-pipe (Depends-on): Likewise.
44637         * modules/flock (Depends-on): Likewise.
44638         * modules/fsync (Depends-on): Likewise.
44639         * modules/isapipe (Depends-on): Likewise.
44640         * tests/test-cloexec.c: Include msvc-nothrow.h.
44641         * tests/test-dup-safer.c: Likewise.
44642         * tests/test-dup2.c: Likewise.
44643         * tests/test-dup3.c: Likewise.
44644         * tests/test-fcntl.c: Likewise.
44645         * tests/test-pipe.c: Likewise.
44646         * tests/test-pipe2.c: Likewise.
44647         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
44648         * modules/unistd-safer-tests (Depends-on): Likewise.
44649         * modules/dup2-tests (Depends-on): Likewise.
44650         * modules/dup3-tests (Depends-on): Likewise.
44651         * modules/fcntl-tests (Depends-on): Likewise.
44652         * modules/pipe-posix-tests (Depends-on): Likewise.
44653         * modules/pipe2-tests (Depends-on): Likewise.
44655 2011-09-23  Bruno Haible  <bruno@clisp.org>
44657         dup2: Make code more maintainable.
44658         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
44659         (rpl_dup2): Use it.
44660         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
44661         * modules/dup2 (configure.ac): Invoke it.
44662         Reported by Paul Eggert.
44664 2011-09-23  Bruno Haible  <bruno@clisp.org>
44666         msvc-inval: Fix compilation error.
44667         * lib/msvc-inval.h: Include <excpt.h>.
44669 2011-09-23  Bruno Haible  <bruno@clisp.org>
44671         mkdir: Tweak for MSVC 9.
44672         * lib/sys_stat.in.h: Update comments.
44673         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44675         Tests for module 'chdir'.
44676         * modules/chdir-tests: New file.
44677         * tests/test-chdir.c: New file.
44679         New module 'chdir'.
44680         * modules/chdir: New file.
44681         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44682         (chdir): New declaration.
44683         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44684         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44685         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44686         * tests/test-unistd-c++.cc: Check signature of chdir.
44687         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44688         * modules/chdir-long (Depends-on): Add chdir.
44689         * modules/fchdir (Depends-on): Likewise.
44690         * modules/rename (Depends-on): Likewise.
44691         * modules/savewd (Depends-on): Likewise.
44693         rmdir: Support for mingw, MSVC 9.
44694         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44695         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44697         getcwd: Tweak for MSVC 9.
44698         * lib/unistd.in.h: Update comments.
44699         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44701 2011-09-22  Bruno Haible  <bruno@clisp.org>
44703         strerror_r-posix: Avoid a link error on MSVC.
44704         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44705         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44707 2011-09-22  Bruno Haible  <bruno@clisp.org>
44709         select: Avoid link errors on MSVC.
44710         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
44711         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
44712         * modules/pselect (Link): Likewise.
44713         * NEWS: Mention the change.
44714         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
44715         test-select-stdin against $(LIB_SELECT).
44716         * modules/pselect-tests (Makefile.am): Link test-pselect against
44717         $(LIB_SELECT).
44719 2011-09-22  Bruno Haible  <bruno@clisp.org>
44721         select: Avoid compilation error on MSVC.
44722         * lib/select.c: Don't include <stdbool.h>.
44724 2011-09-21  Bruno Haible  <bruno@clisp.org>
44726         Consolidate all uses of PATH_MAX in *.m4 files.
44727         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
44728         macros.
44729         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
44730         and gl_PATHMAX_SNIPPET.
44731         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44732         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44733         * modules/chdir-long (Files): Add m4/pathmax.m4.
44734         * modules/getcwd (Files): Likewise.
44736 2011-09-21  Bruno Haible  <bruno@clisp.org>
44738         ftruncate: Un-deprecate, concentrate on Win32 support.
44739         * modules/ftruncate (Status, Notice): Remove sections.
44740         (Depends-on): Add largefile.
44741         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
44742         non-mingw platforms.
44743         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
44744         include <io.h>.
44745         * modules/perror-tests (Depends-on): Add ftruncate.
44746         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
44747         'ftruncate' module.
44749 2011-09-21  Bruno Haible  <bruno@clisp.org>
44751         Add dependencies to new dirent related modules.
44752         * modules/opendir (Depends-on): Add closedir.
44753         * modules/getcwd (Depends-on): Add opendir, closedir.
44754         * modules/dirent-safer-tests (Depends-on): Likewise.
44755         * modules/fdopendir-tests (Depends-on): Likewise.
44756         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
44757         * modules/renameat-tests (Depends-on): Likewise.
44759 2011-09-21  Bruno Haible  <bruno@clisp.org>
44761         opendir: Avoid compilation error on mingw.
44762         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
44763         * modules/opendir (Depends-on): Add unistd.
44765 2011-09-21  Bruno Haible  <bruno@clisp.org>
44767         ftruncate tests: Avoid a test failure on mingw.
44768         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
44770 2011-09-21  Bruno Haible  <bruno@clisp.org>
44772         select tests: Avoid test failures on OSF/1 5.1 and mingw.
44773         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
44774         native Windows.
44776 2011-09-21  Bruno Haible  <bruno@clisp.org>
44778         New module 'fdopen'.
44779         * lib/stdio.in.h (fdopen): New declaration.
44780         * lib/fdopen.c: New file.
44781         * m4/fdopen.m4: New file.
44782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
44783         REPLACE_FDOPEN.
44784         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
44785         REPLACE_FDOPEN.
44786         * modules/fdopen: New file.
44787         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
44788         * tests/test-stdio-c++.cc: Check signature of fdopen.
44789         * doc/posix-functions/fdopen.texi: Mention the new module.
44791 2011-09-21  Bruno Haible  <bruno@clisp.org>
44793         unlockpt tests: Avoid test failure on NetBSD 5.1.
44794         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
44795         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
44797 2011-09-21  Bruno Haible  <bruno@clisp.org>
44799         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
44800         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
44801         * tests/test-getlogin_r.c (main): Likewise.
44803 2011-09-20  Bruno Haible  <bruno@clisp.org>
44805         time tests: Don't require pid_t.
44806         * doc/posix-headers/time.texi: Revert last change.
44807         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44808         * tests/test-time.c: Comment out the check for pid_t.
44810 2011-09-20  Bruno Haible  <bruno@clisp.org>
44812         fsync tests: Avoid a test failure on mingw.
44813         * tests/test-fsync.c (main): Allow a failure with EIO.
44815 2011-09-20  Bruno Haible  <bruno@clisp.org>
44817         euidaccess: Update comments.
44818         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44820 2011-09-20  Bruno Haible  <bruno@clisp.org>
44822         Ensure EBADF returns for socket functions on mingw.
44823         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44824         descriptor is invalid.
44825         * lib/bind.c (rpl_bind): Likewise.
44826         * lib/connect.c (rpl_connect): Likewise.
44827         * lib/getpeername.c (rpl_getpeername): Likewise.
44828         * lib/getsockname.c (rpl_getsockname): Likewise.
44829         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44830         * lib/listen.c (rpl_listen): Likewise.
44831         * lib/recv.c (rpl_recv): Likewise.
44832         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44833         * lib/send.c (rpl_send): Likewise.
44834         * lib/sendto.c (rpl_sendto): Likewise.
44835         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44836         * lib/shutdown.c (rpl_shutdown): Likewise.
44838 2011-09-20  Bruno Haible  <bruno@clisp.org>
44840         select tests: EBADF tests.
44841         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44842         test_bad_fd): New functions.
44843         (test_function): Invoke also test_bad_fd.
44845 2011-09-20  Bruno Haible  <bruno@clisp.org>
44847         Tests for module 'posix_spawn_file_actions_addopen.
44848         * modules/posix_spawn_file_actions_addopen-tests: New file.
44849         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44851         Tests for module 'posix_spawn_file_actions_adddup2'.
44852         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44853         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44855         Tests for module 'posix_spawn_file_actions_addclose'.
44856         * modules/posix_spawn_file_actions_addclose-tests: New file.
44857         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44859 2011-09-20  Bruno Haible  <bruno@clisp.org>
44861         Tests for module 'unlockpt'.
44862         * modules/unlockpt-tests: New file.
44863         * tests/test-unlockpt.c: New file.
44864         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44866         Tests for module 'grantpt'.
44867         * modules/grantpt-tests: New file.
44868         * tests/test-grantpt.c: New file.
44869         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44871 2011-09-20  Bruno Haible  <bruno@clisp.org>
44873         freopen tests: EBADF tests.
44874         * tests/test-freopen.c: Include errno.h, unistd.h.
44875         (main): Add tests for EBADF, commented out for the moment.
44877         fclose tests: EBADF tests.
44878         * tests/test-fclose.c (main): Add tests for EBADF.
44880         fflush tests: EBADF tests.
44881         * tests/test-fflush.c: Include errno.h, macros.h.
44882         (main): Add tests for EBADF.
44884         ftello tests: EBADF tests.
44885         * tests/test-ftello4.sh: New file.
44886         * tests/test-ftello4.c: New file.
44887         * modules/ftello-tests (Files): Add them.
44888         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44890         fseeko tests: EBADF tests.
44891         * tests/test-fseeko4.sh: New file.
44892         * tests/test-fseeko4.c: New file.
44893         * modules/fseeko-tests (Files): Add them.
44894         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44896         Tests for function fputc().
44897         * modules/fputc-tests: New file.
44898         * tests/test-fputc.c: New file.
44899         * modules/stdio-tests (Depends-on): Add fputc-tests.
44901         Tests for function fgetc().
44902         * modules/fgetc-tests: New file.
44903         * tests/test-fgetc.c: New file.
44904         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44906         Tests for function fdopen().
44907         * modules/fdopen-tests: New file.
44908         * tests/test-fdopen.c: New file.
44909         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44911         Tests for module 'vdprintf'.
44912         * modules/vdprintf-tests: New file.
44913         * tests/test-vdprintf.c: New file.
44915         Tests for module 'dprintf'.
44916         * modules/dprintf-tests: New file.
44917         * tests/test-dprintf.c: New file.
44919 2011-09-20  Bruno Haible  <bruno@clisp.org>
44921         Tests for module 'ioctl'.
44922         * modules/ioctl-tests: New file.
44923         * tests/test-ioctl.c: New file.
44925 2011-09-20  Bruno Haible  <bruno@clisp.org>
44927         fcntl tests: EBADF tests.
44928         * tests/test-fcntl.c (main): Add more tests for EBADF.
44930 2011-09-20  Bruno Haible  <bruno@clisp.org>
44932         utimensat tests: EBADF tests.
44933         * tests/test-utimensat.c (main): Add tests for EBADF.
44935         renameat tests: EBADF tests.
44936         * tests/test-renameat.c (main): Add tests for EBADF.
44938         mkfifoat tests: EBADF tests.
44939         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44941         readlinkat tests: EBADF tests.
44942         * tests/test-readlinkat.c (main): Add tests for EBADF.
44944         symlinkat tests: EBADF tests.
44945         * tests/test-symlinkat.c (main): Add tests for EBADF.
44947         linkat tests: EBADF tests.
44948         * tests/test-linkat.c (main): Add tests for EBADF.
44950         Tests for module 'faccessat'.
44951         * modules/faccessat-tests: New file.
44952         * tests/test-faccessat.c: New file.
44954         fdopendir tests: EBADF tests.
44955         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44957         openat tests: EBADF tests.
44958         * tests/test-fchownat.c (main): Add tests for EBADF.
44959         * tests/test-fstatat.c (main): Likewise.
44960         * tests/test-mkdirat.c (main): Likewise.
44961         * tests/test-openat.c (main): Likewise.
44962         * tests/test-unlinkat.c (main): Likewise.
44963         * tests/test-fchmodat.c: New file.
44964         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44965         (Makefile.am): Also run 'test-fchmodat'.
44967 2011-09-20  Bruno Haible  <bruno@clisp.org>
44969         utimens, futimens, fdutimensat tests: EBADF tests.
44970         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44972         Tests for function fstat().
44973         * modules/fstat-tests: New file.
44974         * tests/test-fstat.c: New file.
44975         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44977 2011-09-20  Bruno Haible  <bruno@clisp.org>
44979         test-ttyname_r tests: EBADF tests.
44980         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44982         Tests for module 'isatty'.
44983         * modules/isatty-tests: New file.
44984         * tests/test-isatty.c: New file.
44986         Tests for module 'write'.
44987         * modules/write-tests: New file.
44988         * tests/test-write.c: New file.
44990         Tests for module 'read'.
44991         * modules/read-tests: New file.
44992         * tests/test-read.c: New file.
44994         pwrite tests: EBADF tests.
44995         * tests/test-pwrite.c (main): Add tests for EBADF.
44997         pread tests: EBADF tests.
44998         * tests/test-pread.c (main): Add tests for EBADF.
45000         lseek tests: EBADF tests.
45001         * tests/test-lseek.c (main): Add more tests for EBADF.
45003         Tests for module 'ftruncate'.
45004         * modules/ftruncate-tests: New file.
45005         * tests/test-ftruncate.sh: New file.
45006         * tests/test-ftruncate.c: New file.
45008         fsync tests: EBADF tests.
45009         * tests/test-fsync.c (main): Add more tests for EBADF.
45011         fdatasync tests: EBADF tests.
45012         * tests/test-fdatasync.c (main): Add more tests for EBADF.
45014         Tests for module 'fchown'.
45015         * modules/fchown-tests: New file.
45016         * tests/test-fchown.c: New file.
45018         Tests for module 'fchmod'.
45019         * modules/fchmod-tests: New file.
45020         * tests/test-fchmod.c: New file.
45022         fchdir tests: EBADF tests.
45023         * tests/test-fchdir.c (main): Add more tests for EBADF.
45025         dup2 tests: EBADF tests.
45026         * tests/test-dup2.c (main): Add more tests for EBADF.
45028         Tests for module 'dup'.
45029         * modules/dup-tests: New file.
45030         * tests/test-dup.c: New file.
45032         Tests for module 'close'.
45033         * modules/close-tests: New file.
45034         * tests/test-close.c: New file.
45036 2011-09-20  Bruno Haible  <bruno@clisp.org>
45038         Tests for module 'shutdown'.
45039         * modules/shutdown-tests: New file.
45040         * tests/test-shutdown.c: New file.
45042         Tests for module 'setsockopt'.
45043         * modules/setsockopt-tests: New file.
45044         * tests/test-setsockopt.c: New file.
45046         Tests for module 'sendto'.
45047         * modules/sendto-tests: New file.
45048         * tests/test-sendto.c: New file.
45050         Tests for module 'send'.
45051         * modules/send-tests: New file.
45052         * tests/test-send.c: New file.
45054         Tests for module 'recvfrom'.
45055         * modules/recvfrom-tests: New file.
45056         * tests/test-recvfrom.c: New file.
45058         Tests for module 'recv'.
45059         * modules/recv-tests: New file.
45060         * tests/test-recv.c: New file.
45062         Tests for module 'listen'.
45063         * modules/listen-tests: New file.
45064         * tests/test-listen.c: New file.
45066         Tests for module 'getsockopt'.
45067         * modules/getsockopt-tests: New file.
45068         * tests/test-getsockopt.c: New file.
45070         Tests for module 'getsockname'.
45071         * modules/getsockname-tests: New file.
45072         * tests/test-getsockname.c: New file.
45074         Tests for module 'getpeername'.
45075         * modules/getpeername-tests: New file.
45076         * tests/test-getpeername.c: New file.
45078         Tests for module 'connect'.
45079         * modules/connect-tests: New file.
45080         * tests/test-connect.c: New file.
45082         Tests for module 'bind'.
45083         * modules/bind-tests: New file.
45084         * tests/test-bind.c: New file.
45086         accept4 tests: Fix for native Windows.
45087         * tests/test-accept4.c: Include sockets.h.
45088         (main): Invoke gl_sockets_startup.
45089         * modules/accept4-tests (Depends-on): Add sockets.
45091         accept tests: Fix for native Windows.
45092         * tests/test-accept.c: Include sockets.h.
45093         (main): Invoke gl_sockets_startup.
45094         * modules/accept-tests (Depends-on): Add sockets.
45096 2011-09-19  Bruno Haible  <bruno@clisp.org>
45098         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
45099         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
45100         do...while(0).
45101         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
45102         Suggested by Paul Eggert.
45104 2011-09-19  Bruno Haible  <bruno@clisp.org>
45106         sched: Ensure pid_t is defined.
45107         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
45108         not define pid_t.
45109         * lib/sched.in.h: Include <sys/types.h>.
45110         * doc/posix-headers/sched.texi: Mention the pid_t problem.
45111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45113 2011-09-19  Bruno Haible  <bruno@clisp.org>
45115         msvc-inval: Ensure the entire expansion is a single statement.
45116         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
45117         of braces.
45119 2011-09-19  Jim Meyering  <meyering@redhat.com>
45121         tests: use printf, not echo in init.sh's warn_ function
45122         * tests/init.sh (warn_): Use printf, not echo.  The latter would
45123         misbehave when given strings containing a backslash or starting
45124         with e.g., -n.  James Youngman suggested setting IFS.
45126 2011-09-19  Eric Blake  <eblake@redhat.com>
45128         futimens: enhance test
45129         * tests/test-futimens.h (test_futimens): Also check for EBADF on
45130         closed non-negative fd.
45132         date: accept 'hence' as opposite of 'ago'
45133         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
45134         * tests/test-parse-datetime.c (main): Enhance test.
45135         Suggested by Jesse Wilson.
45137 2011-09-19  Jim Meyering  <meyering@redhat.com>
45139         getcwd: don't fail in a deep directory on a system without openat
45140         Before this change, getcwd would fail when called from a directory
45141         of depth PATH_MAX / 3 or greater.  That was due to the fact that
45142         the non-openat implementation used "..", "../..", "../../..", etc.
45143         to access ancestor directories.  With too many, that string would
45144         be longer than PATH_MAX.
45145         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
45146         using gnulib's openat replacement.
45147         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
45148         we're using the replacement function.
45150 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
45152         maint.mk: avoid warnings from perl about missing files
45153         * top/maint.mk (def_sym_regex): Ignore files listed in
45154         $(gl_other_headers_) that do not exist, say because a project
45155         does not use a corresponding module.
45157 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45159         stat: use pathmax.h only if needed
45160         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
45161         This is better for Emacs, which does not have a mingw port and
45162         therefore can avoid the pathmax module.
45164         utimens: remove dependency on dup2
45165         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
45166         to work around the Linux kernel bug.
45167         * modules/utimens (Depends-on): Remove dup2.
45169 2011-09-18  Bruno Haible  <bruno@clisp.org>
45171         inet_ntop, inet_pton: Look for it also in libresolv.
45172         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
45173         libnsl, search for it in libresolv.
45174         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45175         Needed on Solaris 7.
45177 2011-09-18  Bruno Haible  <bruno@clisp.org>
45179         accept, accept4 tests: Avoid link error on Solaris.
45180         * modules/accept-tests (Makefile.am): Link test-accept against
45181         $(LIBSOCKET).
45182         * modules/accept4-tests (Makefile.am): Link test-accept4 against
45183         $(LIBSOCKET).
45185         accept4: Avoid link error on Solaris.
45186         * modules/accept4 (Link): New section.
45188         socket functions: Avoid link errors on Solaris.
45189         * modules/accept (Depends-on): Add socketlib.
45190         (Link): New section.
45191         * modules/bind (Depends-on): Add socketlib.
45192         (Link): New section.
45193         * modules/connect (Depends-on): Add socketlib.
45194         (Link): New section.
45195         * modules/getpeername (Depends-on): Add socketlib.
45196         (Link): New section.
45197         * modules/getsockname (Depends-on): Add socketlib.
45198         (Link): New section.
45199         * modules/getsockopt (Depends-on): Add socketlib.
45200         (Link): New section.
45201         * modules/listen (Depends-on): Add socketlib.
45202         (Link): New section.
45203         * modules/recv (Depends-on): Add socketlib.
45204         (Link): New section.
45205         * modules/recvfrom (Depends-on): Add socketlib.
45206         (Link): New section.
45207         * modules/send (Depends-on): Add socketlib.
45208         (Link): New section.
45209         * modules/sendto (Depends-on): Add socketlib.
45210         (Link): New section.
45211         * modules/setsockopt (Depends-on): Add socketlib.
45212         (Link): New section.
45213         * modules/shutdown (Depends-on): Add socketlib.
45214         (Link): New section.
45215         * modules/socket (Depends-on): Add socketlib.
45216         (Link): New section.
45218 2011-09-18  Bruno Haible  <bruno@clisp.org>
45220         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
45221         * tests/test-ptsname.c (main): Terminate the test if it takes longer
45222         than 5 seconds.
45223         * modules/ptsname-tests (configure.ac): Test for alarm.
45225 2011-09-18  Bruno Haible  <bruno@clisp.org>
45227         posix_spawn_file_actions_add*: Fix module dependencies.
45228         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
45229         posix_spawn_file_actions_init.
45230         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
45231         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
45233 2011-09-18  Bruno Haible  <bruno@clisp.org>
45235         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
45236         * tests/test-rename.h (test_rename): Allow error code EEXIST.
45237         * tests/test-renameat.c (main): Likewise.
45239 2011-09-18  Bruno Haible  <bruno@clisp.org>
45241         Tests for module 'accept4'.
45242         * modules/accept4-tests: New file.
45243         * tests/test-accept4.c: New file.
45245 2011-09-18  Bruno Haible  <bruno@clisp.org>
45247         Tests for module 'accept'.
45248         * modules/accept-tests: New file.
45249         * tests/test-accept.c: New file.
45251 2011-09-18  Bruno Haible  <bruno@clisp.org>
45253         dup2: Support for MSVC.
45254         * lib/dup2.c: Include msvc-inval.h.
45255         (rpl_dup2): Handle invalid parameter notifications during dup2 and
45256         _get_osfhandle calls.
45257         * modules/dup2 (Depends-on): Add msvc-inval.
45258         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
45260         New module 'msvc-inval'.
45261         * lib/msvc-inval.h: New file.
45262         * lib/msvc-inval.c: New file.
45263         * m4/msvc-inval.m4: New file.
45264         * modules/msvc-inval: New file.
45266 2011-09-17  Bruno Haible  <bruno@clisp.org>
45268         Tests for module 'pclose'.
45269         * modules/pclose-tests: New file.
45271         New module 'pclose'.
45272         * lib/stdio.in.h (pclose): New declaration.
45273         * lib/pclose.c: New file.
45274         * m4/pclose.m4: New file.
45275         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
45276         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
45277         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
45278         * modules/pclose: New file.
45279         * modules/popen-tests (Depends-on): Add pclose.
45280         * modules/popen-safer-tests (Depends-on): Likewise.
45281         * doc/posix-functions/pclose.texi: Mention the new module.
45283 2011-09-17  Bruno Haible  <bruno@clisp.org>
45285         popen: Support for MSVC.
45286         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
45287         * lib/popen.c (popen): Provide alternate definition for native Windows.
45288         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
45289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
45290         * modules/popen (Depends-on, configure.ac): Update condition.
45291         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
45292         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
45293         fixed.
45295 2011-09-17  Bruno Haible  <bruno@clisp.org>
45297         isnanl, isnand, isnanf: Work around MSVC bug.
45298         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
45300 2011-09-17  Bruno Haible  <bruno@clisp.org>
45302         sys_socket tests: Fix recent mistake.
45303         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
45305 2011-09-17  Bruno Haible  <bruno@clisp.org>
45307         putenv: Support for MSVC.
45308         * modules/putenv (Depends-on): Add environ.
45309         * lib/putenv.c (environ): Disable declaration.
45310         * lib/unistd.in.h: Update comment.
45312 2011-09-17  Bruno Haible  <bruno@clisp.org>
45314         math: Avoid macro redefinition warnings on MSVC.
45315         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
45316         Undefine before redefining.
45318 2011-09-17  Bruno Haible  <bruno@clisp.org>
45320         doc: Mention functions which are declared as macros.
45321         * doc/posix-functions/*[fl].texi: Mention that some functions are
45322         defined as macros with arguments only.
45324 2011-09-17  Bruno Haible  <bruno@clisp.org>
45326         Add dependencies to new dirent related modules.
45327         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
45328         * modules/fts (Depends-on): Likewise.
45329         * modules/glob (Depends-on): Likewise.
45330         * modules/savedir (Depends-on): Likewise.
45331         * modules/scandir (Depends-on): Likewise.
45332         * modules/dirent-safer (Depends-on): Add opendir, closedir.
45333         * modules/fdopendir (Depends-on): Add opendir.
45335 2011-09-17  Bruno Haible  <bruno@clisp.org>
45337         inet_pton: Support for MSVC on Windows Vista or newer.
45338         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
45339         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
45340         HAVE_DECL_INET_PTON is defined.
45341         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45342         On platforms with <winsock2.h>, test whether inet_pton is declared in
45343         <ws2tcpip.h>. If so, arrange to replace it.
45344         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45345         REPLACE_INET_PTON.
45346         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
45347         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
45348         (Depends-on, configure.ac): Update condition.
45349         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
45351 2011-09-17  Bruno Haible  <bruno@clisp.org>
45353         inet_ntop: Support for MSVC on Windows Vista or newer.
45354         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
45355         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
45356         HAVE_DECL_INET_NTOP is defined.
45357         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45358         On platforms with <winsock2.h>, test whether inet_ntop is declared in
45359         <ws2tcpip.h>. If so, arrange to replace it.
45360         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45361         REPLACE_INET_NTOP.
45362         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
45363         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
45364         (Depends-on, configure.ac): Update condition.
45365         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
45367 2011-09-16  Eric Blake  <eblake@redhat.com>
45369         test-fsync: yet another enhancement
45370         * tests/test-fsync.c (main): Also test behavior on read-only text
45371         file.
45373 2011-09-16  Bruno Haible  <bruno@clisp.org>
45375         Enhance fsync, fdatasync tests.
45376         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
45377         * tests/test-fdatasync.c (main): Likewise.
45379 2011-09-16  Bruno Haible  <bruno@clisp.org>
45381         Support for MSVC compiler: Ensure mode_t gets defined.
45382         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
45383         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45385         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
45386         * tests/test-fcntl-h.c: Check that mode_t is defined.
45387         * tests/test-sys_stat.c: Likewise.
45388         * tests/test-sys_types.c: Likewise.
45389         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
45390         * doc/posix-headers/sys_stat.texi: Likewise.
45391         * doc/posix-headers/sys_types.texi: Likewise.
45393 2011-09-16  Bruno Haible  <bruno@clisp.org>
45395         sys_stat: Support for MSVC.
45396         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
45397         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
45398         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
45399         MSVC.
45401 2011-09-16  Bruno Haible  <bruno@clisp.org>
45403         Support for MSVC compiler: Ensure off_t gets defined.
45404         * lib/unistd.in.h: Include <sys/types.h>.
45405         * tests/test-fcntl-h.c: Check that off_t is defined.
45406         * tests/test-sys_stat.c: Likewise.
45407         * tests/test-sys_types.c: Likewise.
45409 2011-09-16  Eric Blake  <eblake@redhat.com>
45411         fdatasync: port to Solaris
45412         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
45413         * modules/fdatasync (Link): Document it.
45414         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
45416         fdatasync: port to MacOS X 10.7
45417         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
45418         declared.
45419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
45420         * modules/unistd (Makefile.am): Substitute it.
45421         * lib/unistd.in.h (fdatasync): Declare on MacOS.
45422         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
45424         fdatasync: minor improvements
45425         * modules/fdatasync (Depends-on): Add condition for fsync.
45426         * lib/fdatasync.c (fdatasync): Add comment.
45427         * tests/test-unistd-c++.cc: Test fdatasync.
45429         unistd: update refs to newer POSIX
45430         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
45431         Suggested by Bruno Haible.
45433         fdatasync: new module
45434         * modules/fsync (Description): Document difference to fdatasync.
45435         * modules/fdatasync: New module.
45436         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
45437         * lib/fdatasync.c (fdatasync): Likewise.
45438         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
45439         defaults.
45440         * modules/unistd (Makefile.am): Set witnesses.
45441         * lib/unistd.in.h (fdatasync): Declare.
45442         * MODULES.html.sh: Document it.
45443         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
45444         * modules/fdatasync-tests: New test.
45445         * tests/test-fdatasync.c: Likewise.
45447 2011-09-16  Eric Blake  <eblake@redhat.com>
45449         test-fsync: enhance tests
45450         * modules/fsync-tests (Depends-on): Add errno, for mingw.
45451         * tests/test-fsync.c (main): Enhance test.
45453 2011-09-15  Bruno Haible  <bruno@clisp.org>
45455         Support for MSVC compiler: Ensure ssize_t gets defined.
45456         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
45457         * doc/posix-headers/stdio.texi: Likewise.
45458         * modules/stdio (Depends-on): Add ssize_t.
45459         * modules/sys_socket (Depends-on): Likewise.
45460         * modules/sys_types (Depends-on): Likewise.
45461         * modules/sys_uio (Depends-on): Likewise.
45462         * modules/unistd (Depends-on): Likewise.
45463         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
45464         * tests/test-sys_types.c: Check that ssize_t is defined.
45466 2011-09-14  Bruno Haible  <bruno@clisp.org>
45468         Avoid using #, the m4 comment starter character, near brackets.
45469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
45470         delimiter character in sed expressions.
45471         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45472         Suggested by Eric Blake.
45474         Properly quote AC_CHECK_DECLS' 4th argument.
45475         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
45476         argument.
45477         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45478         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45479         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45480         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
45481         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45482         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
45483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
45484         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
45485         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
45486         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45487         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
45488         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45489         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45490         * m4/isinf.m4 (gl_ISINF): Likewise.
45491         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45492         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45493         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45494         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45495         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45496         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45497         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45498         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45499         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
45500         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45501         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
45504         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45506         Reported by Eric Blake.
45508         Properly quote AC_CHECK_DECL's 4th argument.
45509         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
45510         argument.
45511         * m4/argp.m4 (gl_ARGP): Likewise.
45512         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45513         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45514         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45515         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45516         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
45517         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
45518         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
45519         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45520         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45521         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45522         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45523         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45524         Reported by Eric Blake.
45526 2011-09-14  Eric Blake  <eblake@redhat.com>
45528         opendir: avoid compile warning
45529         * lib/opendir.c (includes): Always include errno.h.
45530         Reported by Tatsuro MATSUOKA.
45532 2011-09-14  Jim Meyering  <meyering@redhat.com>
45534         maint.mk: sc_tight_scope: propagate failure from sub-make
45535         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
45536         Reported by Martin von Gagern.
45538 2011-09-13  Bruno Haible  <bruno@clisp.org>
45540         tempname: Support for MSVC.
45541         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
45542         MSVC.
45543         * modules/tempname (Depends-on): Add fcntl-h.
45545 2011-09-13  Bruno Haible  <bruno@clisp.org>
45547         sys_time: Support for MSVC.
45548         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
45549         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
45550         include <winsock2.h>.
45551         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
45552         function declarations that collide with POSIX.
45553         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
45554         (Makefile.am): Substitute HAVE_WINSOCK2_H.
45556 2011-09-13  Bruno Haible  <bruno@clisp.org>
45558         stat: Support for MSVC.
45559         * lib/stat.c: Include pathmax.h.
45560         * modules/stat (Depends-on): Add pathmax.
45562         pathmax: Support for native Windows.
45563         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
45565 2011-09-12  Bruno Haible  <bruno@clisp.org>
45567         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
45568         * lib/dirent.in.h (struct dirent): New type.
45569         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
45570         DT_WHT): New macros.
45571         (DIR): New type.
45572         (opendir, closedir): Declare only if the module 'opendir' is enabled.
45573         (readdir, rewinddir): New declarations.
45574         * lib/dirent-private.h: New file.
45575         * lib/opendir.c: New file.
45576         * lib/readdir.c: New file.
45577         * lib/rewinddir.c: New file.
45578         * lib/closedir.c: New file.
45579         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
45580         * m4/opendir.m4: New file.
45581         * m4/readdir.m4: New file.
45582         * m4/rewinddir.m4: New file.
45583         * m4/closedir.m4: New file.
45584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
45585         REPLACE_CLOSEDIR here.
45586         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
45587         readdir, rewinddir are declared.
45588         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
45589         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
45590         HAVE_REWINDDIR, HAVE_CLOSEDIR.
45591         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
45592         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
45593         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
45594         * modules/opendir: New file.
45595         * modules/readdir: New file.
45596         * modules/rewinddir: New file.
45597         * modules/closedir: New file.
45598         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
45599         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
45600         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
45601         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
45602         * NEWS: Mention the 'fchdir' change.
45604 2011-09-11  Bruno Haible  <bruno@clisp.org>
45606         asm-underscore.m4: Support for MSVC.
45607         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
45608         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
45610 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
45612         Doc about crypt functions.
45613         * doc/posix-functions/crypt.texi: Expand range of glibc versions
45614         needing for _GNU_SOURCE to get crypt.
45615         * doc/posix-functions/encrypt.texi: Likewise.
45616         * doc/posix-functions/setkey.texi: Likewise.
45618 2011-09-11  Bruno Haible  <bruno@clisp.org>
45620         doc: Update regarding MSVC 9.
45621         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
45622         tested".
45623         * doc/posix-functions/*.texi: Update with info about MSVC 9.
45624         * doc/posix-headers/*.texi: Likewise.
45625         * doc/pastposix-functions/*.texi: Likewise.
45626         * doc/glibc-functions/*.texi: Likewise.
45627         * doc/glibc-headers/*.texi: Likewise.
45629 2011-09-11  Bruno Haible  <bruno@clisp.org>
45631         unistd et al.: Don't assume <unistd.h> exists.
45632         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
45633         does not exist.
45634         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
45635         exist. But include <stdlib.h>.
45636         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
45637         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
45638         symlink() does not exist.
45639         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
45640         include <io.h> instead.
45641         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
45642         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
45643         include <direct.h> instead.
45644         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45645         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45646         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
45647         <io.h> instead.
45648         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
45649         correctly if the system does not have hard links.
45650         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
45651         <direct.h> instead.
45652         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
45653         it when looking for function declarations.
45654         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
45655         <direct.h> and <io.h> instead.
45656         * doc/posix-headers/unistd.texi: More details about MSVC problem.
45658 2011-09-11  Bruno Haible  <bruno@clisp.org>
45660         strcase: Support for MSVC.
45661         * modules/strcase (Status, Notice): Remove obsoletion mark.
45662         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
45663         * doc/posix-functions/strncasecmp.texi: Likewise.
45665         strings: Don't assume <strings.h> exists.
45666         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45667         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45668         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45669         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45671 2011-09-11  Bruno Haible  <bruno@clisp.org>
45673         dirent: Don't assume <dirent.h> exists.
45674         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45675         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45676         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45677         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45679 2011-09-11  Bruno Haible  <bruno@clisp.org>
45681         Fix wint_t on MSVC.
45682         * lib/wchar.in.h (wint_t): On MSVC, override it.
45683         * lib/wctype.in.h (wint_t): Likewise.
45684         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45685         MSVC.
45686         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45687         * doc/posix-headers/wctype.texi: Likewise.
45689 2011-09-11  Bruno Haible  <bruno@clisp.org>
45691         sys_types: Fix typo.
45692         * lib/sys_types.in.h: Fix typo in comment.
45693         Reported by Paul Eggert.
45695         Support for MSVC compiler: Ensure size_t gets defined.
45696         * modules/strings (Depends-on): Add 'sys_types'.
45697         * modules/sys_uio (Depends-on): Likewise.
45698         * lib/sys_uio.in.h: Update comment.
45700         C++ tests for module 'sys_types'.
45701         * modules/sys_types-c++-tests: New file.
45702         * tests/test-sys_types-c++.cc: New file.
45704         Tests for module 'sys_types'.
45705         * modules/sys_types-tests: New file.
45706         * tests/test-sys_types.c: New file.
45708         New module 'sys_types'.
45709         * lib/sys_types.in.h: New file.
45710         * m4/sys_types_h.m4: New file.
45711         * modules/sys_types: New file.
45712         * doc/posix-headers/sys_types.texi: Mention the new module and the
45713         size_t problem on MSVC 9.
45715 2011-09-11  Bruno Haible  <bruno@clisp.org>
45717         Support for MSVC compiler: Avoid division by a literal 0.
45718         * lib/math.in.h (NAN): Define through a function call also on MSVC.
45719         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
45720         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
45721         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
45722         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
45723         * tests/infinity.h: New file.
45724         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
45725         on MSVC.
45726         * tests/test-ceilf1.c: Include infinity.h.
45727         (main): Use Infinityf.
45728         * tests/test-ceil1.c: Include infinity.h.
45729         (main): Use Infinityd.
45730         * tests/test-ceill.c: Include infinity.h.
45731         (main): Use Infinityl.
45732         * tests/test-dprintf-posix.c: Include infinity.h.
45733         (test_function): Use Infinityd.
45734         * tests/test-floorf1.c: Include infinity.h.
45735         (main): Use Infinityf.
45736         * tests/test-floor1.c: Include infinity.h.
45737         (main): Use Infinityd.
45738         * tests/test-floorl.c: Include infinity.h.
45739         (main): Use Infinityl.
45740         * tests/test-fprintf-posix.c: Include infinity.h.
45741         (test_function): Use Infinityd.
45742         * tests/test-frexp.c: Include infinity.h.
45743         (main): Use Infinityd.
45744         * tests/test-frexpl.c: Include infinity.h.
45745         (main): Use Infinityl.
45746         * tests/test-isfinite.c: Include infinity.h.
45747         (test_isfinitef): Use Infinityf.
45748         (test_isfinited): Use Infinityd.
45749         (test_isfinitel): Use Infinityl.
45750         * tests/test-isinf.c: Include infinity.h.
45751         (test_isinff): Use Infinityf.
45752         (test_isinfd): Use Infinityd.
45753         (test_isinfl): Use Infinityl.
45754         * tests/test-isnan.c: Include infinity.h.
45755         (test_float): Use Infinityf.
45756         (test_double): Use Infinityd.
45757         (test_long_double): Use Infinityl.
45758         * tests/test-isnanf.h: Include infinity.h.
45759         (main): Use Infinityf.
45760         * tests/test-isnand.h: Include infinity.h.
45761         (main): Use Infinityd.
45762         * tests/test-isnanl.h: Include infinity.h.
45763         (main): Use Infinityl.
45764         * tests/test-ldexpl.c: Include infinity.h.
45765         (main): Use Infinityl.
45766         * tests/test-printf-posix.h: Include infinity.h.
45767         (test_function): Use Infinityd.
45768         * tests/test-roundf1.c: Include infinity.h.
45769         (main): Use Infinityf.
45770         * tests/test-round1.c: Include infinity.h.
45771         (main): Use Infinityd.
45772         * tests/test-roundl.c: Include infinity.h.
45773         (main): Use Infinityl.
45774         * tests/test-signbit.c: Include infinity.h.
45775         (test_signbitf): Use Infinityf.
45776         (test_signbitd): Use Infinityd.
45777         (test_signbitl): Use Infinityl.
45778         * tests/test-snprintf-posix.h: Include infinity.h.
45779         (test_function): Use Infinityd, Infinityl.
45780         * tests/test-sprintf-posix.h: Include infinity.h.
45781         (test_function): Use Infinityd, Infinityl.
45782         * tests/test-truncf1.c: Include infinity.h.
45783         (main): Use Infinityf.
45784         * tests/test-trunc1.c: Include infinity.h.
45785         (main): Use Infinityd.
45786         * tests/test-truncl.c: Include infinity.h.
45787         (main): Use Infinityl.
45788         * tests/test-vasnprintf-posix.c: Include infinity.h.
45789         (test_function): Use Infinityd, Infinityl.
45790         * tests/test-vasprintf-posix.c: Include infinity.h.
45791         (test_function): Use Infinityd, Infinityl.
45792         * modules/ceilf-tests (Files): Add tests/infinity.h.
45793         * modules/ceil-tests (Files): Likewise.
45794         * modules/ceill-tests (Files): Likewise.
45795         * modules/dprintf-posix-tests (Files): Likewise.
45796         * modules/floorf-tests (Files): Likewise.
45797         * modules/floor-tests (Files): Likewise.
45798         * modules/floorl-tests (Files): Likewise.
45799         * modules/fprintf-posix-tests (Files): Likewise.
45800         * modules/frexp-tests (Files): Likewise.
45801         * modules/frexp-nolibm-tests (Files): Likewise.
45802         * modules/frexpl-tests (Files): Likewise.
45803         * modules/frexpl-nolibm-tests (Files): Likewise.
45804         * modules/isfinite-tests (Files): Likewise.
45805         * modules/isinf-tests (Files): Likewise.
45806         * modules/isnan-tests (Files): Likewise.
45807         * modules/isnanf-tests (Files): Likewise.
45808         * modules/isnanf-nolibm-tests (Files): Likewise.
45809         * modules/isnand-tests (Files): Likewise.
45810         * modules/isnand-nolibm-tests (Files): Likewise.
45811         * modules/isnanl-tests (Files): Likewise.
45812         * modules/isnanl-nolibm-tests (Files): Likewise.
45813         * modules/ldexpl-tests (Files): Likewise.
45814         * modules/printf-posix-tests (Files): Likewise.
45815         * modules/roundf-tests (Files): Likewise.
45816         * modules/round-tests (Files): Likewise.
45817         * modules/roundl-tests (Files): Likewise.
45818         * modules/signbit-tests (Files): Likewise.
45819         * modules/snprintf-posix-tests (Files): Likewise.
45820         * modules/sprintf-posix-tests (Files): Likewise.
45821         * modules/truncf-tests (Files): Likewise.
45822         * modules/trunc-tests (Files): Likewise.
45823         * modules/truncl-tests (Files): Likewise.
45824         * modules/vasnprintf-posix-tests (Files): Likewise.
45825         * modules/vasprintf-posix-tests (Files): Likewise.
45826         * modules/vdprintf-posix-tests (Files): Likewise.
45827         * modules/vfprintf-posix-tests (Files): Likewise.
45828         * modules/vprintf-posix-tests (Files): Likewise.
45829         * modules/vsnprintf-posix-tests (Files): Likewise.
45830         * modules/vsprintf-posix-tests (Files): Likewise.
45831         * modules/xprintf-posix-tests (Files): Likewise.
45833 2011-09-11  Bruno Haible  <bruno@clisp.org>
45835         Ensure pid_t gets defined.
45836         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45837         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45838         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45839         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45840         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45841         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45842         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45843         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45844         * tests/test-fcntl-h.c: Check that pid_t is defined.
45845         * tests/test-sched.c: Likewise.
45846         * tests/test-termios.c: Likewise.
45847         * tests/test-time.c: Likewise.
45848         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45849         * doc/posix-headers/signal.texi: Likewise.
45850         * doc/posix-headers/sys_types.texi: Likewise.
45851         * doc/posix-headers/time.texi: Likewise.
45853 2011-09-11  Bruno Haible  <bruno@clisp.org>
45855         acl: Fix compilation on Solaris 10 (older version).
45856         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45857         of ACE_EVERYONE.
45858         * lib/set-mode-acl.c (qset_acl): Likewise.
45859         Reported by Christian Jullien <eligis@orange.fr>.
45861 2011-09-10  Bruno Haible  <bruno@clisp.org>
45863         iconv, unsetenv: Add support for MSVC compiler.
45864         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45865         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45867 2011-09-10  Bruno Haible  <bruno@clisp.org>
45869         *printf: Add support for MSVC compiler.
45870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45871         handles the exception caused by the %n directive. When cross-compiling,
45872         guess no on native Windows.
45873         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45874         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45875         emulate it through vsnprintf.
45876         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45877         * doc/posix-functions/dprintf.texi: Update documentation regarding
45878         MSVC 9.
45879         * doc/posix-functions/fprintf.texi: Likewise.
45880         * doc/posix-functions/printf.texi: Likewise.
45881         * doc/posix-functions/snprintf.texi: Likewise.
45882         * doc/posix-functions/sprintf.texi: Likewise.
45883         * doc/posix-functions/swprintf.texi: Likewise.
45884         * doc/posix-functions/vdprintf.texi: Likewise.
45885         * doc/posix-functions/vfprintf.texi: Likewise.
45886         * doc/posix-functions/vprintf.texi: Likewise.
45887         * doc/posix-functions/vsnprintf.texi: Likewise.
45888         * doc/posix-functions/vsprintf.texi: Likewise.
45889         * doc/glibc-functions/asprintf.texi: Likewise.
45890         * doc/glibc-functions/obstack_printf.texi: Likewise.
45891         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45892         * doc/glibc-functions/vasprintf.texi: Likewise.
45894 2011-09-10  Bruno Haible  <bruno@clisp.org>
45896         nocrash: Add support for native Windows.
45897         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45899 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45900             Bruno Haible  <bruno@clisp.org>
45902         absolute-header, include-next: Add support for MSVC compiler.
45903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45904         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45905         directory separator in #line directives.
45906         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45907         recognize also backslash as directory separator in #line directives.
45909 2011-09-08  Jim Meyering  <meyering@redhat.com>
45911         maint.mk: mark the post-release commit log with "maint: " prefix
45912         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45913         one-line commit-log summary.
45915 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45916             Bruno Haible  <bruno@clisp.org>
45918         Doc about crypt functions.
45919         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45920         systems.
45921         * doc/posix-functions/encrypt.texi: Likewise.
45922         * doc/posix-functions/setkey.texi: Likewise.
45924 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45926         * lib/gc.h: Fix copyright header.
45928 2011-09-07  Bruno Haible  <bruno@clisp.org>
45930         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45931         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45932         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45934 2011-09-07  Bruno Haible  <bruno@clisp.org>
45936         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45937         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45938         * lib/freopen.c: Likewise.
45939         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45940         * lib/lstat.c: Likewise.
45941         * lib/stat.c: Likewise.
45942         * lib/open.c: Use different syntax for include of <fcntl.h>.
45943         * lib/openat.c: Include fcntl.h again, explicitly.
45945 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45947         parse-datetime: document the newly accepted format
45948         * doc/parse-datetime.texi (Combined date and time of day items):
45949         New section.
45951 2011-09-06  Bruno Haible  <bruno@clisp.org>
45953         acl: Fix a test failure on newer Solaris 10 with ZFS.
45954         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45955         ENOSYS as no ACL.
45956         Reported by Jim Meyering.
45958 2011-09-06  Bruno Haible  <bruno@clisp.org>
45960         acl: Update for AIX >= 5.3 with NFS.
45961         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45962         ENOSYS as no ACL.
45964         acl: Fix a test failure on AIX >= 5.3 with NFS.
45965         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45966         as no ACL.
45968 2011-09-06  Bruno Haible  <bruno@clisp.org>
45970         acl: Fix a test failure on IRIX 6.5 with NFS.
45971         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45972         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45973         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45974         * lib/copy-acl.c (qcopy_acl): Likewise.
45976 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45978         openat: port to AIX 7.1 with large files
45979         AIX 7.1 does a "#define openat open64at" if large files are in use,
45980         so we can't simply #undef openat.  Use the orig_openat trick (similar
45981         to orig_open in lib/open.c) to work around the problem.  Problem
45982         reported by Kevin Brott for GNU tar, in the thread containing
45983         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45984         * lib/openat.c (__need_system_fcntl_h): Define first.
45985         Include <fcntl.h> and <sys/types.h> before undefining.
45986         (orig_openat) [HAVE_OPENAT]: New inline function.
45987         (openat) [HAVE_OPENAT]: Do not undef.
45988         (rpl_openat): Use orig_openat, not openat.
45990 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45991             Bruno Haible  <bruno@clisp.org>
45993         acl: Avoid errors on NonStop Kernel.
45994         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45995         ENOTSUP errors.
45997 2011-09-05  Bruno Haible  <bruno@clisp.org>
45999         acl: Clean up Solaris code.
46000         * lib/acl-internal.h: Remove no-op #if.
46001         * lib/file-has-acl.c: Likewise.
46002         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
46003         * lib/copy-acl.c (qcopy_acl): Likewise.
46005 2011-09-05  Bruno Haible  <bruno@clisp.org>
46007         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
46008         binaries built on the original Solaris 10.
46009         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
46010         trivial.
46012 2011-09-05  Bruno Haible  <bruno@clisp.org>
46014         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46015         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
46016         10.
46017         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
46018         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
46019         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
46020         instead of acl_get, facl_get, acl_set, facl_set.
46022 2011-09-05  Bruno Haible  <bruno@clisp.org>
46024         copy-file: Try unit tests on more file systems.
46025         * tests/test-copy-file-1.sh: New file.
46026         * tests/test-copy-file-2.sh: New file.
46027         * modules/copy-file-tests (Files): Add them.
46028         (Makefile.am): Add them to TESTS.
46030         acl: Try unit tests on more file systems.
46031         * tests/test-file-has-acl-1.sh: New file.
46032         * tests/test-file-has-acl-2.sh: New file.
46033         * tests/test-set-mode-acl-1.sh: New file.
46034         * tests/test-set-mode-acl-2.sh: New file.
46035         * tests/test-copy-acl-1.sh: New file.
46036         * tests/test-copy-acl-2.sh: New file.
46037         * modules/acl-tests (Files): Add them.
46038         (Makefile.am): Add them to TESTS.
46040 2011-09-04  Bruno Haible  <bruno@clisp.org>
46042         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46043         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
46044         10.
46045         (OLD_ALLOW, OLD_DENY): New macros.
46046         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
46047         ACE_ACCESS_ALLOWED_ACE_TYPE.
46048         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
46049         ACE_ACCESS_DENIED_ACE_TYPE.
46050         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
46051         (NEW_ACE_EXECUTE): Fix value.
46052         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
46053         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
46054         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
46055         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
46056         NEW_ACE_SYNCHRONIZE): New macros.
46057         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
46058         instead of acl_fromtext, acl_set, facl_set.
46059         Fixes a coreutils/tests/cp/perm failure.
46061 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
46063         openat: test for fstatat (..., 0) bug
46064         Further testing with tar suggests that fstatat (..., 0)
46065         does not work in general, on AIX 7.1; see
46066         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
46067         So, give up entirely on AIX 7.1's fstatat, and fall back on our
46068         replacement fstatat (which is what older AIX releases were using
46069         anyway).
46070         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
46071         use is now changed to orig_fstatat.  This was probably the right
46072         thing to do anyway.
46073         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
46074         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
46075         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
46076         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
46077         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
46078         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
46079         if the bug is found.
46081         openat: test for fstatat (AT_FDCWD, ..., 0) bug
46082         This tests for another fstatat bug on AIX 7.1:
46083         fstatat (AT_FDCWD, ..., 0) does not work.  See
46084         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
46085         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
46086         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
46087         (rpl_fstatat): Adjust so that it works around either (or both)
46088         bugs if present.
46089         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
46091 2011-09-03  Karl Berry  <karl@gnu.org>
46093         * doc/regex.texi (Character Class Operators): Avoid literal ":"
46094         in index entries.
46096 2011-09-02  Bruno Haible  <bruno@clisp.org>
46098         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
46099         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
46100         values of AR, ARFLAGS, RANLIB.
46101         Reported by John W. Eaton <jwe@gnu.org> for Octave.
46103 2011-09-02  Bruno Haible  <bruno@clisp.org>
46105         Find 'ar' program that fits with --host argument.
46106         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
46108 2011-09-02  Bruno Haible  <bruno@clisp.org>
46110         tests: init.sh: Support any non-GNU diff.
46111         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
46112         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
46113         Solaris 8.
46115 2011-09-02  Bruno Haible  <bruno@clisp.org>
46117         tests: init.sh: work also with any non-GNU diff that supports -u
46118         * tests/init.sh: Relax check for diff -u support.
46119         Rather than checking for GNU diff via --version, simply check
46120         for support for -u itself.  Useful at least on OpenBSD 4.9,
46121         AIX 7.1, IRIX 6.5, and Solaris 10.
46123 2011-09-01  Bruno Haible  <bruno@clisp.org>
46125         strtoimax, strtoumax: Document problem on HP-UX 11.
46126         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
46127         * doc/posix-functions/strtoumax.texi: Likewise.
46129 2011-09-01  Bruno Haible  <bruno@clisp.org>
46131         strtoumax: Avoid link error on OSF/1 with DTK cc.
46132         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
46133         defined as a function.
46134         * modules/strtoumax (Depends-on, configure.ac): Test only whether
46135         strtoumax is defined, not whether it is declared.
46137 2011-09-01  Bruno Haible  <bruno@clisp.org>
46139         strtoimax: Avoid link error on OSF/1 with DTK cc.
46140         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
46141         defined as a function.
46142         * modules/strtoimax (Depends-on, configure.ac): Test only whether
46143         strtoimax is defined, not whether it is declared.
46145 2011-09-01  Bruno Haible  <bruno@clisp.org>
46147         imaxdiv: Avoid link error on OSF/1 with DTK cc.
46148         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
46149         as a function.
46150         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
46151         whether it is declared.
46153 2011-09-01  Bruno Haible  <bruno@clisp.org>
46155         imaxabs: Avoid link error on OSF/1 with DTK cc.
46156         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
46157         as a function.
46158         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
46159         whether it is declared.
46161 2011-09-01  Bruno Haible  <bruno@clisp.org>
46163         Tests for module 'strtoumax'.
46164         * modules/strtoumax-tests: New file.
46165         * tests/test-strtoumax.c: New file.
46167         Tests for module 'strtoimax'.
46168         * modules/strtoimax-tests: New file.
46169         * tests/test-strtoimax.c: New file.
46171         Tests for module 'imaxdiv'.
46172         * modules/imaxdiv-tests: New file.
46173         * tests/test-imaxdiv.c: New file.
46175         Tests for module 'imaxabs'.
46176         * modules/imaxabs-tests: New file.
46177         * tests/test-imaxabs.c: New file.
46179 2011-09-01  Bruno Haible  <bruno@clisp.org>
46181         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
46182         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
46183         pthread_create.
46185 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46187         openat: work around AIX 7.1 fstatat issue
46188         This should fix the problem that was not properly fixed
46189         in the previous change, dated 2011-08-30.
46190         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
46191         __need_system_stat_h defined.
46192         (orig_fstatat) [HAVE_FSTATAT]: New function.
46193         (rpl_fstatat): Go back to the old way of doing things,
46194         except call orig_fstatat instead of fstatat.
46195         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
46196         Remove unnecessary check whether fstatat fills in st_size etc.
46198 2011-09-01  Bruno Haible  <bruno@clisp.org>
46200         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
46201         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
46202         just include the system's header.
46204 2011-08-31  Jim Meyering  <meyering@redhat.com>
46206         tests: avoid spurious assertion failure in test-float.c on ppc64
46207         * tests/test-float.c (test_long_double): Comment out an assertion,
46208         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
46209         with gcc-4.4.4.
46211         maint: indent with spaces, not TABs
46212         I need to get in the habit of running gnulib's "make check".
46213         Both of these would have been caught.
46214         * m4/largefile.m4: Indent with spaces, not TABs.
46215         * lib/parse-datetime.y (iso_8601_time): Likewise.
46216         Spotted by Pádraig Brady.
46218         test-parse-datetime.c: accommodate a relatively strict gcc warning
46219         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
46220         to avoid a warning from gcc's -Werror=missing-declarations.
46221         Insert a few spaces-before-funcall-parenthesis.
46223 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
46225         parse-datetime: accept ISO 8601 date and time rep with "T" separator
46226         The parser now accepts ISO 8601 date-time strings with "T" as the
46227         separator.  It has long parsed dates like "2004-02-29 16:21:42"
46228         with a space between the date and time strings.  Now it also parses
46229         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
46230         variants like "2004-02-29T16:21:42.333-07:00"
46231         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
46232         of day representation using the 'T' separator character.
46233         * doc/parse-datetime.texi (General date syntax): replace use of
46234         deprecated --iso-8601 option with --rfc-3339 in example of date
46235         command output formats that can be parsed.
46236         * tests/test-parse-datetime.c (tm_diff): New function, taken from
46237         lib/parse-datetime.y.
46238         (gmt_offset): New function.
46239         (main): Add additional test cases to validate ISO8601 extended
46240         date and time of day parsing.
46242 2011-08-31  Bruno Haible  <bruno@clisp.org>
46244         freopen: Documentation.
46245         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
46246         name.
46247         Reported by Claudio Bley <claudio.bley@gmail.com>.
46249 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
46251         freopen: Don't crash if the filename argument is NULL.
46252         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
46253         NULL.
46255 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46257         openat: work around AIX 7.1 fstatat bug
46258         Problem reported by Kevin Brott for GNU tar, in the thread containing
46259         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
46260         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
46261         FSTATAT_ST_SIZE_ETC_BROKEN.
46262         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
46263         rpl_fstatat.
46264         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
46265         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
46266         AC_CHECK_FUNCS_ONCE for fstatat.
46267         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
46268         fchmodat, mkdirat, openat and unlinkat.
46270 2011-08-30  Bruno Haible  <bruno@clisp.org>
46272         Avoid endless recursions if config.h includes some header files.
46273         * lib/fopen.c (__need_FILE): Define already before including config.h.
46274         * lib/freopen.c (__need_FILE): Likewise.
46275         * lib/open.c (__need_system_fcntl_h): Likewise.
46276         * lib/stat.c (__need_system_sys_stat_h): Likewise.
46277         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
46278         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46280 2011-08-25  Karl Berry  <karl@gnu.org>
46282         * config/srclist.txt (ylwrap): new try.
46283         * build-aux/ylwrap: new file.
46285 2011-08-23  Bruno Haible  <bruno@clisp.org>
46287         tmpdir: Use a good default directory on native Windows.
46288         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
46289         (P_tmpdir): Default to _P_tmpdir on native Windows.
46290         (path_search): On native Windows, try the value returned by GetTempPath
46291         before trying P_tmpdir.
46292         * modules/tmpdir (Depends-on): Add pathmax.
46293         Suggested by John Darrington <john@darrington.wattle.id.au>.
46295 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
46297         doc: fix typo in README-release
46298         * top/README-release: Capitalize first word of a sentence.
46300 2011-08-19  Jim Meyering  <meyering@redhat.com>
46302         fts: do not exhaust memory when processing million-entry directories
46303         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
46304         directory would require about 256*N bytes of memory.  Thus, it was
46305         easy to construct a directory too large to be processed by any of
46306         those tools.  With this change, fts' maximum memory utilization is
46307         now limited to around 30MB.
46308         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
46309         (fts_read): When we've processed the final entry (i.e., when
46310         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
46311         using the parent entry to read any remaining entries.  Dispatch
46312         depending on what fts_build returns:
46313         - NULL+stop, aka failure: stop
46314         - NULL otherwise: move up in the dir hierarchy
46315         - non-NULL: handle this new entry
46316         (fts_build): Declare and use new local, continue_readdir.
46317         Prepare to be called from fts_read, when the entries
46318         from a partially-read directory have just been exhausted.
46319         In that case, we'll skip the opendir and instead use the parent's
46320         fts_dirp and derive dir_fd from that.
46321         Finally, in the readdir loop, if we read max_entries entries,
46322         exit the loop ensuring *not* to call closedir.  This is required
46323         so that fts_dirp can be reused on a subsequent call.
46324         Prompted by Ben England's report of memory exhaustion in find
46325         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
46327         maint: fts: move decl of `dp' down into while loop; split a long line
46328         * lib/fts.c (fts_build): No semantic change.
46330         fts: add/use new struct member, fts_dirp
46331         We are about to use this to manage any directory with
46332         too many entries to read all of them into memory at once.
46333         To do that, we'll need to save the DIR* pointer in each
46334         affected FTSENT struct.
46335         * lib/fts_.h: Include <dirent.h>.
46336         (struct FTSENT) [fts_dirp]: New member.
46337         * lib/fts.c (closedir_and_clear): Define.
46338         Use it in place of closedir so that we are sure to
46339         clear the new fts_dirp member when done with it.
46340         (fts_alloc): Initialize the new member.
46341         (fts_lfree): Free, if needed.
46343         maint: fts: give __opendir2 a new parameter and rename
46344         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
46345         than surreptitiously using sole caller's "dir_fd".
46346         (fts_opendir): Rename from __opendir2.
46348         maint: fts.c: remove __opendir2's now-unused parameter, oflag
46349         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
46351         maint: fts.c: correct off-by-one indentation
46352         * lib/fts.c (fts_build): Correct indentation, change style
46353         of a couple of block comments, and bracing style.
46355         maint: fts.c: move __opendir2 #define "up" out of function body
46356         * lib/fts.c (__opendir2): Move "up".  No semantic change.
46358         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
46359         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
46360         out for a long time and besides was useful only on BSD systems.
46362 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
46364         regex: port to Stratus OpenVOS
46365         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
46366         define to empty, rather than attempting nonportable optimizations.
46367         Problem reported by Paul Green in:
46368         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
46369         and fix suggested by Eric Blake in:
46370         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
46372 2011-08-17  Eric Blake  <eblake@redhat.com>
46374         getcwd: fix test failures on mingw
46375         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
46376         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
46377         test if long directory cannot be created, and allow mingw errno.
46379         getcwd-lgpl: fix m4 to match relaxed test for BSD
46380         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
46381         (gl_FUNC_GETCWD_SIGNATURE): New macro.
46382         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
46383         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
46384         signature problem.
46386         getcwd: fix compilation on mingw64
46387         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
46388         getcwd.
46389         Reported by Marc-André Lureau.
46391         pipe2: silence compiler warning
46392         * lib/pipe2.c (pipe2): Hide label if it is not used.
46394 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
46396         relocatable-prog: fix link error
46397         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
46398         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
46399         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
46400         into modules/relocatable-lib without noticing that
46401         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
46402         also needs to build relocatable.c.
46404 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46406         getaddrinfo: fix sh typo in gai_strerrorA decl checking
46407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
46408         shell code: it contained a 'break' that was not in a loop.
46409         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
46410         via a shell-language loop; this may have been true in old Autoconf
46411         versions, but it's not true in Autoconf 2.68.  I found this bug
46412         when testing coreutils git on Solaris 8, whose shell complains
46413         about the syntax error.
46415 2011-08-12  Simon Josefsson  <simon@josefsson.org>
46417         * lib/base64.c: Fix comment to reference RFC 4648.
46418         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
46419         <gvtulder@gmail.com>.
46421 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46423         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
46425         po/Makefile.in.in: fix make -q problem
46426         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
46427         rule, since there's no file named 'check-macro-version' and its
46428         use as a file breaks make -q.
46429         (all): Don't depend on check-macro-version.
46430         (CHECK_MACRO_VERSION): New macro.
46431         (stamp-po): Use it.
46433         configmake: fix make -q problem
46434         * modules/configmake (configmake.h): Update configmake.h's time stamp
46435         even if the file does not change.  Otherwise, 'make -q' fails.
46436         Problem reported by Simon Josefsson in
46437         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
46439 2011-08-11  Jim Meyering  <meyering@redhat.com>
46441         git-version-gen: correct the advice in a comment
46442         * build-aux/git-version-gen: Correct comment.
46443         Don't recommend to list .tarball-version in .gitignore.
46445 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46447         base64: fix off-by-one buffer size bug
46448         Problem and (trivial) fix reported by Gijs van Tulder in
46449         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
46450         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
46451         * tests/test-base64.c (main): Catch the bug.
46453 2011-08-10  Eric Blake  <eblake@redhat.com>
46455         closein: correct comments
46456         * lib/closein.c (close_stdin): Improve comments.
46458 2011-08-09  Bruno Haible  <bruno@clisp.org>
46460         More tests for 'fseeko'.
46461         * tests/test-fseeko3.c: New file, from Eric Blake.
46462         * tests/test-fseeko3.sh: New file.
46463         * modules/fseeko-tests (Files): Add them.
46464         (TESTS): Add test-fseeko3.sh.
46465         (check_PROGRAMS): Add test-fseeko3.
46467 2011-08-09  Eric Blake  <eblake@redhat.com>
46469         fseeko: remove unneeded hack
46470         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
46472         fseeko: fix bug on glibc
46473         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
46474         Reported by John W. Eaton.
46476 2011-08-08  Bruno Haible  <bruno@clisp.org>
46478         unictype/base: Fix interoperability with preinstalled libunistring.
46479         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
46480         Reported by Simon Josefsson.
46482 2011-08-08  Bruno Haible  <bruno@clisp.org>
46484         iswblank: Detect declaration correctly.
46485         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
46486         AC_CHECK_DECLS invocation.
46488 2011-08-08  Bruno Haible  <bruno@clisp.org>
46490         tcgetsid: Detect declaration correctly.
46491         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
46492         AC_CHECK_DECLS invocation.
46493         Reported by Simon Josefsson.
46495 2011-08-08  Eric Blake  <eblake@redhat.com>
46497         largefile: fix typo that regressed large file support
46498         * modules/largefile (configure.ac-early): Fix section name.
46500 2011-08-06  Karl Berry  <karl@gnu.org>
46502         * MODULES.html.sh (func_all_files): _Noreturn is no longer
46503         a separate module.
46505 2011-08-05  Simon Josefsson  <simon@josefsson.org>
46507         openat: Fix warnings and commens when building unlinkat.c on Hurd.
46508         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
46509         get prototype for free.
46511 2011-08-04  Bruno Haible  <bruno@clisp.org>
46513         Tests for module 'pathmax'.
46514         * modules/pathmax-tests: New file.
46515         * tests/test-pathmax.c: New file.
46517         canonicalize-lgpl: Support larger filenames on the Hurd.
46518         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
46519         Reported by Paul Eggert.
46521         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
46522         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
46523         * lib/chdir-long.h: Include pathmax.h.
46524         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
46525         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
46526         (PATH_MAX): Remove code that is done by pathmax.h.
46527         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
46528         * lib/tmpfile.c: Add a comment.
46529         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
46530         * modules/chdir-long (Depends-on): Add pathmax.
46531         * modules/getcwd (Depends-on): Add pathmax.
46532         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
46533         is not defined.
46534         * doc/posix-headers/limits.texi: Mention the pathmax module.
46535         * NEWS: Mention the change.
46537 2011-08-02  Bruno Haible  <bruno@clisp.org>
46539         pthread_sigmask: Actually use results of gl_THREADLIB.
46540         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
46541         gl_THREADLIB, not gl_[]THREADLIB.
46542         Reported by Eric Blake.
46544 2011-08-02  Jim Meyering  <meyering@redhat.com>
46546         maint.mk: relax the default _gl_TS_function_match regexp
46547         * top/maint.mk (_gl_TS_function_match): Don't require at least one
46548         space between function name and "(" in an "extern" declaration.
46549         That would fail to match a decl with no space there: extern void foo();
46551 2011-07-31  Iain Nicol  <iain@thenicols.net>
46553         git-version-gen: document that EXTRA_DIST must include .version
46554         * build-aux/git-version-gen: In the how-to-use comment, document
46555         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
46556         will fail when run from an unpacked distribution tarball.
46558 2011-08-01  Bruno Haible  <bruno@clisp.org>
46560         wctype-h: Fix last change.
46561         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
46562         REPLACE_TOWLOWER to 0.
46563         Reported by Sam Steingold <sds@gnu.org>.
46565 2011-07-31  Bruno Haible  <bruno@clisp.org>
46567         frexpl: Update autoconf test.
46568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
46569         according to changes of 2011-06-20.
46571 2011-07-31  Bruno Haible  <bruno@clisp.org>
46573         sys_utsname: Add support for Minix.
46574         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
46575         <sys/utsname.h>.
46576         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46577         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
46579 2011-07-31  Bruno Haible  <bruno@clisp.org>
46581         strings: Add support for Minix.
46582         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
46583         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
46584         * doc/posix-headers/strings.texi: Document the Minix problem.
46586 2011-07-31  Bruno Haible  <bruno@clisp.org>
46588         wctype-h: Add support for Minix.
46589         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
46590         REPLACE_TOWLOWER.
46591         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
46592         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
46593         REPLACE_ISWCNTRL.
46595 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
46597         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
46598         This is a performance improvement for 64-bit hosts: it causes the
46599         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
46601 2011-07-31  Bruno Haible  <bruno@clisp.org>
46603         stdioext: Add support for Minix.
46604         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
46605         * lib/fpurge.c (fpurge): Likewise.
46606         * lib/freadahead.c (freadahead): Likewise.
46607         * lib/freadable.c (freadable): Likewise.
46608         * lib/freading.c (freading): Likewise.
46609         * lib/freadptr.c (freadptr): Likewise.
46610         * lib/freadseek.c (freadptrinc): Likewise.
46611         * lib/fseeko.c (rpl_fseeko): Likewise.
46612         * lib/fseterr.c (fseterr): Likewise.
46613         * lib/fwritable.c (fwritable): Likewise.
46614         * lib/fwriting.c (fwriting): Likewise.
46615         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46616         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
46618 2011-07-31  Bruno Haible  <bruno@clisp.org>
46620         errno: Port to Minix.
46621         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
46622         ECONNABORTED are defined.
46623         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
46624         GNULIB_defined_ECONNABORTED): New macros.
46625         * lib/strerror-override.h (strerror_override): Test also
46626         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
46627         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
46628         ECONNABORTED.
46629         * doc/posix-headers/errno.texi: Mention the Minix problem.
46631 2011-07-31  Bruno Haible  <bruno@clisp.org>
46633         Work around declaration collisions on Minix.
46634         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
46635         defined, set REPLACE_MBSINIT.
46636         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
46637         defined, set REPLACE_MBRTOWC.
46638         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
46639         set REPLACE_MBRLEN.
46640         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
46641         defined, set REPLACE_MBSRTOWCS.
46642         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
46643         defined, set REPLACE_WCRTOMB.
46644         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
46645         defined, set REPLACE_WCSRTOMBS.
46647 2011-07-31  Bruno Haible  <bruno@clisp.org>
46649         Add support for Minix with ACK compiler.
46650         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
46651         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
46652         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
46654 2011-07-31  Bruno Haible  <bruno@clisp.org>
46656         Documentation about Minix.
46657         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
46658         * doc/glibc-headers/*.texi: Likewise.
46659         * doc/posix-functions/*.texi: Likewise.
46660         * doc/glibc-functions/*.texi: Likewise.
46662 2011-07-31  Bruno Haible  <bruno@clisp.org>
46664         snippet/warn-on-use: Fix indentation.
46665         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46667 2011-07-25  Jim Meyering  <meyering@redhat.com>
46669         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46670         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46671         commands.
46673 2011-07-27  Jim Meyering  <meyering@redhat.com>
46675         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46676         * top/maint.mk (gl_extract_significant_defines_): Now that
46677         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46678         gnulib/lib/signal.in.h, and now that we recommend to
46679         define-if-undefined those two symbols in application code,
46680         we must filter them out of the "significant" list.
46681         This avoids a "make syntax-check" failure in coreutils.
46683 2011-07-26  Eric Blake  <eblake@redhat.com>
46685         warnings: add comments about previous patch
46686         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46687         * m4/include_next.m4: Likewise.
46688         * m4/warn-on-use.m4: Likewise.
46689         * m4/warnings.m4: Likewise, and simplify use.
46690         Suggested by Stefano Lattarini.
46692         include-next, warnings: support older autoconf
46693         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46694         AS_VAR_PUSHDEF in a way that works with older autoconf.
46695         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46696         Reported by Daniel P. Berrange.
46698 2011-07-25  Bruno Haible  <bruno@clisp.org>
46700         fseek, ftell: Fix doc.
46701         * doc/posix-functions/fseek.texi: Reword statement about
46702         AC_SYS_LARGEFILE.
46703         * doc/posix-functions/ftell.texi: Likewise.
46705 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46706             Bruno Haible  <bruno@clisp.org>
46708         Add dependencies to the 'largefile' module.
46709         * modules/fopen (Depends-on): Add 'largefile'.
46710         * modules/freopen (Depends-on): Likewise.
46711         * modules/fseeko (Depends-on): Likewise.
46712         * modules/ftello (Depends-on): Likewise.
46713         * modules/glob (Depends-on): Likewise.
46714         * modules/lseek (Depends-on): Likewise.
46715         * modules/lstat (Depends-on): Likewise.
46716         * modules/mkostemp (Depends-on): Likewise.
46717         * modules/mkostemps (Depends-on): Likewise.
46718         * modules/mkstemp (Depends-on): Likewise.
46719         * modules/mkstemps (Depends-on): Likewise.
46720         * modules/open (Depends-on): Likewise.
46721         * modules/openat (Depends-on): Likewise.
46722         * modules/pread (Depends-on): Likewise.
46723         * modules/pwrite (Depends-on): Likewise.
46724         * modules/scandir (Depends-on): Likewise.
46725         * modules/stat (Depends-on): Likewise.
46726         * modules/tmpfile (Depends-on): Likewise.
46727         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
46728         since the containing module now depends on the largefile module.
46729         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
46730         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
46731         off_t is fixed by gnulib.
46732         * doc/posix-functions/freopen.texi: Likewise.
46733         * doc/posix-functions/fseeko.texi: Likewise.
46734         * doc/posix-functions/fstatat.texi: Likewise.
46735         * doc/posix-functions/ftello.texi: Likewise.
46736         * doc/posix-functions/glob.texi: Likewise.
46737         * doc/posix-functions/lseek.texi: Likewise.
46738         * doc/posix-functions/lstat.texi: Likewise.
46739         * doc/posix-functions/mkstemp.texi: Likewise.
46740         * doc/posix-functions/open.texi: Likewise.
46741         * doc/posix-functions/openat.texi: Likewise.
46742         * doc/posix-functions/pread.texi: Likewise.
46743         * doc/posix-functions/pwrite.texi: Likewise.
46744         * doc/posix-functions/scandir.texi: Likewise.
46745         * doc/posix-functions/stat.texi: Likewise.
46746         * doc/posix-functions/tmpfile.texi: Likewise.
46747         * doc/glibc-functions/mkostemp.texi: Likewise.
46748         * doc/glibc-functions/mkostemps.texi: Likewise.
46749         * doc/glibc-functions/mkstemps.texi: Likewise.
46751 2011-07-25  Bruno Haible  <bruno@clisp.org>
46753         fcntl: Move AC_LIBOBJ invocation to module description.
46754         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
46755         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
46757         fcntl: Remove call-in from fchdir.m4.
46758         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
46759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
46761         dup3: Remove potential call-in from fchdir.m4.
46762         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
46763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
46765         dup2: Move AC_LIBOBJ invocation to module description.
46766         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
46767         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
46768         Don't invoke AC_LIBOBJ.
46769         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
46771         dup2: Remove call-in from fchdir.m4.
46772         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
46773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
46775         fclose: Move AC_LIBOBJ invocation to module description.
46776         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
46777         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
46778         to 1.
46779         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
46781         fclose: Remove call-in from close.m4.
46782         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
46783         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
46785         close: Move AC_LIBOBJ invocation to module description.
46786         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
46787         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
46788         1.
46789         * modules/close (configure.ac): Invoke AC_LIBOBJ.
46791         close: Remove call-in from fchdir.m4.
46792         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
46793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
46795         open: Move AC_LIBOBJ invocation to module description.
46796         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
46797         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
46798         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
46800         open: Remove call-in from fchdir.m4.
46801         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
46802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
46804         fchdir: Start to remove gl_REPLACE_* idiom.
46805         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46806         (gl_FUNC_FCHDIR): Invoke it.
46808 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46810         * lib/ftell.c (ftell): Comment out cast.
46812         close: use gl_REPLACE_FCLOSE only if defined
46813         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46814         is defined.  The close module doesn't depend on the fclose module
46815         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46816         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46817         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46819 2011-07-24  Jim Meyering  <meyering@redhat.com>
46821         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46822         * tests/test-select.h (test_function): Declare as "static".
46824 2011-07-24  Bruno Haible  <bruno@clisp.org>
46826         doc: Mention the effects of AC_SYS_LARGEFILE.
46827         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46828         on this function.
46829         * doc/posix-functions/aio_error.texi: Likewise.
46830         * doc/posix-functions/aio_fsync.texi: Likewise.
46831         * doc/posix-functions/aio_read.texi: Likewise.
46832         * doc/posix-functions/aio_return.texi: Likewise.
46833         * doc/posix-functions/aio_suspend.texi: Likewise.
46834         * doc/posix-functions/aio_write.texi: Likewise.
46835         * doc/posix-functions/fgetpos.texi: Likewise.
46836         * doc/posix-functions/fopen.texi: Likewise.
46837         * doc/posix-functions/freopen.texi: Likewise.
46838         * doc/posix-functions/fsetpos.texi: Likewise.
46839         * doc/posix-functions/fstatvfs.texi: Likewise.
46840         * doc/posix-functions/ftruncate.texi: Likewise.
46841         * doc/posix-functions/ftw.texi: Likewise.
46842         * doc/posix-functions/getrlimit.texi: Likewise.
46843         * doc/posix-functions/glob.texi: Likewise.
46844         * doc/posix-functions/lio_listio.texi: Likewise.
46845         * doc/posix-functions/lockf.texi: Likewise.
46846         * doc/posix-functions/mkstemp.texi: Likewise.
46847         * doc/posix-functions/mmap.texi: Likewise.
46848         * doc/posix-functions/nftw.texi: Likewise.
46849         * doc/posix-functions/openat.texi: Likewise.
46850         * doc/posix-functions/opendir.texi: Likewise.
46851         * doc/posix-functions/posix_fadvise.texi: Likewise.
46852         * doc/posix-functions/posix_fallocate.texi: Likewise.
46853         * doc/posix-functions/pread.texi: Likewise.
46854         * doc/posix-functions/pwrite.texi: Likewise.
46855         * doc/posix-functions/readdir.texi: Likewise.
46856         * doc/posix-functions/readdir_r.texi: Likewise.
46857         * doc/posix-functions/rewinddir.texi: Likewise.
46858         * doc/posix-functions/scandir.texi: Likewise.
46859         * doc/posix-functions/seekdir.texi: Likewise.
46860         * doc/posix-functions/setrlimit.texi: Likewise.
46861         * doc/posix-functions/statvfs.texi: Likewise.
46862         * doc/posix-functions/telldir.texi: Likewise.
46863         * doc/posix-functions/tmpfile.texi: Likewise.
46864         * doc/posix-functions/truncate.texi: Likewise.
46865         * doc/glibc-functions/fallocate.texi: Likewise.
46866         * doc/glibc-functions/fstatfs.texi: Likewise.
46867         * doc/glibc-functions/fts_children.texi: Likewise.
46868         * doc/glibc-functions/fts_read.texi: Likewise.
46869         * doc/glibc-functions/getdirentries.texi: Likewise.
46870         * doc/glibc-functions/mkostemp.texi: Likewise.
46871         * doc/glibc-functions/mkostemps.texi: Likewise.
46872         * doc/glibc-functions/mkstemps.texi: Likewise.
46873         * doc/glibc-functions/preadv.texi: Likewise.
46874         * doc/glibc-functions/pwritev.texi: Likewise.
46875         * doc/glibc-functions/sendfile.texi: Likewise.
46876         * doc/glibc-functions/statfs.texi: Likewise.
46878 2011-07-24  Bruno Haible  <bruno@clisp.org>
46880         doc: Fix typo.
46881         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46883 2011-07-24  Bruno Haible  <bruno@clisp.org>
46885         doc: Mention fsusage.
46886         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46888 2011-07-24  Bruno Haible  <bruno@clisp.org>
46890         doc: Mention new glibc headers and functions.
46891         * doc/glibc-headers/gshadow.texi: New file.
46892         * doc/glibc-functions/endsgent.texi: New file.
46893         * doc/glibc-functions/fgetsgent.texi: New file.
46894         * doc/glibc-functions/fgetsgent_r.texi: New file.
46895         * doc/glibc-functions/getsgent.texi: New file.
46896         * doc/glibc-functions/getsgent_r.texi: New file.
46897         * doc/glibc-functions/getsgnam.texi: New file.
46898         * doc/glibc-functions/getsgnam_r.texi: New file.
46899         * doc/glibc-functions/putsgent.texi: New file.
46900         * doc/glibc-functions/setsgent.texi: New file.
46901         * doc/glibc-functions/sgetsgent.texi: New file.
46902         * doc/glibc-functions/sgetsgent_r.texi: New file.
46903         * doc/glibc-functions/malloc_info.texi: New file.
46904         * doc/glibc-functions/preadv.texi: New file.
46905         * doc/glibc-functions/pwritev.texi: New file.
46906         * doc/glibc-functions/register_printf_modifier.texi: New file.
46907         * doc/glibc-functions/register_printf_specifier.texi: New file.
46908         * doc/glibc-functions/register_printf_type.texi: New file.
46909         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46910         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46911         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46912         * doc/glibc-functions/pthread_getname_np.texi: New file.
46913         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46914         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46915         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46916         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46917         * doc/glibc-functions/pthread_setname_np.texi: New file.
46918         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46919         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46920         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46921         * doc/glibc-functions/qsort_r.texi: New file.
46922         * doc/glibc-functions/quick_exit.texi: New file.
46923         * doc/glibc-functions/syncfs.texi: New file.
46924         * doc/gnulib.texi: Include them.
46925         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46926         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46927         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46928         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46929         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46930         * doc/glibc-functions/execvpe.texi: Likewise.
46932 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46934         ftell: don't include <unistd.h>
46935         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46936         guaranteed to define off_t, and the ftell module depends on the
46937         stdio module.
46939         ftell: do not assume wraparound signed arithmetic
46940         * lib/ftell.c: Include <limits.h>.
46941         (ftell): Don't assume wraparound signed arithmetic.
46943 2011-07-24  Bruno Haible  <bruno@clisp.org>
46945         close: No longer depend on module 'fclose'.
46946         * modules/close (Depends-on): Remove fclose.
46947         * NEWS: Mention the change.
46948         Suggested by Sam Steingold <sds@gnu.org>.
46950 2011-07-24  Bruno Haible  <bruno@clisp.org>
46952         fsusage: Enable large volume support on AIX >= 5.2.
46953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46954         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46955         instead of STAT_STATVFS.
46956         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46958         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46959         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46960         f_blocks field only on MacOS X.
46962         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46963         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46964         * modules/fsusage (Depends-on): Add largefile.
46966 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46968         * README: Modernize discussion of signed integers.
46969         Assuming overflow wraparound is no longer safe.
46970         Mention ones' complement and signed magnitude.
46972 2011-07-22  Bruno Haible  <bruno@clisp.org>
46974         select tests, pselect tests: Refactor.
46975         * tests/test-select.h: New file, extracted from tests/test-select.c.
46976         (select_fn): New type.
46977         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46978         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46979         test_pipe): Add my_select argument.
46980         (test_function): Renamed from main. Add my_select argument.
46981         * tests/test-select.c: Move most code to tests/test-select.h. Include
46982         test-select.h.
46983         * modules/select-tests (Files): Add tests/test-select.h.
46984         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46985         (my_select, main): New functions.
46986         * modules/pselect-tests (Files): Add tests/test-select.h,
46987         tests/macros.h, tests/signature.h.
46988         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46989         (configure.ac): Check for <sys/wait.h>.
46991 2011-07-22  Bruno Haible  <bruno@clisp.org>
46993         sys_select tests: Check the signature of FD_*.
46994         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46995         signature tests from here...
46996         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46997         here.
46998         * modules/sys_select-tests (Files): Add tests/signature.h.
47000 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47002         largefile: new module, replacing large-inode
47003         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
47004         * MODULES.html.sh: Add largefile, remove large-inode.
47005         * modules/largefile, m4/largefile.m4: New files.
47006         * modules/large-inode, m4/large-inode.m4: Remove.
47008         fsusage: port to MacOS X 10.7 with 4 TiB file systems
47009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
47010         implementations that use only 32 bits to count blocks.
47011         On typical hosts with 1024-byte blocks, this fails with file
47012         systems as small as 4 TiB.  Problem reported by Herb Wartens
47013         <http://debbugs.gnu.org/9140> and this should also fix a similar
47014         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
47016         large-inode: New module
47017         * MODULES.html.sh: Add it.
47018         * modules/large-inode, m4/large-inode.m4: New files.
47020         extensions: Enable extensions on MacOS X 10.5 and later.
47021         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
47023 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
47025         file-has-acl: use acl_extended_file_nofollow if available
47026         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
47027         (acl_extended_file): New macro.
47028         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
47029         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
47031 2011-07-21  Bruno Haible  <bruno@clisp.org>
47033         Declare system functions in a way that works with C++.
47034         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
47035         declare fdopendir as extern "C".
47036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
47037         declare frexpl as extern "C".
47038         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
47039         declare gai_strerror as extern "C".
47040         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
47041         programs, declare gai_strerror as extern "C".
47042         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
47043         declare getlogin_r as extern "C".
47044         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
47045         as extern "C".
47046         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
47047         declare ldexpl as extern "C".
47048         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
47049         as extern "C".
47050         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
47051         program, declare getmntinfo as extern "C".
47052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
47053         stpncpy as extern "C".
47054         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
47055         program, declare __xpg_strerror_r as extern "C".
47056         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
47057         strndup as extern "C".
47058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
47059         declare memset and bzero as extern "C".
47060         Reported by Sam Steingold <sds@gnu.org>.
47062 2011-07-12  Jim Meyering  <meyering@redhat.com>
47064         maint.mk: prohibit inclusion of "verify.h" without use
47065         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
47067 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47069         timer-time: A new module to check for timer_settime()
47070         * m4/timer_time.m4: Check for the posix function.
47071         * modules/timer-time: Add the new module.
47072         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
47073         Mention it.
47075 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
47076             Bruno Haible  <bruno@clisp.org>
47078         pthread_sigmask: assume POSIX threads if --avoid=threadlib
47079         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
47080         not defined, assume POSIX threads and look for pthread_sigmask in
47081         $LIBS, without changing $CPPFLAGS.
47083 2011-07-19  Bruno Haible  <bruno@clisp.org>
47085         strstr: Update cross-compilation guess.
47086         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
47087         CPUs, guess no, in view of glibc
47088         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
47089         Suggested by Eric Blake. Reported by Reuben Thomas.
47091 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47093         getopt-gnu: suppress core dumps from detection code
47094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
47095         to suppress core dumps that may well occur on glibc systems.
47096         * modules/getopt-gnu: Depend on nocrash.
47098 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47100         pthread_sigmask: ensure usleep is declared
47101         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
47102         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
47104 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47106         doc: Document NonStop portability issues.
47107         * doc/posix-functions/sigaction.texi (sigaction):
47108         * doc/posix-headers/signal.texi (signal.h):
47109         Document NonStop.  See Joachim Schmitz in
47110         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
47112 2011-07-15  Bruno Haible  <bruno@clisp.org>
47114         ffsl, ffsll: Avoid unportable behaviour.
47115         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
47117 2011-07-15  Bruno Haible  <bruno@clisp.org>
47119         ffs: More tests.
47120         * tests/test-ffs.c (NBITS): New macro.
47121         (main): Add more tests.
47122         * tests/test-ffsl.c (NBITS): New macro.
47123         (main): Add more tests.
47124         * tests/test-ffsll.c (NBITS): New macro.
47125         (main): Add more tests.
47127 2011-07-15  Eric Blake  <eblake@redhat.com>
47129         ffsl, ffsll: new modules
47130         * modules/ffsl: New file.
47131         * modules/ffsll: Likewise.
47132         * m4/ffsl.m4: Likewise.
47133         * m4/ffsll.m4: Likewise.
47134         * lib/ffsl.c: Likewise.
47135         * lib/ffsl.h: Likewise.
47136         * lib/ffsll.c: Likewise.
47137         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
47138         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
47139         * modules/string (Makefile.am): Substitute witnesses.
47140         * lib/strings.in.h (ffsl, ffsll): Declare.
47141         * modules/ffsl-tests: New test file.
47142         * modules/ffsll-tests: Likewise.
47143         * tests/test-ffsl.c: Likewise.
47144         * tests/test-ffsll.c: Likewise.
47145         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47146         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
47147         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
47149         ffs: fix m4 prerequisite
47150         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
47152         ffs: avoid undefined behavior
47153         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
47154         * tests/test-ffs.c (naive, main): Avoid signed shifts.
47155         Reported by Bruno Haible.
47157 2011-07-12  Bruno Haible  <bruno@clisp.org>
47159         pthread_sigmask: Rely on module 'threadlib'.
47160         * modules/pthread_sigmask (Depends-on): Add threadlib.
47161         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
47162         is defined.
47164 2011-07-12  Bruno Haible  <bruno@clisp.org>
47166         regex: Depend on module 'strcase'.
47167         * modules/regex (Depends-on): Add strcase, for strcasecmp().
47169 2011-07-12  Jim Meyering  <meyering@redhat.com>
47171         warn-on-use: fix typo in file name
47172         * modules/snippet/warn-on-use (Files): Correct file name:
47173         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
47175 2011-07-12  Bruno Haible  <bruno@clisp.org>
47177         strings: Document module.
47178         * doc/posix-headers/strings.texi: Mention module 'strings'.
47180 2011-07-12  Bruno Haible  <bruno@clisp.org>
47182         Rename module '_Noreturn' to 'snippet/_Noreturn'.
47183         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
47184         (Files, Makefile.am): Update.
47185         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
47186         * modules/stdlib (Depends-on): Update.
47188 2011-07-12  Bruno Haible  <bruno@clisp.org>
47190         * NEWS: Mention the changes.
47192         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47193         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
47194         (Files, Makefile.am): Update.
47195         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
47196         * modules/arpa_inet (Depends-on): Update.
47197         * modules/ctype (Depends-on): Update.
47198         * modules/dirent (Depends-on): Update.
47199         * modules/fcntl-h (Depends-on): Update.
47200         * modules/glob (Depends-on): Update.
47201         * modules/iconv-h (Depends-on): Update.
47202         * modules/inttypes-incomplete (Depends-on): Update.
47203         * modules/langinfo (Depends-on): Update.
47204         * modules/locale (Depends-on): Update.
47205         * modules/math (Depends-on): Update.
47206         * modules/netdb (Depends-on): Update.
47207         * modules/poll-h (Depends-on): Update.
47208         * modules/pty (Depends-on): Update.
47209         * modules/search (Depends-on): Update.
47210         * modules/signal (Depends-on): Update.
47211         * modules/spawn (Depends-on): Update.
47212         * modules/stdio (Depends-on): Update.
47213         * modules/stdlib (Depends-on): Update.
47214         * modules/string (Depends-on): Update.
47215         * modules/strings (Depends-on): Update.
47216         * modules/sys_file (Depends-on): Update.
47217         * modules/sys_ioctl (Depends-on): Update.
47218         * modules/sys_select (Depends-on): Update.
47219         * modules/sys_socket (Depends-on): Update.
47220         * modules/sys_stat (Depends-on): Update.
47221         * modules/sys_time (Depends-on): Update.
47222         * modules/sys_times (Depends-on): Update.
47223         * modules/sys_utsname (Depends-on): Update.
47224         * modules/sys_wait (Depends-on): Update.
47225         * modules/termios (Depends-on): Update.
47226         * modules/time (Depends-on): Update.
47227         * modules/unistd (Depends-on): Update.
47228         * modules/wchar (Depends-on): Update.
47229         * modules/wctype-h (Depends-on): Update.
47230         * MODULES.html.sh (Support for building libraries and executables):
47231         Update.
47233         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
47234         * modules/snippet/unused-parameter: Renamed from
47235         modules/unused-parameter.
47236         (Files, Makefile.am): Update.
47237         * build-aux/snippet/unused-parameter.h: Renamed from
47238         build-aux/unused-parameter.h.
47239         * modules/selinux-h (Depends-on): Update.
47240         * modules/unistr/base (Depends-on): Update.
47241         * MODULES.html.sh (Core language properties): Update.
47243         Rename module 'link-warning' to 'snippet/link-warning'.
47244         * modules/snippet/link-warning: Renamed from modules/link-warning.
47245         (Files, Makefile.am): Update.
47246         * build-aux/snippet/link-warning.h: Renamed from
47247         build-aux/link-warning.h.
47248         * MODULES.html.sh (Support for building libraries and executables):
47249         Update.
47251         Rename module 'c++defs' to 'snippet/c++defs'.
47252         * modules/snippet/c++defs: Renamed from modules/c++defs.
47253         (Files, Makefile.am): Update.
47254         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
47255         * modules/arpa_inet (Depends-on): Update.
47256         * modules/ctype (Depends-on): Update.
47257         * modules/dirent (Depends-on): Update.
47258         * modules/fcntl-h (Depends-on): Update.
47259         * modules/glob (Depends-on): Update.
47260         * modules/iconv-h (Depends-on): Update.
47261         * modules/langinfo (Depends-on): Update.
47262         * modules/locale (Depends-on): Update.
47263         * modules/math (Depends-on): Update.
47264         * modules/netdb (Depends-on): Update.
47265         * modules/poll-h (Depends-on): Update.
47266         * modules/pty (Depends-on): Update.
47267         * modules/search (Depends-on): Update.
47268         * modules/signal (Depends-on): Update.
47269         * modules/spawn (Depends-on): Update.
47270         * modules/stdio (Depends-on): Update.
47271         * modules/stdlib (Depends-on): Update.
47272         * modules/string (Depends-on): Update.
47273         * modules/strings (Depends-on): Update.
47274         * modules/sys_ioctl (Depends-on): Update.
47275         * modules/sys_select (Depends-on): Update.
47276         * modules/sys_socket (Depends-on): Update.
47277         * modules/sys_stat (Depends-on): Update.
47278         * modules/sys_time (Depends-on): Update.
47279         * modules/sys_wait (Depends-on): Update.
47280         * modules/termios (Depends-on): Update.
47281         * modules/time (Depends-on): Update.
47282         * modules/unistd (Depends-on): Update.
47283         * modules/wchar (Depends-on): Update.
47284         * modules/wctype-h (Depends-on): Update.
47286         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
47287         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
47288         (Files, Makefile.am): Update.
47289         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
47290         * modules/argv-iter (Depends-on): Update.
47291         * modules/arpa_inet (Depends-on): Update.
47292         * modules/dirent (Depends-on): Update.
47293         * modules/fcntl-h (Depends-on): Update.
47294         * modules/fnmatch (Depends-on): Update.
47295         * modules/getopt-posix (Depends-on): Update.
47296         * modules/glob (Depends-on): Update.
47297         * modules/iconv-h (Depends-on): Update.
47298         * modules/inttypes-incomplete (Depends-on): Update.
47299         * modules/locale (Depends-on): Update.
47300         * modules/math (Depends-on): Update.
47301         * modules/netdb (Depends-on): Update.
47302         * modules/search (Depends-on): Update.
47303         * modules/signal (Depends-on): Update.
47304         * modules/spawn (Depends-on): Update.
47305         * modules/stdio (Depends-on): Update.
47306         * modules/stdlib (Depends-on): Update.
47307         * modules/string (Depends-on): Update.
47308         * modules/strings (Depends-on): Update.
47309         * modules/sys_socket (Depends-on): Update.
47310         * modules/sys_stat (Depends-on): Update.
47311         * modules/sys_time (Depends-on): Update.
47312         * modules/sys_times (Depends-on): Update.
47313         * modules/sys_utsname (Depends-on): Update.
47314         * modules/time (Depends-on): Update.
47315         * modules/unistd (Depends-on): Update.
47316         * modules/wchar (Depends-on): Update.
47317         * MODULES.html.sh (Support for building libraries and executables):
47318         Update.
47320 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47322         Improvements on _Noreturn and related modules.
47324         modules/_Exit-tests: test _Noreturn too
47325         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
47326         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
47327         (main): Use them.
47329         stdnoreturn, stdnoreturn-tests: remove modules
47330         They're not needed here and a bit premature for use elsewhere.  See
47331         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
47332         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
47333         * tests/test-stdnoreturn.c: Remove files.
47334         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
47335         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
47336         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
47337         and using noreturn.
47338         * modules/openat, modules/sigpipe-die, modules/xalloc:
47339         * modules/xmemdup0, modules/xstrtol:
47340         Remove dependency on stdnoreturn.
47342         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
47343         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
47344         Reparenthesize to avoid GCC warning.
47345         Support Microsoft's syntax.
47346         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
47348         _Noreturn-tests: remove module
47349         * modules/_Noreturn-tests: Remove.
47350         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
47351         * tests/test-_Noreturn.c: Remove.
47352         * tests/test-stdnoreturn.c: Merge from the old
47353         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
47355 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47357         _Noreturn, stdnoreturn, and related modules.
47359         * top/maint.mk: Adjust to new noreturn support.
47360         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
47361         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
47363         xalloc: use stdnoreturn.h
47364         * lib/xalloc.h: Include <stdnoreturn.h>.
47365         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47366         * modules/xalloc (Depends-on): Add stdnoreturn.
47368         xstrtol: use stdnoreturn.h
47369         * lib/xstrtol.h: Include <stdnoreturn.h>.
47370         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47371         * modules/xstrtol (Depends-on): Add stdnoreturn.
47373         xmemdup0: use stdnoreturn.h
47374         * lib/xmemdup0.h: Include <stdnoreturn.h>.
47375         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47376         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
47378         sigpipe-die: use stdnoreturn.h
47379         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
47380         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47381         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
47383         openat: use stdnoreturn.h
47384         * lib/openat.h: Include <stdnoreturn.h>.
47385         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47386         * modules/openat (Depends-on): Add stdnoreturn.
47388         * lib/openat-die.c (openat_save_fail): Modernize comment.
47390         * lib/xalloc-die.c (xalloc_die): Modernize comment.
47392         * lib/glthread/thread.h: Modernize comment.
47394         obstack: use _Noreturn
47395         * lib/obstack.c (__attribute__): Remove macro.
47396         (print_and_abort): Use _Noreturn.
47398         c-stack: use _Noreturn
47399         * lib/c-stack.c (die, overflow_handler, segv_handler):
47400         Use _Noreturn rather than __attribute__((noreturn)).
47402         argmatch-tests, exclude_tests: use _Noreturn
47403         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
47404         Remove.
47405         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
47407         stdlib: use _Noreturn
47408         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
47409         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
47410         * modules/stdlib (Depends-on): Add _Noreturn.
47411         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
47413         stdnoreturn-tests: new module
47414         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
47416         stdnoreturn: new module
47417         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
47418         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
47420         _Noreturn-tests: new module
47421         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
47423         _Noreturn: new module
47424         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
47425         New section, mentioning it.
47426         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
47428         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
47430 2011-07-11  Eric Blake  <eblake@redhat.com>
47432         ffs: new module
47433         * modules/ffs: New file.
47434         * m4/ffs.m4: Likewise.
47435         * lib/ffs.c: Likewise.
47436         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
47437         * modules/strings (Makefile.am): Substitute witness.
47438         (Depends-on): Add c++defs.
47439         * lib/strings.in.h (ffs): Declare.
47440         * modules/ffs-tests: New test file.
47441         * tests/test-ffs.c: Test new module.
47442         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47443         * doc/posix-functions/ffs.texi (ffs): Likewise.
47445         regex: avoid compiler warning
47446         * lib/regex.c (includes): Include <strings.h>, for use of
47447         strcasecmp in regcomp.c.
47448         Reported by Joachim Schmitz.
47450 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47452         stdint: respect system's intmax_t if INTMAX_MAX
47453         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
47454         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
47455         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
47456         long but int64_t is long long, and where we will clash with the
47457         system intmax_t if we override it.  See
47458         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
47459         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
47460         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
47461         similarly for UINTMAX_C.
47463 2011-07-08  Bruno Haible  <bruno@clisp.org>
47465         pthread_sigmask tests: Avoid a compiler warning.
47466         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
47467         non-zero.
47469         sigprocmask tests: A better way to avoid a compiler warning.
47470         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
47471         (main): Complain if system() returns non-zero.
47472         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
47474 2011-07-08  Bruno Haible  <bruno@clisp.org>
47476         pthread_sigmask: Work around IRIX bug.
47477         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
47478         bug.
47479         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
47480         there may be unblocked pending signals.
47481         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
47483 2011-07-08  Bruno Haible  <bruno@clisp.org>
47485         pthread_sigmask: Work around Cygwin bug.
47486         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
47487         bug.
47488         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
47489         the system's pthread_sigmask function.
47490         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
47492 2011-07-08  Bruno Haible  <bruno@clisp.org>
47494         pthread_sigmask: Work around bug in single-threaded implementation.
47495         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
47496         FreeBSD, HP-UX, Solaris bug.
47497         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
47498         * lib/pthread_sigmask.c: Include <stddef.h>.
47499         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
47500         the system's pthread_sigmask function.
47501         * modules/pthread_sigmask (configure.ac): Invoke
47502         gl_PREREQ_PTHREAD_SIGMASK.
47503         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
47504         HP-UX, Solaris.
47506 2011-07-08  Eric Blake  <eblake@redhat.com>
47508         test-sigprocmask: avoid compiler warning
47509         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
47510         * tests/test-sigprocmask.c (main): Use it to silence warning.
47511         Reported by Jim Meyering.
47513         test-snprintf: avoid compiler warning
47514         * tests/test-snprintf.c (main): Avoid shadowed declaration.
47515         * tests/test-vsnprintf.c (main): Likewise.
47516         Reported by Jim Meyering.
47518 2011-07-08  Bruno Haible  <bruno@clisp.org>
47520         Tests for module 'pthread_sigmask'.
47521         * modules/pthread_sigmask-tests: New file.
47522         * tests/test-pthread_sigmask1.c: New file, based on
47523         tests/test-sigprocmask.c.
47524         * tests/test-pthread_sigmask2.c: New file.
47526 2011-07-08  Jim Meyering  <meyering@redhat.com>
47528         test-getopt.h: avoid warning about an unused variable
47529         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
47531 2011-07-07  Jim Meyering  <meyering@redhat.com>
47533         maint: reduce list of files exempt from sc_prohibit_leading_TABs
47534         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
47535         now that it no longer contains leading TABs.
47536         Remove unused "url=FIXME" statement.
47538 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47540         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
47541         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47542         When gl_THREADLIB is not in use, assume that the POSIX sematics
47543         are desired.  This is better for Emacs, which uses POSIX semantics
47544         on GNUish and/or POSIXish platforms, and does not use threads at
47545         all otherwise.
47547         pthread_sigmask: fix typo when testing for libraries
47548         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47549         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
47551 2011-07-08  Eric Blake  <eblake@redhat.com>
47553         fts: introduce FTS_NOATIME
47554         * lib/fts_.h (FTS_NOATIME): New bit flag.
47555         (FTS_OPTIONMASK): Adjust.
47556         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
47557         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
47559 2011-07-08  Bruno Haible  <bruno@clisp.org>
47561         Tests for module 'thread'.
47562         * modules/thread-tests: New file.
47563         * tests/test-thread_self.c: New file.
47564         * tests/test-thread_create.cc: New file.
47566 2011-07-08  Bruno Haible  <bruno@clisp.org>
47568         thread: Avoid gcc warnings when using gl_thread_self().
47569         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
47570         'void *'.
47571         (gl_thread_self_pointer): Update.
47573 2011-07-07  Bruno Haible  <bruno@clisp.org>
47575         signal-c++-tests: Check declaration of pthread_sigmask.
47576         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
47577         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
47578         $(LIB_PTHREAD_SIGMASK).
47580 2011-07-07  Bruno Haible  <bruno@clisp.org>
47582         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
47583         * lib/signal.in.h (pthread_sigmask): Override if
47584         REPLACE_PTHREAD_SIGMASK is 1.
47585         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47586         REPLACE_PTHREAD_SIGMASK.
47587         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
47588         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
47589         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
47590         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47591         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
47593 2011-07-07  Bruno Haible  <bruno@clisp.org>
47595         pthread_sigmask: Ensure declaration in <signal.h>.
47596         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
47597         include <pthread.h>.
47598         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
47599         problem.
47601 2011-07-07  Bruno Haible  <bruno@clisp.org>
47603         pthread_sigmask: Document the module.
47604         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47606 2011-07-07  Bruno Haible  <bruno@clisp.org>
47608         pthread_sigmask: Follow gnulib conventions.
47609         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
47610         gl_PTHREAD_SIGMASK.
47611         * modules/pthread_sigmask (configure.ac): Update.
47613 2011-07-07  Bruno Haible  <bruno@clisp.org>
47615         pthread_sigmask: Make declaration C++ safe.
47616         * lib/signal.in.h: In two special conditions, just do an #include_next.
47617         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47618         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
47619         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47620         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47621         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
47622         not REPLACE_PTHREAD_MASK.
47623         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
47624         not REPLACE_PTHREAD_MASK.
47625         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47627 2011-07-07  Bruno Haible  <bruno@clisp.org>
47629         pthread_sigmask: Fix return value.
47630         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
47631         * lib/pthread_sigmask.c: New file.
47632         * modules/pthread_sigmask (Files): Add it.
47633         (configure.ac): Invoke AC_LIBOBJ.
47635 2011-07-07  Eric Blake  <eblake@redhat.com>
47637         getopt: more portable argv creation
47638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
47639         const, use char arrays rather than strings.
47640         Suggested by Paul Eggert.
47642 2011-07-07  Bruno Haible  <bruno@clisp.org>
47644         Tests for module 'sigprocmask'.
47645         * modules/sigprocmask-tests: New file.
47646         * tests/test-sigprocmask.c: New file.
47648 2011-07-07  Bruno Haible  <bruno@clisp.org>
47650         float tests: Tweak.
47651         * tests/test-float.c (main): Tweak skip message.
47653 2011-07-07  Eric Blake  <eblake@redhat.com>
47655         getopt: avoid compiler warning during configure
47656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
47657         assigning string literals to non-const pointer.
47659         getopt-gnu: avoid crash in glibc getopt
47660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
47661         * tests/test-getopt.h (test_getopt): Enhance test.
47662         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47663         * doc/posix-functions/getopt.texi (getopt): Document it.
47664         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47665         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47666         Likewise.
47668 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47670         getopt: handle W; without long options in getopt [BZ #12922]
47671         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47672         but no long options are defined, just return 'W'.
47674 2011-07-07  Bruno Haible  <bruno@clisp.org>
47676         Avoid literal tabs.
47677         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47678         variable containing a tab instead of a literal tab.
47679         Reported by Jim Meyering.
47681 2011-07-07  Bruno Haible  <bruno@clisp.org>
47683         Comments.
47684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47686 2011-07-06  Bruno Haible  <bruno@clisp.org>
47688         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47689         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47690         <winsock2.h>.
47691         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47692         lib/sys_socket.in.h.
47693         (close, gethostname): Hide declarations from <winsock2.h>.
47694         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47695         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47696         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47697         (select): Don't override if gnulib's <sys/select.h> was already
47698         included.
47699         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47700         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47701         setsockopt, shutdown, select): Tweak indentation.
47703 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47705         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47706         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47707         in an application that does not use the sys_select module.
47709 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
47711         poll: do not return 0 on timeout=-1
47712         * lib/poll.c: Loop with yield if no events occurred.
47714 2011-07-06  Eric Blake  <eblake@redhat.com>
47716         pthread_sigmask: always replace when not using pthread
47717         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
47718         replacement when using some threading other than pthread.  Fix
47719         logic bug.
47721 2011-07-06  Bruno Haible  <bruno@clisp.org>
47723         Comments.
47724         * m4/printf.m4: Update comments about mingw.
47726 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47728         sys_select: define sigset_t more portably
47729         * lib/sys_select.in.h: Always include <sys/types.h>, since
47730         we now need sigset_t and mingw defines it there.
47731         Include <signal.h> before split inclusion guard, to avoid
47732         mishaps on Solaris, whose <signal.h> eventually includes us.
47733         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
47734         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
47735         which come from ...
47736         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47737         gl_CHECK_TYPE_SIGSET_T.
47738         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
47739         does the real work.
47740         * modules/sys_select (Depends-on): Add 'signal'.
47742         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
47743         Suggested by Bruno Haible.
47745         pselect: Use pthread_sigmask, not sigprocmask.
47746         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
47747         multithreaded apps better than sigprocmask does.
47748         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
47749         sigprocmask directly.
47751 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47753         * lib/pselect.c (pselect): Use plain name, without "rpl_".
47754         Don't #undef,  since we don't need any underlying pselect.
47755         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
47756         (Depends-on): Add select.
47757         (Link): Add $(LIBSOCKET).
47758         These changes suggested by Bruno Haible.
47760         pselect: document better
47761         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47762         * doc/posix-functions/pselect.texi (pselect): Document new module.
47764         pthread_sigmask: new module
47765         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47766         * doc/posix-functions/pthread_sigmask.texi: Document new module.
47767         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
47768         This is done only as a macro; I don't know how well that'll
47769         work for C++.  Move <sys/types.h> include before the include_next,
47770         to avoid mishap on Solaris.
47771         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
47772         * modules/signal (Makefile.am): Substitute the check's results.
47773         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
47775         test-pselect: new module
47776         * modules/pselect-tests, tests/test-pselect.c: New files.
47777         * tests/test-select.c, tests/test-sys_select-c++.cc:
47778         If TEST_PSELECT is defined, test pselect instead of testing select.
47780         * tests/test-sys_select.c (sigset_t): Test for it, too.
47781         Suggested by Bruno Haible.
47783 2011-07-05  Eric Blake  <eblake@redhat.com>
47785         snprintf: guarantee %1$d, for libintl
47786         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
47787         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47788         * doc/posix-functions/snprintf.texi (snprintf): Update.
47789         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47790         * tests/test-snprintf.c (main): Enhance test.
47791         * tests/test-vsnprintf.c (main): Likewise.
47793 2011-07-05  Jim Meyering  <meyering@redhat.com>
47795         maint: exempt stdio-read.c and stdio-write.c from the cppi check
47796         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
47797         per Bruno's request, to accommodate this idiom (no space after "#")
47798         even when the function is inside an #if block:
47799         char *
47800         gets (char *s)
47801         #undef gets
47802         {
47803           ...
47804         }
47806 2011-07-04  Jim Meyering  <meyering@redhat.com>
47808         maint: indent with spaces, not TABs, and add a rule to check this
47809         * tests/test-userspec.c: Indent with spaces, not TABs.
47810         * tests/test-argp.c: Likewise.
47811         * tests/test-c-stack2.sh: Likewise.
47812         * tests/test-parse-duration.sh: Likewise
47813         * m4/strtod.m4: Likewise.
47814         * m4/alloca.m4: Likewise.
47815         * m4/pselect.m4: Likewise.
47816         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47818 2011-07-03  Jim Meyering  <meyering@redhat.com>
47820         maint.mk: correct omissions in prohibit_argmatch_without_use check
47821         This rule would mistakenly report that argmatch.h is included without
47822         use even when both the argmatch and invalid_arg macro were used.
47823         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47824         of argmatch and invalid_arg.
47826 2011-07-03  Bruno Haible  <bruno@clisp.org>
47828         Comments about EINTR.
47829         * lib/safe-read.h: Explain the purpose of this module.
47830         * lib/safe-write.h: Likewise.
47831         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47832         module.
47833         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47834         module.
47835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47837 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47839         xnanosleep: Rewrite to use new dtotimespec module.
47840         It has the conversion code that used to be in xnanosleep.
47841         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47842         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47843         (TIME_T_MAX): Remove.
47844         (xnanosleep): Rewrite in terms of dtotimespec.
47845         * modules/xnanosleep (Depends-on): Add dtotimespec.
47846         Remove intprops, stdbool.
47848         timespec-add, timespec-sub: new modules
47849         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47850         * lib/timespec-add.c, lib/timespec-sub.c:
47851         * modules/timespec-add, modules/timespec-sub: New files.
47853         dtotimespec: new module
47854         * lib/timespec.h (dtotimespec): New decl.
47855         * lib/dtotimespec.c, modules/dtotimespec: New files.
47857         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47859         pselect: new module
47860         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47861         (pselect): New decls.
47862         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47863         since the standard pselect decl uses 'restrict'.
47864         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47865         HAVE_PSELECT, REPLACE_PSELECT.
47866         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47867         HAVE_PSELECT, REPLACE_PSELECT.
47868         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47870         sys_select: don't depend on sys_socket
47871         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47872         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47873         This fix works on GNU and GNU-like platforms, but has not been tested
47874         on native Windows.
47875         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47877         gl_HEADER_SYS_SOCKET.
47878         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47879         gl_PREREQ_SYS_H_WINSOCK2.
47881 2011-06-29  Eric Blake  <eblake@redhat.com>
47883         pipe2: fix C89 compile problem
47884         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47885         Reported by Bruno Haible.
47887         pipe, pipe2: don't corrupt fd on error
47888         * lib/pipe.c (pipe): Leave fd unchanged on error.
47889         * lib/pipe2.c (pipe2): Likewise.
47890         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47891         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47893 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47895         mmap-anon: do not use regular expressions inadvertently
47896         * m4/mmap-anon.m4: Remove trailing period from strings sought
47897         in the output.
47899 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47901         nanosleep: fix integer overflow problem
47902         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47903         arithmetic wraps around on overflow.
47905         nanosleep: simplify carrying
47906         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47907         first call to the underyling nanosleep, not for the last one.
47908         This doesn't fix any bugs, but it simplifies the computation of
47909         the remaining delay.  Found while auditing integer overflow issues.
47911         dup2: remove test for existence of fcntl
47912         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47913         "#if HAVE_FCNTL", in the configure-time test program.
47914         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47915         and therefore speeds up "configure" a bit.  Found while
47916         adding the dup2 module to Emacs.
47918 2011-06-24  Eric Blake  <eblake@redhat.com>
47920         maint.mk: enhance useless header checks
47921         * top/maint.mk (_sc_header_without_use): Check both include
47922         styles.
47923         (sc_prohibit_assert_without_use)
47924         (sc_prohibit_close_stream_without_use)
47925         (sc_prohibit_getopt_without_use)
47926         (sc_prohibit_quotearg_without_use)
47927         (sc_prohibit_quote_without_use)
47928         (sc_prohibit_long_options_without_use)
47929         (sc_prohibit_inttostr_without_use)
47930         (sc_prohibit_ignore_value_without_use)
47931         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47932         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47933         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47934         (sc_prohibit_hash_pjw_without_use)
47935         (sc_prohibit_safe_read_without_use)
47936         (sc_prohibit_argmatch_without_use)
47937         (sc_prohibit_canonicalize_without_use)
47938         (sc_prohibit_root_dev_ino_without_use)
47939         (sc_prohibit_openat_without_use)
47940         (sc_prohibit_c_ctype_without_use)
47941         (sc_prohibit_signal_without_use)
47942         (sc_prohibit_stdio--_without_use)
47943         (sc_prohibit_stdio-safer_without_use)
47944         (sc_prohibit_strings_without_use)
47945         (sc_prohibit_intprops_without_use)
47946         (sc_prohibit_stddef_without_use)
47947         (sc_prohibit_xfreopen_without_use): Update clients.
47949 2011-06-24  Jim Meyering  <meyering@redhat.com>
47951         syntax-check: keep one maint.mk rule in sync with its header
47952         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47953         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47954         I prefer to avoid temporary files here, so use <(...), but that
47955         is not supported by /bin/sh, so...
47956         (SHELL): Define to /bin/bash.
47958 2011-06-24  Eric Blake  <eblake@redhat.com>
47960         maint.mk: update sc_prohibit_intprops_without_use
47961         * top/maint.mk (_intprops_names): Match recent changes.
47963 2011-06-24  Bruno Haible  <bruno@clisp.org>
47965         strerror-override: No-op tweak.
47966         * lib/strerror-override.h (strerror_override): Reorder conditions,
47967         for consistency with lib/strerror-override.c.
47969 2011-06-23  Eric Blake  <eblake@redhat.com>
47971         maint.mk: test further PATH_MAX issues
47972         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47973         (sc_prohibit_path_max_allocation): ...and also test alloca.
47974         Suggested by Jim Meyering.
47976 2011-06-22  Eric Blake  <eblake@redhat.com>
47978         maint.mk: add syntax-check to avoid char[PATH_MAX]
47979         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47981         stat: be robust to PATH_MAX definition
47982         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47983         * modules/stat (Depends-on): Add verify.
47985         link: work around IRIX bug
47986         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47987         * lib/link.c (rpl_link): Work around it.
47988         * tests/test-link.h (test_link): Enhance test.
47989         * doc/posix-functions/link.texi (link): Document the bug.
47991         getopt: silence clang warning
47992         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47993         dereference.
47994         Reported by Gustavo Martin Domato.
47996 2011-06-22  Jim Meyering  <meyering@redhat.com>
47998         bootstrap: do not insert a blank line into each .gitignore file
47999         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
48001 2011-06-21  Eric Blake  <eblake@redhat.com>
48003         perror: test for output mismatch
48004         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
48005         perror on IRIX.
48007         strerror_r: fix OpenBSD behavior on out-of-range
48008         * lib/strerror_r.c (strerror_r): Always use maximal string.
48009         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
48011         strerror_r: fix OpenBSD behavior on 0
48012         * lib/strerror-override.c (strerror_override): Also override 0
48013         when needed.
48014         * lib/strerror-override.h (strerror_override): Likewise.
48015         * lib/strerror.c (strerror): Simplify, now that 0 override is done
48016         earlier.
48017         * lib/strerror_r.c (strerror_r): Likewise.
48018         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
48019         behavior...
48020         (gl_FUNC_STRERROR_0): ...into new macro.
48021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
48022         is overridden.
48023         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
48024         * modules/strerror-override (Files): Add strerror.m4.
48025         (configure.ac): Also provide override for 0 when needed.
48026         * doc/posix-functions/strerror.texi (strerror): Document this.
48027         * doc/posix-functions/perror.texi (perror): Likewise.
48029         perror: adjust array size
48030         * modules/perror (Depends-on): Add strerror-override.
48031         * lib/perror.c (perror): Use it to avoid magic number.
48033         strerror-override: reduce size
48034         * lib/strerror-override.c (strerror_override): Use fewer lines.
48036 2011-06-20  Bruno Haible  <bruno@clisp.org>
48038         pathmax: Ensure correct value for PATH_MAX on HP-UX.
48039         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
48041 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48043         alloca: port to compilers that can optimize like GCC 4.6.0
48044         * lib/alloca.c (find_stack_direction): New signature, taken from
48045         Autoconf git.  This works with GCC 4.6.0.  This code should never
48046         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
48047         be used with other compilers that optimize as well as GCC 4.6.0 does.
48048         (alloca): Adjust to new signature.
48049         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
48050         New macro, which patches Autoconf in a similar way.
48052         c-stack: stop worrying about stack direction
48053         * lib/c-stack.c (find_stack_direction): Remove.
48054         (segv_handler): Don't worry about stack direction growth, as it's
48055         too much of a pain to configure this correctly, given how compilers
48056         are optimizing-away our stack-growth detection code.  Instead, assume
48057         that any access to just before or just after the stack is OK.
48058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
48059         Don't require AC_FUNC_ALLOCA; no longer needed.
48061 2011-06-20  Eric Blake  <eblake@redhat.com>
48063         test-stat: don't allocate PATH_MAX bytes
48064         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
48065         PATH_MAX-sized buffer.
48066         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
48067         * modules/stat-tests (Depends-on): Likewise.
48068         * tests/test-fstatat.c (includes): Drop pathmax.h.
48069         * tests/test-stat.c (includes): Likewise.
48070         Reported by Bruno Haible.
48072 2011-06-20  Bruno Haible  <bruno@clisp.org>
48074         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
48075         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
48076         * lib/float.c: New file.
48077         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
48078         REPLACE_FLOAT_LDBL.
48079         * modules/float (Files): Add lib/float.c.
48080         (configure.ac): Invoke AC_LIBOBJ.
48081         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
48083 2011-06-20  Bruno Haible  <bruno@clisp.org>
48085         Tests for module 'float'.
48086         * modules/float-tests: New file.
48087         * tests/test-float.c: New file.
48089 2011-06-19  Bruno Haible  <bruno@clisp.org>
48091         isinf: Coding style.
48092         * lib/isinf.c: Use GNU coding style.
48094 2011-06-19  Bruno Haible  <bruno@clisp.org>
48096         linkat test: Avoid test failure on AIX 7.1.
48097         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
48098         * tests/test-link.h (test_link): Likewise.
48100 2011-06-19  Bruno Haible  <bruno@clisp.org>
48102         pread test: Avoid test failure on OpenBSD 4.9.
48103         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
48105 2011-06-19  Bruno Haible  <bruno@clisp.org>
48107         sprintf-posix: Fix test failure on AIX 7.1.
48108         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
48109         * doc/posix-functions/dprintf.texi: Mention limited precision problem
48110         on AIX.
48111         * doc/posix-functions/fprintf.texi: Likewise.
48112         * doc/posix-functions/printf.texi: Likewise.
48113         * doc/posix-functions/snprintf.texi: Likewise.
48114         * doc/posix-functions/sprintf.texi: Likewise.
48115         * doc/posix-functions/vdprintf.texi: Likewise.
48116         * doc/posix-functions/vfprintf.texi: Likewise.
48117         * doc/posix-functions/vprintf.texi: Likewise.
48118         * doc/posix-functions/vsnprintf.texi: Likewise.
48119         * doc/posix-functions/vsprintf.texi: Likewise.
48121 2011-06-19  Bruno Haible  <bruno@clisp.org>
48123         roundl-ieee: Fix test failure on AIX 7.1.
48124         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
48125         * doc/posix-functions/roundl.texi: Mention problem with negative
48126         arguments.
48128 2011-06-19  Bruno Haible  <bruno@clisp.org>
48130         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48131         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
48132         * doc/posix-functions/round.texi: Mention problem with negative
48133         arguments.
48134         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
48136 2011-06-19  Bruno Haible  <bruno@clisp.org>
48138         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
48140         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
48141         * doc/posix-functions/roundf.texi: Mention problem with negative
48142         arguments.
48143         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
48145 2011-06-19  Bruno Haible  <bruno@clisp.org>
48147         ceilf-ieee: Work around bug on MacOS X 10.5.
48148         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
48150         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
48151         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
48152         IEEE compliant, avoid compiler optimizations.
48153         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
48154         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48155         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
48156         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48157         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48158         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48159         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48161         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48164 2011-06-19  Bruno Haible  <bruno@clisp.org>
48166         ceilf-ieee: Work around bug on AIX 7.1.
48167         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
48168         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
48170 2011-06-19  Bruno Haible  <bruno@clisp.org>
48172         ceil-ieee: Work around bug on AIX 7.1.
48173         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
48174         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
48176 2011-06-18  Bruno Haible  <bruno@clisp.org>
48178         fsync test: Avoid test failure on MacOS X and AIX.
48179         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
48180         EINVAL.
48182 2011-06-18  Bruno Haible  <bruno@clisp.org>
48184         openat, fdopendir tests: Fix link errors.
48185         * modules/openat-tests (Depends-on): Add progname.
48186         * modules/fdopendir-tests (Depends-on): Likewise.
48187         * tests/test-fchownat.c: Include progname.h.
48188         (main): Call set_program_name.
48189         * tests/test-fstatat.c: Include progname.h.
48190         (main): Call set_program_name.
48191         * tests/test-mkdirat.c: Include progname.h.
48192         (main): Call set_program_name.
48193         * tests/test-openat.c: Include progname.h.
48194         (main): Call set_program_name.
48195         * tests/test-unlinkat.c: Include progname.h.
48196         (main): Call set_program_name.
48197         * tests/test-fdopendir.c: Include progname.h.
48198         (main): Call set_program_name.
48200 2011-06-18  Bruno Haible  <bruno@clisp.org>
48202         Doc update.
48203         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
48204         HP-UX.
48205         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
48207 2011-06-18  Bruno Haible  <bruno@clisp.org>
48209         getcwd tests: Avoid compilation error on HP-UX 11.31.
48210         * modules/getcwd-tests (Depends-on): Add pathmax.
48211         * tests/test-getcwd.c: Include pathmax.h.
48213 2011-06-18  Bruno Haible  <bruno@clisp.org>
48215         isfinite, isinf: Fix link error on AIX 6 and 7.
48216         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
48217         needed, also test the macro with a 'float' argument.
48218         * m4/isinf.m4 (gl_ISINF): Likewise.
48220 2011-06-18  Bruno Haible  <bruno@clisp.org>
48222         getloadavg: Don't clobber LIBS. Regression from previous commit.
48223         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
48224         AC_CHECK_LIB from here...
48225         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
48226         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
48227         gl_func_getloadavg_done.
48228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48230 2011-06-18  Bruno Haible  <bruno@clisp.org>
48232         clean-temp: Improve documentation.
48233         * lib/clean-temp.h: Explain better how to use this module.
48234         Reported by John Darrington <john@darrington.wattle.id.au>.
48236 2011-06-17  Bruno Haible  <bruno@clisp.org>
48238         pread, pwrite: Avoid cc warning on AIX.
48239         * lib/unistd.in.h (pread): Undefine before defining as a macro.
48240         (pwrite): Likewise.
48242 2011-06-17  Bruno Haible  <bruno@clisp.org>
48244         spawn-pipe tests: Fix link error.
48245         * tests/test-spawn-pipe-child.c: Undefine fprintf.
48246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48248 2011-06-17  Bruno Haible  <bruno@clisp.org>
48250         Tests: Remove unnecessary dependency.
48251         * modules/canonicalize-tests (Depends-on): Remove progname.
48252         * modules/chown-tests (Depends-on): Likewise.
48253         * modules/dirname-tests (Depends-on): Likewise.
48254         * modules/fdopendir-tests (Depends-on): Likewise.
48255         * modules/fdutimensat-tests (Depends-on): Likewise.
48256         * modules/hash-tests (Depends-on): Likewise.
48257         * modules/lchown-tests (Depends-on): Likewise.
48258         * modules/linkat-tests (Depends-on): Likewise.
48259         * modules/renameat-tests (Depends-on): Likewise.
48260         * modules/spawn-pipe-tests (Depends-on): Likewise.
48261         * modules/utimensat-tests (Depends-on): Likewise.
48263 2011-06-17  Bruno Haible  <bruno@clisp.org>
48265         spawn-pipe tests: Fix link error.
48266         * tests/test-spawn-pipe-child.c: Undefine fflush.
48268 2011-06-17  Bruno Haible  <bruno@clisp.org>
48270         Fix tests link errors.
48271         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
48272         * modules/chown-tests (Makefile.am): Don't link test-chown with
48273         LIBINTL.
48274         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
48275         LIBINTL.
48276         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
48277         LIBINTL.
48278         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
48279         LIBINTL.
48281 2011-06-16  Bruno Haible  <bruno@clisp.org>
48283         crypto/gc-sha1: Fix recent regression.
48284         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
48285         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
48287         crypto/gc-md5: Fix recent regression.
48288         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
48290         crypto/gc-md4: Fix recent regression.
48291         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
48292         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
48294         crypto/gc-arctwo: Fix recent regression.
48295         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
48296         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
48298         crypto/gc-rijndael: Fix recent regression.
48299         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
48300         (configure.ac): Invoke AC_LIBOBJ here.
48301         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
48302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48304         crypto/gc-hmac-sha1: Fix recent regression.
48305         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
48306         (configure.ac): Invoke AC_LIBOBJ here.
48307         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
48308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48310         crypto/gc-hmac-md5: Fix recent regression.
48311         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
48312         (configure.ac): Invoke AC_LIBOBJ here.
48313         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
48314         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48316         crypto/gc-des: Fix recent regression.
48317         * modules/crypto/gc-des (Files): Remove m4/des.m4.
48318         (configure.ac): Invoke AC_LIBOBJ here.
48319         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
48320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48322         crypto/gc-arcfour: Fix recent regression.
48323         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
48324         (configure.ac): Invoke AC_LIBOBJ here.
48325         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
48326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48328 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
48330         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
48331         After the 2011-05-21 change, this macro requires
48332         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
48333         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48335 2011-06-16  Bruno Haible  <bruno@clisp.org>
48337         fprintftime: Move AC_LIBOBJ invocations to module description.
48338         * m4/fprintftime.m4: Remove file.
48339         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
48340         (configure.ac): Remove gl_FPRINTFTIME call.
48341         (Makefile.am): Augment lib_SOURCES.
48342         Reported by Jim Meyering.
48344 2011-06-16  Bruno Haible  <bruno@clisp.org>
48346         tmpfile-safer: Finish 2011-05-23 commit.
48347         * m4/stdio-safer.m4: Really remove file.
48348         Reported by Jim Meyering.
48350 2011-06-16  Bruno Haible  <bruno@clisp.org>
48352         syntax-check: Fix typo.
48353         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
48354         printf-posix.m4.
48355         Reported by Jim Meyering.
48357 2011-06-13  Jim Meyering  <meyering@redhat.com>
48359         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
48360         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
48362 2011-05-23  Bruno Haible  <bruno@clisp.org>
48364         yesno: Move AC_LIBOBJ invocations to module description.
48365         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
48366         * modules/yesno (Makefile.am): Augment lib_SOURCES.
48368 2011-05-23  Bruno Haible  <bruno@clisp.org>
48370         xstrtol: Move AC_LIBOBJ invocations to module description.
48371         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
48372         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
48374 2011-05-23  Bruno Haible  <bruno@clisp.org>
48376         xstrtold: Move AC_LIBOBJ invocations to module description.
48377         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
48378         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
48380 2011-05-23  Bruno Haible  <bruno@clisp.org>
48382         xstrtod: Move AC_LIBOBJ invocations to module description.
48383         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
48384         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
48386 2011-05-23  Bruno Haible  <bruno@clisp.org>
48388         xnanosleep: Move AC_LIBOBJ invocations to module description.
48389         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
48390         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
48392 2011-05-23  Bruno Haible  <bruno@clisp.org>
48394         xgetcwd: Move AC_LIBOBJ invocations to module description.
48395         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
48396         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
48398 2011-05-23  Bruno Haible  <bruno@clisp.org>
48400         xalloc: Move AC_LIBOBJ invocations to module description.
48401         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
48402         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
48404 2011-05-23  Bruno Haible  <bruno@clisp.org>
48406         write-any-file: Move AC_LIBOBJ invocations to module description.
48407         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
48408         invocation.
48409         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
48411 2011-05-23  Bruno Haible  <bruno@clisp.org>
48413         utimens: Move AC_LIBOBJ invocations to module description.
48414         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
48415         * modules/utimens (Makefile.am): Augment lib_SOURCES.
48417 2011-05-23  Bruno Haible  <bruno@clisp.org>
48419         utimecmp: Move AC_LIBOBJ invocations to module description.
48420         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
48421         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
48423 2011-05-23  Bruno Haible  <bruno@clisp.org>
48425         userspec: Move AC_LIBOBJ invocations to module description.
48426         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
48427         * modules/userspec (Makefile.am): Augment lib_SOURCES.
48429 2011-05-23  Bruno Haible  <bruno@clisp.org>
48431         unlinkdir: Move AC_LIBOBJ invocations to module description.
48432         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
48433         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
48435 2011-05-23  Bruno Haible  <bruno@clisp.org>
48437         unistd-safer: Move AC_LIBOBJ invocations to module description.
48438         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
48439         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
48441 2011-05-23  Bruno Haible  <bruno@clisp.org>
48443         tempname: Move AC_LIBOBJ invocations to module description.
48444         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
48445         * modules/tempname (Makefile.am): Augment lib_SOURCES.
48447 2011-05-23  Bruno Haible  <bruno@clisp.org>
48449         strftime: Move AC_LIBOBJ invocations to module description.
48450         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
48451         * modules/strftime (Makefile.am): Augment lib_SOURCES.
48453 2011-05-23  Bruno Haible  <bruno@clisp.org>
48455         stdlib-safer: Move AC_LIBOBJ invocations to module description.
48456         * m4/stdlib-safer.m4: Remove file.
48457         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
48458         (configure.ac): Remove gl_STDLIB_SAFER call.
48459         (Makefile.am): Augment lib_SOURCES.
48461 2011-05-23  Bruno Haible  <bruno@clisp.org>
48463         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
48464         * m4/stdio-safer.m4: Remove file.
48465         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
48466         (configure.ac): Remove gl_TMPFILE_SAFER call.
48467         (Makefile.am): Augment lib_SOURCES.
48469 2011-05-23  Bruno Haible  <bruno@clisp.org>
48471         popen-safer: Move AC_LIBOBJ invocations to module description.
48472         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
48473         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
48474         (configure.ac): Remove gl_POPEN_SAFER call.
48475         (Makefile.am): Augment lib_SOURCES.
48477 2011-05-23  Bruno Haible  <bruno@clisp.org>
48479         freopen-safer: Move AC_LIBOBJ invocations to module description.
48480         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
48481         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
48482         (configure.ac): Remove gl_FREOPEN_SAFER call.
48483         (Makefile.am): Augment lib_SOURCES.
48485 2011-05-23  Bruno Haible  <bruno@clisp.org>
48487         fopen-safer: Move AC_LIBOBJ invocations to module description.
48488         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
48489         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
48490         (configure.ac): Remove gl_FOPEN_SAFER call.
48491         (Makefile.am): Augment lib_SOURCES.
48493 2011-05-23  Bruno Haible  <bruno@clisp.org>
48495         crypto/sha512: Move AC_LIBOBJ invocations to module description.
48496         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
48497         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
48499 2011-05-23  Bruno Haible  <bruno@clisp.org>
48501         crypto/sha256: Move AC_LIBOBJ invocations to module description.
48502         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
48503         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
48505 2011-05-23  Bruno Haible  <bruno@clisp.org>
48507         crypto/sha1: Move AC_LIBOBJ invocations to module description.
48508         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
48509         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
48511 2011-05-23  Bruno Haible  <bruno@clisp.org>
48513         settime: Move AC_LIBOBJ invocations to module description.
48514         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
48515         * modules/settime (Makefile.am): Augment lib_SOURCES.
48517 2011-05-23  Bruno Haible  <bruno@clisp.org>
48519         savedir: Move AC_LIBOBJ invocations to module description.
48520         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
48521         * modules/savedir (Makefile.am): Augment lib_SOURCES.
48523 2011-05-23  Bruno Haible  <bruno@clisp.org>
48525         save-cwd: Move AC_LIBOBJ invocations to module description.
48526         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
48527         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
48529 2011-05-23  Bruno Haible  <bruno@clisp.org>
48531         same: Move AC_LIBOBJ invocations to module description.
48532         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
48533         * modules/same (Makefile.am): Augment lib_SOURCES.
48535 2011-05-23  Bruno Haible  <bruno@clisp.org>
48537         safe-write: Move AC_LIBOBJ invocations to module description.
48538         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
48539         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
48540         instead of gl_SAFE_WRITE.
48541         (Makefile.am): Augment lib_SOURCES.
48543 2011-05-23  Bruno Haible  <bruno@clisp.org>
48545         safe-read: Move AC_LIBOBJ invocations to module description.
48546         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
48547         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
48548         of gl_SAFE_READ.
48549         (Makefile.am): Augment lib_SOURCES.
48551 2011-05-23  Bruno Haible  <bruno@clisp.org>
48553         safe-alloc: Move AC_LIBOBJ invocations to module description.
48554         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
48555         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
48557 2011-05-23  Bruno Haible  <bruno@clisp.org>
48559         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
48560         * m4/rijndael.m4: Remove file.
48561         * modules/crypto/rijndael (Files): Remove it.
48562         (configure.ac): Remove gl_RIJNDAEL call.
48563         (Makefile.am): Augment lib_SOURCES.
48565 2011-05-23  Bruno Haible  <bruno@clisp.org>
48567         readtokens: Move AC_LIBOBJ invocations to module description.
48568         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
48569         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48571 2011-05-23  Bruno Haible  <bruno@clisp.org>
48573         read-file: Move AC_LIBOBJ invocations to module description.
48574         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
48575         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
48576         of gl_FUNC_READ_FILE.
48577         (Makefile.am): Augment lib_SOURCES.
48579 2011-05-23  Bruno Haible  <bruno@clisp.org>
48581         quotearg: Move AC_LIBOBJ invocations to module description.
48582         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
48583         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
48585 2011-05-23  Bruno Haible  <bruno@clisp.org>
48587         quote: Move AC_LIBOBJ invocations to module description.
48588         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
48589         * modules/quote (Makefile.am): Augment lib_SOURCES.
48591 2011-05-23  Bruno Haible  <bruno@clisp.org>
48593         posixver: Move AC_LIBOBJ invocations to module description.
48594         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
48595         * modules/posixver (Makefile.am): Augment lib_SOURCES.
48597 2011-05-23  Bruno Haible  <bruno@clisp.org>
48599         posixtm: Move AC_LIBOBJ invocations to module description.
48600         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
48601         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
48603 2011-05-23  Bruno Haible  <bruno@clisp.org>
48605         physmem: Move AC_LIBOBJ invocations to module description.
48606         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
48607         * modules/physmem (Makefile.am): Augment lib_SOURCES.
48609 2011-05-23  Bruno Haible  <bruno@clisp.org>
48611         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
48612         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
48613         invocation.
48614         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
48616 2011-05-23  Bruno Haible  <bruno@clisp.org>
48618         mpsort: Move AC_LIBOBJ invocations to module description.
48619         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
48620         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
48622 2011-05-23  Bruno Haible  <bruno@clisp.org>
48624         modechange: Move AC_LIBOBJ invocations to module description.
48625         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
48626         * modules/modechange (Makefile.am): Augment lib_SOURCES.
48628 2011-05-23  Bruno Haible  <bruno@clisp.org>
48630         mkdir-p: Move AC_LIBOBJ invocations to module description.
48631         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
48632         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
48634 2011-05-23  Bruno Haible  <bruno@clisp.org>
48636         mkancesdirs: Move AC_LIBOBJ invocations to module description.
48637         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
48638         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
48640 2011-05-23  Bruno Haible  <bruno@clisp.org>
48642         mgetgroups: Move AC_LIBOBJ invocations to module description.
48643         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
48644         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
48646 2011-05-23  Bruno Haible  <bruno@clisp.org>
48648         memxor: Move AC_LIBOBJ invocations to module description.
48649         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
48650         * modules/memxor (Makefile.am): Augment lib_SOURCES.
48652 2011-05-23  Bruno Haible  <bruno@clisp.org>
48654         memcoll: Move AC_LIBOBJ invocations to module description.
48655         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
48656         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
48658 2011-05-23  Bruno Haible  <bruno@clisp.org>
48660         memcasecmp: Move AC_LIBOBJ invocations to module description.
48661         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
48662         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48664 2011-05-23  Bruno Haible  <bruno@clisp.org>
48666         crypto/md5: Move AC_LIBOBJ invocations to module description.
48667         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48668         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48670 2011-05-23  Bruno Haible  <bruno@clisp.org>
48672         crypto/md4: Move AC_LIBOBJ invocations to module description.
48673         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48674         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48676 2011-05-23  Bruno Haible  <bruno@clisp.org>
48678         crypto/md2: Move AC_LIBOBJ invocations to module description.
48679         * m4/md2.m4: Remove file.
48680         * modules/crypto/md2 (Files): Remove it.
48681         (configure.ac): Remove gl_MD2 call.
48682         (Makefile.am): Augment lib_SOURCES.
48684 2011-05-23  Bruno Haible  <bruno@clisp.org>
48686         long-options: Move AC_LIBOBJ invocations to module description.
48687         * m4/long-options.m4: Remove file.
48688         * modules/long-options (Files): Remove it.
48689         (configure.ac): Remove gl_LONG_OPTIONS call.
48690         (Makefile.am): Augment lib_SOURCES.
48692 2011-05-23  Bruno Haible  <bruno@clisp.org>
48694         i-ring: Move AC_LIBOBJ invocations to module description.
48695         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48696         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48698 2011-05-23  Bruno Haible  <bruno@clisp.org>
48700         idcache: Move AC_LIBOBJ invocations to module description.
48701         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48702         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48704 2011-05-23  Bruno Haible  <bruno@clisp.org>
48706         human: Move AC_LIBOBJ invocations to module description.
48707         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
48708         * modules/human (Makefile.am): Augment lib_SOURCES.
48710 2011-05-23  Bruno Haible  <bruno@clisp.org>
48712         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
48713         * m4/hmac-sha1.m4: Remove file.
48714         * modules/crypto/hmac-sha1 (Files): Remove it.
48715         (configure.ac): Remove gl_HMAC_SHA1 call.
48716         (Makefile.am): Augment lib_SOURCES.
48718 2011-05-23  Bruno Haible  <bruno@clisp.org>
48720         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
48721         * m4/hmac-md5.m4: Remove file.
48722         * modules/crypto/hmac-md5 (Files): Remove it.
48723         (configure.ac): Remove gl_HMAC_MD5 call.
48724         (Makefile.am): Augment lib_SOURCES.
48726 2011-05-23  Bruno Haible  <bruno@clisp.org>
48728         hash: Move AC_LIBOBJ invocations to module description.
48729         * m4/hash.m4: Remove file.
48730         * modules/hash (Files): Remove it.
48731         (configure.ac): Remove gl_HASH call.
48732         (Makefile.am): Augment lib_SOURCES.
48734 2011-05-23  Bruno Haible  <bruno@clisp.org>
48736         hard-locale: Move AC_LIBOBJ invocations to module description.
48737         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
48738         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
48740 2011-05-23  Bruno Haible  <bruno@clisp.org>
48742         getugroups: Move AC_LIBOBJ invocations to module description.
48743         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
48744         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
48746 2011-05-23  Bruno Haible  <bruno@clisp.org>
48748         gettime: Move AC_LIBOBJ invocations to module description.
48749         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
48750         * modules/gettime (Makefile.am): Augment lib_SOURCES.
48752 2011-05-23  Bruno Haible  <bruno@clisp.org>
48754         getndelim2: Move AC_LIBOBJ invocations to module description.
48755         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
48756         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48758 2011-05-23  Bruno Haible  <bruno@clisp.org>
48760         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
48761         * m4/gc-pbkdf2-sha1.m4: Remove file.
48762         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
48763         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
48764         (Makefile.am): Augment lib_SOURCES.
48766 2011-05-23  Bruno Haible  <bruno@clisp.org>
48768         fts: Move AC_LIBOBJ invocations to module description.
48769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
48770         * modules/fts (configure.ac): ... to here.
48772 2011-05-23  Bruno Haible  <bruno@clisp.org>
48774         file-type: Move AC_LIBOBJ invocations to module description.
48775         * m4/file-type.m4: Remove file.
48776         * modules/file-type (Files): Remove it.
48777         (configure.ac): Remove gl_FILE_TYPE call.
48778         (Makefile.am): Augment lib_SOURCES.
48780 2011-05-23  Bruno Haible  <bruno@clisp.org>
48782         filenamecat*: Respect rules for use of AC_LIBOBJ.
48783         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
48784         Remove AC_LIBOBJ invocation.
48785         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
48786         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
48788 2011-05-23  Bruno Haible  <bruno@clisp.org>
48790         filemode: Move AC_LIBOBJ invocations to module description.
48791         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
48792         * modules/filemode (Makefile.am): Augment lib_SOURCES.
48794 2011-05-23  Bruno Haible  <bruno@clisp.org>
48796         openat-safer: Move AC_LIBOBJ invocations to module description.
48797         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
48798         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
48800 2011-05-23  Bruno Haible  <bruno@clisp.org>
48802         fcntl-safer: Move AC_LIBOBJ invocations to module description.
48803         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
48804         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48806 2011-05-23  Bruno Haible  <bruno@clisp.org>
48808         exclude: Move AC_LIBOBJ invocations to module description.
48809         * m4/exclude.m4: Remove file.
48810         * modules/exclude (Files): Remove it.
48811         (configure.ac): Remove gl_EXCLUDE call.
48812         (Makefile.am): Augment lib_SOURCES.
48814 2011-05-23  Bruno Haible  <bruno@clisp.org>
48816         dirname*: Respect rules for use of AC_LIBOBJ.
48817         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48818         invocations.
48819         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48820         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48822 2011-05-23  Bruno Haible  <bruno@clisp.org>
48824         dirent-safer: Move AC_LIBOBJ invocations to module description.
48825         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48826         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48828 2011-05-23  Bruno Haible  <bruno@clisp.org>
48830         crypto/des: Move AC_LIBOBJ invocations to module description.
48831         * m4/des.m4: Remove file.
48832         * modules/crypto/des (Files): Remove it.
48833         (configure.ac): Remove gl_DES call.
48834         (Makefile.am): Augment lib_SOURCES.
48836 2011-05-23  Bruno Haible  <bruno@clisp.org>
48838         cycle-check: Move AC_LIBOBJ invocations to module description.
48839         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48840         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48842 2011-05-23  Bruno Haible  <bruno@clisp.org>
48844         c-strtold: Move AC_LIBOBJ invocations to module description.
48845         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48846         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48848 2011-05-23  Bruno Haible  <bruno@clisp.org>
48850         c-strtod: Move AC_LIBOBJ invocations to module description.
48851         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48852         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48854 2011-05-23  Bruno Haible  <bruno@clisp.org>
48856         crc: Move AC_LIBOBJ invocations to module description.
48857         * m4/crc.m4: Remove file.
48858         * modules/crc (Files): Remove it.
48859         (configure.ac): Remove gl_CRC call.
48860         (Makefile.am): Augment lib_SOURCES.
48862 2011-05-23  Bruno Haible  <bruno@clisp.org>
48864         close-stream: Move AC_LIBOBJ invocations to module description.
48865         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48866         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48868 2011-05-23  Bruno Haible  <bruno@clisp.org>
48870         closeout: Move AC_LIBOBJ invocations to module description.
48871         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48872         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48874 2011-05-23  Bruno Haible  <bruno@clisp.org>
48876         closein: Move AC_LIBOBJ invocations to module description.
48877         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48878         * modules/closein (Makefile.am): Augment lib_SOURCES.
48880 2011-05-23  Bruno Haible  <bruno@clisp.org>
48882         cloexec: Move AC_LIBOBJ invocations to module description.
48883         * m4/cloexec.m4: Remove file.
48884         * modules/cloexec (Files): Remove it.
48885         (configure.ac): Remove gl_CLOEXEC call.
48886         (Makefile.am): Augment lib_SOURCES.
48888 2011-05-23  Bruno Haible  <bruno@clisp.org>
48890         check-version: Move AC_LIBOBJ invocations to module description.
48891         * m4/check-version.m4: Remove file.
48892         * modules/check-version (Files): Remove it.
48893         (configure.ac): Remove gl_CHECK_VERSION call.
48894         (Makefile.am): Augment lib_SOURCES.
48896 2011-05-23  Bruno Haible  <bruno@clisp.org>
48898         chdir-safer: Move AC_LIBOBJ invocations to module description.
48899         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48900         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48902 2011-05-23  Bruno Haible  <bruno@clisp.org>
48904         canonicalize: Move AC_LIBOBJ invocations to module description.
48905         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48906         AC_LIBOBJ invocation.
48907         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48909 2011-05-23  Bruno Haible  <bruno@clisp.org>
48911         canon-host: Move AC_LIBOBJ invocations to module description.
48912         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48913         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48914         instead of gl_CANON_HOST.
48915         (Makefile.am): Augment lib_SOURCES.
48917 2011-05-23  Bruno Haible  <bruno@clisp.org>
48919         backupfile: Move AC_LIBOBJ invocations to module description.
48920         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48921         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48923 2011-05-23  Bruno Haible  <bruno@clisp.org>
48925         argmatch: Move AC_LIBOBJ invocations to module description.
48926         * m4/argmatch.m4: Remove file.
48927         * modules/argmatch (Files): Remove it.
48928         (configure.ac): Remove gl_ARGMATCH call.
48929         (Makefile.am): Augment lib_SOURCES.
48931 2011-05-23  Bruno Haible  <bruno@clisp.org>
48933         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48934         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48935         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48937 2011-05-23  Bruno Haible  <bruno@clisp.org>
48939         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48940         * m4/arcfour.m4: Remove file.
48941         * modules/crypto/arcfour (Files): Remove it.
48942         (configure.ac): Remove gl_ARCFOUR call.
48943         (Makefile.am): Augment lib_SOURCES.
48945 2011-05-22  Bruno Haible  <bruno@clisp.org>
48947         write: Move AC_LIBOBJ invocations to module description.
48948         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48949         * modules/write (configure.ac): ... to here.
48951 2011-05-22  Bruno Haible  <bruno@clisp.org>
48953         wmemset: Move AC_LIBOBJ invocations to module description.
48954         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48955         here...
48956         * modules/wmemset (configure.ac): ... to here.
48958 2011-05-22  Bruno Haible  <bruno@clisp.org>
48960         wmemmove: Move AC_LIBOBJ invocations to module description.
48961         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48962         here...
48963         * modules/wmemmove (configure.ac): ... to here.
48965 2011-05-22  Bruno Haible  <bruno@clisp.org>
48967         wmemcpy: Move AC_LIBOBJ invocations to module description.
48968         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48969         here...
48970         * modules/wmemcpy (configure.ac): ... to here.
48972 2011-05-22  Bruno Haible  <bruno@clisp.org>
48974         wmemcmp: Move AC_LIBOBJ invocations to module description.
48975         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48976         here...
48977         * modules/wmemcmp (configure.ac): ... to here.
48979 2011-05-22  Bruno Haible  <bruno@clisp.org>
48981         wmemchr: Move AC_LIBOBJ invocations to module description.
48982         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48983         here...
48984         * modules/wmemchr (configure.ac): ... to here.
48986 2011-05-22  Bruno Haible  <bruno@clisp.org>
48988         wcswidth: Move AC_LIBOBJ invocations to module description.
48989         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48990         here...
48991         * modules/wcswidth (configure.ac): ... to here.
48993 2011-05-22  Bruno Haible  <bruno@clisp.org>
48995         wcwidth: Respect rules for use of AC_LIBOBJ.
48996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48997         invocation from here...
48998         * modules/wcwidth (configure.ac): ... to here.
48999         (Depends-on): Update conditions.
49001 2011-05-22  Bruno Haible  <bruno@clisp.org>
49003         wctype: Move AC_LIBOBJ invocations to module description.
49004         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
49005         invocation from here...
49006         * modules/wctype (configure.ac): ... to here.
49007         (Depends-on): Update conditions.
49009 2011-05-22  Bruno Haible  <bruno@clisp.org>
49011         wctrans: Move AC_LIBOBJ invocations to module description.
49012         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
49013         invocation from here...
49014         * modules/wctrans (configure.ac): ... to here.
49016 2011-05-22  Bruno Haible  <bruno@clisp.org>
49018         wctomb: Move AC_LIBOBJ invocations to module description.
49019         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
49020         invocations from here...
49021         * modules/wctomb (configure.ac): ... to here.
49023 2011-05-22  Bruno Haible  <bruno@clisp.org>
49025         wctob: Move AC_LIBOBJ invocations to module description.
49026         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
49027         gl_PREREQ_WCTOB invocations from here...
49028         * modules/wctob (configure.ac): ... to here.
49029         (Depends-on): Update conditions.
49031 2011-05-22  Bruno Haible  <bruno@clisp.org>
49033         wcsxfrm: Move AC_LIBOBJ invocations to module description.
49034         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
49035         here...
49036         * modules/wcsxfrm (configure.ac): ... to here.
49038 2011-05-22  Bruno Haible  <bruno@clisp.org>
49040         wcstok: Move AC_LIBOBJ invocations to module description.
49041         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
49042         * modules/wcstok (configure.ac): ... to here.
49044 2011-05-22  Bruno Haible  <bruno@clisp.org>
49046         wcsstr: Move AC_LIBOBJ invocations to module description.
49047         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
49048         * modules/wcsstr (configure.ac): ... to here.
49050 2011-05-22  Bruno Haible  <bruno@clisp.org>
49052         wcsspn: Move AC_LIBOBJ invocations to module description.
49053         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
49054         * modules/wcsspn (configure.ac): ... to here.
49056 2011-05-22  Bruno Haible  <bruno@clisp.org>
49058         wcsrtombs: Move AC_LIBOBJ invocations to module description.
49059         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
49060         gl_PREREQ_WCSRTOMBS invocations from here...
49061         * modules/wcsrtombs (configure.ac): ... to here.
49063 2011-05-22  Bruno Haible  <bruno@clisp.org>
49065         wcsrchr: Move AC_LIBOBJ invocations to module description.
49066         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
49067         here...
49068         * modules/wcsrchr (configure.ac): ... to here.
49070 2011-05-22  Bruno Haible  <bruno@clisp.org>
49072         wcspbrk: Move AC_LIBOBJ invocations to module description.
49073         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
49074         here...
49075         * modules/wcspbrk (configure.ac): ... to here.
49077 2011-05-22  Bruno Haible  <bruno@clisp.org>
49079         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
49080         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
49081         gl_PREREQ_WCSNRTOMBS invocations from here...
49082         * modules/wcsnrtombs (configure.ac): ... to here.
49084 2011-05-22  Bruno Haible  <bruno@clisp.org>
49086         wcsnlen: Move AC_LIBOBJ invocations to module description.
49087         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
49088         here...
49089         * modules/wcsnlen (configure.ac): ... to here.
49091 2011-05-22  Bruno Haible  <bruno@clisp.org>
49093         wcsncpy: Move AC_LIBOBJ invocations to module description.
49094         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
49095         here...
49096         * modules/wcsncpy (configure.ac): ... to here.
49098 2011-05-22  Bruno Haible  <bruno@clisp.org>
49100         wcsncmp: Move AC_LIBOBJ invocations to module description.
49101         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
49102         here...
49103         * modules/wcsncmp (configure.ac): ... to here.
49105 2011-05-22  Bruno Haible  <bruno@clisp.org>
49107         wcsncat: Move AC_LIBOBJ invocations to module description.
49108         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
49109         here...
49110         * modules/wcsncat (configure.ac): ... to here.
49112 2011-05-22  Bruno Haible  <bruno@clisp.org>
49114         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
49115         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
49116         from here...
49117         * modules/wcsncasecmp (configure.ac): ... to here.
49119 2011-05-22  Bruno Haible  <bruno@clisp.org>
49121         wcslen: Move AC_LIBOBJ invocations to module description.
49122         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
49123         * modules/wcslen (configure.ac): ... to here.
49125 2011-05-22  Bruno Haible  <bruno@clisp.org>
49127         wcsdup: Move AC_LIBOBJ invocations to module description.
49128         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
49129         * modules/wcsdup (configure.ac): ... to here.
49131 2011-05-22  Bruno Haible  <bruno@clisp.org>
49133         wcscspn: Move AC_LIBOBJ invocations to module description.
49134         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
49135         here...
49136         * modules/wcscspn (configure.ac): ... to here.
49138 2011-05-22  Bruno Haible  <bruno@clisp.org>
49140         wcscpy: Move AC_LIBOBJ invocations to module description.
49141         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
49142         * modules/wcscpy (configure.ac): ... to here.
49144 2011-05-22  Bruno Haible  <bruno@clisp.org>
49146         wcscoll: Move AC_LIBOBJ invocations to module description.
49147         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
49148         here...
49149         * modules/wcscoll (configure.ac): ... to here.
49151 2011-05-22  Bruno Haible  <bruno@clisp.org>
49153         wcscmp: Move AC_LIBOBJ invocations to module description.
49154         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
49155         * modules/wcscmp (configure.ac): ... to here.
49157 2011-05-22  Bruno Haible  <bruno@clisp.org>
49159         wcschr: Move AC_LIBOBJ invocations to module description.
49160         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
49161         * modules/wcschr (configure.ac): ... to here.
49163 2011-05-22  Bruno Haible  <bruno@clisp.org>
49165         wcscat: Move AC_LIBOBJ invocations to module description.
49166         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
49167         * modules/wcscat (configure.ac): ... to here.
49169 2011-05-22  Bruno Haible  <bruno@clisp.org>
49171         wcscasecmp: Move AC_LIBOBJ invocations to module description.
49172         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
49173         here...
49174         * modules/wcscasecmp (configure.ac): ... to here.
49176 2011-05-22  Bruno Haible  <bruno@clisp.org>
49178         wcrtomb: Move AC_LIBOBJ invocations to module description.
49179         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
49180         invocations from here...
49181         * modules/wcrtomb (configure.ac): ... to here.
49183 2011-05-22  Bruno Haible  <bruno@clisp.org>
49185         wcpncpy: Move AC_LIBOBJ invocations to module description.
49186         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
49187         here...
49188         * modules/wcpncpy (configure.ac): ... to here.
49190 2011-05-22  Bruno Haible  <bruno@clisp.org>
49192         wcpcpy: Move AC_LIBOBJ invocations to module description.
49193         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
49194         * modules/wcpcpy (configure.ac): ... to here.
49196 2011-05-22  Bruno Haible  <bruno@clisp.org>
49198         waitpid: Move AC_LIBOBJ invocations to module description.
49199         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
49200         invocation from here...
49201         * modules/waitpid (configure.ac): ... to here.
49203 2011-05-22  Bruno Haible  <bruno@clisp.org>
49205         utimensat: Move AC_LIBOBJ invocations to module description.
49206         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
49207         here...
49208         * modules/utimensat (configure.ac): ... to here.
49210 2011-05-22  Bruno Haible  <bruno@clisp.org>
49212         usleep: Move AC_LIBOBJ invocations to module description.
49213         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
49214         here...
49215         * modules/usleep (configure.ac): ... to here.
49217 2011-05-22  Bruno Haible  <bruno@clisp.org>
49219         unlockpt: Move AC_LIBOBJ invocations to module description.
49220         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
49221         gl_PREREQ_UNLOCKPT invocations from here...
49222         * modules/unlockpt (configure.ac): ... to here.
49224 2011-05-22  Bruno Haible  <bruno@clisp.org>
49226         unlink: Respect rules for use of AC_LIBOBJ.
49227         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
49228         * modules/unlink (configure.ac): ... to here.
49230 2011-05-22  Bruno Haible  <bruno@clisp.org>
49232         uname: Move AC_LIBOBJ invocations to module description.
49233         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
49234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
49235         here...
49236         * modules/uname (configure.ac): ... to here.
49238 2011-05-22  Bruno Haible  <bruno@clisp.org>
49240         ttyname_r: Move AC_LIBOBJ invocations to module description.
49241         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
49242         gl_PREREQ_TTYNAME_R invocations from here...
49243         * modules/ttyname_r (configure.ac): ... to here.
49245 2011-05-22  Bruno Haible  <bruno@clisp.org>
49247         tsearch: Move AC_LIBOBJ invocations to module description.
49248         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
49249         invocations from here...
49250         * modules/tsearch (configure.ac): ... to here.
49252 2011-05-22  Bruno Haible  <bruno@clisp.org>
49254         towctrans: Move AC_LIBOBJ invocations to module description.
49255         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
49256         AC_LIBOBJ invocation from here...
49257         * modules/towctrans (configure.ac): ... to here.
49259 2011-05-22  Bruno Haible  <bruno@clisp.org>
49261         tmpfile: Move AC_LIBOBJ invocations to module description.
49262         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
49263         invocations from here...
49264         * modules/tmpfile (configure.ac): ... to here.
49266 2011-05-22  Bruno Haible  <bruno@clisp.org>
49268         times: Move AC_LIBOBJ invocations to module description.
49269         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
49270         * modules/times (configure.ac): ... to here.
49272 2011-05-22  Bruno Haible  <bruno@clisp.org>
49274         time_r: Move AC_LIBOBJ invocations to module description.
49275         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
49276         invocations from here...
49277         * modules/time_r (configure.ac): ... to here.
49279 2011-05-22  Bruno Haible  <bruno@clisp.org>
49281         timegm: Move AC_LIBOBJ invocations to module description.
49282         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
49283         invocations from here...
49284         * modules/timegm (configure.ac): ... to here.
49286 2011-05-22  Bruno Haible  <bruno@clisp.org>
49288         tcgetsid: Move AC_LIBOBJ invocations to module description.
49289         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
49290         and gl_PREREQ_TCGETSID invocations from here...
49291         * modules/tcgetsid (configure.ac): ... to here.
49292         (Depends-on): Update conditions.
49294 2011-05-22  Bruno Haible  <bruno@clisp.org>
49296         symlinkat: Move AC_LIBOBJ invocations to module description.
49297         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
49298         here...
49299         * modules/symlinkat (configure.ac): ... to here.
49301 2011-05-22  Bruno Haible  <bruno@clisp.org>
49303         symlink: Move AC_LIBOBJ invocations to module description.
49304         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
49305         here...
49306         * modules/symlink (configure.ac): ... to here.
49308 2011-05-22  Bruno Haible  <bruno@clisp.org>
49310         strverscmp: Move AC_LIBOBJ invocations to module description.
49311         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
49312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
49313         from here...
49314         * modules/strverscmp (configure.ac): ... to here.
49316 2011-05-22  Bruno Haible  <bruno@clisp.org>
49318         strtok_r: Move AC_LIBOBJ invocations to module description.
49319         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
49320         and gl_PREREQ_STRTOK_R invocations from here...
49321         * modules/strtok_r (configure.ac): ... to here.
49322         (Depends-on): Update conditions.
49324 2011-05-22  Bruno Haible  <bruno@clisp.org>
49326         strtoumax: Move AC_LIBOBJ invocations to module description.
49327         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
49328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
49329         from here...
49330         * modules/strtoumax (configure.ac): ... to here.
49332 2011-05-22  Bruno Haible  <bruno@clisp.org>
49334         strtoimax: Move AC_LIBOBJ invocations to module description.
49335         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
49336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
49337         from here...
49338         * modules/strtoimax (configure.ac): ... to here.
49340 2011-05-22  Bruno Haible  <bruno@clisp.org>
49342         strtoull: Move AC_LIBOBJ invocations to module description.
49343         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
49344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
49345         from here...
49346         * modules/strtoull (configure.ac): ... to here.
49348 2011-05-22  Bruno Haible  <bruno@clisp.org>
49350         strtoll: Move AC_LIBOBJ invocations to module description.
49351         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
49352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
49353         here...
49354         * modules/strtoll (configure.ac): ... to here.
49356 2011-05-22  Bruno Haible  <bruno@clisp.org>
49358         strtoul: Move AC_LIBOBJ invocations to module description.
49359         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
49360         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49361         * modules/strtoul (configure.ac): ... to here.
49363 2011-05-22  Bruno Haible  <bruno@clisp.org>
49365         strtol: Move AC_LIBOBJ invocations to module description.
49366         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
49367         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49368         * modules/strtol (configure.ac): ... to here.
49370 2011-05-22  Bruno Haible  <bruno@clisp.org>
49372         strtod: Move AC_LIBOBJ invocations to module description.
49373         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
49374         invocations from here...
49375         * modules/strtod (configure.ac): ... to here.
49377 2011-05-22  Bruno Haible  <bruno@clisp.org>
49379         strstr*: Move AC_LIBOBJ invocations to module description.
49380         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
49381         invocations from here...
49382         * modules/strstr-simple (configure.ac): ... to here.
49383         * modules/strstr (configure.ac): ... and here.
49385 2011-05-22  Bruno Haible  <bruno@clisp.org>
49387         strsignal: Move AC_LIBOBJ invocations to module description.
49388         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
49389         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
49390         * modules/strsignal (configure.ac): ... to here.
49391         (Depends-on): Update conditions.
49393 2011-05-22  Bruno Haible  <bruno@clisp.org>
49395         strsep: Move AC_LIBOBJ invocations to module description.
49396         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
49397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
49398         here...
49399         * modules/strsep (configure.ac): ... to here.
49401 2011-05-22  Bruno Haible  <bruno@clisp.org>
49403         strptime: Move AC_LIBOBJ invocations to module description.
49404         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
49405         gl_PREREQ_STRPTIME invocations from here...
49406         * modules/strptime (configure.ac): ... to here.
49408 2011-05-22  Bruno Haible  <bruno@clisp.org>
49410         strpbrk: Move AC_LIBOBJ invocations to module description.
49411         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
49412         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
49413         here...
49414         * modules/strpbrk (configure.ac): ... to here.
49416 2011-05-22  Bruno Haible  <bruno@clisp.org>
49418         strnlen: Move AC_LIBOBJ invocations to module description.
49419         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
49420         invocations from here...
49421         * modules/strnlen (configure.ac): ... to here.
49423 2011-05-22  Bruno Haible  <bruno@clisp.org>
49425         strndup: Move AC_LIBOBJ invocations to module description.
49426         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
49427         invocations from here...
49428         * modules/strndup (configure.ac): ... to here.
49429         (Depends-on): Update conditions.
49431 2011-05-22  Bruno Haible  <bruno@clisp.org>
49433         strncat: Move AC_LIBOBJ invocations to module description.
49434         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
49435         invocations from here...
49436         * modules/strncat (configure.ac): ... to here.
49438 2011-05-22  Bruno Haible  <bruno@clisp.org>
49440         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
49441         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
49442         invocations from here...
49443         * modules/strdup (configure.ac): ... to here.
49444         * modules/strdup-posix (configure.ac): ... and here.
49446 2011-05-22  Bruno Haible  <bruno@clisp.org>
49448         strcspn: Move AC_LIBOBJ invocations to module description.
49449         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
49450         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
49451         here...
49452         * modules/strcspn (configure.ac): ... to here.
49454 2011-05-22  Bruno Haible  <bruno@clisp.org>
49456         strchrnul: Move AC_LIBOBJ invocations to module description.
49457         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
49458         gl_PREREQ_STRCHRNUL invocations from here...
49459         * modules/strchrnul (configure.ac): ... to here.
49461 2011-05-22  Bruno Haible  <bruno@clisp.org>
49463         strcasestr*: Move AC_LIBOBJ invocations to module description.
49464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
49465         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
49466         * modules/strcasestr-simple (configure.ac): ... to here.
49467         * modules/strcasestr (configure.ac): ... and here.
49469 2011-05-22  Bruno Haible  <bruno@clisp.org>
49471         strcase: Move AC_LIBOBJ invocations to module description.
49472         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
49473         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
49474         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
49475         gl_PREREQ_STRNCASECMP invocations from here...
49476         * modules/strcase (configure.ac): ... to here.
49478 2011-05-22  Bruno Haible  <bruno@clisp.org>
49480         stpncpy: Move AC_LIBOBJ invocations to module description.
49481         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
49482         here...
49483         * modules/stpncpy (configure.ac): ... to here.
49485 2011-05-22  Bruno Haible  <bruno@clisp.org>
49487         stpcpy: Move AC_LIBOBJ invocations to module description.
49488         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
49489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
49490         here...
49491         * modules/stpcpy (configure.ac): ... to here.
49493 2011-05-21  Bruno Haible  <bruno@clisp.org>
49495         stat: Move AC_LIBOBJ invocations to module description.
49496         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
49497         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
49498         here...
49499         * modules/stat (configure.ac): ... to here.
49501 2011-05-21  Bruno Haible  <bruno@clisp.org>
49503         sleep: Move AC_LIBOBJ invocations to module description.
49504         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
49505         * modules/sleep (configure.ac): ... to here.
49507 2011-05-21  Bruno Haible  <bruno@clisp.org>
49509         signbit: Move AC_LIBOBJ invocations to module description.
49510         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
49511         * modules/signbit (configure.ac): ... to here.
49513 2011-05-21  Bruno Haible  <bruno@clisp.org>
49515         sigprocmask: Move AC_LIBOBJ invocations to module description.
49516         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
49517         gl_PREREQ_SIGPROMASK invocations from here...
49518         * modules/sigprocmask (configure.ac): ... to here.
49520 2011-05-21  Bruno Haible  <bruno@clisp.org>
49522         sigaction: Move AC_LIBOBJ invocations to module description.
49523         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
49524         gl_PREREQ_SIGACTION invocations from here...
49525         * modules/sigaction (configure.ac): ... to here.
49527 2011-05-21  Bruno Haible  <bruno@clisp.org>
49529         sig2str: Move AC_LIBOBJ invocations to module description.
49530         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
49531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
49532         here...
49533         * modules/sig2str (configure.ac): ... to here.
49535 2011-05-21  Bruno Haible  <bruno@clisp.org>
49537         setlocale: Move AC_LIBOBJ invocations to module description.
49538         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
49539         gl_PREREQ_SETLOCALE invocations from here...
49540         * modules/setlocale (configure.ac): ... to here.
49542 2011-05-21  Bruno Haible  <bruno@clisp.org>
49544         unsetenv: Move AC_LIBOBJ invocations to module description.
49545         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
49546         and gl_PREREQ_UNSETENV invocations from here...
49547         * modules/unsetenv (configure.ac): ... to here.
49548         (Depends-on): Update.
49550 2011-05-21  Bruno Haible  <bruno@clisp.org>
49552         setenv: Move AC_LIBOBJ invocations to module description.
49553         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
49554         here...
49555         * modules/setenv (configure.ac): ... to here.
49557 2011-05-21  Bruno Haible  <bruno@clisp.org>
49559         selinux-h: Move AC_LIBOBJ invocations to module description.
49560         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
49561         AC_LIBOBJ invocation from here...
49562         * modules/selinux-h (configure.ac): ... to here.
49564 2011-05-21  Bruno Haible  <bruno@clisp.org>
49566         select: Respect rules for use of AC_LIBOBJ.
49567         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
49568         here...
49569         * modules/select (configure.ac): ... to here.
49571 2011-05-21  Bruno Haible  <bruno@clisp.org>
49573         scandir: Move AC_LIBOBJ invocations to module description.
49574         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
49575         invocations from here...
49576         * modules/scandir (configure.ac): ... to here.
49578 2011-05-21  Bruno Haible  <bruno@clisp.org>
49580         rpmatch: Move AC_LIBOBJ invocations to module description.
49581         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
49582         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
49583         here...
49584         * modules/rpmatch (configure.ac): ... to here.
49586 2011-05-21  Bruno Haible  <bruno@clisp.org>
49588         rmdir: Respect rules for use of AC_LIBOBJ.
49589         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49590         * modules/rmdir (configure.ac): ... to here.
49592 2011-05-21  Bruno Haible  <bruno@clisp.org>
49594         renameat: Move AC_LIBOBJ invocations to module description.
49595         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
49596         here...
49597         * modules/renameat (configure.ac): ... to here.
49599 2011-05-21  Bruno Haible  <bruno@clisp.org>
49601         rename: Respect rules for use of AC_LIBOBJ.
49602         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
49603         here...
49604         * modules/rename (configure.ac): ... to here.
49606 2011-05-21  Bruno Haible  <bruno@clisp.org>
49608         remove: Move AC_LIBOBJ invocations to module description.
49609         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
49610         here...
49611         * modules/remove (configure.ac): ... to here.
49613 2011-05-21  Bruno Haible  <bruno@clisp.org>
49615         relocatable-lib: Move AC_LIBOBJ invocations to module description.
49616         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
49617         macro.
49618         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
49619         * modules/relocatable-lib (configure.ac): ... to here.
49620         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49621         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
49623 2011-05-21  Bruno Haible  <bruno@clisp.org>
49625         relocatable-prog: Move AC_LIBOBJ invocations to module description.
49626         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
49627         here...
49628         * modules/relocatable-prog (configure.ac): ... to here.
49630 2011-05-21  Bruno Haible  <bruno@clisp.org>
49632         regex: Move AC_LIBOBJ invocations to module description.
49633         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
49634         invocations from here...
49635         * modules/regex (configure.ac): ... to here.
49637 2011-05-21  Bruno Haible  <bruno@clisp.org>
49639         realloc-*: Move AC_LIBOBJ invocations to module description.
49640         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
49641         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
49642         AC_LIBOBJ invocations from here...
49643         * modules/realloc-gnu (configure.ac): ... to here.
49644         * modules/realloc-posix (configure.ac): ... and here.
49646 2011-05-21  Bruno Haible  <bruno@clisp.org>
49648         readutmp: Move AC_LIBOBJ invocations to module description.
49649         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
49650         * modules/readutmp (configure.ac): ... to here.
49652 2011-05-21  Bruno Haible  <bruno@clisp.org>
49654         readlinkat: Move AC_LIBOBJ invocations to module description.
49655         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
49656         here...
49657         * modules/readlinkat (configure.ac): ... to here.
49659 2011-05-21  Bruno Haible  <bruno@clisp.org>
49661         readlink: Move AC_LIBOBJ invocations to module description.
49662         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
49663         gl_PREREQ_READLINK invocations from here...
49664         * modules/readlink (configure.ac): ... to here.
49666 2011-05-21  Bruno Haible  <bruno@clisp.org>
49668         readline: Move AC_LIBOBJ invocations to module description.
49669         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49670         gl_PREREQ_READLINE invocations from here...
49671         * modules/readline (configure.ac): ... to here.
49673 2011-05-21  Bruno Haible  <bruno@clisp.org>
49675         read: Move AC_LIBOBJ invocations to module description.
49676         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49677         * modules/read (configure.ac): ... to here.
49679 2011-05-21  Bruno Haible  <bruno@clisp.org>
49681         rawmemchr: Move AC_LIBOBJ invocations to module description.
49682         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49684         from here...
49685         * modules/rawmemchr (configure.ac): ... to here.
49687 2011-05-21  Bruno Haible  <bruno@clisp.org>
49689         random_r: Move AC_LIBOBJ invocations to module description.
49690         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49691         gl_PREREQ_RANDOM_R invocations from here...
49692         * modules/random_r (configure.ac): ... to here.
49694 2011-05-21  Bruno Haible  <bruno@clisp.org>
49696         pwrite: Move AC_LIBOBJ invocations to module description.
49697         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49698         * modules/pwrite (configure.ac): ... to here.
49700 2011-05-21  Bruno Haible  <bruno@clisp.org>
49702         putenv: Move AC_LIBOBJ invocations to module description.
49703         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49704         * modules/putenv (configure.ac): ... to here.
49706 2011-05-21  Bruno Haible  <bruno@clisp.org>
49708         login_tty: Move AC_LIBOBJ invocations to module description.
49709         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
49710         * modules/login_tty (configure.ac): ... to here.
49712 2011-05-21  Bruno Haible  <bruno@clisp.org>
49714         openpty: Move AC_LIBOBJ invocations to module description.
49715         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
49716         * modules/openpty (configure.ac): ... to here.
49718 2011-05-21  Bruno Haible  <bruno@clisp.org>
49720         forkpty: Move AC_LIBOBJ invocations to module description.
49721         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
49722         * modules/forkpty (configure.ac): ... to here.
49724 2011-05-21  Bruno Haible  <bruno@clisp.org>
49726         ptsname: Move AC_LIBOBJ invocations to module description.
49727         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
49728         invocations from here...
49729         * modules/ptsname (configure.ac): ... to here.
49731 2011-05-21  Bruno Haible  <bruno@clisp.org>
49733         pread: Move AC_LIBOBJ invocations to module description.
49734         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
49735         * modules/pread (configure.ac): ... to here.
49737 2011-05-21  Bruno Haible  <bruno@clisp.org>
49739         posix_spawn*: Move AC_LIBOBJ invocations to module description.
49740         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
49741         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
49742         * modules/posix_spawn (configure.ac): ... to here.
49743         * modules/posix_spawnp (configure.ac): ... and here.
49745 2011-05-21  Bruno Haible  <bruno@clisp.org>
49747         popen: Move AC_LIBOBJ invocations to module description.
49748         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
49749         invocations from here...
49750         * modules/popen (configure.ac): ... to here.
49752 2011-05-21  Bruno Haible  <bruno@clisp.org>
49754         poll: Move AC_LIBOBJ invocations to module description.
49755         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
49756         invocations from here...
49757         * modules/poll (configure.ac): ... to here.
49759 2011-05-21  Bruno Haible  <bruno@clisp.org>
49761         pipe-posix: Move AC_LIBOBJ invocations to module description.
49762         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
49763         * modules/pipe-posix (configure.ac): ... to here.
49765 2011-05-21  Bruno Haible  <bruno@clisp.org>
49767         openat: Respect rules for use of AC_LIBOBJ.
49768         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
49769         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49770         * modules/openat (configure.ac): ... to here.
49772 2011-05-21  Bruno Haible  <bruno@clisp.org>
49774         obstack-printf*: Move AC_LIBOBJ invocations to module description.
49775         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
49776         invocation from here...
49777         * modules/obstack-printf (configure.ac): ... to here.
49778         * modules/obstack-printf-posix (configure.ac): ... and here.
49780 2011-05-21  Bruno Haible  <bruno@clisp.org>
49782         nl_langinfo: Move AC_LIBOBJ invocations to module description.
49783         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
49784         from here...
49785         * modules/nl_langinfo (configure.ac): ... to here.
49787 2011-05-21  Bruno Haible  <bruno@clisp.org>
49789         nanosleep: Move AC_LIBOBJ invocations to module description.
49790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
49791         gl_PREREQ_NANOSLEEP invocations from here...
49792         * modules/nanosleep (configure.ac): ... to here.
49794 2011-05-21  Bruno Haible  <bruno@clisp.org>
49796         mountlist: Move AC_LIBOBJ invocations to module description.
49797         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
49798         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
49799         * modules/mountlist (configure.ac): ... to here.
49801 2011-05-21  Bruno Haible  <bruno@clisp.org>
49803         mktime: Respect rules for use of AC_LIBOBJ.
49804         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
49805         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49806         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49807         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49808         * modules/mktime (configure.ac): ... to here.
49809         * modules/mktime-internal (configure.ac): ... and here.
49810         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49812 2011-05-21  Bruno Haible  <bruno@clisp.org>
49814         mkstemps: Move AC_LIBOBJ invocations to module description.
49815         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49816         here...
49817         * modules/mkstemps (configure.ac): ... to here.
49819 2011-05-21  Bruno Haible  <bruno@clisp.org>
49821         mkstemp: Move AC_LIBOBJ invocations to module description.
49822         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49823         gl_PREREQ_MKSTEMP invocations from here...
49824         * modules/mkstemp (configure.ac): ... to here.
49826 2011-05-21  Bruno Haible  <bruno@clisp.org>
49828         mkostemps: Move AC_LIBOBJ invocations to module description.
49829         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49830         here...
49831         * modules/mkostemps (configure.ac): ... to here.
49833 2011-05-21  Bruno Haible  <bruno@clisp.org>
49835         mkostemp: Move AC_LIBOBJ invocations to module description.
49836         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49837         gl_PREREQ_MKOSTEMP invocations from here...
49838         * modules/mkostemp (configure.ac): ... to here.
49840 2011-05-21  Bruno Haible  <bruno@clisp.org>
49842         mknod: Move AC_LIBOBJ invocations to module description.
49843         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49844         * modules/mknod (configure.ac): ... to here.
49846 2011-05-21  Bruno Haible  <bruno@clisp.org>
49848         mkfifoat: Move AC_LIBOBJ invocations to module description.
49849         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49850         here...
49851         * modules/mkfifoat (configure.ac): ... to here.
49853 2011-05-21  Bruno Haible  <bruno@clisp.org>
49855         mkfifo: Respect rules for use of AC_LIBOBJ.
49856         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49857         here...
49858         * modules/mkfifo (configure.ac): ... to here.
49860 2011-05-21  Bruno Haible  <bruno@clisp.org>
49862         mkdtemp: Move AC_LIBOBJ invocations to module description.
49863         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49864         invocations from here...
49865         * modules/mkdtemp (configure.ac): ... to here.
49867 2011-05-21  Bruno Haible  <bruno@clisp.org>
49869         mkdir: Move AC_LIBOBJ invocations to module description.
49870         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49871         * modules/mkdir (configure.ac): ... to here.
49873 2011-05-21  Bruno Haible  <bruno@clisp.org>
49875         memset: Move AC_LIBOBJ invocations to module description.
49876         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49878         here...
49879         * modules/memset (configure.ac): ... to here.
49881 2011-05-21  Bruno Haible  <bruno@clisp.org>
49883         memrchr: Move AC_LIBOBJ invocations to module description.
49884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49885         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49886         here...
49887         * modules/memrchr (configure.ac): ... to here.
49889 2011-05-21  Bruno Haible  <bruno@clisp.org>
49891         mempcpy: Move AC_LIBOBJ invocations to module description.
49892         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49894         here...
49895         * modules/mempcpy (configure.ac): ... to here.
49897 2011-05-21  Bruno Haible  <bruno@clisp.org>
49899         memmove: Move AC_LIBOBJ invocations to module description.
49900         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49902         here...
49903         * modules/memmove (configure.ac): ... to here.
49905 2011-05-21  Bruno Haible  <bruno@clisp.org>
49907         memmem*: Move AC_LIBOBJ invocations to module description.
49908         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49909         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49910         here...
49911         (gl_FUNC_MEMMEM): ... and here...
49912         * modules/memmem-simple (configure.ac): ... to here.
49913         * modules/memmem (configure.ac): ... and here.
49915 2011-05-21  Bruno Haible  <bruno@clisp.org>
49917         memcpy: Move AC_LIBOBJ invocations to module description.
49918         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49920         here...
49921         * modules/memcpy (configure.ac): ... to here.
49923 2011-05-21  Bruno Haible  <bruno@clisp.org>
49925         memcmp: Simplify autoconf macro.
49926         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49927         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49928         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49930 2011-05-21  Bruno Haible  <bruno@clisp.org>
49932         memcmp: Move AC_LIBOBJ invocations to module description.
49933         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49934         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49935         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49936         * modules/memcmp (configure.ac): ... to here.
49937         (Depends-on): Update conditions.
49939 2011-05-21  Bruno Haible  <bruno@clisp.org>
49941         memchr: Respect rules for use of AC_LIBOBJ.
49942         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49943         invocations from here...
49944         * modules/memchr (configure.ac): ... to here.
49946 2011-05-21  Bruno Haible  <bruno@clisp.org>
49948         mbtowc: Move AC_LIBOBJ invocations to module description.
49949         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49950         invocations from here...
49951         * modules/mbtowc (configure.ac): ... to here.
49953 2011-05-21  Bruno Haible  <bruno@clisp.org>
49955         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49956         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49957         gl_PREREQ_MBSRTOWCS invocations from here...
49958         * modules/mbsrtowcs (configure.ac): ... to here.
49960 2011-05-21  Bruno Haible  <bruno@clisp.org>
49962         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49963         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49964         gl_PREREQ_MBSNRTOWCS invocations from here...
49965         * modules/mbsnrtowcs (configure.ac): ... to here.
49967 2011-05-21  Bruno Haible  <bruno@clisp.org>
49969         mbsinit: Move AC_LIBOBJ invocations to module description.
49970         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49971         invocations from here...
49972         * modules/mbsinit (configure.ac): ... to here.
49974 2011-05-21  Bruno Haible  <bruno@clisp.org>
49976         mbrlen: Move AC_LIBOBJ invocations to module description.
49977         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49978         invocations from here...
49979         * modules/mbrlen (configure.ac): ... to here.
49981 2011-05-21  Bruno Haible  <bruno@clisp.org>
49983         mbrtowc: Respect rules for use of AC_LIBOBJ.
49984         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49985         invocations from here...
49986         * modules/mbrtowc (configure.ac): ... to here.
49988 2011-05-21  Bruno Haible  <bruno@clisp.org>
49990         malloc-*: Move AC_LIBOBJ invocations to module description.
49991         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49992         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49993         AC_LIBOBJ invocations from here...
49994         * modules/malloc-gnu (configure.ac): ... to here.
49995         * modules/malloc-posix (configure.ac): ... and here.
49997 2011-05-21  Bruno Haible  <bruno@clisp.org>
49999         lstat, openat: Respect rules for use of AC_LIBOBJ.
50000         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
50001         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
50002         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
50003         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
50004         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
50005         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
50006         here.
50007         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
50009 2011-05-21  Bruno Haible  <bruno@clisp.org>
50011         lseek: Move AC_LIBOBJ invocations to module description.
50012         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
50013         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50014         * modules/lseek (configure.ac): ... to here.
50016 2011-05-21  Bruno Haible  <bruno@clisp.org>
50018         linkat: Move AC_LIBOBJ invocations to module description.
50019         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
50020         here...
50021         * modules/linkat (configure.ac): ... to here.
50023 2011-05-21  Bruno Haible  <bruno@clisp.org>
50025         link: Respect rules for use of AC_LIBOBJ.
50026         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
50027         * modules/link (configure.ac): ... to here.
50029 2011-05-21  Bruno Haible  <bruno@clisp.org>
50031         lchown: Move AC_LIBOBJ invocations to module description.
50032         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50033         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50034         * modules/lchown (configure.ac): ... to here.
50036 2011-05-21  Bruno Haible  <bruno@clisp.org>
50038         iswctype: Move AC_LIBOBJ invocations to module description.
50039         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
50040         here...
50041         * modules/iswctype (configure.ac): ... to here.
50043 2011-05-21  Bruno Haible  <bruno@clisp.org>
50045         iswblank: Move AC_LIBOBJ invocations to module description.
50046         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
50047         here...
50048         * modules/iswblank (configure.ac): ... to here.
50050 2011-05-21  Bruno Haible  <bruno@clisp.org>
50052         atanl: Move AC_LIBOBJ invocations to module description.
50053         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
50054         * modules/atanl (configure.ac): ... to here.
50056 2011-05-21  Bruno Haible  <bruno@clisp.org>
50058         acosl: Move AC_LIBOBJ invocations to module description.
50059         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
50060         * modules/acosl (configure.ac): ... to here.
50062 2011-05-21  Bruno Haible  <bruno@clisp.org>
50064         asinl: Respect rules for use of AC_LIBOBJ.
50065         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
50066         * modules/asinl (configure.ac): ... to here.
50068 2011-05-21  Bruno Haible  <bruno@clisp.org>
50070         tanl: Move AC_LIBOBJ invocations to module description.
50071         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
50072         * modules/tanl (configure.ac): ... to here.
50074 2011-05-21  Bruno Haible  <bruno@clisp.org>
50076         cosl: Move AC_LIBOBJ invocations to module description.
50077         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
50078         * modules/cosl (configure.ac): ... to here.
50080 2011-05-21  Bruno Haible  <bruno@clisp.org>
50082         sinl: Move AC_LIBOBJ invocations to module description.
50083         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
50084         * modules/sinl (configure.ac): ... to here.
50086 2011-05-21  Bruno Haible  <bruno@clisp.org>
50088         logl: Move AC_LIBOBJ invocations to module description.
50089         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
50090         * modules/logl (configure.ac): ... to here.
50092 2011-05-21  Bruno Haible  <bruno@clisp.org>
50094         expl: Move AC_LIBOBJ invocations to module description.
50095         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
50096         * modules/expl (configure.ac): ... to here.
50098 2011-05-21  Bruno Haible  <bruno@clisp.org>
50100         roundl: Move AC_LIBOBJ invocations to module description.
50101         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
50102         * modules/roundl (configure.ac): ... to here.
50104 2011-05-21  Bruno Haible  <bruno@clisp.org>
50106         round: Move AC_LIBOBJ invocations to module description.
50107         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
50108         * modules/round (configure.ac): ... to here.
50110 2011-05-21  Bruno Haible  <bruno@clisp.org>
50112         roundf: Move AC_LIBOBJ invocations to module description.
50113         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
50114         * modules/roundf (configure.ac): ... to here.
50116 2011-05-21  Bruno Haible  <bruno@clisp.org>
50118         truncl: Move AC_LIBOBJ invocations to module description.
50119         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
50120         * modules/truncl (configure.ac): ... to here.
50122 2011-05-21  Bruno Haible  <bruno@clisp.org>
50124         trunc: Move AC_LIBOBJ invocations to module description.
50125         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
50126         * modules/trunc (configure.ac): ... to here.
50128 2011-05-21  Bruno Haible  <bruno@clisp.org>
50130         truncf: Move AC_LIBOBJ invocations to module description.
50131         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
50132         * modules/truncf (configure.ac): ... to here.
50134 2011-05-21  Bruno Haible  <bruno@clisp.org>
50136         ceill: Move AC_LIBOBJ invocations to module description.
50137         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
50138         * modules/ceill (configure.ac): ... to here.
50140 2011-05-21  Bruno Haible  <bruno@clisp.org>
50142         ceil: Move AC_LIBOBJ invocations to module description.
50143         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
50144         * modules/ceil (configure.ac): ... to here.
50146 2011-05-21  Bruno Haible  <bruno@clisp.org>
50148         ceilf: Move AC_LIBOBJ invocations to module description.
50149         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
50150         * modules/ceilf (configure.ac): ... to here.
50152 2011-05-21  Bruno Haible  <bruno@clisp.org>
50154         floorl: Respect rules for use of AC_LIBOBJ.
50155         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
50156         * modules/floorl (configure.ac): ... to here.
50158 2011-05-21  Bruno Haible  <bruno@clisp.org>
50160         floor: Respect rules for use of AC_LIBOBJ.
50161         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
50162         * modules/floor (configure.ac): ... to here.
50164 2011-05-21  Bruno Haible  <bruno@clisp.org>
50166         floorf: Move AC_LIBOBJ invocations to module description.
50167         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
50168         * modules/floorf (configure.ac): ... to here.
50170 2011-05-20  Bruno Haible  <bruno@clisp.org>
50172         sqrtl: Respect rules for use of AC_LIBOBJ.
50173         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
50174         * modules/sqrtl (configure.ac): ... to here.
50176 2011-05-20  Bruno Haible  <bruno@clisp.org>
50178         ldexpl: Respect rules for use of AC_LIBOBJ.
50179         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
50180         * modules/ldexpl (configure.ac): ... to here.
50182 2011-05-20  Bruno Haible  <bruno@clisp.org>
50184         frexpl*: Respect rules for use of AC_LIBOBJ.
50185         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
50186         invocation from here...
50187         * modules/frexpl (configure.ac): ... to here.
50188         * modules/frexpl-nolibm (configure.ac): ... and here.
50190 2011-05-20  Bruno Haible  <bruno@clisp.org>
50192         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
50193         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
50194         invocation from here...
50195         * modules/frexp (configure.ac): ... to here.
50196         * modules/frexp-nolibm (configure.ac): ... and here.
50198 2011-05-20  Bruno Haible  <bruno@clisp.org>
50200         isnan: Respect rules for use of AC_LIBOBJ.
50201         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
50202         invocations here.
50203         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
50204         REPLACE_ISNAN.
50205         * modules/isnand (configure.ac): Likewise.
50206         * modules/isnanl (configure.ac): Likewise.
50208 2011-05-20  Bruno Haible  <bruno@clisp.org>
50210         isnanl*: Respect rules for use of AC_LIBOBJ.
50211         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
50212         invocation from here...
50213         * modules/isnanl (configure.ac): ... to here.
50214         * modules/isnanl-nolibm (configure.ac): ... and here.
50216 2011-05-20  Bruno Haible  <bruno@clisp.org>
50218         isnand*: Move AC_LIBOBJ invocations to module description.
50219         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
50220         invocation from here...
50221         * modules/isnand (configure.ac): ... to here.
50222         * modules/isnand-nolibm (configure.ac): ... and here.
50224 2011-05-20  Bruno Haible  <bruno@clisp.org>
50226         isnanf*: Move AC_LIBOBJ invocations to module description.
50227         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
50228         invocation from here...
50229         * modules/isnanf (configure.ac): ... to here.
50230         * modules/isnanf-nolibm (configure.ac): ... and here.
50232 2011-05-20  Bruno Haible  <bruno@clisp.org>
50234         isnan*: Separate the AC_LIBOBJ invocations.
50235         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
50236         AC_LIBOBJ invocation.
50237         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
50238         here.
50239         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
50240         AC_LIBOBJ invocation.
50241         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
50242         here.
50243         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
50244         AC_LIBOBJ invocation.
50245         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
50246         here.
50247         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
50249 2011-05-08  Bruno Haible  <bruno@clisp.org>
50251         isinf: Move AC_LIBOBJ invocations to module description.
50252         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
50253         * modules/isinf (configure.ac): ... to here.
50255 2011-05-08  Bruno Haible  <bruno@clisp.org>
50257         isfinite: Move AC_LIBOBJ invocations to module description.
50258         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
50259         * modules/isfinite (configure.ac): ... to here.
50261 2011-05-08  Bruno Haible  <bruno@clisp.org>
50263         isblank: Move AC_LIBOBJ invocations to module description.
50264         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
50265         here...
50266         * modules/isblank (configure.ac): ... to here.
50268 2011-05-08  Bruno Haible  <bruno@clisp.org>
50270         isapipe: Move AC_LIBOBJ invocations to module description.
50271         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
50272         gl_PREREQ_ISAPIPE invocations from here...
50273         * modules/isapipe (configure.ac): ... to here.
50274         (Depends-on): Update condition.
50276 2011-05-08  Bruno Haible  <bruno@clisp.org>
50278         ioctl: Move AC_LIBOBJ invocations to module description.
50279         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
50280         invocations from here...
50281         * modules/ioctl (configure.ac): ... to here.
50282         (Depends-on): Update condition.
50284 2011-05-08  Bruno Haible  <bruno@clisp.org>
50286         imaxdiv: Move AC_LIBOBJ invocations to module description.
50287         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
50288         invocations from here...
50289         * modules/imaxdiv (configure.ac): ... to here.
50291 2011-05-08  Bruno Haible  <bruno@clisp.org>
50293         imaxabs: Move AC_LIBOBJ invocations to module description.
50294         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
50295         invocations from here...
50296         * modules/imaxabs (configure.ac): ... to here.
50298 2011-05-08  Bruno Haible  <bruno@clisp.org>
50300         getaddrinfo: Move AC_LIBOBJ invocations to module description.
50301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
50302         AC_LIBOBJ invocations from here...
50303         * modules/getaddrinfo (configure.ac): ... to here.
50304         (Depends-on): Add conditions.
50306 2011-05-08  Bruno Haible  <bruno@clisp.org>
50308         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50309         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
50310         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50311         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
50312         (gl_PREREQ_INET_PTON): ... from here.
50313         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
50314         gl_PREREQ_INET_PTON here.
50315         (Depends-on): Update condition.
50317 2011-05-08  Bruno Haible  <bruno@clisp.org>
50319         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50320         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
50321         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50322         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
50323         (gl_PREREQ_INET_NTOP): ... from here.
50324         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
50325         gl_PREREQ_INET_NTOP here.
50326         (Depends-on): Update condition.
50328 2011-05-08  Bruno Haible  <bruno@clisp.org>
50330         iconv_open: Move AC_LIBOBJ invocations to module description.
50331         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
50332         AC_LIBOBJ invocations from here...
50333         * modules/iconv_open (configure.ac): ... to here.
50335 2011-05-08  Bruno Haible  <bruno@clisp.org>
50337         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
50338         If module 'iconv_open' is among the main modules and module
50339         'iconv_open-utf' is among the tests dependencies, then
50340         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
50341         return the special iconv_t values. Therefore iconv() and iconv_close()
50342         must support these special iconv_t values, already in lib, not only in
50343         tests.
50344         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
50345         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
50346         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
50347         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
50348         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
50349         (Depends-on): Add the dependencies of iconv_open-utf.
50350         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
50351         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
50352         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
50354 2011-05-08  Bruno Haible  <bruno@clisp.org>
50356         group-member: Move AC_LIBOBJ invocations to module description.
50357         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
50358         gl_PREREQ_GROUP_MEMBER invocations from here...
50359         * modules/group-member (configure.ac): ... to here.
50361 2011-05-08  Bruno Haible  <bruno@clisp.org>
50363         grantpt: Move AC_LIBOBJ invocations to module description.
50364         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
50365         invocations from here...
50366         * modules/grantpt (configure.ac): ... to here.
50368 2011-05-08  Bruno Haible  <bruno@clisp.org>
50370         glob: Move AC_LIBOBJ invocations to module description.
50371         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
50372         from here...
50373         * modules/glob (configure.ac): ... to here.
50375 2011-05-08  Bruno Haible  <bruno@clisp.org>
50377         getusershell: Move AC_LIBOBJ invocations to module description.
50378         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
50379         Move AC_LIBOBJ invocation from here...
50380         * modules/getusershell (configure.ac): ... to here.
50381         (Depends-on): Update condition.
50383 2011-05-08  Bruno Haible  <bruno@clisp.org>
50385         gettimeofday: Move AC_LIBOBJ invocations to module description.
50386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50387         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
50388         gl_PREREQ_GETTIMEOFDAY invocations from here...
50389         * modules/gettimeofday (configure.ac): ... to here.
50391 2011-05-08  Bruno Haible  <bruno@clisp.org>
50393         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
50394         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
50395         just gl_FUNC_TZSET.
50396         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
50397         (gl_FUNC_TZSET_CLOBBER): Remove actions.
50398         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
50399         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
50401 2011-05-08  Bruno Haible  <bruno@clisp.org>
50403         getsubopt: Move AC_LIBOBJ invocations to module description.
50404         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
50405         gl_PREREQ_GETSUBOPT invocations from here...
50406         * modules/getsubopt (configure.ac): ... to here.
50408 2011-05-08  Bruno Haible  <bruno@clisp.org>
50410         getpass-gnu: Move AC_LIBOBJ invocations to module description.
50411         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
50412         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
50413         * modules/getpass-gnu (configure.ac): ... to here.
50415 2011-05-08  Bruno Haible  <bruno@clisp.org>
50417         getpass: Move AC_LIBOBJ invocations to module description.
50418         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
50419         gl_PREREQ_GETPASS invocations from here...
50420         * modules/getpass (configure.ac): ... to here.
50422 2011-05-08  Bruno Haible  <bruno@clisp.org>
50424         getpagesize: Move AC_LIBOBJ invocations to module description.
50425         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
50426         from here...
50427         * modules/getpagesize (configure.ac): ... to here.
50429 2011-05-08  Bruno Haible  <bruno@clisp.org>
50431         getopt: Move AC_LIBOBJ invocations to module description.
50432         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
50433         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
50434         invocations from here...
50435         * modules/getopt-gnu (configure.ac): ... to here.
50436         * modules/getopt-posix (configure.ac): ... and here.
50437         (Depends-on): Update condition.
50439 2011-05-08  Bruno Haible  <bruno@clisp.org>
50441         getopt, argp: Respect rules for use of AC_LIBOBJ.
50442         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
50443         (gl_REPLACE_GETOPT_ALWAYS): New macro.
50444         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
50445         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
50447 2011-05-08  Bruno Haible  <bruno@clisp.org>
50449         getlogin_r: Move AC_LIBOBJ invocations to module description.
50450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
50451         gl_PREREQ_GETLOGIN_R invocations from here...
50452         * modules/getlogin_r (configure.ac): ... to here.
50454 2011-05-08  Bruno Haible  <bruno@clisp.org>
50456         getlogin: Move AC_LIBOBJ invocations to module description.
50457         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
50458         here...
50459         * modules/getlogin (configure.ac): ... to here.
50461 2011-05-08  Bruno Haible  <bruno@clisp.org>
50463         getloadavg: Move AC_LIBOBJ invocations to module description.
50464         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
50465         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
50466         * modules/getloadavg (configure.ac): ... to here.
50468 2011-05-08  Bruno Haible  <bruno@clisp.org>
50470         gethrxtime: Move AC_LIBOBJ invocations to module description.
50471         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
50472         LIB_GETHRXTIME from here...
50473         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
50474         invocations from here...
50475         * modules/gethrxtime (configure.ac): ... to here.
50477 2011-05-08  Bruno Haible  <bruno@clisp.org>
50479         gethostname: Move AC_LIBOBJ invocations to module description.
50480         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
50481         gl_PREREQ_GETHOSTNAME invocations from here...
50482         * modules/gethostname (configure.ac): ... to here.
50484 2011-05-08  Bruno Haible  <bruno@clisp.org>
50486         getgroups: Move AC_LIBOBJ invocations to module description.
50487         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
50488         here...
50489         * modules/getgroups (configure.ac): ... to here.
50491 2011-05-08  Bruno Haible  <bruno@clisp.org>
50493         getdtablesize: Move AC_LIBOBJ invocations to module description.
50494         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
50495         invocation from here...
50496         * modules/getdtablesize (configure.ac): ... to here.
50498 2011-05-08  Bruno Haible  <bruno@clisp.org>
50500         getdomainname: Move AC_LIBOBJ invocations to module description.
50501         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
50502         gl_PREREQ_GETDOMAINNAME invocations from here...
50503         * modules/getdomainname (configure.ac): ... to here.
50505 2011-05-08  Bruno Haible  <bruno@clisp.org>
50507         getline: Move AC_LIBOBJ invocations to module description.
50508         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
50509         invocations from here...
50510         * modules/getline (configure.ac): ... to here.
50512 2011-05-08  Bruno Haible  <bruno@clisp.org>
50514         getline: Simplify.
50515         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
50516         It's already handled through the module dependency.
50518 2011-05-08  Bruno Haible  <bruno@clisp.org>
50520         getdelim: Move AC_LIBOBJ invocations to module description.
50521         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
50522         and gl_PREREQ_GETDELIM invocations from here...
50523         * modules/getdelim (configure.ac): ... to here.
50524         (Depends-on): Fix condition.
50526 2011-05-08  Bruno Haible  <bruno@clisp.org>
50528         getcwd: Move AC_LIBOBJ invocations to module description.
50529         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
50530         invocations from here...
50531         * modules/getcwd (configure.ac): ... to here.
50533 2011-05-08  Bruno Haible  <bruno@clisp.org>
50535         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
50536         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
50537         here...
50538         * modules/getcwd-lgpl (configure.ac): ... to here.
50540 2011-05-07  Bruno Haible  <bruno@clisp.org>
50542         crypto/gc: Move AC_LIBOBJ invocations to module description.
50543         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
50544         * modules/crypto/gc (configure.ac): ... to here.
50546 2011-05-07  Bruno Haible  <bruno@clisp.org>
50548         fwriting: Move AC_LIBOBJ invocations to module description.
50549         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
50550         here...
50551         * modules/fwriting (configure.ac): ... to here.
50553 2011-05-07  Bruno Haible  <bruno@clisp.org>
50555         fwritable: Move AC_LIBOBJ invocations to module description.
50556         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
50557         here...
50558         * modules/fwritable (configure.ac): ... to here.
50560 2011-05-07  Bruno Haible  <bruno@clisp.org>
50562         futimens: Move AC_LIBOBJ invocations to module description.
50563         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
50564         here...
50565         * modules/futimens (configure.ac): ... to here.
50567 2011-05-07  Bruno Haible  <bruno@clisp.org>
50569         ftruncate: Move AC_LIBOBJ invocations to module description.
50570         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
50571         gl_PREREQ_FTRUNCATE invocations from here...
50572         * modules/ftruncate (configure.ac): ... to here.
50574 2011-05-07  Bruno Haible  <bruno@clisp.org>
50576         fsync: Move AC_LIBOBJ invocations to module description.
50577         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
50578         invocations from here...
50579         * modules/fsync (configure.ac): ... to here.
50581 2011-05-07  Bruno Haible  <bruno@clisp.org>
50583         fsusage: Move AC_LIBOBJ invocations to module description.
50584         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
50585         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
50586         * modules/fsusage (configure.ac): ... to here.
50588 2011-05-07  Bruno Haible  <bruno@clisp.org>
50590         freopen: Move AC_LIBOBJ invocations to module description.
50591         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
50592         invocations from here...
50593         * modules/freopen (configure.ac): ... to here.
50595 2011-05-07  Bruno Haible  <bruno@clisp.org>
50597         free: Move AC_LIBOBJ invocations to module description.
50598         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
50599         invocations from here...
50600         * modules/free (configure.ac): ... to here.
50602 2011-05-07  Bruno Haible  <bruno@clisp.org>
50604         freadable: Move AC_LIBOBJ invocations to module description.
50605         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
50606         here...
50607         * modules/freadable (configure.ac): ... to here.
50609 2011-05-07  Bruno Haible  <bruno@clisp.org>
50611         fpurge: Move AC_LIBOBJ invocations to module description.
50612         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
50613         invocations from here...
50614         * modules/fpurge (configure.ac): ... to here.
50616 2011-05-07  Bruno Haible  <bruno@clisp.org>
50618         fpending: Move AC_LIBOBJ invocations to module description.
50619         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
50620         gl_FUNC_FPENDING.
50621         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
50622         invocations from here...
50623         * modules/fpending (configure.ac): ... to here.
50625 2011-05-07  Bruno Haible  <bruno@clisp.org>
50627         fopen: Move AC_LIBOBJ invocations to module description.
50628         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
50629         invocations from here...
50630         * modules/fopen (configure.ac): ... to here.
50632 2011-05-07  Bruno Haible  <bruno@clisp.org>
50634         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
50635         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
50636         gl_FUNC_FNMATCH_POSIX.
50637         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
50638         invocations from here...
50639         * modules/fnmatch (configure.ac): ... to here.
50640         * modules/fnmatch-gnu (configure.ac): ... and here.
50642 2011-05-07  Bruno Haible  <bruno@clisp.org>
50644         flock: Move AC_LIBOBJ invocations to module description.
50645         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
50646         invocations from here...
50647         * modules/flock (configure.ac): ... to here.
50649 2011-05-07  Bruno Haible  <bruno@clisp.org>
50651         fileblocks: Move AC_LIBOBJ invocations to module description.
50652         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
50653         gl_PREREQ_FILEBLOCKS invocations from here...
50654         * modules/fileblocks (configure.ac): ... to here.
50656 2011-05-06  Bruno Haible  <bruno@clisp.org>
50658         fflush: Move AC_LIBOBJ invocations to module description.
50659         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
50660         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
50661         invocations from here...
50662         * modules/fflush (configure.ac): ... to here.
50664 2011-05-06  Bruno Haible  <bruno@clisp.org>
50666         fdopendir: Move AC_LIBOBJ invocations to module description.
50667         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50668         here...
50669         * modules/fdopendir (configure.ac): ... to here.
50670         (Depends-on): Improve conditions.
50672 2011-05-06  Bruno Haible  <bruno@clisp.org>
50674         _Exit: Move AC_LIBOBJ invocations to module description.
50675         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50676         invocations from here...
50677         * modules/_Exit (configure.ac): ... to here.
50679 2011-05-21  Bruno Haible  <bruno@clisp.org>
50681         euidaccess: Respect rules for use of AC_LIBOBJ.
50682         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50684         from here...
50685         * modules/euidaccess (configure.ac): ... to here.
50687 2011-05-06  Bruno Haible  <bruno@clisp.org>
50689         error: Move AC_LIBOBJ invocations to module description.
50690         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50691         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50692         invocations from here...
50693         * modules/error (configure.ac): ... to here.
50695 2011-05-06  Bruno Haible  <bruno@clisp.org>
50697         duplocale: Move AC_LIBOBJ invocations to module description.
50698         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50699         gl_PREREQ_DUPLOCALE invocations from here...
50700         * modules/duplocale (configure.ac): ... to here.
50702 2011-05-05  Bruno Haible  <bruno@clisp.org>
50704         dirfd: Move AC_LIBOBJ invocations to module description.
50705         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50706         gl_FUNC_DIRFD.
50707         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
50708         here...
50709         * modules/dirfd (configure.ac): ... to here.
50710         (Depends-on): Fix condition.
50712 2011-05-05  Bruno Haible  <bruno@clisp.org>
50714         chown: Respect rules for use of AC_LIBOBJ.
50715         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
50716         * modules/chown (configure.ac): ... to here.
50718 2011-05-05  Bruno Haible  <bruno@clisp.org>
50720         chdir-long: Move AC_LIBOBJ invocations to module description.
50721         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
50722         gl_PREREQ_CHDIR_LONG invocations from here...
50723         * modules/chdir-long (configure.ac): ... to here.
50725 2011-05-05  Bruno Haible  <bruno@clisp.org>
50727         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
50728         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
50729         from here...
50730         * modules/canonicalize-lgpl (configure.ac): ... to here.
50732 2011-05-05  Bruno Haible  <bruno@clisp.org>
50734         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
50735         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
50736         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
50737         REPLACE_CALLOC.
50738         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
50739         * modules/calloc-gnu (configure.ac): Likewise.
50741 2011-05-05  Bruno Haible  <bruno@clisp.org>
50743         btowc: Move AC_LIBOBJ invocations to module description.
50744         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
50745         invocations from here...
50746         * modules/btowc (configure.ac): ... to here.
50748 2011-05-21  Bruno Haible  <bruno@clisp.org>
50750         atexit: Move AC_LIBOBJ invocations to module description.
50751         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
50752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
50753         here...
50754         * modules/atexit (configure.ac): ... to here.
50756 2011-05-05  Bruno Haible  <bruno@clisp.org>
50758         atoll: Move AC_LIBOBJ invocations to module description.
50759         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
50760         invocations from here...
50761         * modules/atoll (configure.ac): ... to here.
50763 2011-05-05  Bruno Haible  <bruno@clisp.org>
50765         argz: Move AC_LIBOBJ invocations to module description.
50766         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
50767         * modules/argz (configure.ac): ... to here.
50769 2011-05-05  Bruno Haible  <bruno@clisp.org>
50771         alphasort: Move AC_LIBOBJ invocations to module description.
50772         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
50773         gl_PREREQ_ALPHASORT invocations from here...
50774         * modules/alphasort (configure.ac): ... to here.
50776 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50778         verify: new macro verify_expr; verify_true deprecated
50779         * NEWS: Mention this.
50780         * doc/verify.texi (Compile-time Assertions): Document this.
50781         * lib/verify.h (verify_true): Deprecate.
50782         (verify_expr): New macro.
50783         * tests/test-verify.c (function): Test verify_expr.
50785 2011-06-14  Jim Meyering  <meyering@redhat.com>
50787         init.sh: give more portable redirection-related advice in a comment
50788         * tests/init.sh (stderr_fileno_): Update the advice in comments.
50789         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
50790         for lots of discussion.  Stefano Lattarini suggested the solution
50791         of putting "9>&2" after the command.  Reported by Bruno Haible.
50793 2011-06-13  Bruno Haible  <bruno@clisp.org>
50795         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
50796         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50797         'none'.
50799 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
50801         ftoastr: use strtof only if HAVE_STRTOF
50802         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
50803         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
50804         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
50805         * modules/ftoastr (configure.ac): Check for strtof.
50807 2011-06-13  Bruno Haible  <bruno@clisp.org>
50809         gnulib-tool: Addendum to 2011-06-08 commit.
50810         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50811         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50813 2011-06-13  Bruno Haible  <bruno@clisp.org>
50815         fseeko: Provide a non-inline replacement of fseek().
50816         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50817         * modules/fseeko (Depends-on): Add fseek.
50818         * modules/fseek (License): Change to LGPLv2+.
50820 2011-06-13  Bruno Haible  <bruno@clisp.org>
50822         ftello: Provide a non-inline replacement of ftell().
50823         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50824         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50825         not have ftello() (such as on mingw).
50826         * modules/ftello (Depends-on): Add ftell.
50827         * modules/ftell (License): Change to LGPLv2+.
50829 2011-05-07  Bruno Haible  <bruno@clisp.org>
50831         ftell: Move AC_LIBOBJ invocations to module description.
50832         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50833         * modules/ftell (configure.ac): ... to here.
50835 2011-05-07  Bruno Haible  <bruno@clisp.org>
50837         ftello: Respect rules for use of AC_LIBOBJ.
50838         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50839         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50840         here...
50841         * modules/ftello (configure.ac): ... to here.
50843 2011-05-07  Bruno Haible  <bruno@clisp.org>
50845         fseeko: Simplify.
50846         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50847         (gl_FUNC_FSEEKO): Inline it here.
50849 2011-05-07  Bruno Haible  <bruno@clisp.org>
50851         fseek: Move AC_LIBOBJ invocations to module description.
50852         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50853         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50854         * modules/fseek (configure.ac): ... to here.
50856 2011-05-07  Bruno Haible  <bruno@clisp.org>
50858         fseek: Respect rules for use of AC_LIBOBJ.
50859         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50860         here...
50861         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50863 2011-05-07  Bruno Haible  <bruno@clisp.org>
50865         fseeko: Respect rules for use of AC_LIBOBJ.
50866         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50867         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50868         here...
50869         * modules/fseeko (configure.ac): ... to here.
50871 2011-06-13  Bruno Haible  <bruno@clisp.org>
50873         gnulib-tool: Allow comments in the 'Depends-on' section.
50874         * doc/gnulib.texi (Module description): Mention comment syntax in the
50875         Depends-on section.
50876         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50878 2011-06-13  Bruno Haible  <bruno@clisp.org>
50880         file-set.h: guard __attibute__ use, now that it's not always defined
50881         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50882         versions that support it.  This fixes a coreutils build failure with
50883         the vendor cc on HP-UX 11.31.
50885 2011-06-12  Bruno Haible  <bruno@clisp.org>
50887         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50888         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50889         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50890         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50891         (acl, aclsort): New declarations.
50892         (aclv_nontrivial): New declaration.
50893         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50894         (file_has_acl): Read also the second kind of HP-UX ACLs.
50895         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50896         kind of HP-UX ACLs if the first kind fails.
50897         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50898         second kind of HP-UX ACLs.
50899         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50900         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50901         agree.
50902         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50903         hpuxjfs.
50904         Handle hpuxjfs.
50905         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50906         hpuxjfs.
50907         Handle hpuxjfs.
50908         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50909         (func_test_same_acls): Use both lsacl and getacl.
50910         Handle hpuxjfs.
50911         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50912         (func_test_same_acls): Use both lsacl and getacl.
50913         Handle hpuxjfs.
50915 2011-06-12  Bruno Haible  <bruno@clisp.org>
50917         acl: Complete the 2010-08-10 fix.
50918         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50919         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50920         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50921         explicitly.
50922         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50923         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50925 2011-06-12  Bruno Haible  <bruno@clisp.org>
50927         spawn-pipe tests: Comments.
50928         * tests/test-spawn-pipe-child.c (main): Update comment.
50929         Reported by James Youngman <jay@gnu.org>.
50931 2011-06-11  James Youngman  <jay@gnu.org>
50933         New module 'stat-size'.
50934         * modules/stat-size: New module.  Provides macros for accessing
50935         file size information in instances of struct stat.  Depends on the
50936         fileblocks module because it calls st_blocks.
50937         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50938         * doc/gnulib.texi: Include stat-size.texi.
50939         * doc/stat-size.texi: Documentation for this module.
50940         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50941         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50942         AC_STRUCT_ST_BLOCKS.
50944 2011-06-09  Bruno Haible  <bruno@clisp.org>
50946         thread: Support pthreads-win32.
50947         * lib/glthread/thread.h (gl_thread_self): Define differently on
50948         pthreads-win32.
50949         (gl_null_thread): New declaration.
50950         (gl_thread_self_pointer): New macro.
50951         * lib/glthread/thread.c (gl_null_thread): New constant.
50952         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50953         gl_thread_self.
50954         * tests/test-tls.c: Likewise.
50955         Suggested by Paul Eggert. Reported by Eric Blake.
50957 2011-06-09  Bruno Haible  <bruno@clisp.org>
50959         thread: Fix confusion between NULL and 0.
50960         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50961         Reported by Paul Eggert.
50963 2011-06-09  Bruno Haible  <bruno@clisp.org>
50965         spawn-pipe tests: Avoid test failure on HP-UX 11.
50966         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50967         is closed.
50969 2011-06-09  Bruno Haible  <bruno@clisp.org>
50971         acl tests: Fix compilation error on HP-UX 11.
50972         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50974 2011-06-09  Bruno Haible  <bruno@clisp.org>
50976         rmdir: Avoid test failure on HP-UX 10.20.
50977         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50978         EEXIST.
50980 2011-06-08  Eric Blake  <eblake@redhat.com>
50982         perror: fix test on mingw
50983         * modules/perror-tests (Depends-on): Add dup2.
50985         strerror_r-posix: fix on MacOS
50986         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50987         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50988         logic bug.
50989         * lib/strerror_r.c (strerror_r): Fix the bug.
50990         * lib/strerror.c (strerror): Likewise.
50991         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50992         problem.
50993         * doc/posix-functions/strerror.texi (strerror): Likewise.
50994         * doc/posix-functions/perror.texi (perror): Likewise.
50995         * tests/test-strerror.c (main): Enhance test.
50996         * tests/test-strerror_r.c (main): Likewise.
50998 2011-06-08  Bruno Haible  <bruno@clisp.org>
51000         gnulib-tool: Better isolation between different gnulib-tool invocations.
51001         * gnulib-tool: New option --witness-c-macro.
51002         (witness_c_macro): New variable.
51003         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
51004         AM_CPPFLAGS define it as a C macro.
51005         (func_emit_tests_Makefile_am): Likewise.
51006         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
51007         read it from there.
51008         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
51009         m4_define, not AC_DEFUN.
51010         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
51011         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
51012         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
51013         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
51014         s|...|...|, to substitute the values of the GNULIB_* module indicator
51015         variables.
51016         * modules/dirent (Makefile.am): Likewise.
51017         * modules/fcntl-h (Makefile.am): Likewise.
51018         * modules/iconv-h (Makefile.am): Likewise.
51019         * modules/langinfo (Makefile.am): Likewise.
51020         * modules/locale (Makefile.am): Likewise.
51021         * modules/math (Makefile.am): Likewise.
51022         * modules/netdb (Makefile.am): Likewise.
51023         * modules/poll-h (Makefile.am): Likewise.
51024         * modules/pty (Makefile.am): Likewise.
51025         * modules/search (Makefile.am): Likewise.
51026         * modules/signal (Makefile.am): Likewise.
51027         * modules/spawn (Makefile.am): Likewise.
51028         * modules/stdio (Makefile.am): Likewise.
51029         * modules/stdlib (Makefile.am): Likewise.
51030         * modules/string (Makefile.am): Likewise.
51031         * modules/sys_ioctl (Makefile.am): Likewise.
51032         * modules/sys_select (Makefile.am): Likewise.
51033         * modules/sys_socket (Makefile.am): Likewise.
51034         * modules/sys_stat (Makefile.am): Likewise.
51035         * modules/sys_times (Makefile.am): Likewise.
51036         * modules/sys_utsname (Makefile.am): Likewise.
51037         * modules/sys_wait (Makefile.am): Likewise.
51038         * modules/termios (Makefile.am): Likewise.
51039         * modules/time (Makefile.am): Likewise.
51040         * modules/unistd (Makefile.am): Likewise.
51041         * modules/wchar (Makefile.am): Likewise.
51043 2011-06-08  Eric Blake  <eblake@redhat.com>
51045         strerror: simplify replacement
51046         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
51047         * modules/strerror (configure.ac): No prereqs needed here...
51048         * modules/strerror-override (configure.ac): ...but this needs it.
51049         (Files): Add file for needed prereq macro.
51051 2011-06-08  Bruno Haible  <bruno@clisp.org>
51053         strerror_r-posix: Tweaks.
51054         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
51055         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
51056         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
51057         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
51058         (gl_FUNC_STRERROR_R): ... to here.
51059         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
51061 2011-06-07  Eric Blake  <eblake@redhat.com>
51063         perror: document fixed bugs
51064         * doc/posix-functions/perror.texi (perror): Document recent
51065         patches.
51067 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
51069         stat-time: get_stat_birthtime failure is better-defined
51070         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
51071         return a timestamp whose tv_sec and tv_nsec values are both -1.
51072         Previously, the spec said only that the tv_nsec value was negative.
51073         This upward-compatible change simplifies GNU tar a bit.
51075 2011-06-07  Eric Blake  <eblake@redhat.com>
51077         strerror_r-posix: work around cygwin 1.7.9
51078         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
51079         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
51080         bug without replacing strerror_r.
51081         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
51082         strerror_r is buggy, but without requiring strerror_r compilation.
51083         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
51085         test-perror: relax test to ignore cygwin bug
51086         * tests/test-perror2.c (main): Relax test on requiring detection
51087         of stream errors, and use unbuffered stream.
51088         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
51089         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
51090         * doc/posix-functions/fputc.texi (fputc): Likewise.
51091         * doc/posix-functions/fputs.texi (fputs): Likewise.
51092         * doc/posix-functions/fputws.texi (fputws): Likewise.
51093         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
51094         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
51095         * doc/posix-functions/getopt.texi (getopt): Likewise.
51096         * doc/posix-functions/perror.texi (perror): Likewise.
51097         * doc/posix-functions/printf.texi (printf): Likewise.
51098         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
51099         * doc/posix-functions/psignal.texi (psignal): Likewise.
51100         * doc/posix-functions/putc.texi (putc): Likewise.
51101         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
51102         Likewise.
51103         * doc/posix-functions/putchar.texi (putchar): Likewise.
51104         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
51105         Likewise.
51106         * doc/posix-functions/puts.texi (puts): Likewise.
51107         * doc/posix-functions/putwc.texi (putwc): Likewise.
51108         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51109         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51110         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51111         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
51112         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51113         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51114         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
51115         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
51117 2011-05-22  Bruno Haible  <bruno@clisp.org>
51119         strerror: Move AC_LIBOBJ invocations to module description.
51120         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
51121         gl_PREREQ_STRERROR invocations from here...
51122         * modules/strerror (configure.ac): ... to here.
51124 2011-05-21  Bruno Haible  <bruno@clisp.org>
51126         perror: Use common idiom.
51127         * modules/perror (configure.ac): Reorder statements.
51129 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51131         tests: fix usage message in 'mktempd_'
51132         * tests/init.sh (mktempd_): In the usage message, use literal
51133         'mktempd_', not '$ME' (which is even undefined), as the name of
51134         the subroutine.
51136 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51138         tests init: new function 'fatal_', for hard errors
51139         Before this patch, the only way offered by tests/init.sh to
51140         properly signal a hard error was the `framework_failure_'
51141         function.  But the error message issued by that function,
51142         as its name would suggest, refers to a set-up failure in the
51143         testsuite, while hard errors can obviously also be due to
51144         other reasons.  The best way to fix this inconsistency is to
51145         introduce a new function with a more general error message.
51146         * tests/init.sh (fatal_): New function.
51148 2011-06-06  Eric Blake  <eblake@redhat.com>
51150         canonicalize-lgpl: use common idiom
51151         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
51152         over newer POSIX -Rf.
51153         Reported by Bruno Haible.
51155         canonicalize-lgpl: work around AIX realpath bug
51156         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
51157         * doc/posix-functions/realpath.texi (realpath): Document it.
51158         Reported by Bruno Haible.
51160         strerror: work around FreeBSD bug
51161         * lib/strerror.c (strerror): Special case 0.
51162         Reported by Bruno Haible.
51164         strerror-override: avoid bloating errno module
51165         * modules/errno (Files, configure.ac): Move replacement strings...
51166         * modules/strerror-override: ...to new module.
51167         * modules/strerror (Depends-on): Add strerror-override.
51168         * modules/strerror_r-posix (Depends-on): Likewise.
51169         * MODULES.html.sh: Document new module.
51170         Reported by Bruno Haible.
51172 2011-06-06  Bruno Haible  <bruno@clisp.org>
51174         spawn-pipe tests: Rename program.
51175         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
51176         * tests/test-spawn-pipe-child.c: Update comment.
51177         * tests/test-spawn-pipe.sh: Update.
51178         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
51180         spawn-pipe tests: Link the child program only against libc.
51181         * tests/test-spawn-pipe-child.c: New file, extracted from
51182         tests/test-spawn-pipe.c.
51183         (main): Expect only one argument.
51184         (is_open): New function, copied from tests/test-pipe.c.
51185         * tests/test-spawn-pipe.c: Don't include <errno.h>.
51186         (child_main): Remove function.
51187         (test_pipe): Pass only one argument to the child program.
51188         (main): Remove child process code. Expect the child program's name as
51189         first argument.
51190         * tests/test-spawn-pipe.sh: Pass the child program's name as first
51191         argument.
51192         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
51193         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
51194         test-spawn-pipe-child against no libraries.
51196 2011-06-06  Bruno Haible  <bruno@clisp.org>
51198         careadlinkat: Avoid mismatch between ssize_t and int.
51199         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
51200         * lib/careadlinkat.c (careadlinkatcwd): Define always.
51202 2011-06-06  Jim Meyering  <meyering@redhat.com>
51204         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
51205         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
51206         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
51208 2011-06-05  Bruno Haible  <bruno@clisp.org>
51210         ansi-c++-opt: Interoperability with libtool.
51211         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
51212         set the variable to "no", not to ":".
51213         * NEWS: Mention the change.
51215 2011-06-05  Bruno Haible  <bruno@clisp.org>
51217         acl: Fix test failure on AIX 7.
51218         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
51219         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
51221 2011-06-05  Bruno Haible  <bruno@clisp.org>
51223         pipe-filter-ii: Fix test failure on AIX and IRIX.
51224         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
51225         with EAGAIN, retry with a smaller buffer size.
51227 2011-06-05  Bruno Haible  <bruno@clisp.org>
51229         localename: Fix link dependencies.
51230         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
51231         * modules/localename-tests (Makefile.am): Link test-localename with
51232         $(LIBTHREAD).
51234 2011-06-05  Bruno Haible  <bruno@clisp.org>
51236         error: Avoid gcc warning.
51237         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
51239 2011-06-05  Bruno Haible  <bruno@clisp.org>
51241         unsetenv: Avoid gcc warning.
51242         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
51244 2011-06-05  Bruno Haible  <bruno@clisp.org>
51246         setenv: Avoid gcc warning.
51247         * lib/setenv.c (setenv): Provide declaration if system lacks it.
51249 2011-06-05  Bruno Haible  <bruno@clisp.org>
51251         sys_select: Ensure memset is declared also on AIX 7.
51252         * lib/sys_select.in.h: Include <string.h> also on AIX.
51253         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
51254         self-contained also on AIX 7.1.
51256 2011-06-04  Jim Meyering  <meyering@redhat.com>
51258         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
51259         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
51260         function name, "error".
51261         (_gl_translatable_diag_func_re): New configurable variable.
51263 2011-06-04  Bruno Haible  <bruno@clisp.org>
51265         getopt: Avoid gcc warning.
51266         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
51268 2011-06-04  Bruno Haible  <bruno@clisp.org>
51270         strerror_r: Fix comments.
51271         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
51272         commit.
51274 2011-06-04  Bruno Haible  <bruno@clisp.org>
51276         perror: Fix compilation error.
51277         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
51278         Undefine fprintf, not sprintf.
51279         * modules/perror (Depends-on): Remove intprops, verify.
51281 2011-06-04  Bruno Haible  <bruno@clisp.org>
51283         setlocale: Enable replacement on Cygwin 1.5.
51284         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
51285         Cygwin 1.5.x.
51286         * doc/posix-functions/setlocale.texi: Mention that the problem with the
51287         LC_CTYPE category also exists on Cygwin 1.5.x.
51289 2011-06-04  Bruno Haible  <bruno@clisp.org>
51291         strerror-override: Don't disable symbol renamings.
51292         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
51293         * lib/strerror-override.c: Include config.h.
51294         (strerror_override): Don't undefine.
51296 2011-06-03  Bruno Haible  <bruno@clisp.org>
51298         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
51299         * lib/localename.h: Update copyright header.
51300         * lib/localename.c: Likewise.
51301         * lib/relocatable.h: Likewise.
51302         * lib/relocatable.c: Likewise.
51304 2011-06-02  Bruno Haible  <bruno@clisp.org>
51306         doc: Fix a module name.
51307         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
51309 2011-06-02  Bruno Haible  <bruno@clisp.org>
51311         pipe2: Remove dependency on 'nonblocking' module.
51312         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
51313         O_NONBLOCK is defined by gnulib.
51314         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
51315         is zero.
51316         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
51317         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
51318         defined by gnulib.
51319         (get_nonblocking_flag): New function.
51320         (main): Test O_NONBLOCK flag only if it is nonzero.
51321         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
51323 2011-06-03  Jim Meyering  <meyering@redhat.com>
51325         maint: three new prohibit-header-without-use rules
51326         Prohibit use of cloexec.h, posixver.h, same.h without use.
51327         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
51328         (sc_prohibit_posixver_without_use): Likewise.
51329         (sc_prohibit_same_without_use): Likewise.
51331 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51333         allocator: 'die' routine is now given requested size
51334         * lib/allocator.h (struct allocator.die): New size arg.
51335         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
51336         If the actual problem is an ssize_t limitation, not a size_t or
51337         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
51339 2011-06-01  Eric Blake  <eblake@redhat.com>
51341         strerror: drop strerror_r dependency
51342         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
51343         * lib/strerror-override.c (strerror_override): ...to new file.
51344         * lib/strerror-override.h: Add prototype.
51345         * lib/strerror-impl.h: Delete.
51346         * lib/strerror.c (strerror): New implementation.
51347         * modules/errno (Files): Add new files.
51348         (configure.ac): Compile new file as appropriate.
51349         * modules/strerror (Files): Drop unused file.
51350         (Depends-on): Drop strerror_r-posix.
51351         * MODULES.html.sh: Document strerror_r-posix.
51352         Requested by Sam Steingold.
51354         perror: call strerror_r directly
51355         * modules/perror (Files): Drop strerror-impl.h.
51356         * lib/perror.c (perror): Use our own stack buffer, rather than
51357         calling a wrapper that uses static storage.
51358         * doc/posix-functions/perror.texi (perror): Document a limitation
51359         of our replacement.
51361         strerror_r: fix includes for FreeBSD
51362         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
51363         since we use abort on some platforms.
51364         Reported by Matthias Bolte.
51366 2011-05-31  Bruno Haible  <bruno@clisp.org>
51368         Fix link errors in tests: openat-die uses gettext-h.
51369         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
51370         against $(LIBINTL).
51371         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
51372         against $(LIBINTL).
51373         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
51374         $(LIBINTL).
51375         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
51376         against $(LIBINTL).
51377         * modules/linkat-tests (Makefile.am): Link test-linkat against
51378         $(LIBINTL).
51379         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
51380         $(LIBINTL).
51381         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
51382         against $(LIBINTL).
51383         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
51384         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
51385         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
51386         $(LIBINTL).
51387         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
51388         $(LIBINTL).
51389         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
51390         $(LIBINTL).
51391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51393 2011-05-31  Bruno Haible  <bruno@clisp.org>
51395         Fix link errors in tests: wait-process uses gettext-h.
51396         * modules/nonblocking-pipe-tests (Makefile.am): Set
51397         test_nonblocking_pipe_main_LDADD.
51398         * modules/nonblocking-socket-tests (Makefile.am): Link
51399         test-nonblocking-socket-main against $(LIBINTL).
51400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51402 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
51404         assert-h: work around 'verify' incompatibility
51405         * lib/verify.h: Use @...@ directives, not ifdef.
51406         * modules/assert-h (assert.h): Implement the directives.
51407         (assert.h): Substitute the symbol-prefix more consistently.
51409 2011-05-29  Jim Meyering  <meyering@redhat.com>
51411         trim: remove three superfluous assignments
51412         * lib/trim.c (trim2): Remove three superfluous assignments
51413         and correct brace positioning.
51415 2011-05-29  Bruno Haible  <bruno@clisp.org>
51417         wctype-h: Avoid namespace pollution on Solaris 2.6.
51418         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
51419         identifiers.
51420         * doc/posix-headers/wctype.texi: Mention the problem.
51421         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51423 2011-05-28  Jim Meyering  <meyering@redhat.com>
51425         parse-datetime.y: accommodate -Wstrict-overflow
51426         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
51427         placate -Wstrict-overflow.
51429         trim: avoid a warning from -O2 -Wstrict-overflow
51430         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
51432 2011-05-29  Bruno Haible  <bruno@clisp.org>
51434         gnulib-tool: Fix bug in yesterday's commit.
51435         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
51436         twice.
51438 2011-05-29  Bruno Haible  <bruno@clisp.org>
51440         Allow multiple gnulib generated include files to be combined.
51441         * gnulib-tool (func_compute_include_guard_prefix): New function.
51442         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
51443         ${gl_include_guard_prefix} references.
51444         (func_import, func_create_testdir): Invoke
51445         func_compute_include_guard_prefix.
51446         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
51447         * lib/ctype.in.h: Likewise.
51448         * lib/dirent.in.h: Likewise.
51449         * lib/errno.in.h: Likewise.
51450         * lib/fcntl.in.h: Likewise.
51451         * lib/float.in.h: Likewise.
51452         * lib/getopt.in.h: Likewise.
51453         * lib/iconv.in.h: Likewise.
51454         * lib/langinfo.in.h: Likewise.
51455         * lib/locale.in.h: Likewise.
51456         * lib/math.in.h: Likewise.
51457         * lib/netdb.in.h: Likewise.
51458         * lib/netinet_in.in.h: Likewise.
51459         * lib/poll.in.h: Likewise.
51460         * lib/pthread.in.h: Likewise.
51461         * lib/pty.in.h: Likewise.
51462         * lib/sched.in.h: Likewise.
51463         * lib/se-selinux.in.h: Likewise.
51464         * lib/search.in.h: Likewise.
51465         * lib/signal.in.h: Likewise.
51466         * lib/spawn.in.h: Likewise.
51467         * lib/stdarg.in.h: Likewise.
51468         * lib/stddef.in.h: Likewise.
51469         * lib/stdint.in.h: Likewise.
51470         * lib/stdio.in.h: Likewise.
51471         * lib/stdlib.in.h: Likewise.
51472         * lib/string.in.h: Likewise.
51473         * lib/strings.in.h: Likewise.
51474         * lib/sys_file.in.h: Likewise.
51475         * lib/sys_ioctl.in.h: Likewise.
51476         * lib/sys_select.in.h: Likewise.
51477         * lib/sys_socket.in.h: Likewise.
51478         * lib/sys_stat.in.h: Likewise.
51479         * lib/sys_time.in.h: Likewise.
51480         * lib/sys_times.in.h: Likewise.
51481         * lib/sys_uio.in.h: Likewise.
51482         * lib/sys_utsname.in.h: Likewise.
51483         * lib/sys_wait.in.h: Likewise.
51484         * lib/sysexits.in.h: Likewise.
51485         * lib/termios.in.h: Likewise.
51486         * lib/time.in.h: Likewise.
51487         * lib/unistd.in.h: Likewise.
51488         * lib/wchar.in.h: Likewise.
51489         * lib/wctype.in.h: Likewise.
51490         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
51491         * modules/ctype (Makefile.am): Likewise.
51492         * modules/dirent (Makefile.am): Likewise.
51493         * modules/errno (Makefile.am): Likewise.
51494         * modules/fcntl-h (Makefile.am): Likewise.
51495         * modules/float (Makefile.am): Likewise.
51496         * modules/getopt-posix (Makefile.am): Likewise.
51497         * modules/iconv-h (Makefile.am): Likewise.
51498         * modules/langinfo (Makefile.am): Likewise.
51499         * modules/locale (Makefile.am): Likewise.
51500         * modules/math (Makefile.am): Likewise.
51501         * modules/netdb (Makefile.am): Likewise.
51502         * modules/netinet_in (Makefile.am): Likewise.
51503         * modules/poll-h (Makefile.am): Likewise.
51504         * modules/pthread (Makefile.am): Likewise.
51505         * modules/pty (Makefile.am): Likewise.
51506         * modules/sched (Makefile.am): Likewise.
51507         * modules/search (Makefile.am): Likewise.
51508         * modules/selinux-h (Makefile.am): Likewise.
51509         * modules/signal (Makefile.am): Likewise.
51510         * modules/spawn (Makefile.am): Likewise.
51511         * modules/stdarg (Makefile.am): Likewise.
51512         * modules/stddef (Makefile.am): Likewise.
51513         * modules/stdint (Makefile.am): Likewise.
51514         * modules/stdio (Makefile.am): Likewise.
51515         * modules/stdlib (Makefile.am): Likewise.
51516         * modules/string (Makefile.am): Likewise.
51517         * modules/strings (Makefile.am): Likewise.
51518         * modules/sys_file (Makefile.am): Likewise.
51519         * modules/sys_ioctl (Makefile.am): Likewise.
51520         * modules/sys_select (Makefile.am): Likewise.
51521         * modules/sys_socket (Makefile.am): Likewise.
51522         * modules/sys_stat (Makefile.am): Likewise.
51523         * modules/sys_time (Makefile.am): Likewise.
51524         * modules/sys_times (Makefile.am): Likewise.
51525         * modules/sys_uio (Makefile.am): Likewise.
51526         * modules/sys_utsname (Makefile.am): Likewise.
51527         * modules/sys_wait (Makefile.am): Likewise.
51528         * modules/sysexits (Makefile.am): Likewise.
51529         * modules/termios (Makefile.am): Likewise.
51530         * modules/time (Makefile.am): Likewise.
51531         * modules/unistd (Makefile.am): Likewise.
51532         * modules/wchar (Makefile.am): Likewise.
51533         * modules/wctype-h (Makefile.am): Likewise.
51534         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
51536 2011-05-29  Bruno Haible  <bruno@clisp.org>
51538         assert-h: Allow multiple gnulib generated replacements to coexist.
51539         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
51541 2011-05-29  Bruno Haible  <bruno@clisp.org>
51543         argp: Allow coexistence with strerror_r-posix module.
51544         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
51545         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
51546         by gnulib's <string.h> replacement), assume it has the POSIX signature,
51547         not the glibc signature.
51549 2011-05-28  Bruno Haible  <bruno@clisp.org>
51551         gnulib-tool: Alternative structure of testdirs, similar to --import.
51552         * gnulib-tool: New option --single-configure.
51553         (func_usage): Document it.
51554         (single_configure): New variable.
51555         (func_modules_transitive_closure_separately,
51556         func_modules_transitive_closure_separately,
51557         func_determine_use_libtests, func_modules_add_dummy_separately,
51558         func_modules_to_filelist_separately): New functions, extracted from
51559         func_import.
51560         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
51561         (func_import): Use the new functions.
51562         (func_create_testdir): Set final_modules. Handle $single_configure =
51563         true case.
51565 2011-05-28  Bruno Haible  <bruno@clisp.org>
51567         getloadavg: Remove an unreliable safety check.
51568         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
51569         getloadavg.c is in place.
51570         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
51571         Reported by Sam Steingold <sds@gnu.org>.
51573 2011-05-28  Bruno Haible  <bruno@clisp.org>
51575         doc: Cleanup yet another file produced by texinfo.tex.
51576         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
51578 2011-05-28  Bruno Haible  <bruno@clisp.org>
51580         Finish the conditional dependencies mechanism.
51581         * gnulib-tool: New option --no-conditional-dependencies.
51582         (func_usage): Document it. Don't mark --conditional-dependencies as
51583         experimental.
51584         (cond_dependencies): The possible values can now be true, false, empty.
51585         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
51586         (func_import): Store setting in gnulib-cache.m4 and read it from there.
51587         * doc/gnulib-tool.texi (Conditional dependencies): New section.
51589 2011-05-28  Bruno Haible  <bruno@clisp.org>
51591         doc: Use a recent texinfo.tex.
51592         * doc/Makefile (tex_opts): New variable.
51593         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
51595 2011-05-28  Jim Meyering  <meyering@redhat.com>
51597         intprops.h: adjust comment to match code change
51598         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
51599         only once, it *may* have side effects.  Also fix an unrelated typo.
51600         (_GL_INT_SIGNED): Likewise.
51602 2011-05-26  Simon Josefsson  <simon@josefsson.org>
51604         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
51606 2011-05-26  Bruno Haible  <bruno@clisp.org>
51608         mbsrchr: Avoid collision with system function on Interix.
51609         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
51610         Reported by Markus Duft <mduft@gentoo.org>.
51612 2011-05-15  James Youngman  <jay@gnu.org>
51614         getopt: for ambiguous options, enumerate the possibilities.
51615         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
51616         the ambiguous options when an ambiguous prefix is given. This was
51617         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
51618         glibc change was
51619         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
51621 2011-05-25  Eric Blake  <eblake@redhat.com>
51623         getcwd: work around mingw bug
51624         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
51625         * doc/posix-functions/getcwd.texi (getcwd): Document it.
51626         Reported by Matthias Bolte.
51628 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
51630         test-intprops: disable -Wtype-limits diagnostics
51631         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
51632         diagnostics.  Otherwise, the integer overflow macros generate many
51633         diagnostics.  Reported by Jim Meyering in
51634         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51636         intprops: shorten, to pacify gcc -Woverlength-strings
51637         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
51638         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
51639         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
51640         likely to run afoul of C compiler limits for string constant lengths.
51641         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51643 2011-05-24  Eric Blake  <eblake@redhat.com>
51645         docs: document recently fixed glibc printf bug
51646         * doc/posix-functions/fprintf.texi (fprintf): Document it.
51647         * doc/posix-functions/printf.texi (printf): Likewise.
51648         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51649         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51651         closein-tests: convert to init.sh
51652         * modules/closein-tests (Files): Add init.sh
51653         * tests/test-closein.sh Use it.
51655         yesno-tests: convert to init.sh
51656         * modules/yesno-tests (Files): Add init.sh.
51657         * tests/test-yesno.sh: Use it.
51659         atexit-tests: ensure reliable exit status
51660         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
51661         Reported by Bruno Haible.
51663 2011-05-24  Bruno Haible  <bruno@clisp.org>
51665         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
51666         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51667         gl_PREREQ_STRERROR_R invocations from here...
51668         * modules/strerror_r-posix (configure.ac): ... to here.
51670 2011-05-24  Eric Blake  <eblake@redhat.com>
51672         strerror_r: fix missing header
51673         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51675         strerror_r: fix AIX test failures
51676         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51677         ERANGE failure.
51679         strerror_r: fix Solaris test failures
51680         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51681         failures.
51682         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51684         strerror_r: enforce POSIX recommendations
51685         * lib/strerror_r.c (safe_copy): New helper method.
51686         (strerror_r): Guarantee a non-empty string.
51687         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51688         recent POSIX rulings and to match our strerror guarantees.
51689         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51691 2011-05-24  Jim Meyering  <meyering@redhat.com>
51693         test-perror2.c: avoid warning about unused variable
51694         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51696 2011-05-24  Eric Blake  <eblake@redhat.com>
51698         perror: avoid spurious test failure on HP-UX
51699         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51701         tests: fix logic bug in init.sh
51702         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51703         shell.
51705 2011-05-24  Jim Meyering  <meyering@redhat.com>
51707         utimensat: do not reference an out-of-scope buffer
51708         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
51709         declared in an inner scope, yet "times" would be dereferenced outside
51710         the scope in which "ts" was valid.
51711         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
51712         of ts[2] "out/up", so that the use of aliased "times" (via
51713         "times = ts;") does not end up referencing an out-of-scope "ts"
51715         opendir-safer.c: don't clobber errno; don't close negative FD
51716         * lib/opendir-safer.c (opendir_safer):
51717         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
51718         file descriptor, and more importantly, don't clobber the
51719         offending errno value with EINVAL.  Before, upon failure
51720         of dup_safer, we would pass the negative file descriptor to
51721         fdopendir, which would clobber errno.
51723 2011-05-23  Bruno Haible  <bruno@clisp.org>
51725         idcache: Fix module description.
51726         * modules/idcache (Include): Set to "idcache.h".
51728 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
51730         gnulib-tool: fix portability problem with MacOS sed
51731         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
51732         before the "}".  Problem reported by Leo in
51733         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
51734         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
51735         sed_extract_condition1, sed_extract_condition2.
51737 2011-05-23  Bruno Haible  <bruno@clisp.org>
51739         hash: Simplify autoconf macro.
51740         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
51742 2011-05-23  Bruno Haible  <bruno@clisp.org>
51744         getugroups: Fix module description.
51745         * modules/getugroups (Include): Set to "getugroups.h".
51747 2011-05-23  Bruno Haible  <bruno@clisp.org>
51749         linkat: Simplify autoconf macro.
51750         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
51752 2011-05-23  Bruno Haible  <bruno@clisp.org>
51753             Eric Blake  <eblake@redhat.com>
51755         linkat, renameat: Update dependencies.
51756         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
51757         * modules/linkat (Depends-on): Likewise. Remove also readlink,
51758         symlinkat.
51760 2011-05-23  Jim Meyering  <meyering@redhat.com>
51762         maint.mk: more tight_scope improvements
51763         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
51764         (_gl_TS_headers): Define only in if-0'd block.
51765         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
51766         sometimes we must *not* use it.  Adjust uses accordingly.
51767         (sc_tight_scope): Use much simpler grep-based test to determine
51768         whether we skip this rule.
51770         maint.mk: generalize/improve the tight-scope rule
51771         * top/maint.mk: Emit a warning when the test is skipped.
51772         (_gl_TS_dir): Add $(srcdir)/ prefix.
51773         (_gl_TS_function_match): Simplify, rather than trying
51774         to enumerate common types.  Otherwise, it would fail to match an
51775         "extern unsigned char const *" declaration in idutils.
51776         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
51777         a way to support use of that type of macro.
51778         (_gl_TS_var_match): Simplify regexp.
51779         (_gl_TS_obj_files): New configurable variable.
51780         (_gl_TS_headers): Likewise.
51782 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51784         verify: fix bug when gnulib <assert.h> is also included
51785         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
51786         is defined, not if _GL_STATIC_ASSERT_H is not defined.
51787         Perhaps there's a better way, but this fixes the immediate problem.
51788         Problem reported by Bruno Haible in
51789         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
51791 2011-05-22  Bruno Haible  <bruno@clisp.org>
51793         xgetcwd: Simplify autoconf macro.
51794         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
51796 2011-05-22  Bruno Haible  <bruno@clisp.org>
51798         New module 'mktime-internal'.
51799         * modules/mktime-internal: New file.
51800         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
51801         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51802         mktime_internal as a C macro if libc has __mktime_internal.
51803         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
51804         conditions.
51805         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51807 2011-05-22  Bruno Haible  <bruno@clisp.org>
51809         timegm: Correct mktime replacement statements.
51810         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51811         defining mktime as a C macro. This completes a 2009-07-28 commit.
51813 2011-05-22  Bruno Haible  <bruno@clisp.org>
51815         timegm: Simplify autoconf macro.
51816         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51818 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51820         clock-time: change to LGPLv2+.
51821         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51822         BSD-like but we have no mark for that; this is good enough for now.
51824 2011-05-21  Bruno Haible  <bruno@clisp.org>
51826         strerror_r: Fix comments.
51827         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51829 2011-05-21  Bruno Haible  <bruno@clisp.org>
51831         relocatable-prog-wrapper: Fix possible link error.
51832         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51833         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51834         (gl_FUNC_SETENV): ... to here.
51835         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51836         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51838 2011-05-21  Bruno Haible  <bruno@clisp.org>
51840         relocatable-prog-wrapper: Assume strerror() exists.
51841         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51842         m4/strerror.m4.
51843         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51844         * lib/relocwrapper.c: Remove mention of strerror module.
51845         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51846         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51847         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51848         C macro.
51850 2011-05-21  Bruno Haible  <bruno@clisp.org>
51852         select: Simplify replacement idiom.
51853         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51854         Win32 platforms.
51855         * lib/sys_select.in.h (select): Simplify accordingly.
51856         * modules/select (Depends-on): Likewise.
51858 2011-05-21  Bruno Haible  <bruno@clisp.org>
51860         mkdir-p: Simplify autoconf macro.
51861         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51862         gl_FUNC_LCHOWN.
51864 2011-05-21  Eric Blake  <eblake@redhat.com>
51866         strerror_r: avoid clobbering strerror on cygwin
51867         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51868         fall back instead to sys_errlist.
51869         * modules/strerror (configure.ac): Add witness.
51870         * tests/test-strerror_r.c (main): Enhance test.
51871         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51872         * tests/test-perror2.c (main): Free memory before exit.
51874 2011-05-21  Bruno Haible  <bruno@clisp.org>
51876         mkdtemp: Use gnulib naming conventions.
51877         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51878         * modules/mkdtemp (configure.ac): Update.
51880 2011-05-20  Eric Blake  <eblake@redhat.com>
51882         strerror_r: avoid corrupting errno on Solaris
51883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51884         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51886         strerror_r: avoid compiler warning
51887         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51889         strerror_r: simplify AIX code
51890         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51892         test-perror: avoid spurious failure on FreeBSD
51893         * modules/perror-tests (Depends-on): Add strerror, now that
51894         strerror_r no longer pulls it in.
51896 2011-05-20  Bruno Haible  <bruno@clisp.org>
51898         strerror_r-posix: Remove unused dependencies.
51899         * modules/strerror_r-posix (Depends-on): Remove strerror.
51900         Reported by Eric Blake.
51902 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51904         intprops: remove assumption about A|B representation
51905         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51906         is a valid integer if both A and B are.  Although this is true for
51907         all known practical hosts, the C standard doesn't guarantee it,
51908         and the code need not assume it.  Also, this change may work around
51909         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51910         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51912 2011-05-20  Eric Blake  <eblake@redhat.com>
51914         perror: work around FreeBSD bug
51915         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51916         is broken.  Move AC_LIBOBJ...
51917         * modules/perror (configure.ac): Here.
51918         * doc/posix-functions/perror.texi (perror): Document this.
51919         * tests/test-perror2.c (main): Enhance test.
51921         test-perror: check for strerror interactions
51922         * tests/macros.h (STREQ): Add macro.
51923         * modules/perror-tests (Files): Add second test.
51924         * tests/test-perror2.c (main): New file.
51925         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51927         test-perror: rewrite to use init script
51928         * modules/perror-tests (Files): Add init.sh.
51929         * tests/test-perror.sh: Use temporary directory.
51931 2011-05-20  Jim Meyering  <meyering@redhat.com>
51933         maint: replace misused "a" with "an"
51934         * doc/intprops.texi: "a integer"
51935         * doc/regex.texi: "a explanation"
51936         * lib/alignof.h: "a object"
51937         * lib/argmatch.h: "a explanation"
51938         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51939         * lib/stdint.in.h: "a integer"
51940         * lib/userspec.c: "a owner"
51941         * doc/gnulib.texi: Fix "a idea", and reword.
51943 2011-05-19  Jim Meyering  <meyering@redhat.com>
51945         maint: correct misuse of "a" and "an"
51946         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51947         * lib/argp-help.c: "an docum...": s/an/a/
51948         * lib/argp-parse.c: "An vector": s/An/A/
51949         * lib/execute.c: "an native": s/an/a/
51950         * lib/spawn-pipe.c: Likewise.
51951         * lib/gc.h: "an Gc_rc": s/an/a/
51952         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51953         * lib/fts.c: "an stat.st_dev": s/an/a/
51955 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51957         intprops-tests: work around HP-UX 11.23 cc bug with constants
51958         * tests/test-intprops.c (VERIFY): New macro.
51959         (main): Use it, instead of verify, to work around the compiler bug; see
51960         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51962         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51963         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51964         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51965         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51966         (_GL_REMAINDER_OVERFLOW): Use it.
51968         intprops-tests: revert unsigned part of previous change
51969         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51970         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51971         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51972         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51974 2011-05-19  Bruno Haible  <bruno@clisp.org>
51976         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51977         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51978         strerror_r() returned without filling the buffer.
51979         Reported by Eric Blake.
51981 2011-05-19  Eric Blake  <eblake@redhat.com>
51983         strerror_r: guarantee unchanged errno
51984         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51985         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51986         failure.
51987         * tests/test-strerror_r.c (main): Enhance test.
51989 2011-05-19  Bruno Haible  <bruno@clisp.org>
51991         strerror_r: Reorder #if blocks.
51992         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51993         for consistency with the previous commit.
51995 2011-05-19  Bruno Haible  <bruno@clisp.org>
51997         perror: Avoid clobbering the strerror buffer when possible.
51998         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51999         * lib/strerror.c: Include it.
52000         * modules/strerror (Files): Add lib/strerror-impl.h.
52001         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
52002         (my_strerror): New function, defined through lib/strerror-impl.h.
52003         (perror): Use it instead of strerror.
52004         * modules/perror (Files): Add lib/strerror-impl.h.
52005         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
52007 2011-05-19  Eric Blake  <eblake@redhat.com>
52009         strerror_r: fix on newer cygwin
52010         * lib/strerror_r.c (strerror_r): Cygwin now has
52011         __xpg_strerror_r, use it.
52013 2011-05-19  Bruno Haible  <bruno@clisp.org>
52015         strerror_r: Avoid clobbering the strerror buffer when possible.
52016         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
52017         (sys_nerr, sys_errlist): New declarations.
52018         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
52019         HP-UX, native Win32, IRIX, and 32-bit Solaris.
52020         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
52022 2011-05-19  Bruno Haible  <bruno@clisp.org>
52024         strerror_r: Fix test failure on mingw.
52025         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
52026         EXTEND_STRERROR_R.
52027         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
52028         macros from errno.in.h instead.
52030 2011-05-19  Eric Blake  <eblake@redhat.com>
52032         strerror: relax test for Solaris
52033         * tests/test-strerror.c (main): Permit Solaris behavior.
52034         * tests/test-strerror_r.c (main): Likewise.
52036         strerror: enforce POSIX ruling on strerror(0)
52037         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
52038         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52039         * lib/strerror_r.c (rpl_strerror_r): Work around it.
52040         * doc/posix-functions/strerror.texi (strerror): Document it.
52041         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
52042         * tests/test-strerror.c (main): Strengthen test.
52043         * tests/test-strerror_r.c (main): Likewise.
52045 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52047         intprop-tests: port to older and more-pedantic compilers
52048         * modules/intprops-tests (Files): Add tests/macros.h.
52049         * tests/test-intprops.c: Include macros.h.
52050         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
52051         it's no longer documented to expand to an integer constant expression.
52052         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
52053         argument is floating point, as it's no longer documented to expand
52054         to an integer constant expression in that case.
52055         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
52056         compiler bugs reported by Bruno Haible.  See
52057         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52058         (U0, U1): New constants, to work around the same bugs.  Also,
52059         in tests, use e.g., "(unsigned int) 39" rather than "39u".
52061         intprops: work around C compiler bugs
52062         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
52063         bug in Sun C 5.11 2010/08/13 and other compilers; see
52064         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52066         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
52067         * doc/intprops.texi (Integer Type Determination): Fix
52068         documentation for TYPE_IS_INTEGER: it returns an constant
52069         expression, not an integer constant expression.  Fix doc for
52070         TYPE_SIGNED: it returns an integer constant expression only if its
52071         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
52072         hardly worth documented that way....)
52074 2011-05-18  Bruno Haible  <bruno@clisp.org>
52076         strerror_r: Avoid clobbering the strerror buffer when possible.
52077         * lib/strerror_r.c (strerror_r): Merge the three implementations.
52078         Handle gnulib defined errno values here. When strerror() returns NULL
52079         or an empty string, return EINVAL.
52080         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
52081         gnulib defined errno values here.
52082         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
52084 2011-05-18  Eric Blake  <eblake@redhat.com>
52086         fnmatch: avoid compiler warning
52087         * lib/fnmatch_loop.c (FCT): Use correct type.
52088         Reported by Matthias Bolte.
52090 2011-05-13  Jim Meyering  <meyering@redhat.com>
52092         maint.mk: three new prohibit_<HDR>_without_use rules
52093         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
52094         (sc_prohibit_stdio-safer_without_use): Likewise.
52095         (sc_prohibit_xfreopen_without_use): Likewise.
52097 2011-05-17  Jim Meyering  <meyering@redhat.com>
52099         announce-gen: fail if the NEWS delta is empty
52100         If there's nothing noteworthy in NEWS, then either you forgot
52101         or you shouldn't be releasing.
52102         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
52104 2011-05-17  Pádraig Brady  <P@draigBrady.com>
52106         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
52107         reserved symbols starting with double underscore from the check.
52109 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52111         intprops: add doc
52112         * doc/intprops.texi: New file, documenting intprops.
52113         * doc/gnulib.texi (Particular Modules): Include it.
52115         verify: add doc to gnulib manual and fix example
52116         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
52117         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
52118         (Compile-time Assertions): Fix example so it can't overflow.
52120 2011-05-17  Jim Meyering  <meyering@redhat.com>
52122         warnings.m4: don't usurp save_CPPFLAGS variable name
52123         * m4/warnings.m4: Prefix local temporary variable name with gl_.
52125         doc: fix typo
52126         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
52128 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52129             Bruno Haible  <bruno@clisp.org>
52131         doc: Tweak recent change.
52132         * README (Portability guidelines): Tweak new text.
52133         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
52134         Interix 6.1.
52136 2011-05-16  Eric Blake  <eblake@redhat.com>
52138         inttypes: avoid autoconf warning
52139         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
52140         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52142 2011-05-16  Sam Steingold  <sds@gnu.org>
52143         and Eric Blake  <eblake@redhat.com>
52145         vc-list-files: accept multiple directory operands
52146         * build-aux/vc-list-files: Iterate over all remaining operands.
52148 2011-05-16  Bruno Haible  <bruno@clisp.org>
52150         Fix confusion regarding deprecated modules.
52151         * modules/calloc (Status, Notice): Mark module as deprecated, not
52152         obsolete.
52153         * modules/fnmatch-posix (Status, Notice): Likewise.
52154         * modules/getdate (Status, Notice): Likewise.
52155         * modules/getopt (Status, Notice): Likewise.
52156         * modules/malloc (Status, Notice): Likewise.
52157         * modules/pipe (Status, Notice): Likewise.
52158         * modules/realloc (Status, Notice): Likewise.
52159         * modules/rename-dest-slash (Status, Notice): Likewise.
52160         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
52161         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
52162         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
52163         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
52164         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
52166 2011-05-16  Bruno Haible  <bruno@clisp.org>
52168         doc: List the target platforms.
52169         * doc/gnulib-intro.texi (Target Platforms): New section.
52170         * doc/gnulib.texi (Introduction): Update menu.
52171         * README (Portability guidelines): Refer to the new section. Update
52172         statement about oldest supported environment. Remove rationale why
52173         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
52174         unportable C89 function.
52175         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
52176         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
52178 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52180         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
52182 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52184         intprops-tests: new module
52185         * modules/intprops-tests, tests/test-intprops.c: New files.
52187         intprops: add safe, portable integer overflow checking
52188         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
52189         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
52190         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
52191         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
52192         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
52193         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
52194         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
52195         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
52196         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
52197         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
52198         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
52200 2011-05-12  James Youngman  <jay@gnu.org>
52202         Add a test for glibc's Bugzilla bug #12378.
52203         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
52204         doesn't allow the literal matching of a lone "[" (which is
52205         required by POSIX).
52206         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
52208 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
52210         Sync glibc change fixing Bugzilla bug #12378.
52211         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
52212         beginning and fall back to matching as normal character if the
52213         string ends before the matching ']' is found.  This is what POSIX
52214         requires.
52216 2011-05-13  Eric Blake  <eblake@redhat.com>
52218         getcwd-lgpl: relax test for FreeBSD
52219         * doc/posix-functions/getcwd.texi (getcwd): Document portability
52220         issue.
52221         * tests/test-getcwd-lgpl.c (main): Relax test.
52222         Reported by Matthias Bolte.
52224 2011-05-11  Eric Blake  <eblake@redhat.com>
52226         test-fflush: silence compiler warning
52227         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
52229 2011-05-11  Bruno Haible  <bruno@clisp.org>
52231         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
52232         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
52233         * modules/canonicalize (Depends-on): Add 'nocrash'.
52234         * modules/canonicalize-lgpl (Depends-on): Likewise.
52235         * doc/posix-functions/realpath.texi: Update platforms list.
52236         Reported by Ryan Schmidt <ryandesign@macports.org>.
52238 2011-05-11  Bruno Haible  <bruno@clisp.org>
52240         group-member: Declare function in <unistd.h>.
52241         * lib/unistd.in.h (group_member): New declaration.
52242         * lib/group-member.h: Remove file.
52243         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
52244         * tests/test-unistd-c++.cc: Check signature of group_member.
52245         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
52246         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
52247         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
52248         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
52249         HAVE_GROUP_MEMBER.
52250         * modules/group-member (Files): Remove lib/group-member.h.
52251         (Depends-on): Add unistd. Specify conditions.
52252         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52253         (Include): Change to <unistd.h>.
52254         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
52255         HAVE_GROUP_MEMBER.
52256         * NEWS: Mention the change.
52257         * lib/euidaccess.c: Don't include group-member.h.
52259 2011-05-11  Bruno Haible  <bruno@clisp.org>
52261         group-member: Document module.
52262         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
52263         module.
52265 2011-05-11  Bruno Haible  <bruno@clisp.org>
52267         fclose: Fix mistake earlier today.
52268         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
52270 2011-05-11  Eric Blake  <eblake@redhat.com>
52272         fclose: preserve fflush errors
52273         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
52274         Reported by Jim Meyering.
52276         bootstrap: support a prereq of 'rpcgen -' on RHEL5
52277         * build-aux/bootstrap (check_versions): When no specific version
52278         is required, merely check that the app produces an exit status
52279         that indicates its existence.
52281         maint.mk: drop redundant check
52282         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
52283         the same but better.
52285 2011-05-11  Bruno Haible  <bruno@clisp.org>
52287         fclose: Fix possible link error.
52288         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
52289         unregister_shadow_fd. Improve comments.
52290         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
52291         Eric Blake.
52293 2011-05-11  Jim Meyering  <meyering@redhat.com>
52295         maint.mk: improve "can not" detection and generalize rule name
52296         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
52297         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
52298         Use the same technique as in sc_prohibit_doubled_word, so that
52299         we recognize "can not" also when the words are separated by a newline.
52300         Suggested by Eric Blake.
52301         (perl_filename_lineno_text_): Define.  Factored out of...
52302         (prohibit_doubled_word_): ...here.  Use the new definition.
52303         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
52304         (prohibit_undesirable_word_seq_RE_): New overridable variable.
52305         (ignore_undesirable_word_sequence_RE_): New overridable variable.
52307 2011-05-10  Eric Blake  <eblake@redhat.com>
52309         fclose: avoid double close race when possible
52310         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
52311         all but WINDOWS_SOCKETS.
52313 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
52315         openat: correct new comment
52316         * lib/openat-proc.c (openat_proc_name): Correct the comment.
52318 2011-05-10  Jim Meyering  <meyering@redhat.com>
52320         openat: add comments
52321         * lib/openat-proc.c (openat_proc_name): Add comments,
52322         mostly from Eric Blake.
52324 2011-05-09  Eric Blake  <eblake@redhat.com>
52326         openat: reduce syscalls in first probe of /proc
52327         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
52328         be a directory.  Simplify the probe for .. bugs.
52329         * modules/openat (Depends-on): Drop same-inode.
52330         Reported by Bastien ROUCARIES.
52332 2011-05-09  Jim Meyering  <meyering@redhat.com>
52334         maint.mk: change semantics/name of tight_scope variables
52335         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
52336         Rename variables to align with semantics that make them more useful.
52338         maint.mk: tweak new rule's name not to impinge
52339         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
52340         (sc_tight_scope): Use new rule name rather than $@-0.
52342         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
52343         * top/maint.mk (sc_tight_scope): New rule.
52344         (sc_tight_scope-0): New rule, ifdef'd out.
52345         (_gl_TS_dir): Default.
52346         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
52347         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
52349 2011-05-09  Simon Josefsson  <simon@josefsson.org>
52351         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
52352         Haible <bruno@clisp.org>.
52354 2011-05-08  Bruno Haible  <bruno@clisp.org>
52356         Comments.
52357         * m4/isnanf.m4: Add comment.
52358         * m4/isnanl.m4: Likewise.
52360 2011-05-08  Bruno Haible  <bruno@clisp.org>
52362         glob: Remove obsolete macro.
52363         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
52365 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
52367         intprops: Sun C 5.11 supports __typeof__
52368         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
52369         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
52370         which is new.
52371         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
52373         intprops: switch to usual gnulib indenting and naming
52374         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
52375         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
52377         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
52379 2011-05-08  Jim Meyering  <meyering@redhat.com>
52381         maint.mk: suppress "Entering/Leaving directory" diag in announcement
52382         * top/maint.mk (release-prep): Use make's --no-print-directory
52383         option when generating the announcement.  This eliminates the
52384         pesky "make[2]: Entering/Leaving directory" diagnostics in the
52385         generated announcement template.
52387 2011-05-08  Bruno Haible  <bruno@clisp.org>
52389         tzset: Fix gettimeofday wrapper on Solaris 2.6.
52390         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
52391         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
52393 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
52395         ignore-value, verify: Omit include files from lib_SOURCES.
52396         * modules/ignore-value, modules/verify (Makefile.am):
52397         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
52398         that leads Automake to duplicate use of am__objects_... variables
52399         in Makefile.in.  See
52400         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
52402 2011-05-07  Bruno Haible  <bruno@clisp.org>
52404         fclose: Simplify autoconf macro.
52405         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
52406         defined.
52408 2011-05-07  Bruno Haible  <bruno@clisp.org>
52410         canonicalize-lgpl: Fix autoconf macro ordering bug.
52411         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
52412         gl_STDLIB_H_DEFAULTS.
52414 2011-05-06  Eric Blake  <eblake@redhat.com>
52416         maintainer-makefile: make sc_po_check easier to tune
52417         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
52418         to probe for strings, such as an alternate location for gnulib.
52420         fclose: guarantee behavior on seekable stdin
52421         * modules/fclose (Depends-on): Add fflush.
52422         * doc/posix-functions/fclose.texi (fclose): Document this.
52423         * tests/test-fclose.c (main): Make test for this unconditional.
52425 2011-05-06  Bruno Haible  <bruno@clisp.org>
52427         fflush, fpurge: Relicense under LGPLv2+.
52428         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
52429         * modules/fpurge (License): Likewise.
52430         With permission from Eric Blake and Jim Meyering.
52431         Suggested by Eric Blake.
52433 2011-05-06  Karl Berry  <karl@gnu.org>
52435         * MODULES.html.sh (func_all_modules): remove exit.
52437 2011-05-06  Jim Meyering  <meyering@redhat.com>
52439         maint.mk: use info-gnu@ as the default only for a stable release
52440         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
52441         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
52442         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
52443         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
52445 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52447         assert-h: new module, which supports C1X-style static_assert
52448         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
52449         * lib/verify.h: Revamp so that this can be copied into assert.h,
52450         while retaining the ability to use it standalone as before.
52451         Rename private identifiers so as not to encroach on the
52452         standard C namespace, since this is now used by assert.h.
52453         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
52454         the old verify_true.
52455         (_GL_VERIFY_TRUE): New macro, with much of the contents of
52456         the old verify_true.  Use _GL_VERIFY_TYPE.
52457         (_GL_VERIFY): New macro, with much of the contents of the old verify.
52458         (static_assert): New macro, if _GL_STATIC_ASSERT_H
52459         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
52460         defined when this file is copied into the replacement assert.h.
52461         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
52462         and _Static_assert is not built in.
52463         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
52464         defined, and use the new macros mentioned above.
52465         * doc/posix-headers/assert.texi: Document this.
52467 2011-05-05  Bruno Haible  <bruno@clisp.org>
52469         fclose, fflush: Respect rules for use of AC_LIBOBJ.
52470         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
52471         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
52472         gl_REPLACE_FCLOSE here.
52473         * modules/fflush (Depends-on): Remove fclose.
52474         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
52475         combination with module 'fclose'.
52477 2011-05-05  Bruno Haible  <bruno@clisp.org>
52479         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
52480         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
52481         gl_FUNC_FFLUSH.
52482         (gl_FUNC_FFLUSH): Use it.
52483         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
52484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
52485         gl_REPLACE_FSEEKO here.
52487 2011-05-05  Bruno Haible  <bruno@clisp.org>
52489         tzset: Relicense under LGPL.
52490         * modules/tzset (License): Change to LGPL.
52491         No agreement needed; it's a no-op.
52493         strtoimax, strtoumax: Relicense under LGPL.
52494         * modules/strtoimax (License): Change to LGPL.
52495         * modules/strtoumax (License): Likewise.
52496         With permission from Jim Meyering, Paul Eggert:
52497         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
52498         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
52500         getgroups: Relicense under LGPL.
52501         * modules/getgroups (License): Change to LGPL.
52502         With permission from Jim Meyering, Paul Eggert, Eric Blake:
52503         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52504         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52505         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52507         nanosleep: Relicense under LGPL.
52508         * modules/nanosleep (License): Change to LGPL.
52509         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
52510         Haible:
52511         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52512         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52513         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52514         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52516         futimens: Relicense under LGPL.
52517         * modules/futimens (License): Change to LGPL.
52518         With permission from Eric Blake:
52519         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52521         fflush: Relicense under LGPL.
52522         * modules/fflush (License): Change to LGPL.
52523         With permission from Eric Blake, Bruno Haible, Jim Meyering:
52524         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52525         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52526         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
52528         tmpfile: Relicense under LGPL.
52529         * modules/tmpfile (License): Change to LGPL.
52530         With permission from Ben Pfaff:
52531         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52533         isfinite: Relicense under LGPL.
52534         * modules/isfinite (License): Change to LGPL.
52535         With permission from Ben Pfaff, Bruno Haible:
52536         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52537         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
52539         acosl..tanl: Relicense under LGPL.
52540         * modules/acosl (License): Change to LGPL.
52541         * modules/asinl (License): Likewise.
52542         * modules/atanl (License): Likewise.
52543         * modules/cosl (License): Likewise.
52544         * modules/expl (License): Likewise.
52545         * modules/logl (License): Likewise.
52546         * modules/sinl (License): Likewise.
52547         * modules/sqrtl (License): Likewise.
52548         * modules/tanl (License): Likewise.
52549         Source code originally from glibc and Paolo Bonzini. Agreements:
52550         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
52551         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
52553 2011-05-05  Bruno Haible  <bruno@clisp.org>
52555         signal: Define sighandler_t.
52556         * lib/signal.in.h (sighandler_t): New type.
52557         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
52558         whether sighandler_t is defined.
52559         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
52560         * modules/signal (Depends-on): Add extensions.
52561         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
52562         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
52563         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
52565 2011-05-05  Eric Blake  <eblake@redhat.com>
52567         maint: remove useless REPLACE_*_H macros
52568         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
52569         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52570         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52571         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
52572         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52573         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52574         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
52575         * m4/btowc.m4: Update callers.
52576         * m4/dirfd.m4: Likewise.
52577         * m4/duplocale.m4: Likewise.
52578         * m4/fchdir.m4: Likewise.
52579         * m4/fdopendir.m4: Likewise.
52580         * m4/inet_ntop.m4: Likewise.
52581         * m4/inet_pton.m4: Likewise.
52582         * m4/ioctl.m4: Likewise.
52583         * m4/mbrlen.m4: Likewise.
52584         * m4/mbrtowc.m4: Likewise.
52585         * m4/mbsinit.m4: Likewise.
52586         * m4/mbsnrtowcs.m4: Likewise.
52587         * m4/mbsrtowcs.m4: Likewise.
52588         * m4/poll.m4: Likewise.
52589         * m4/setlocale.m4: Likewise.
52590         * m4/wcrtomb.m4: Likewise.
52591         * m4/wcsnrtombs.m4: Likewise.
52592         * m4/wcsrtombs.m4: Likewise.
52593         * m4/wctob.m4: Likewise.
52594         * m4/wcwidth.m4: Likewise.
52595         * modules/posix_spawn: Likewise.
52596         * modules/posix_spawn_file_actions_addclose: Likewise.
52597         * modules/posix_spawn_file_actions_adddup2: Likewise.
52598         * modules/posix_spawn_file_actions_addopen: Likewise.
52599         * modules/posix_spawn_file_actions_destroy: Likewise.
52600         * modules/posix_spawn_file_actions_init: Likewise.
52601         * modules/posix_spawnattr_destroy: Likewise.
52602         * modules/posix_spawnattr_getflags: Likewise.
52603         * modules/posix_spawnattr_getpgroup: Likewise.
52604         * modules/posix_spawnattr_getschedparam: Likewise.
52605         * modules/posix_spawnattr_getschedpolicy: Likewise.
52606         * modules/posix_spawnattr_getsigdefault: Likewise.
52607         * modules/posix_spawnattr_getsigmask: Likewise.
52608         * modules/posix_spawnattr_init: Likewise.
52609         * modules/posix_spawnattr_setflags: Likewise.
52610         * modules/posix_spawnattr_setpgroup: Likewise.
52611         * modules/posix_spawnattr_setschedparam: Likewise.
52612         * modules/posix_spawnattr_setschedpolicy: Likewise.
52613         * modules/posix_spawnattr_setsigdefault: Likewise.
52614         * modules/posix_spawnattr_setsigmask: Likewise.
52615         * modules/posix_spawnp: Likewise.
52617 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
52619         Add option to do-release-commit-and-tag to specify branch.
52620         * build-aux/do-release-commit-and-tag: Add --branch.
52622 2011-05-03  Bruno Haible  <bruno@clisp.org>
52624         Avoid unnecessary compilation units, through conditional dependencies.
52625         * modules/accept (Depends-on): Add conditions to the dependencies.
52626         * modules/acosl (Depends-on): Likewise.
52627         * modules/argz (Depends-on): Likewise.
52628         * modules/asinl (Depends-on): Likewise.
52629         * modules/atanl (Depends-on): Likewise.
52630         * modules/atoll (Depends-on): Likewise.
52631         * modules/bind (Depends-on): Likewise.
52632         * modules/btowc (Depends-on): Likewise.
52633         * modules/canonicalize-lgpl (Depends-on): Likewise.
52634         * modules/ceil (Depends-on): Likewise.
52635         * modules/ceilf (Depends-on): Likewise.
52636         * modules/ceill (Depends-on): Likewise.
52637         * modules/chdir-long (Depends-on): Likewise.
52638         * modules/chown (Depends-on): Likewise.
52639         * modules/close (Depends-on): Likewise.
52640         * modules/connect (Depends-on): Likewise.
52641         * modules/cosl (Depends-on): Likewise.
52642         * modules/dirfd (Depends-on): Likewise.
52643         * modules/dprintf (Depends-on): Likewise.
52644         * modules/dprintf-posix (Depends-on): Likewise.
52645         * modules/error (Depends-on): Likewise.
52646         * modules/euidaccess (Depends-on): Likewise.
52647         * modules/expl (Depends-on): Likewise.
52648         * modules/faccessat (Depends-on): Likewise.
52649         * modules/fchdir (Depends-on): Likewise.
52650         * modules/fclose (Depends-on): Likewise.
52651         * modules/fcntl (Depends-on): Likewise.
52652         * modules/fdopendir (Depends-on): Likewise.
52653         * modules/fflush (Depends-on): Likewise.
52654         * modules/floor (Depends-on): Likewise.
52655         * modules/floorf (Depends-on): Likewise.
52656         * modules/floorl (Depends-on): Likewise.
52657         * modules/fnmatch (Depends-on): Likewise.
52658         * modules/fopen (Depends-on): Likewise.
52659         * modules/fprintf-posix (Depends-on): Likewise.
52660         * modules/frexp (Depends-on): Likewise.
52661         * modules/frexp-nolibm (Depends-on): Likewise.
52662         * modules/frexpl (Depends-on): Likewise.
52663         * modules/frexpl-nolibm (Depends-on): Likewise.
52664         * modules/fseek (Depends-on): Likewise.
52665         * modules/fsusage (Depends-on): Likewise.
52666         * modules/ftell (Depends-on): Likewise.
52667         * modules/ftello (Depends-on): Likewise.
52668         * modules/futimens (Depends-on): Likewise.
52669         * modules/getcwd (Depends-on): Likewise.
52670         * modules/getcwd-lgpl (Depends-on): Likewise.
52671         * modules/getdelim (Depends-on): Likewise.
52672         * modules/getdomainname (Depends-on): Likewise.
52673         * modules/getgroups (Depends-on): Likewise.
52674         * modules/gethostname (Depends-on): Likewise.
52675         * modules/getline (Depends-on): Likewise.
52676         * modules/getlogin_r (Depends-on): Likewise.
52677         * modules/getopt-posix (Depends-on): Likewise.
52678         * modules/getpeername (Depends-on): Likewise.
52679         * modules/getsockname (Depends-on): Likewise.
52680         * modules/getsockopt (Depends-on): Likewise.
52681         * modules/getsubopt (Depends-on): Likewise.
52682         * modules/getusershell (Depends-on): Likewise.
52683         * modules/glob (Depends-on): Likewise.
52684         * modules/grantpt (Depends-on): Likewise.
52685         * modules/iconv_open (Depends-on): Likewise.
52686         * modules/iconv_open-utf (Depends-on): Likewise.
52687         * modules/inet_ntop (Depends-on): Likewise.
52688         * modules/inet_pton (Depends-on): Likewise.
52689         * modules/ioctl (Depends-on): Likewise.
52690         * modules/isapipe (Depends-on): Likewise.
52691         * modules/isfinite (Depends-on): Likewise.
52692         * modules/isinf (Depends-on): Likewise.
52693         * modules/lchown (Depends-on): Likewise.
52694         * modules/ldexpl (Depends-on): Likewise.
52695         * modules/link (Depends-on): Likewise.
52696         * modules/linkat (Depends-on): Likewise.
52697         * modules/listen (Depends-on): Likewise.
52698         * modules/logl (Depends-on): Likewise.
52699         * modules/lstat (Depends-on): Likewise.
52700         * modules/mbrlen (Depends-on): Likewise.
52701         * modules/mbrtowc (Depends-on): Likewise.
52702         * modules/mbsinit (Depends-on): Likewise.
52703         * modules/mbsnrtowcs (Depends-on): Likewise.
52704         * modules/mbsrtowcs (Depends-on): Likewise.
52705         * modules/mbtowc (Depends-on): Likewise.
52706         * modules/memcmp (Depends-on): Likewise.
52707         * modules/mkdir (Depends-on): Likewise.
52708         * modules/mkdtemp (Depends-on): Likewise.
52709         * modules/mkfifo (Depends-on): Likewise.
52710         * modules/mkfifoat (Depends-on): Likewise.
52711         * modules/mknod (Depends-on): Likewise.
52712         * modules/mkostemp (Depends-on): Likewise.
52713         * modules/mkostemps (Depends-on): Likewise.
52714         * modules/mkstemp (Depends-on): Likewise.
52715         * modules/mkstemps (Depends-on): Likewise.
52716         * modules/mktime (Depends-on): Likewise.
52717         * modules/nanosleep (Depends-on): Likewise.
52718         * modules/open (Depends-on): Likewise.
52719         * modules/openat (Depends-on): Likewise.
52720         * modules/perror (Depends-on): Likewise.
52721         * modules/poll (Depends-on): Likewise.
52722         * modules/popen (Depends-on): Likewise.
52723         * modules/posix_spawn (Depends-on): Likewise.
52724         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
52725         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52726         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52727         * modules/posix_spawnp (Depends-on): Likewise.
52728         * modules/pread (Depends-on): Likewise.
52729         * modules/printf-posix (Depends-on): Likewise.
52730         * modules/ptsname (Depends-on): Likewise.
52731         * modules/putenv (Depends-on): Likewise.
52732         * modules/pwrite (Depends-on): Likewise.
52733         * modules/readline (Depends-on): Likewise.
52734         * modules/readlink (Depends-on): Likewise.
52735         * modules/readlinkat (Depends-on): Likewise.
52736         * modules/recv (Depends-on): Likewise.
52737         * modules/recvfrom (Depends-on): Likewise.
52738         * modules/regex (Depends-on): Likewise.
52739         * modules/remove (Depends-on): Likewise.
52740         * modules/rename (Depends-on): Likewise.
52741         * modules/renameat (Depends-on): Likewise.
52742         * modules/rmdir (Depends-on): Likewise.
52743         * modules/round (Depends-on): Likewise.
52744         * modules/roundf (Depends-on): Likewise.
52745         * modules/roundl (Depends-on): Likewise.
52746         * modules/rpmatch (Depends-on): Likewise.
52747         * modules/select (Depends-on): Likewise.
52748         * modules/send (Depends-on): Likewise.
52749         * modules/sendto (Depends-on): Likewise.
52750         * modules/setenv (Depends-on): Likewise.
52751         * modules/setlocale (Depends-on): Likewise.
52752         * modules/setsockopt (Depends-on): Likewise.
52753         * modules/shutdown (Depends-on): Likewise.
52754         * modules/sigaction (Depends-on): Likewise.
52755         * modules/signbit (Depends-on): Likewise.
52756         * modules/sigprocmask (Depends-on): Likewise.
52757         * modules/sinl (Depends-on): Likewise.
52758         * modules/sleep (Depends-on): Likewise.
52759         * modules/snprintf (Depends-on): Likewise.
52760         * modules/snprintf-posix (Depends-on): Likewise.
52761         * modules/socket (Depends-on): Likewise.
52762         * modules/sprintf-posix (Depends-on): Likewise.
52763         * modules/sqrtl (Depends-on): Likewise.
52764         * modules/stat (Depends-on): Likewise.
52765         * modules/strchrnul (Depends-on): Likewise.
52766         * modules/strdup-posix (Depends-on): Likewise.
52767         * modules/strerror (Depends-on): Likewise.
52768         * modules/strerror_r-posix (Depends-on): Likewise.
52769         * modules/strndup (Depends-on): Likewise.
52770         * modules/strnlen (Depends-on): Likewise.
52771         * modules/strptime (Depends-on): Likewise.
52772         * modules/strsep (Depends-on): Likewise.
52773         * modules/strsignal (Depends-on): Likewise.
52774         * modules/strstr-simple (Depends-on): Likewise.
52775         * modules/strtod (Depends-on): Likewise.
52776         * modules/strtoimax (Depends-on): Likewise.
52777         * modules/strtok_r (Depends-on): Likewise.
52778         * modules/strtoumax (Depends-on): Likewise.
52779         * modules/symlink (Depends-on): Likewise.
52780         * modules/symlinkat (Depends-on): Likewise.
52781         * modules/tanl (Depends-on): Likewise.
52782         * modules/tcgetsid (Depends-on): Likewise.
52783         * modules/tmpfile (Depends-on): Likewise.
52784         * modules/trunc (Depends-on): Likewise.
52785         * modules/truncf (Depends-on): Likewise.
52786         * modules/truncl (Depends-on): Likewise.
52787         * modules/uname (Depends-on): Likewise.
52788         * modules/unlink (Depends-on): Likewise.
52789         * modules/unlockpt (Depends-on): Likewise.
52790         * modules/unsetenv (Depends-on): Likewise.
52791         * modules/usleep (Depends-on): Likewise.
52792         * modules/utimensat (Depends-on): Likewise.
52793         * modules/vasprintf (Depends-on): Likewise.
52794         * modules/vdprintf (Depends-on): Likewise.
52795         * modules/vdprintf-posix (Depends-on): Likewise.
52796         * modules/vfprintf-posix (Depends-on): Likewise.
52797         * modules/vprintf-posix (Depends-on): Likewise.
52798         * modules/vsnprintf (Depends-on): Likewise.
52799         * modules/vsnprintf-posix (Depends-on): Likewise.
52800         * modules/vsprintf-posix (Depends-on): Likewise.
52801         * modules/wcrtomb (Depends-on): Likewise.
52802         * modules/wcscasecmp (Depends-on): Likewise.
52803         * modules/wcscspn (Depends-on): Likewise.
52804         * modules/wcsdup (Depends-on): Likewise.
52805         * modules/wcsncasecmp (Depends-on): Likewise.
52806         * modules/wcsnrtombs (Depends-on): Likewise.
52807         * modules/wcspbrk (Depends-on): Likewise.
52808         * modules/wcsrtombs (Depends-on): Likewise.
52809         * modules/wcsspn (Depends-on): Likewise.
52810         * modules/wcsstr (Depends-on): Likewise.
52811         * modules/wcstok (Depends-on): Likewise.
52812         * modules/wcswidth (Depends-on): Likewise.
52813         * modules/wctob (Depends-on): Likewise.
52814         * modules/wctomb (Depends-on): Likewise.
52815         * modules/wctype (Depends-on): Likewise.
52816         * modules/wcwidth (Depends-on): Likewise.
52817         * modules/write (Depends-on): Likewise.
52819 2011-05-03  Bruno Haible  <bruno@clisp.org>
52821         Support for conditional dependencies.
52822         * doc/gnulib.texi (Module description): Document the syntax of
52823         conditional dependencies.
52824         * gnulib-tool: New option --conditional-dependencies.
52825         (func_usage): Document it.
52826         (cond_dependencies): New variable.
52827         (func_get_automake_snippet_conditional,
52828         func_get_automake_snippet_unconditional): New functions, extracted from
52829         func_get_automake_snippet.
52830         (func_get_automake_snippet): Use them.
52831         (sed_first_32_chars): New variable.
52832         (func_module_shellfunc_name): New function.
52833         (func_module_shellvar_name): New function.
52834         (func_module_conditional_name): New function.
52835         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52836         func_cond_module_condition): New functions.
52837         (func_modules_transitive_closure): Add support for conditional
52838         dependencies.
52839         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52840         conditional automake snippet in an automake conditional.
52841         (func_emit_autoconf_snippets): Emit shell functions that contain the
52842         code for conditional modules.
52843         (func_import, func_create_testdir): Update specification.
52845 2011-05-03  Eric Blake  <eblake@redhat.com>
52847         test-getaddrinfo: report error information
52848         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52850 2011-05-03  Jim Meyering  <meyering@redhat.com>
52852         bootstrap: avoid build failure when $GZIP is set
52853         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52854         program name.  If defined at all, it is supposed to list gzip options.
52855         Reported by Alan Curry in http://debbugs.gnu.org/8609
52857 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52859         readme-release: new module with release instructions
52860         * modules/readme-release: New module.
52861         * top/README-release: New file, from coreutils, grep, diffutils.
52862         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52864 2011-05-02  Eric Blake  <eblake@redhat.com>
52866         fflush: also replace fclose when fixing fflush
52867         * modules/fflush (Depends-on): Add fclose.
52868         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52869         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52870         memstreams with no backing fd.
52871         * doc/posix-functions/fclose.texi (fclose): Document the use of
52872         fflush module to fix the bug.
52873         * tests/test-fclose.c (main): Relax test when fclose is used in
52874         isolation.
52876         fclose: add some tests
52877         * modules/fclose-tests: New test module.
52878         * tests/test-fclose.c: New file.
52879         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52881         fclose: reduced dependencies
52882         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52883         simpler lseek.
52884         * lib/fclose.c (rpl_fclose): Likewise.
52885         Reported by Simon Josefsson.
52887         exit: drop remaining clients
52888         * modules/argmatch (Depends-on): Replace exit with stdlib.
52889         * modules/copy-file (Depends-on): Likewise.
52890         * modules/execute (Depends-on): Likewise.
52891         * modules/exitfail (Depends-on): Likewise.
52892         * modules/obstack (Depends-on): Likewise.
52893         * modules/pagealign_alloc (Depends-on): Likewise.
52894         * modules/pipe-filter-gi (Depends-on): Likewise.
52895         * modules/pipe-filter-ii (Depends-on): Likewise.
52896         * modules/savewd (Depends-on): Likewise.
52897         * modules/spawn-pipe (Depends-on): Likewise.
52898         * modules/wait-process (Depends-on): Likewise.
52899         * modules/xsetenv (Depends-on): Likewise.
52900         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52901         * modules/git-merge-changelog (Depends-on): Likewise.
52902         * modules/long-options (Depends-on): Likewise.
52903         * modules/pt_chown (Depends-on): Likewise.
52904         * modules/sysexits (Depends-on): Likewise.
52906         freading: relax license from LGPLv3+ to LGPLv2+
52907         * modules/freading (License): Relax LGPL version.
52909 2011-05-02  Bruno Haible  <bruno@clisp.org>
52911         fchdir: Remove unused dependencies.
52912         * modules/fchdir (Depends-on): Remove include_next.
52914 2011-05-02  Bruno Haible  <bruno@clisp.org>
52916         gnulib-tool: Refactor.
52917         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52918         from func_emit_autoconf_snippets.
52919         (func_emit_autoconf_snippets): Use it.
52921 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52923         * NEWS: Document removal of 'exit'.
52924         * modules/exit: Remove file.
52926 2011-05-01  Bruno Haible  <bruno@clisp.org>
52928         Update DEPENDENCIES.
52929         * DEPENDENCIES (gettext): Recommend the newest release.
52930         Reported by Simon Josefsson.
52932 2011-05-01  Bruno Haible  <bruno@clisp.org>
52934         gnulib-tool: Reduce code duplication.
52935         * gnulib-tool (func_emit_autoconf_snippets): New function.
52936         (func_import, func_create_testdir): Use it.
52938 2011-04-30  Eric Blake  <eblake@redhat.com>
52940         fclose: don't fail on non-seekable input stream
52941         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52942         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52943         since fflush is allowed to fail in that case.
52945 2011-04-30  Bruno Haible  <bruno@clisp.org>
52947         dup3: cleanup
52948         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52950 2011-04-30  Bruno Haible  <bruno@clisp.org>
52952         netdb: Make it work in C++ mode.
52953         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52954         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52955         module.
52956         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52957         gl_MODULE_INDICATOR_FOR_TESTS.
52958         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52959         * modules/netdb-c++-tests: New file.
52960         * tests/test-netdb-c++.cc: New file.
52962 2011-04-30  Bruno Haible  <bruno@clisp.org>
52964         New modules 'vfscanf', 'vscanf'.
52965         * modules/vfscanf: New file.
52966         * modules/vscanf: New file.
52967         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52968         here.
52969         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52970         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52972 2011-04-30  Bruno Haible  <bruno@clisp.org>
52974         passfd: Add comments.
52975         * lib/passfd.c: Add comments about platforms.
52977 2011-04-30  Bruno Haible  <bruno@clisp.org>
52979         sys_uio: Make <sys/uio.h> self-contained.
52980         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52981         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52983 2011-04-30  Bruno Haible  <bruno@clisp.org>
52985         sys_socket: Ensure 'struct iovec' definition.
52986         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52987         <sys/socket.h>.
52988         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52990 2011-04-30  Bruno Haible  <bruno@clisp.org>
52992         sys_uio: Protect definition of 'struct iovec'.
52993         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52994         it as a C struct.
52996 2011-04-30  Bruno Haible  <bruno@clisp.org>
52998         manywarnings: fix indentation
52999         * m4/manywarnings.m4: Indent by 2 spaces consistently.
53001 2011-04-30  Pádraig Brady  <P@draigBrady.com>
53003         manywarnings: add -Wno-missing-field-initializers if needed.
53004         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
53005         option if it's needed to allow initialization with { 0, }
53007 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
53009         announce-gen: cosmetic improvement
53010         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
53012 2011-04-29  Jim Meyering  <meyering@redhat.com>
53014         vc-list-files: indent with spaces, not TABs
53015         * build-aux/vc-list-files: Convert leading TABs to spaces,
53016         to match the style of most other files in gnulib.
53018         announce-gen: indent with spaces, not TABs
53019         * build-aux/announce-gen: Convert all TABs to spaces, to match
53020         the style of most other files in gnulib.
53022 2011-04-29  Eric Blake  <eblake@redhat.com>
53024         quotearg: avoid uninitialized variable use
53025         * lib/quotearg.c (quoting_options_from_style): Initialize
53026         remaining fields, and ensure that custom styles are only used via
53027         quoting_options rather than quoting_style.
53029 2011-04-29  Jim Meyering  <meyering@redhat.com>
53031         maint.mk: remove unused VC-tag variable
53032         * top/maint.mk (VC-tag): Remove unused variable.
53034 2011-04-29  Bruno Haible  <bruno@clisp.org>
53036         netdb: fix gai_strerror replacements
53037         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
53038         * modules/netdb: Substitute it.
53040 2011-04-29  Jim Meyering  <meyering@redhat.com>
53042         test-getcwd.c: avoid new set-but-not-used warning
53043         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
53044         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
53045         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
53046         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
53048         test-hash.c: avoid a new shadowing warning
53049         * tests/test-hash.c (main): Don't shadow "dup".
53051 2011-04-28  Eric Blake  <eblake@redhat.com>
53053         getaddrinfo: fix gai_strerror signature
53054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
53055         and work around mingw with UNICODE defined.
53056         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
53057         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
53058         * modules/netdb (Makefile.am): Substitute it.
53059         * lib/netdb.in.h (gai_strerror): Declare replacement.
53060         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
53061         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
53062         the fix.
53064         getsockopt: avoid compiler warning
53065         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
53066         Reported by Matthias Bolte.
53068         tests: drop unused link dependency
53069         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
53070         * modules/dirent-safer-tests (Makefile.am): Likewise.
53071         * modules/fdopendir-tests (Makefile.am): Likewise.
53072         * modules/mkfifoat-tests (Makefile.am): Likewise.
53073         * modules/openat-safer-tests (Makefile.am): Likewise.
53074         * modules/openat-tests (Makefile.am): Likewise.
53075         * modules/readlinkat-tests (Makefile.am): Likewise.
53076         * modules/symlinkat-tests (Makefile.am): Likewise.
53077         * modules/linkat-tests (Makefile.am): Likewise.
53078         (Depends-on): Switch to filenamecat-lgpl.
53079         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
53080         LIBINTL.
53081         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
53082         * tests/test-linkat.c (main): Don't require xalloc.
53084         hash, mgetgroups: drop xalloc dependency
53085         * lib/hash.c (includes): Adjust includes.
53086         * lib/mgetgroups.c (includes): Likewise.
53087         (xgetgroups): Move...
53088         * lib/xgetgroups.c: ...to new file.
53089         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
53090         * modules/xgetgroups: New file, split from...
53091         * modules/mgetgroups: ...here.
53092         (Depends-on): Add xalloc-oversized.
53093         * modules/hash (Depends-on): Likewise.
53094         * modules/hash-tests (Depends-on): Drop xalloc.
53095         (test_hash_LDADD): Drop unused library.
53096         * tests/test-hash.c (main): Break xalloc dependency.
53097         (includes): Drop unused include.
53099         xalloc-oversized: new module
53100         * modules/xalloc-oversized: New module.
53101         * modules/xalloc (Depends-on): Add it.
53102         * lib/xalloc.h (xalloc_oversized): Move...
53103         * lib/xalloc-oversized.h: ...into new file.
53105         utimecmp: drop dependency on xmalloc
53106         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
53107         due to memory pressure.
53108         * modules/utimecmp (Depends-on): Drop xalloc.
53110 2011-04-27  Eric Blake  <eblake@redhat.com>
53112         getcwd: fix mingw bugs
53113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
53114         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
53115         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
53117 2011-04-27  Bruno Haible  <bruno@clisp.org>
53119         mkstemps: Ensure declaration on MacOS X 10.5.
53120         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
53121         * doc/glibc-functions/mkstemps.texi: Document header file problem on
53122         MacOS X.
53124 2011-04-27  Bruno Haible  <bruno@clisp.org>
53126         mkstemp: More documentation.
53127         * doc/posix-functions/mkstemp.texi: Document header file problem on
53128         MacOS X.
53130 2011-04-27  Bruno Haible  <bruno@clisp.org>
53132         mkstemp: Tweak configure message when cross-compiling.
53133         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
53134         result as a guess.
53136 2011-04-27  Bruno Haible  <bruno@clisp.org>
53138         clean-temp: Clarify what it does.
53139         * lib/clean-temp.h: Add more comments.
53140         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
53141         module.
53142         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
53143         * doc/glibc-functions/mkstemps.texi: Likewise.
53144         * doc/glibc-functions/mkostemps.texi: Likewise.
53146 2011-04-27  Eric Blake  <eblake@redhat.com>
53148         fchdir: avoid extra chdir and fix test
53149         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
53150         getcwd-lgpl.
53151         * lib/fchdir.c (get_name): Any absolute name will do; it does not
53152         have to be canonical.
53153         (canonicalize_file_name): Drop unused macro.
53154         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
53156         filenamecat-lgpl: fix licence
53157         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
53158         when it was first created.
53160         linkat, renameat: add missing dependency
53161         * modules/linkat (Depends-on): Require getcwd-lgpl.
53162         * modules/renameat (Depends-on): Likewise.
53164         tests: reduce dependencies
53165         * tests/test-linkat.c (main): Use lighter-weight getcwd.
53166         * tests/test-renameat.c (main): Likewise.
53167         * modules/linkat-tests (Depends-on): Relax dependency.
53168         * modules/renameat-tests (Depends-on): Likewise.
53169         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
53170         dependency explicit.
53172         save-cwd: reduce default dependency
53173         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
53174         * lib/save-cwd.c: Update comments.
53175         * NEWS: Document the semantic change.
53177         getcwd: enhance tests
53178         * tests/test-getcwd-lgpl.c: New file, taken from...
53179         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
53180         repeat long path stress tests from m4 probe.
53181         * modules/getcwd-lgpl-tests: New module.
53182         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
53183         * m4/getcwd-abort-bug.m4: Update comment.
53184         * m4/getcwd-path-max.m4: Likewise.
53186         getcwd-lgpl: new module
53187         * modules/getcwd-lgpl: New module.
53188         * lib/getcwd-lgpl.c: New file.
53189         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53190         * MODULES.html.sh (lacking POSIX:2008): Likewise.
53191         * modules/getcwd (configure.ac): Set C witness.
53192         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
53194         getcwd: tweak comments
53195         * m4/getcwd-abort-bug.m4: Fix comments.
53196         * m4/getcwd-path-max.m4: Likewise.
53197         * m4/getcwd.m4: Likewise.
53199 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53200         and Eric Blake  <eblake@redhat.com>
53202         mkstemp: replace if system version uses wrong permissions
53203         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
53204         read/write mode bits set in file created by mkstemp.
53205         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
53207 2011-04-27  Eric Blake  <eblake@redhat.com>
53209         passfd: avoid compiler warning
53210         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
53211         Reported by Laine Stump.
53213 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
53215         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
53216         required by the NetBSD (and perhaps other 4.4BSD derived) join.
53218 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53219         and Eric Blake  <eblake@redhat.com>
53221         mkstemp: mention clean-temp module
53222         * lib/mkstemp.c: Add comment.
53223         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
53225 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
53227         inttypes: also provide default values for 32-bit tests
53228         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
53229         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
53231 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53233         strtoumax: remove dependency on strtoimax
53234         This is like the strtoull change of yesterday.
53235         * modules/strtoumax (Files): Add lib/strtoimax.c.
53236         (Depends-on): Remove strtoimax and add verify.
53238         inttypes-incomplete: new module
53239         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
53240         all but the PRI* and SCN* parts of gl_INTTYPES_H.
53241         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
53242         of gl_INTTYPES_H.
53243         (gl_INTTYPES_H): Rewrite in terms of these new macros.
53244         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
53245         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
53246         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
53247         * modules/strtoumax, modules/xstrtol (Depends-on):
53248         Depend on inttypes-incomplete, not inttypes.
53249         * modules/inttypes-incomplete: New module, containing the contents
53250         of the old modules/inttypes module, except that the Files: section
53251         omits m4/inttypes-pri.m4, and the configure.ac section invokes
53252         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
53253         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
53254         (Depends-on): Depend only on inttypes-incomplete.
53255         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
53257         inttypes: omit now-redundant strtoimax and strtoumax work
53258         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
53259         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
53261         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
53262         This supports apps that need pointers to strtoimax and strtoumax,
53263         and ports to HP-UX 11.00 64.bit, which has macros that expand to
53264         nonexistent functions.  See
53265         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
53266         et seq.
53267         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
53268         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
53269         a macro.
53270         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53272 2011-04-25  Simon Josefsson  <simon@josefsson.org>
53274         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
53276 2011-04-25  Bruno Haible  <bruno@clisp.org>
53278         strtol, strtoul: Mark modules as obsolete.
53279         * modules/strtol (Status, Notice): New sections.
53280         * modules/strtoul (Status, Notice): New sections.
53282 2011-04-25  Bruno Haible  <bruno@clisp.org>
53284         strtod: Remove check for strtod, unless supporting old platforms.
53285         * modules/strtod-obsolete: New file.
53286         * m4/strtod-obsolete.m4: New file.
53287         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
53288         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
53289         * modules/strtod (Depends-on): Add strtod-obsolete.
53290         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
53292 2011-04-25  Bruno Haible  <bruno@clisp.org>
53294         strcase: Make module obsolete.
53295         * modules/strcase (Status, Notice): New sections.
53297 2011-04-25  Bruno Haible  <bruno@clisp.org>
53299         dup2: Remove check for dup2, unless supporting old obsolete platforms.
53300         * modules/dup2-obsolete: New file.
53301         * m4/dup2-obsolete.m4: New file.
53302         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
53303         gl_FUNC_DUP2_OBSOLETE is not also defined.
53304         * modules/dup2 (Depends-on): Add dup2-obsolete.
53305         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
53307 2011-04-25  Bruno Haible  <bruno@clisp.org>
53309         strnlen: Avoid memchr related link error on old obsolete platforms.
53310         * modules/memchr-obsolete: New file.
53311         * m4/memchr-obsolete.m4: New file.
53312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
53313         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
53314         * modules/memchr (Depends-on): Add memchr-obsolete.
53315         * modules/strnlen (Depends-on): Likewise.
53316         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
53318 2011-04-25  Jim Meyering  <meyering@redhat.com>
53320         maint.mk: makefile_at_at_check extend and clean up
53321         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
53322         in addition to */Makefile.am.
53323         Exempt legitimate uses of @VAR@ notation, e.g.,
53324         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
53325         Remove obsolete coreutils-specific comment.
53326         Prompted by discussion here:
53327         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
53329 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53331         strtoul: remove dependency on strtol
53332         This is so that 'configure' need not check for strtol merely because
53333         the application needs strtoul.
53334         * modules/strtoul (Files): Add lib/strtol.c.
53335         (Depends-on): Remove strtol.
53337         strtoull: remove dependency on strtoul
53338         This is like the strtoll change.
53339         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
53340         (Depends-on): Remove strtoul.
53342         strtoll: remove dependency on strtol
53343         This is so that 'configure' need not check for strtol merely because
53344         the application needs strtoll.
53345         * modules/strtoll (Files): Add lib/strtol.c.
53346         (Depends-on): Remove strtol.
53348 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53350         inttypes: Move some configure check to module 'imaxdiv'.
53351         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
53352         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
53353         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
53355 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53357         inttypes: Move some configure check to module 'imaxabs'.
53358         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
53359         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
53360         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
53362 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53364         inttypes: Remove configure tests that are not needed since 2009-12-31.
53365         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
53366         gl_cv_header_working_inttypes_h.
53368 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53370         * modules/strnlen (Depends-on): Remove memchr.
53371         The strnlen implementation doesn't need the memchr module's fixes; see
53372         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
53374         strtol: remove dependency on wchar
53375         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
53376         * modules/strtol (Depends-on): Remove wchar.
53378 2011-04-21  Eric Blake  <eblake@redhat.com>
53380         passfd: fix test regression on Linux
53381         * modules/passfd-tests (configure.ac): Correct socketpair check.
53383         passfd: speed up configure and drop unused code
53384         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
53385         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
53386         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
53387         Instead of probing at configure for unix_scm_rights_bsd44_way,
53388         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
53389         check to a struct member probe.
53390         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
53391         (sendfd, recvfd): Update preprocessor checks.
53392         * modules/passfd (Files): Reflect rename, and drop unused file.
53393         (Depends-on): Drop unused dependency.
53395         passfd: allow compilation on mingw
53396         * modules/sys_socket (Depends-on): Add sys_uio.
53397         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
53398         iovec and a minimal struct msghdr.
53399         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
53400         * tests/test-sys_socket.c (main): Enhance test.
53401         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
53402         guaranteed to provide what we need.
53403         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
53404         * modules/passfd-tests (Depends-on): Add sys_wait.
53405         * tests/test-passfd.c (main): Skip test on mingw, for now.
53406         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
53407         partial 'struct msghdr' implementation.
53409         sys_uio: new module
53410         * modules/sys_uio: New module.
53411         * modules/sys_uio-tests: Likewise.
53412         * lib/sys_uio.in.h: New file.
53413         * m4/sys_uio_h.m4: Likewise.
53414         * tests/test-sys_uio.c: Likewise.
53415         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
53416         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
53418 2011-04-20  Jim Meyering  <meyering@redhat.com>
53420         useless-if-before-free: avoid false-positive
53421         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
53422         disjunct so that it too requires a terminating ";".  Without that,
53423         this script would identify as useless one statement from gcc that
53424         was not:
53425           if (aligned_ptr)
53426             free (((void **) aligned_ptr) [-1]);
53428 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
53430         doc: update users.txt.
53431         * users.txt: Add barcode.
53433 2011-04-19  Bruno Haible  <bruno@clisp.org>
53435         ioctl: Remove link dependency on native Windows.
53436         * lib/fd-hook.h: Renamed from lib/close-hook.h.
53437         (gl_close_fn, gl_ioctl_fn): New types.
53438         (struct fd_hook): Renamed from struct close_hook. Change type of
53439         private_close_fn field. Add private_ioctl_fn field.
53440         (close_hook_fn): Add parameter for primary close method.
53441         (execute_close_hooks, execute_all_close_hooks): Likewise.
53442         (ioctl_hook_fn): New type.
53443         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
53444         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53445         argument.
53446         (unregister_fd_hook): Renamed from unregister_close_hook.
53447         * lib/fd-hook.c: Renamed from lib/close-hook.c.
53448         Don't include <unistd.h>.
53449         (close): Remove undef.
53450         (anchor): Update.
53451         (execute_close_hooks): Add argument for primary close method.
53452         (execute_all_close_hooks): Likewise.
53453         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
53454         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53455         argument. Allow each argument to be NULL.
53456         (unregister_fd_hook): Renamed from unregister_close_hook.
53457         * lib/close.c (rpl_close): Pass 'close' function pointer to
53458         execute_all_close_hooks.
53459         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
53460         (primary_ioctl): New function.
53461         (ioctl): Don't call ioctlsocket here. Instead, call
53462         execute_all_ioctl_hooks.
53463         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
53464         close method.
53465         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
53466         (fd_sockets_hook): Renamed from close_sockets_hook.
53467         (gl_sockets_startup, gl_sockets_cleanup): Update.
53468         * modules/fd-hook: Renamed from modules/close-hook. Update.
53469         * modules/close (Depends-on): Add fd-hook, remove close-hook.
53470         * modules/sockets (Depends-on): Likewise.
53471         * modules/ioctl (Depends-on): Add fd-hook.
53472         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
53473         GNULIB_SOCKET.
53475 2011-04-19  Bruno Haible  <bruno@clisp.org>
53477         Move the support of O_NONBLOCK in open() to the 'open' module.
53478         * modules/nonblocking (Depends-on): Remove 'open'.
53479         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
53480         gl_cv_have_open_O_NONBLOCK.
53481         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
53482         O_NONBLOCK support.
53483         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
53485 2011-04-17  Bruno Haible  <bruno@clisp.org>
53487         pipe2: Simplify code.
53488         * lib/pipe2.c (pipe2): Reduce code duplication.
53490 2011-04-17  Bruno Haible  <bruno@clisp.org>
53492         nonblocking: Add comment.
53493         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
53495 2011-04-17  Bruno Haible  <bruno@clisp.org>
53497         nonblocking: Add tests for sockets.
53498         * tests/test-nonblocking-socket.sh: New file.
53499         * tests/test-nonblocking-socket-main.c: New file.
53500         * tests/test-nonblocking-socket-child.c: New file.
53501         * tests/test-nonblocking-socket.h: New file.
53502         * tests/socket-server.h: New file.
53503         * tests/socket-client.h: New file.
53504         * modules/nonblocking-socket-tests: New file.
53505         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
53507 2011-04-17  Bruno Haible  <bruno@clisp.org>
53509         nonblocking: Add tests for pipes.
53510         * tests/test-nonblocking-pipe.sh: New file.
53511         * tests/test-nonblocking-pipe-main.c: New file.
53512         * tests/test-nonblocking-pipe-child.c: New file.
53513         * tests/test-nonblocking-pipe.h: New file.
53514         * tests/test-nonblocking-writer.h: New file.
53515         * tests/test-nonblocking-reader.h: New file.
53516         * tests/test-nonblocking-misc.h: New file.
53517         * modules/nonblocking-pipe-tests: New file.
53518         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
53520 2011-04-16  Bruno Haible  <bruno@clisp.org>
53522         gettext: Clarify the needed programmer actions.
53523         * modules/gettext (Notice): New field.
53524         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53526 2011-04-16  Bruno Haible  <bruno@clisp.org>
53528         strchrnul: Tweak last commit.
53529         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
53530         bug.
53531         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
53532         as in _GL_FUNCDECL_SYS.
53533         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
53534         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
53536 2011-04-15  Eric Blake  <eblake@redhat.com>
53538         strchrnul: work around cygwin bug
53539         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
53540         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
53541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
53542         * modules/string (Makefile.am): Substitute it.
53543         * lib/string.in.h (strchrnul): Use it.
53545 2011-04-15  Bruno Haible  <bruno@clisp.org>
53547         Don't require lib/stdio-write.c when only module 'stdio' is used.
53548         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
53549         invocation.
53550         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
53552 2011-04-14  Bruno Haible  <bruno@clisp.org>
53554         Support non-blocking pipe I/O in read() on native Windows.
53555         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
53556         (read): New declaration.
53557         * lib/read.c: New file.
53558         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
53559         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
53560         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
53561         vscanf): New declarations.
53562         * lib/stdio-read.c: New file.
53563         * m4/read.m4: New file.
53564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
53565         REPLACE_READ.
53566         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
53567         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53568         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
53569         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
53570         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
53571         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53572         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53573         * modules/read: New file.
53574         * modules/nonblocking (Files): Add lib/stdio-read.c.
53575         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
53576         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
53577         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53578         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53579         * modules/pread (Depends-on): Add read.
53580         * modules/safe-read (Depends-on): Likewise.
53581         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
53582         gets, scanf, vfscanf, vscanf): Verify signatures.
53583         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
53584         problem with non-blocking pipes.
53585         * doc/posix-functions/fgetc.texi: Likewise.
53586         * doc/posix-functions/fgets.texi: Likewise.
53587         * doc/posix-functions/fread.texi: Likewise.
53588         * doc/posix-functions/fscanf.texi: Likewise.
53589         * doc/posix-functions/getc.texi: Likewise.
53590         * doc/posix-functions/getchar.texi: Likewise.
53591         * doc/posix-functions/gets.texi: Likewise.
53592         * doc/posix-functions/scanf.texi: Likewise.
53593         * doc/posix-functions/vfscanf.texi: Likewise.
53594         * doc/posix-functions/vscanf.texi: Likewise.
53596 2011-04-14  Bruno Haible  <bruno@clisp.org>
53598         Support non-blocking pipe I/O in write() on native Windows.
53599         * lib/write.c (rpl_write): Split a write request that failed merely
53600         because the byte count was larger than the pipe buffer's size.
53601         * doc/posix-functions/write.texi: Mention the problem with large byte
53602         counts.
53604 2011-04-14  Bruno Haible  <bruno@clisp.org>
53606         wchar: Ensure that wchar_t gets defined on uClibc.
53607         * lib/wchar.in.h: On uClibc, include <stddef.h>.
53608         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
53610 2011-04-13  Bruno Haible  <bruno@clisp.org>
53612         safe-write, full-read: Avoid unnecessary compilation units.
53613         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
53614         (Depends-on): Remove safe-read. Add ssize_t.
53615         * modules/full-read (Files): Add lib/full-write.c.
53616         (Depends-on): Add full-write.
53618 2011-04-13  Bruno Haible  <bruno@clisp.org>
53620         Support non-blocking pipe I/O and SIGPIPE in pwrite().
53621         * modules/pwrite (Depends-on): Add 'write'.
53623 2011-04-13  Bruno Haible  <bruno@clisp.org>
53625         Support non-blocking pipe I/O in write() on native Windows.
53626         * lib/unistd.in.h (write): Enable replacement also if
53627         GNULIB_UNISTD_H_NONBLOCKING is 1.
53628         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
53629         (rpl_write): When failing to write on a non-blocking pipe, change
53630         errno from ENOSPC to EAGAIN.
53631         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
53632         putchar, puts, vfprintf, vprintf): Enable replacement also if
53633         GNULIB_STDIO_H_NONBLOCKING is 1.
53634         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
53635         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
53636         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
53637         CALL_WITH_SIGPIPE_EMULATION.
53638         (CALL_WITH_SIGPIPE_EMULATION): Use them.
53639         * m4/nonblocking.m4: New file.
53640         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
53641         for non-blocking I/O support.
53642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53643         GNULIB_UNISTD_H_NONBLOCKING.
53644         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
53645         required for non-blocking I/O support.
53646         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
53647         * modules/nonblocking (Files): Add m4/nonblocking.m4,
53648         lib/stdio-write.c, m4/asm-underscore.m4.
53649         (Depends-on): Add stdio, unistd.
53650         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
53651         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
53652         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
53653         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
53654         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
53655         problem with non-blocking pipes.
53656         * doc/posix-functions/fputc.texi: Likewise.
53657         * doc/posix-functions/fputs.texi: Likewise.
53658         * doc/posix-functions/fwrite.texi: Likewise.
53659         * doc/posix-functions/printf.texi: Likewise.
53660         * doc/posix-functions/putc.texi: Likewise.
53661         * doc/posix-functions/putchar.texi: Likewise.
53662         * doc/posix-functions/puts.texi: Likewise.
53663         * doc/posix-functions/vfprintf.texi: Likewise.
53664         * doc/posix-functions/vprintf.texi: Likewise.
53665         * doc/posix-functions/write.texi: Likewise.
53667 2011-04-10  Jim Meyering  <meyering@redhat.com>
53669         maint.mk: prohibit doubled words
53670         Detect them also when they're separated by a newline.
53671         There are 3 ways to customize it:
53672           - disable the test on a per file basis, as usual with rules using
53673             $(VC_LIST_EXCEPT)
53674           - replace the default doubled-word-selecting regexp (affects all files)
53675           - ignore a particular file-vs-doubled-word match
53676         I nearly used that last one to ignore the "is is" match in
53677         coreutils' NEWS file, since the text was "ls -is is ..."
53678         To do that, I would have added this line to cfg.mk:
53679           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53680         but it would have ignored any "is is" match in NEWS.
53681         Low probability, but still...
53682         Instead, I changed the text, slightly:
53683           -  ls -is is now consistent with ls -lis in ignoring values returned
53684           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53685         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53686         (prohibit_doubled_word_): Define.
53687         (sc_prohibit_doubled_word): New rule.
53688         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53690 2011-04-10  Jim Meyering  <meyering@redhat.com>
53692         maint: fix doubled-word typo in comment
53693         * m4/gethostname.m4: s/is is/it is/
53694         * m4/getdomainname.m4: Likewise.
53696 2011-04-10  Jim Meyering  <meyering@redhat.com>
53698         maint: remove doubled word: s/it it/it/
53699         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53701 2011-04-10  Jim Meyering  <meyering@redhat.com>
53703         maint.mk: remove useless semicolon and backslash
53704         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53705         semicolon and backslash.
53707 2011-04-10  Bruno Haible  <bruno@clisp.org>
53709         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
53710         * modules/stdint-tests (Depends-on): Add wchar.
53712 2011-04-10  Jim Meyering  <meyering@redhat.com>
53714         maint: remove doubled words in comments, e.g., s/a a/a/
53715         * lib/strptime.c (day_of_the_week): s/the the/the/
53716         * tests/test-chown.h (test_chown): s/a a/a/
53718         test-chown.h: correct a cast
53719         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
53720         when the destination is a stat.st_gid.
53722 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
53724         getaddrinfo: Fix test for sa_len member.
53725         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
53726         include <sys/types.h> before <sys/socket.h>.
53728 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53730         maint: change "can not" to "cannot"
53731         * doc/posix-functions/iconv.texi (iconv): This one crossed line
53732         boundaries.
53734 2011-04-09  Jim Meyering  <meyering@redhat.com>
53736         maint: change "a a" to "a"
53737         * tests/test-lchown.h (test_lchown): s/a a/a/
53739         maint.mk: prohibit \<the the\>
53740         * top/maint.mk (sc_prohibit_the_the): New rule.
53742         maint: fix "the the" in comment
53743         * lib/count-one-bits.h: s/the the/the/
53745         maint: change "can not" to "cannot"
53746         But do not change the occurrences in maintain.texi or in
53747         build-aux/po/Makefile.in.in, which I presume comes from gettext.
53748         * doc/gnulib-tool.texi: s/can not/cannot/
53749         * doc/posix-functions/accept.texi (accept): Likewise.
53750         * doc/posix-functions/socket.texi (socket): Likewise.
53751         * lib/mbrtowc.c: Likewise.
53753         maint.mk: prohibit use of "can not"
53754         * top/maint.mk (sc_prohibit_can_not): New rule.
53755         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
53757 2011-04-09  Bruno Haible  <bruno@clisp.org>
53759         careadlinkat: Guard against misuse of careadlinkatcwd.
53760         * lib/careadlinkat.c: Include <stdlib.h>.
53761         (careadlinkatcwd): Check that the fd argument is as expected.
53763 2011-04-09  Bruno Haible  <bruno@clisp.org>
53765         careadlinkat: Use common coding style.
53766         * lib/careadlinkat.c: Move gnulib includes after system includes.
53768 2011-04-09  Bruno Haible  <bruno@clisp.org>
53770         careadlinkat: Clarify specification.
53771         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
53772         (careadlinkatcwd): Add comment.
53773         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
53775 2011-04-09  Bruno Haible  <bruno@clisp.org>
53777         areadlinkat: Avoid link error on many platforms.
53778         * modules/areadlinkat (Depends-on): Add areadlink.
53780 2011-04-09  Bruno Haible  <bruno@clisp.org>
53782         allocator, careadlinkat: Fix double-inclusion guard.
53783         * lib/allocator.h: Fix double-inclusion guard.
53784         * lib/careadlinkat.h: Likewise.
53786 2011-04-09  Bruno Haible  <bruno@clisp.org>
53788         relocatable-prog-wrapper: Update after module 'areadlink' changed.
53789         * lib/relocwrapper.c: Update dependencies hierarchy.
53790         * build-aux/install-reloc: Update list of files to be compiled.
53791         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
53792         lib/allocator.[hc].
53794 2011-04-08  Eric Blake  <eblake@redhat.com>
53796         strftime: silence gnulib-tool warning
53797         * modules/strftime-tests (Depends-on): Drop automatic dependency.
53799 2011-04-08  Bruno Haible  <bruno@clisp.org>
53801         verify: Fix syntax error with GCC 4.6 in C++ mode.
53802         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
53803         (HAVE_STATIC_ASSERT): New macro.
53804         (verify_true, verify): Use 'static_assert' if it is supported and
53805         '_Static_assert' is not supported.
53807 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53809         allocator: New module.
53810         * modules/allocator, lib/allocator.c: New files.
53811         * lib/allocator.h (stdlib_allocator): New decl.
53812         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53813         Remove.  Do not include <stdlib.h>.
53814         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53815         * modules/careadlinkat (Files): Remove lib/allocator.h.
53816         (Depends-on): Add allocator.
53818         stdlib: let modules use system malloc, realloc
53819         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53820         if !_GL_USE_STDLIB_ALLOC.
53821         (malloc, realloc): Limit this change to a smaller scope.
53823         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53824         (malloc, realloc): Don't #undef; no longer needed.
53825         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53826         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53827         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53828         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53829         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53830         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53831         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53832         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53834         careadlinkat: rename members to avoid problem
53835         * lib/allocator.h (struct allocator): Rename members from
53836         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53837         and realloc are #define'd.  Reported by Eric Blake in
53838         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53839         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53841 2011-04-08  Eric Blake  <eblake@redhat.com>
53843         nonblocking: reduce dependency
53844         * tests/test-nonblocking.c: Only test sockets when in use.
53845         * modules/nonblocking-tests (Depends-on): Drop socket.
53846         (Makefile.am): Link even if sockets are not present.
53847         * modules/pipe2-tests (Makefile.am): Likewise.
53848         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53850         pipe2: fix O_NONBLOCK support on mingw
53851         * modules/pipe2 (Depends-on): Add nonblocking.
53852         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53853         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53854         * tests/test-nonblocking.c (main): Likewise.
53855         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53857         fcntl-h: fix O_ACCMODE on cygwin
53858         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53859         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53861         pipe-filter: drop O_NONBLOCK workarounds
53862         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53863         * modules/pipe-filter-ii (Depends-on): Likewise.
53864         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53866         nonblocking: provide O_NONBLOCK for mingw
53867         * modules/nonblocking (Depends-on): Add open.
53868         (configure.ac): Set new witness macro.
53869         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53870         * modules/fcntl-h (Makefile.am): Substitute it.
53871         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53872         nonblocking module is in use.
53873         * lib/nonblocking.c: Adjust portability test.
53874         * lib/open.c (open): Don't let native open see gnulib flag.
53875         * tests/test-fcntl-h.c (main): Enhance test.
53876         * tests/test-open.h (test_open): Likewise.
53877         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53879         careadlinkat: fix compilation error on mingw
53880         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53881         within struct allocator.
53883 2011-04-06  Eric Blake  <eblake@redhat.com>
53885         binary-io: relicense under LGPLv2+
53886         * modules/binary-io (License): Relax to LGPLv2+.
53887         Requested for libvirt, and required by pipe2.
53889 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53891         verify: use _Static_assert if available
53892         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53893         (verify_true, verify): Use it if available.  This generates better
53894         diagnostics with GCC 4.6.0 and later.
53896 2011-04-05  Bruno Haible  <bruno@clisp.org>
53898         Remove leftover generated .h files after config.status changed.
53900         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53901         GL_GENERATE_ALLOCA_H.
53902         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53903         GL_GENERATE_ALLOCA_H evaluates to false.
53905         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53906         GL_GENERATE_ARGZ_H.
53907         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53908         evaluates to false.
53910         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53911         GL_GENERATE_BYTESWAP_H.
53912         * modules/byteswap (Makefile.am): Remove byteswap.h if
53913         GL_GENERATE_BYTESWAP_H evaluates to false.
53915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53916         GL_GENERATE_ERRNO_H.
53917         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53918         evaluates to false.
53920         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53921         GL_GENERATE_FLOAT_H.
53922         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53923         evaluates to false.
53925         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53926         GL_GENERATE_FNMATCH_H.
53927         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53928         GL_GENERATE_FNMATCH_H evaluates to false.
53930         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53931         GL_GENERATE_GLOB_H.
53932         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53933         evaluates to false.
53935         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53936         automake conditional GL_GENERATE_ICONV_H.
53937         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53938         evaluates to false.
53940         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53941         GL_GENERATE_NETINET_IN_H.
53942         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53943         GL_GENERATE_NETINET_IN_H evaluates to false.
53945         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53946         conditional GL_GENERATE_PTHREAD_H.
53947         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53948         * modules/pthread (Makefile.am): Remove pthread.h if
53949         GL_GENERATE_PTHREAD_H evaluates to false.
53951         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53952         GL_GENERATE_SCHED_H.
53953         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53954         evaluates to false.
53956         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53957         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53958         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53959         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53961         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53962         GL_GENERATE_STDARG_H.
53963         * modules/stdarg (Makefile.am): Remove stdarg.h if
53964         GL_GENERATE_STDARG_H evaluates to false.
53966         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53967         GL_GENERATE_STDBOOL_H.
53968         * modules/stdbool (Makefile.am): Remove stdbool.h if
53969         GL_GENERATE_STDBOOL_H evaluates to false.
53971         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53972         conditional GL_GENERATE_STDDEF_H.
53973         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53974         * modules/stddef (Makefile.am): Remove stddef.h if
53975         GL_GENERATE_STDDEF_H evaluates to false.
53977         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53978         GL_GENERATE_STDINT_H.
53979         * modules/stdint (Makefile.am): Remove stdint.h if
53980         GL_GENERATE_STDINT_H evaluates to false.
53982         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53983         GL_GENERATE_SYSEXITS_H.
53984         * modules/sysexits (Makefile.am): Remove sysexits.h if
53985         GL_GENERATE_SYSEXITS_H evaluates to false.
53987         Reported by Karl Berry and Ralf Wildenhues.
53989 2011-04-05  Bruno Haible  <bruno@clisp.org>
53991         Ensure to rebuild generated .h files when config.status has changed.
53992         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53993         config.status.
53994         * modules/ctype (Makefile.am): Likewise.
53995         * modules/dirent (Makefile.am): Likewise.
53996         * modules/errno (Makefile.am): Likewise.
53997         * modules/fcntl-h (Makefile.am): Likewise.
53998         * modules/float (Makefile.am): Likewise.
53999         * modules/getopt-posix (Makefile.am): Likewise.
54000         * modules/glob (Makefile.am): Likewise.
54001         * modules/iconv-h (Makefile.am): Likewise.
54002         * modules/inttypes (Makefile.am): Likewise.
54003         * modules/langinfo (Makefile.am): Likewise.
54004         * modules/locale (Makefile.am): Likewise.
54005         * modules/math (Makefile.am): Likewise.
54006         * modules/netdb (Makefile.am): Likewise.
54007         * modules/netinet_in (Makefile.am): Likewise.
54008         * modules/poll-h (Makefile.am): Likewise.
54009         * modules/pthread (Makefile.am): Likewise.
54010         * modules/pty (Makefile.am): Likewise.
54011         * modules/sched (Makefile.am): Likewise.
54012         * modules/search (Makefile.am): Likewise.
54013         * modules/selinux-h (Makefile.am): Likewise.
54014         * modules/signal (Makefile.am): Likewise.
54015         * modules/spawn (Makefile.am): Likewise.
54016         * modules/stdarg (Makefile.am): Likewise.
54017         * modules/stdbool (Makefile.am): Likewise.
54018         * modules/stddef (Makefile.am): Likewise.
54019         * modules/stdint (Makefile.am): Likewise.
54020         * modules/stdio (Makefile.am): Likewise.
54021         * modules/stdlib (Makefile.am): Likewise.
54022         * modules/string (Makefile.am): Likewise.
54023         * modules/strings (Makefile.am): Likewise.
54024         * modules/sys_file (Makefile.am): Likewise.
54025         * modules/sys_ioctl (Makefile.am): Likewise.
54026         * modules/sys_select (Makefile.am): Likewise.
54027         * modules/sys_socket (Makefile.am): Likewise.
54028         * modules/sys_stat (Makefile.am): Likewise.
54029         * modules/sys_time (Makefile.am): Likewise.
54030         * modules/sys_times (Makefile.am): Likewise.
54031         * modules/sys_utsname (Makefile.am): Likewise.
54032         * modules/sys_wait (Makefile.am): Likewise.
54033         * modules/sysexits (Makefile.am): Likewise.
54034         * modules/termios (Makefile.am): Likewise.
54035         * modules/time (Makefile.am): Likewise.
54036         * modules/unistd (Makefile.am): Likewise.
54037         * modules/wchar (Makefile.am): Likewise.
54038         * modules/wctype-h (Makefile.am): Likewise.
54039         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
54041 2011-04-05  Bruno Haible  <bruno@clisp.org>
54043         pipe2: Relicense under LGPLv2+.
54044         * modules/pipe2 (License): Change to LGPLv2+.
54045         Requested by Eric Blake, for libvirt.
54047 2011-04-05  Bruce Korb  <bkorb@gnu.org>
54049         bootstrap: compute gnulib_extra_files after updating build_aux
54050         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
54051         change build_aux or also supply gnulib_extra_files.  Handle correctly.
54053 2011-04-05  Eric Blake  <eblake@redhat.com>
54055         bootstrap: preserve git whitelist item sorting
54056         * build-aux/bootstrap (sort_patterns): New function.
54057         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
54059 2011-04-05  Simon Josefsson  <simon@josefsson.org>
54061         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
54062         sc_space_tab check.
54064 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
54066         areadlink, areadlinkat: rewrite in terms of careadlinkat
54067         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
54068         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
54069         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
54070         (malloc, realloc): Remove #undefs.
54071         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
54072         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
54073         readlink, ssize_t, stdint, unistd.
54074         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
54075         areadlink, stdint.
54077         careadlinkat: new module
54078         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
54079         * modules/careadlinkat: New files, written by me with
54080         a review and feedback from Ben Pfaff in
54081         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
54083 2011-04-01  Bruno Haible  <bruno@clisp.org>
54085         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
54086         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
54087         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
54088         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
54089         Reported by Bruce Korb <bruce.korb@gmail.com>.
54091 2011-04-01  Bruno Haible  <bruno@clisp.org>
54093         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
54094         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
54095         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
54096         * modules/wcpcpy (Depends-on): Add extensions.
54097         * modules/wcpncpy (Depends-on): Likewise.
54098         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
54099         systems.
54100         * doc/posix-functions/wcpncpy.texi: Likewise.
54101         * doc/posix-functions/wcwidth.texi: Likewise.
54103 2011-03-31  Eric Blake  <eblake@redhat.com>
54105         nonblocking: fix mingw test failures
54106         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
54107         non-blocking flag on regular file.
54108         (get_nonblocking_flag): Set errno on invalid fd.
54109         * tests/test-nonblocking.c (main): Avoid test failure on
54110         directories if fchdir is not active.
54111         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
54113 2011-03-31  Bruno Haible  <bruno@clisp.org>
54115         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
54116         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
54117         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
54118         Reported by Simon Josefsson <simon@josefsson.org>.
54120 2011-03-31  Bruno Haible  <bruno@clisp.org>
54121         and Eric Blake  <eblake@redhat.com>
54123         nonblocking: new module
54124         * modules/nonblocking: New module.
54125         * modules/nonblocking-tests: Likewise.
54126         * lib/nonblocking.h: New file.
54127         * lib/nonblocking.c: Likewise.
54128         * tests/test-nonblocking.c: New test.
54129         * lib/ioctl.c (ioctl) [mingw]: Update comment.
54131 2011-03-30  Bruno Haible  <bruno@clisp.org>
54133         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
54134         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
54135         instead of 'printf' format for GCC >= 4.4.
54136         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
54137         (fprintf, printf, vfprintf, vprintf): Declare with
54138         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
54139         the system's vfprintf() function.
54140         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
54142 2011-03-30  Eric Blake  <eblake@redhat.com>
54144         passfd: fix scoping bug
54145         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
54146         before sendmsg/recvmsg.
54148         passfd: standardize coding conventions
54149         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
54150         can be learned at compile time.
54151         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
54152         ifdefs.
54153         (sendfd, recvfd): Follow gnulib code conventions.
54155         passfd: fix incorrect sendmsg arguments
54156         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
54157         incorrect msg_controllen value.
54158         * modules/passfd-tests (Depends-on): Check for alarm.
54159         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
54160         Reported by Bastien ROUCARIES.
54162 2011-03-30  Bruno Haible  <bruno@clisp.org>
54164         c-strcasestr: Relicense under LGPLv2+.
54165         * modules/c-strcasestr (License): Change to LGPLv2+.
54166         Requested by Eric Blake, for libvirt.
54168 2011-03-30  Simon Josefsson  <simon@josefsson.org>
54170         * users.txt: Add libidn2.  Fix libtasn1 link.
54172 2011-03-30  Jim Meyering  <meyering@redhat.com>
54174         tests: readlink* ("",... fails with EINVAL on newer kernels
54175         readlink and readlinkat have typically failed with ENOENT for
54176         the invalid, empty file name,  "".  However, with the advent
54177         of linux-2.6.39, they fail with EINVAL.
54178         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
54179         when operating on the empty file name.
54180         * tests/test-readlink.h (test_readlink): Likewise.
54182 2011-03-29  Bruno Haible  <bruno@clisp.org>
54184         Relicense some modules under LGPLv2+, for libidn2.
54185         * modules/array-mergesort (License): Change to LGPLv2+.
54186         * modules/c-strcaseeq (License): Likewise.
54187         * modules/striconveh (License): Likewise.
54188         * modules/striconveha (License): Likewise.
54189         * modules/uniconv/base (License): Likewise.
54190         * modules/uniconv/u8-conv-from-enc (License): Likewise.
54191         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
54192         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
54193         * modules/unictype/base (License): Likewise.
54194         * modules/unictype/bidiclass-of (License): Likewise.
54195         * modules/unictype/category-M (License): Likewise.
54196         * modules/unictype/category-none (License): Likewise.
54197         * modules/unictype/category-of (License): Likewise.
54198         * modules/unictype/category-test (License): Likewise.
54199         * modules/unictype/category-test-withtable (License): Likewise.
54200         * modules/unictype/combining-class (License): Likewise.
54201         * modules/unictype/joiningtype-of (License): Likewise.
54202         * modules/unictype/scripts (License): Likewise.
54203         * modules/uninorm/base (License): Likewise.
54204         * modules/uninorm/canonical-decomposition (License): Likewise.
54205         * modules/uninorm/composition (License): Likewise.
54206         * modules/uninorm/decompose-internal (License): Likewise.
54207         * modules/uninorm/decomposition-table (License): Likewise.
54208         * modules/uninorm/nfc (License): Likewise.
54209         * modules/uninorm/nfd (License): Likewise.
54210         * modules/uninorm/u32-normalize (License): Likewise.
54211         * modules/unistr/base (License): Likewise.
54212         * modules/unistr/u32-cpy (License): Likewise.
54213         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
54214         * modules/unistr/u32-to-u8 (License): Likewise.
54215         * modules/unistr/u32-uctomb (License): Likewise.
54216         * modules/unistr/u8-check (License): Likewise.
54217         * modules/unistr/u8-mblen (License): Likewise.
54218         * modules/unistr/u8-mbtouc (License): Likewise.
54219         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
54220         * modules/unistr/u8-mbtoucr (License): Likewise.
54221         * modules/unistr/u8-prev (License): Likewise.
54222         * modules/unistr/u8-strlen (License): Likewise.
54223         * modules/unistr/u8-to-u32 (License): Likewise.
54224         * modules/unistr/u8-uctomb (License): Likewise.
54225         * modules/unitypes (License): Likewise.
54226         Requested by Simon Josefsson.
54228 2011-03-29  Simon Josefsson  <simon@josefsson.org>
54230         lib-symbol-visibility: Add a notice.
54231         * modules/lib-symbol-visibility (Notice): New field.
54233 2011-03-29  Bruno Haible  <bruno@clisp.org>
54235         getaddrinfo: Doc fix.
54236         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
54237         section "fixed in Gnulib".
54239 2011-03-28  Simon Josefsson  <simon@josefsson.org>
54241         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
54242         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
54244 2011-03-26  Bruno Haible  <bruno@clisp.org>
54246         unictype/property-byname: Reduce the number of load-time relocations.
54247         * lib/unictype/pr_byname.c: Include <stdlib.h>.
54248         (UC_PROPERTY_INDEX_*): New enumeration values.
54249         (uc_property_byname): Convert an index from the lookup table to an
54250         uc_property_t.
54251         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
54252         values.
54254 2011-03-26  Bruno Haible  <bruno@clisp.org>
54256         unictype/property-byname: Allow omitted word separators and aliases.
54257         * lib/unictype/pr_byname.gperf: Add property names without word
54258         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
54259         for 'space'.
54261 2011-03-26  Bruno Haible  <bruno@clisp.org>
54263         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
54264         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
54265         also hyphens to space.
54266         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
54267         without spaces.
54268         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
54270 2011-03-26  Bruno Haible  <bruno@clisp.org>
54272         unictype/joiningtype-byname: Recognize long names as well.
54273         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
54274         a long name.
54275         * lib/unictype/joiningtype_byname.c: Include <string.h>,
54276         unictype/joiningtype_byname.h.
54277         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
54278         * lib/unictype/joiningtype_byname.gperf: New file.
54279         * modules/unictype/joiningtype-byname (Files): Add
54280         lib/unictype/joiningtype_byname.gperf.
54281         (Depends-on): Add gperf.
54282         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
54283         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
54284         long names.
54286         Tests for module 'unictype/joiningtype-longname'.
54287         * modules/unictype/joiningtype-longname-tests: New file.
54288         * tests/unictype/test-joiningtype_longname.c: New file.
54290         New module 'unictype/joiningtype-longname'.
54291         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
54292         * lib/unictype/joiningtype_longname.c: New file.
54293         * modules/unictype/joiningtype-longname: New file.
54294         * modules/unictype/joiningtype-all (Depends-on): Add
54295         unictype/joiningtype-longname.
54297 2011-03-26  Bruno Haible  <bruno@clisp.org>
54299         unictype/bidiclass-byname: Recognize long names as well.
54300         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
54301         name.
54302         * lib/unictype/bidi_byname.c: Include <string.h>,
54303         unictype/bidi_byname.h.
54304         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
54305         * lib/unictype/bidi_byname.gperf: New file.
54306         * modules/unictype/bidiclass-byname (Files): Add
54307         lib/unictype/bidi_byname.gperf.
54308         (Depends-on): Add gperf.
54309         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
54310         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
54311         long names.
54313         Tests for module 'unictype/bidiclass-longname'.
54314         * modules/unictype/bidiclass-longname-tests: New file.
54315         * tests/unictype/test-bidi_longname.c: New file.
54317         New module 'unictype/bidiclass-longname'.
54318         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
54319         * lib/unictype/bidi_longname.c: New file.
54320         * modules/unictype/bidiclass-longname: New file.
54321         * modules/unictype/bidiclass-all (Depends-on): Add
54322         unictype/bidiclass-longname.
54324 2011-03-26  Bruno Haible  <bruno@clisp.org>
54326         unictype/bidi*: Rename modules.
54327         * modules/unictype/bidiclass-all: Renamed from
54328         modules/unictype/bidicategory-all.
54329         * modules/unictype/bidiclass-name: Renamed from
54330         modules/unictype/bidiclass-name.
54331         (Description): Update.
54332         * modules/unictype/bidiclass-name-tests: Renamed from
54333         modules/unictype/bidicategory-name-tests.
54334         * modules/unictype/bidiclass-byname: Renamed from
54335         modules/unictype/bidicategory-byname.
54336         (Description): Update.
54337         * modules/unictype/bidiclass-byname-tests: Renamed from
54338         modules/unictype/bidicategory-byname-tests.
54339         * modules/unictype/bidiclass-of: Renamed from
54340         modules/unictype/bidicategory-of.
54341         (Description): Update.
54342         * modules/unictype/bidiclass-of-tests: Renamed from
54343         modules/unictype/bidicategory-of-tests.
54344         * modules/unictype/bidiclass-test: Renamed from
54345         modules/unictype/bidicategory-test.
54346         (Description): Update.
54347         * modules/unictype/bidiclass-test-tests: Renamed from
54348         modules/unictype/bidicategory-test-tests.
54349         * modules/unictype/bidicategory-all: New file, a simple redirection.
54350         * modules/unictype/bidicategory-name: Likewise.
54351         * modules/unictype/bidicategory-byname: Likewise.
54352         * modules/unictype/bidicategory-of: Likewise.
54353         * modules/unictype/bidicategory-test: Likewise.
54354         * modules/unictype/property-bidi-* (Dependencies): Update.
54355         * lib/unictype/bidi_*.c: Update comment.
54357 2011-03-26  Bruno Haible  <bruno@clisp.org>
54359         unictype/bidi*: Rename functions, part 2.
54360         * modules/unictype/bidicategory-name (configure.ac): Update required
54361         libunistring version.
54362         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
54364 2011-03-25  Bruno Haible  <bruno@clisp.org>
54366         New module 'unictype/combining-class-all'.
54367         * modules/unictype/combining-class-all: New file.
54369         Tests for module 'unictype/combining-class-byname'.
54370         * modules/unictype/combining-class-byname-tests: New file.
54371         * tests/unictype/test-combiningclass_byname.c: New file.
54373         New module 'unictype/combining-class-byname'.
54374         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
54375         * lib/unictype/combiningclass_byname.c: New file.
54376         * lib/unictype/combiningclass_byname.gperf: New file.
54377         * modules/unictype/combining-class-byname: New file.
54379         Tests for module 'unictype/combining-class-longname'.
54380         * modules/unictype/combining-class-longname-tests: New file.
54381         * tests/unictype/test-combiningclass_longname.c: New file.
54383         New module 'unictype/combining-class-longname'.
54384         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
54385         * lib/unictype/combiningclass_longname.c: New file.
54386         * modules/unictype/combining-class-longname: New file.
54388         Tests for module 'unictype/combining-class-name'.
54389         * modules/unictype/combining-class-name-tests: New file.
54390         * tests/unictype/test-combiningclass_name.c: New file.
54392         New module 'unictype/combining-class-name'.
54393         * lib/unictype.in.h (uc_combining_class_name): New declaration.
54394         * lib/unictype/combiningclass_name.c: New file.
54395         * modules/unictype/combining-class-name: New file.
54397 2011-03-25  Bruno Haible  <bruno@clisp.org>
54399         unictype/combining-class: Rename source files.
54400         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
54401         of unictype/combining.h.
54402         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
54403         Update.
54404         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
54405         * modules/unictype/combining-class (Description): Fix.
54406         (Files, Makefile.am): Update.
54407         * tests/unictype/test-combiningclass.c: Renamed from
54408         tests/unictype/test-combining.c.
54409         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
54411 2011-03-25  Bruno Haible  <bruno@clisp.org>
54413         unictype: Update list of canonical combining classes.
54414         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
54416 2011-03-25  Bruno Haible  <bruno@clisp.org>
54418         unictype/category-byname: Recognize long names as well.
54419         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
54420         a long name.
54421         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
54422         unictype/categ_byname.h.
54423         (UC_CATEGORY_INDEX_*): New enumeration values.
54424         (uc_general_category_byname): Use uc_general_category_lookup and
54425         convert from index to value.
54426         * lib/unictype/categ_byname.gperf: New file.
54427         * modules/unictype/category-byname (Files): Add
54428         lib/unictype/categ_byname.gperf.
54429         (Depends-on): Add gperf.
54430         (Makefile.am): Add rule for generating unictype/categ_byname.h.
54431         * tests/unictype/test-categ_byname.c (main): Test the recognition of
54432         long names.
54434         Tests for module 'unictype/category-longname'.
54435         * modules/unictype/category-longname-tests: New file.
54436         * tests/unictype/test-categ_longname.c: New file.
54438         New module 'unictype/category-longname'.
54439         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
54440         * lib/unictype/categ_longname.c: New file.
54441         * modules/unictype/category-longname: New file.
54442         * modules/unictype/category-all (Depends-on): Add it.
54444 2011-03-25  Bruno Haible  <bruno@clisp.org>
54446         Tests for module 'unictype/category-LC'.
54447         * modules/unictype/category-LC-tests: New file.
54448         * tests/unictype/test-categ_LC.c: New file, automatically generated.
54450         New module 'unictype/category-LC'.
54451         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
54452         (UC_CATEGORY_LC): New declaration.
54453         (UC_CASED_LETTER): New macro.
54454         * lib/gen-uni-tables.c (is_category_LC): New function.
54455         (output_categories): Also handle category LC.
54456         (UC_CATEGORY_MASK_LC): New enumeration value.
54457         (general_category_byname): Also handle category LC.
54458         * lib/unictype/categ_LC.c: New file.
54459         * lib/unictype/categ_LC.h: New file, automatically generated.
54460         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
54461         category LC.
54462         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
54463         * modules/unictype/category-LC: New file.
54464         * modules/unictype/category-byname (Depends-on): Add
54465         unictype/category-LC.
54466         * modules/unictype/category-all (Depends-on): Likewise.
54468 2011-03-25  Eric Blake  <eblake@redhat.com>
54470         xmalloc: revert yesterday's regression
54471         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
54472         realloc's underlying behavior (allowing allocation of zero-size
54473         objects, especially if malloc-gnu is also in use).
54475 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
54477         maint.mk: add missing version to VC-tag
54478         * top/maint.mk: git tag was missing actual tag name; add it.
54480         valgrind: do leak checking, and exit with code 1 on error (not 0)
54481         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
54482         to VALGRIND.
54484 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
54486         posix-modules: say what it does.
54487         * posix-modules: Add a line to the --help output saying what it does.
54489 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
54491         xmalloc: Do not leak if underlying realloc is C99 compatible.
54492         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
54493         This avoids a leak on C99-based systems.  See
54494         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
54496 2011-03-24  Eric Blake  <eblake@redhat.com>
54498         realloc: document portability problem
54499         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
54500         passing 0 size to realloc.
54502 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
54504         doc: update users.txt
54505         * users.txt: Add cvsps, tmpwatch
54507 2011-03-23  Matt Rice  <ratmice@gmail.com>
54509         doc: update users.txt
54510         * users.txt: Add gdb.
54512 2011-03-23  Jim Meyering  <meyering@redhat.com>
54514         doc: update users.txt
54515         Looking through matches up to the following URL (there are still
54516         several more pages), I found several projects that use gnulib:
54517         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
54518         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
54519         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
54521 2011-03-22  Bruno Haible  <bruno@clisp.org>
54523         unictype/bidi*: Rename functions.
54524         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
54525         uc_bidi_class, uc_is_bidi_class): New declarations.
54526         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
54527         uc_bidi_category_byname.
54528         (uc_bidi_category_byname): New function.
54529         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
54530         u_bidi_category_name.
54531         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
54532         (uc_bidi_category_name): New function.
54533         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
54534         uc_bidi_category.
54535         (uc_bidi_category): New function.
54536         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
54537         uc_is_bidi_category. Invoke uc_bidi_class.
54538         (uc_is_bidi_category): New function.
54539         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
54540         instead of uc_bidi_category_byname.
54541         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
54542         instead of uc_bidi_category_name.
54543         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
54544         uc_bidi_category.
54545         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
54546         instead of uc_is_bidi_category.
54548 2011-03-21  Bruno Haible  <bruno@clisp.org>
54550         New module 'unictype/joininggroup-all'.
54551         * modules/unictype/joininggroup-all: New file.
54553         Tests for module 'unictype/joininggroup-of'.
54554         * modules/unictype/joininggroup-of-tests: New file.
54555         * tests/unictype/test-joininggroup_of.c: New file.
54556         * tests/unictype/test-joininggroup_of.h: New file, automatically
54557         generated by gen-uni-tables.
54559         New module 'unictype/joininggroup-of'.
54560         * modules/unictype/joininggroup-of: New file.
54561         * lib/unictype/joininggroup_of.c: New file.
54562         * lib/unictype/joininggroup_of.h: New file, automatically generated by
54563         gen-uni-tables.
54565         Tests for module 'unictype/joininggroup-byname'.
54566         * modules/unictype/joininggroup-byname-tests: New file.
54567         * tests/unictype/test-joininggroup_byname.c: New file.
54569         New module 'unictype/joininggroup-byname'.
54570         * modules/unictype/joininggroup-byname: New file.
54571         * lib/unictype/joininggroup_byname.c: New file.
54572         * lib/unictype/joininggroup_byname.gperf: New file.
54574         Tests for module 'unictype/joininggroup-name'.
54575         * modules/unictype/joininggroup-name-tests: New file.
54576         * tests/unictype/test-joininggroup_name.c: New file.
54578         New module 'unictype/joininggroup-name'.
54579         * modules/unictype/joininggroup-name: New file.
54580         * lib/unictype/joininggroup_name.c: New file.
54581         * lib/unictype/joininggroup_name.h: New file.
54583         New module 'unictype/joiningtype-all'.
54584         * modules/unictype/joiningtype-all: New file.
54586         Tests for module 'unictype/joiningtype-of'.
54587         * modules/unictype/joiningtype-of-tests: New file.
54588         * tests/unictype/test-joiningtype_of.c: New file.
54589         * tests/unictype/test-joiningtype_of.h: New file, automatically
54590         generated by gen-uni-tables.
54592         New module 'unictype/joiningtype-of'.
54593         * modules/unictype/joiningtype-of: New file.
54594         * lib/unictype/joiningtype_of.c: New file.
54595         * lib/unictype/joiningtype_of.h: New file, automatically generated by
54596         gen-uni-tables.
54598         Tests for module 'unictype/joiningtype-byname'.
54599         * modules/unictype/joiningtype-byname-tests: New file.
54600         * tests/unictype/test-joiningtype_byname.c: New file.
54602         New module 'unictype/joiningtype-byname'.
54603         * modules/unictype/joiningtype-byname: New file.
54604         * lib/unictype/joiningtype_byname.c: New file.
54606         Tests for module 'unictype/joiningtype-name'.
54607         * modules/unictype/joiningtype-name-tests: New file.
54608         * tests/unictype/test-joiningtype_name.c: New file.
54610         New module 'unictype/joiningtype-name'.
54611         * modules/unictype/joiningtype-name: New file.
54612         * lib/unictype/joiningtype_name.c: New file.
54614         unictype: Add support for Arabic shaping properties.
54615         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
54616         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
54617         declarations.
54618         (UC_JOINING_GROUP_*): New enumeration values.
54619         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
54620         declarations.
54621         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
54622         (unicode_joining_type): New variable.
54623         (UC_JOINING_GROUP_*): New enumeration values.
54624         (unicode_joining_group): New variable.
54625         (fill_arabicshaping, joining_type_as_c_identifier,
54626         output_joining_type_test, output_joining_type,
54627         joining_group_as_c_identifier, output_joining_group_test,
54628         output_joining_group): New functions.
54629         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
54630         fill_arabicshaping and output_joining_type_test, output_joining_type,
54631         output_joining_group_test, output_joining_group.
54632         Reported by Simon Josefsson.
54634 2011-03-21  Jim Meyering  <meyering@redhat.com>
54636         strftime: fix a bug in yesterday's change
54637         * lib/strftime.c (add): Accommodate width's initial value of -1.
54638         Otherwise, nstrftime would copy uninitialized data into
54639         the result buffer.
54641 2011-03-21  Jim Meyering  <meyering@redhat.com>
54643         tests: add strftime-tests module
54644         * tests/test-strftime.c: New file.
54645         * modules/strftime-tests: New module.
54647 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54649         strftime: don't assume a byte count fits in 'int'
54650         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
54651         found this problem by static analysis, using gcc -Wstrict-overflow
54652         (GCC 4.5.2, x86-64).  This reported an optimization that depended
54653         on an integer overflow having undefined behavior, but it turns out
54654         that the argument is a size, which might not fit in 'int' anyway,
54656 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54658         stdio: don't require ignore_value around fwrite
54660         This patch works around libc bug 11959
54661         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
54662         Without this patch, applications must often write
54663         ignore_value (fwrite (...)) even though the ignore_value is
54664         not helpful here.  It's common to write many objects, using
54665         fwrite/printf/etc., and then use ferror to detect output error.
54667         I considered making this patch optional, but decided against it,
54668         because libc is obviously being inconsistent here: there is no
54669         reason libc should insist that user code must inspect fwrite
54670         return's value without also insisting that it inspect printf's,
54671         putchar's, etc.  If user code wants to have a strict style where
54672         all these functions' values are checked (so that ferror need not
54673         be checked), we could add support for that style in a new gnulib
54674         module, but in the meantime it's better to be consistent and to
54675         support common usage.
54677         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54678         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54679         that we are compiling in checking mode, and if not C++, and
54680         if not already wrapping fwrite for some other reason.
54681         (fwrite): #define to rpl_fwrite if the latter is defined.
54683 2011-03-20  Bruno Haible  <bruno@clisp.org>
54685         verror: Fix compilation error introduced on 2011-02-13.
54686         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54687         instead of __attribute__.
54688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54690 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54691             Bruno Haible  <bruno@clisp.org>
54693         socklen: do not depend on sys_socket
54694         While trying to modify Emacs to use gnulib's socklen module,
54695         I discovered a circular dependency: socklen depends on sys_socket
54696         and vice versa.  Emacs can use socklen, but it does not need
54697         sys_socket because it has its own substitute for sys/socket.h.
54698         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54699         gl_TYPE_SOCKLEN_T.
54700         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54701         gl_PREREQ_SYS_H_SOCKET.
54702         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54703         gl_PREREQ_SYS_H_SOCKET.
54704         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54705         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54706         * modules/socklen (Depends-on): Do not depend on sys_socket.
54707         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
54709 2011-03-20  Jim Meyering  <meyering@redhat.com>
54711         maint.mk: sort file names *after* new transformation
54712         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
54713         prefix would have led to an unwarranted failure in GNU parted.
54714         Sort after that transformation.
54716 2011-03-19  Jim Meyering  <meyering@redhat.com>
54718         maint.mk: fix po-file syntax-check rule
54719         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
54720         Patch by Bruno Haible.
54722 2011-03-19  Bruno Haible  <bruno@clisp.org>
54724         socklen: Update comment.
54725         * m4/socklen.m4: Update comment about platforms.
54727 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54728             Bruno Haible  <bruno@clisp.org>
54730         inet_ntop, inet_pton: Simplify.
54731         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
54732         documented to provide socklen_t and we already depend on sys_socket.
54733         * modules/inet_pton (Depends-on): Likewise.
54734         * lib/arpa_inet.in.h: Adjust comment.
54736 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54737             Bruno Haible  <bruno@clisp.org>
54739         netdb: Simplify.
54740         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
54741         documented to provide socklen_t and we already depend on sys_socket.
54742         * lib/netdb.in.h: Adjust comment.
54744 2011-03-19  Bruno Haible  <bruno@clisp.org>
54746         sys_socket, netdb: Document problem with socklen_t.
54747         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
54748         platforms.
54749         * doc/posix-headers/netdb.texi: Likewise.
54751 2011-03-18  Eric Blake  <eblake@redhat.com>
54753         maint.mk: let po check work in VPATH build
54754         * top/maint.mk (po_file): Allow cfg.mk override.
54755         (sc_po_check): Allow VPATH use.
54756         Reported by Jiri Denemark.
54758 2011-03-16  Jim Meyering  <meyering@redhat.com>
54760         maint.mk: allow fine-grained syntax-check exclusion via Make variables
54761         Before, you would have had to create one .x-sc_ file per rule in order
54762         to exempt offending files.  Now, you may instead use a Make variable --
54763         usually defined in cfg.mk -- whose name identifies the affected rule.
54764         * top/maint.mk (_sc_excl): Define.
54765         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
54766         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
54768 2011-03-13  Bruno Haible  <bruno@clisp.org>
54770         ignore-value tests: Avoid warnings.
54771         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
54772         empty for gcc < 3.4.
54774 2011-03-13  Bruno Haible  <bruno@clisp.org>
54776         passfd: Fix link error on Solaris.
54777         * modules/passfd (Description): Correct.
54778         (Depends-on): Add socketlib.
54779         (Link): New section.
54780         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
54782 2011-03-13  Bruno Haible  <bruno@clisp.org>
54784         passfd: Fix link error on AIX 5.2.
54785         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
54787 2011-03-13  Bruno Haible  <bruno@clisp.org>
54789         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
54790         * lib/sys_socket.in.h: Include <stddef.h>.
54791         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
54792         CMSG_FIRSTHDR. Remove unused variable.
54794 2011-03-13  Bruno Haible  <bruno@clisp.org>
54796         passfd: Fix compilation error on OpenBSD.
54797         * lib/passfd.c: Include <sys/uio.h>.
54799 2011-03-13  Bruno Haible  <bruno@clisp.org>
54801         passfd test: Fix warnings.
54802         * tests/test-passfd.c: Include <sys/wait.h>.
54803         (main): Fix typo.
54805 2011-03-13  Bruno Haible  <bruno@clisp.org>
54807         passfd module, part 4, tweaks.
54808         * tests/test-passfd.c: Reorder includes.
54809         (main): Fix perror and printf calls.
54811 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54813         passfd module, part 4.
54814         * modules/passfd-tests: New file.
54815         * tests/test-passfd.c: New file.
54817 2011-03-13  Jim Meyering  <meyering@redhat.com>
54819         Makefile: rely on GNU make; derive syntax-check rule names
54820         Rather than requiring that each sc_ rule be listed as a dependent
54821         of "check", use features of GNU make to derive the list.
54822         * Makefile (syntax-check-rules): Define.
54823         (check): Depend on the new variable, not the hard-coded list.
54825 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54826             Bruno Haible  <bruno@clisp.org>
54828         passfd module, part 3.
54829         * lib/passfd.h (recvfd): Add a flags argument.
54830         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54831         (recvfd): Add a flags argument.
54832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54833         exists.
54834         * modules/passfd (Depends-on): Add cloexec.
54835         Suggested by Eric Blake.
54837 2011-03-13  Bruno Haible  <bruno@clisp.org>
54839         passfd module, part 2, tweaks.
54840         * modules/passfd (Files): Reorder.
54841         (Depends-on): Remove errno.
54842         (Include): Remove <sys/socket.h>, <sys/un.h>.
54843         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54844         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54845         specification header. Include <sys/socket.h> always. Don't include
54846         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54847         (sendfd): Clarify that it sets errno when it fails.
54848         (recvfd): Fix specification.
54850 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54852         passfd module, part 2.
54853         * modules/passfd: New file.
54854         * lib/passfd.h: New file.
54855         * lib/passfd.c: New file.
54857 2011-03-12  Bruno Haible  <bruno@clisp.org>
54859         wcswidth, mbswidth: Avoid integer overflow.
54860         * lib/wcswidth.c: Include <limits.h>.
54861         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54862         * lib/mbswidth.c: Include <limits.h>.
54863         (mbsnwidth): Avoid 'int' overflow.
54864         Reported by Jim Meyering.
54866 2011-03-12  Bruno Haible  <bruno@clisp.org>
54868         futimens, utimensat: Avoid endless recursion on Solaris 10.
54869         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54870         Solaris.
54871         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54872         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54874 2011-03-11  Jim Meyering  <meyering@redhat.com>
54876         maint.mk: relax a regexp to accommodate other formatting styles
54877         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54878         between "ngettext" and the following "(".
54880 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54882         maint.mk: suppress a false positive warning
54883         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54884         diagnostics are marked with ngettext.
54886 2011-03-10  Eric Blake  <eblake@redhat.com>
54888         wchar: add explicit dependencies, for Tru64
54889         * modules/mbmemcasecoll (Depends-on): Add wchar.
54890         * modules/mbtowc (Depends-on): Likewise.
54891         * modules/vasnprintf (Depends-on): Likewise.
54892         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54893         * modules/wctomb (Depends-on): Likewise.
54894         Reported by Peter O'Gorman.
54896 2011-03-08  Bruno Haible  <bruno@clisp.org>
54898         passfd module, part 1, tweaks.
54899         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54900         Improve indentation. Improve AC_MSG_CHECKING messages.
54901         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54902         gl_SOCKET_FAMILIES.
54904 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54906         passfd module, part 1.
54907         * m4/afunix.m4: New file.
54908         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54909         sockets.
54911 2011-03-08  Bruno Haible  <bruno@clisp.org>
54913         regex-quote: New API.
54914         * lib/regex-quote.h: Include <stdbool.h>.
54915         (struct regex_quote_spec): New type.
54916         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54917         New declarations.
54918         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54919         'const struct regex_quote_spec *' argument.
54920         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54921         (pcre_special): New constant.
54922         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54923         New functions.
54924         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54925         'const struct regex_quote_spec *' argument.
54926         * modules/regex-quote (Depends-on): Add stdbool.
54927         * tests/test-regex-quote.c (check): Update for new API. Add test for
54928         anchored results.
54929         * NEWS: Mention the API change.
54930         Reported by Reuben Thomas and Eric Blake.
54932 2011-03-06  Bruno Haible  <bruno@clisp.org>
54934         regex-quote: Fix creation of POSIX extended regular expressions.
54935         * lib/regex-quote.c (ere_special): Add grouping and alternation
54936         operators.
54938 2011-03-05  Bruno Haible  <bruno@clisp.org>
54940         doc: Improve doc regarding autopoint vs. gnulib.
54941         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54942         disable autopoint while running autoreconf.
54943         Suggested by Ralf Wildenhues.
54945 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54947         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54948         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54950 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54952         parse-duration: remove xalloc.h dependency
54953         * lib/parse-duration.c (parse_period): handle NULL return from
54954         strdup instead of calling xstrdup().
54955         * modules/parse-duration: remove "xalloc" dependency
54957 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54959         bootstrap: honor m4_base when running aclocal
54960         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54962 2011-03-02  Jim Meyering  <meyering@redhat.com>
54964         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54965         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54966         on request from Matt Booth.
54968 2011-03-01  Eric Blake  <eblake@redhat.com>
54970         test-link: work on Hurd
54971         * tests/test-link.h (test_link): Hurd rejects linking directories
54972         with EISDIR instead of the POSIX-mandated EPERM.
54974 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54976         stdio: simplify by moving files to printf-posix, sigpipe
54977         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54978         since this symbol is needed only if printf is replaced.
54979         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54980         Require gl_ASM_SYMBOL_PREFIX.
54981         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54982         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54983         (Depends-on): Add 'raise'.
54984         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54985         * modules/stdio (Files): Remove lib/stdio-write.c,
54986         m4/asm-underscore.m4.
54987         (Depends-on): Remove 'raise'.
54989         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54990         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54991         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54992         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54994 2011-02-28  Bruno Haible  <bruno@clisp.org>
54996         localcharset: Assume ANSI C behaviour of free().
54997         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54998         calling free().
54999         Suggested by Simon Josefsson <simon@josefsson.org>.
55001 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
55002             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
55003             Bruno Haible  <bruno@clisp.org>  (tiny change)
55005         On Cygwin, use /proc file system instead of win32 API.
55006         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
55007         Win32 file names.
55008         (DllMain): Simplify by removing Cygwin specific code.
55009         (find_shared_library_fullname): Use Linux specific implementation also
55010         for Cygwin.
55011         (get_shared_library_fullname): Update accordingly.
55012         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
55013         Win32 file names.
55014         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
55015         Cygwin specific code.
55017 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
55018             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
55020         Fix OpenMP flag detection for various Fortran compilers.
55021         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
55022         OpenMP-conditional compilation construct, to force compile
55023         failure with missing OpenMP flag.
55024         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
55026 2011-02-25  Eric Blake  <eblake@redhat.com>
55028         strstr: expand test coverage
55029         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
55030         compilation.
55031         * tests/test-memmem.c (main): Duplicate tests.
55032         * tests/test-strcasestr.c (main): Likewise.
55033         * tests/test-c-strcasestr.c (main): Likewise.
55035 2011-02-25  Jim Meyering  <meyering@redhat.com>
55037         maint.mk: detect missing-NL-at-EOF, too
55038         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
55039         it also detects when a file lacks a newline at EOF.
55040         (require_exactly_one_NL_at_EOF_): Renamed from
55041         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
55042         since people may well have .x-sc_... file names tied to the
55043         existing name.  Suggested by Eric Blake.
55045 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55047         dirname: move m4/dos.m4 functionality into lib/dosname.h
55049         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
55050         extracts symbols from it, puts them into config.h; but it's much
55051         easier to use the symbols directly.  filename.h already does this,
55052         but it disagrees with dos.m4 in some respects.  This patch
55053         introduces a different include file dosname.h that packages up
55054         dos.m4, and then later we can work on merging filename.h and
55055         dosname.h.  Applications that need only the easy-to-configure
55056         symbols should consider including dosname.h rather than dirname.h.
55057         * NEWS: Mention incompatible changes.
55058         * m4/dos.m4: Remove.
55059         * lib/dosname.h, modules/dosname: New files.
55060         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
55061         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
55062         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
55063         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
55064         Include dosname.h, not dirname.h.
55065         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
55066         Include dosname.h, for definitions of symbols like ISSLASH
55067         that used to be in config.h.
55068         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
55069         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
55070         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55071         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
55072         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
55073         * modules/rmdir (Files): Likewise.
55074         * modules/stat (Files): Likewise.
55075         * modules/unlink (Files): Likewise.
55076         * modules/dirname-lgpl (Depends-on): Add dosname.
55077         * modules/lstat (Depends-on): Likewise.
55078         * modules/openat (Depends-on): Likewise.
55079         * modules/rmdir (Depends-on): Likewise.
55080         * modules/savewd (Depends-on): Likewise.
55081         * modules/stat (Depends-on): Likewise.
55082         * modules/unlink (Depends-on): Likewise.
55083         * modules/openat (Depends-on): Remove dirname-lgpl.
55084         * modules/savewd (Depends-on): Likewise.
55085         * tests/test-dirname.c: Do not use removed symbols like
55086         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
55087         the remaining symbols, e.g., ISSLASH ('\\').
55089 2011-02-25  Eric Blake  <eblake@redhat.com>
55091         strstr: revert patches that introduced bug and pessimization
55092         * lib/str-two-way.h: Add another reference.
55093         (two_way_short_needle, two_way_long_needle): Revert changes from
55094         2011-02-24; they pessimize search speed.
55095         (critical_factorization): Partially revert changes from
55096         2010-06-22; they violate the requirement that the left half of the
55097         needle be smaller than the period of the needle.
55099 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55101         filenamecat: remove unnecessary dependency on dirname-lgpl
55102         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
55103         is no direct dependency, just an indirect one via filenamecat-lgpl.
55105         remove: remove unnecessary use of m4/dos.m4
55106         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
55107         * modules/remove (FILES): Remove m4/dos.m4.
55109         * lib/openat-proc.c: Don't include dirname.h; not needed.
55111         backupfile: remove unnecessary use of m4/dos.m4
55112         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
55113         of its symbols are used by the backupfile code.  backupfile.c does
55114         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
55115         for the rare case of programs that want all their backup file
55116         names to live within 8+3 limits, and dos.m4 doesn't address that.
55117         * modules/backupfile (Files): Remove m4/dos.m4.
55119 2011-02-24  Jim Meyering  <meyering@redhat.com>
55121         strstr: fix a bug whereby strstr would mistakenly return NULL
55122         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
55123         in period calculation.
55124         (two_way_long_needle): Likewise.
55125         The original problem was reported by Mike Stump in
55126         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
55127         Ralf Wildenhues provided the short needle and haystack.
55128         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
55129         Add a more involved test to trigger the bug in two_way_long_needle.
55131 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55133         gnulib-tool: remove use of bold display in help screen
55134         * gnulib-tool (func_usage): Do not use bold display anymore in the
55135         help screen.  That was just meant to be a temporary emphasis for a
55136         backward-incompatible change.
55138 2011-02-23  Bruno Haible  <bruno@clisp.org>
55140         Fix misindentation of preprocessor directives.
55141         * lib/argp-namefrob.h: Reindent preprocessor directives.
55142         * lib/getopt_int.h (struct _getopt_data): Likewise.
55143         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
55144         * lib/vasnprintf.c (decode_long_double): Likewise.
55145         * tests/test-argmatch.c: Insert blank lines, for clarity.
55146         * tests/test-exclude.c: Likewise.
55148 2011-02-22  Bruno Haible  <bruno@clisp.org>
55150         ioctl: Fix for MacOS X in 64-bit mode.
55151         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
55152         value.
55153         Suggested by Eric Blake.
55154         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
55156 2011-02-22  Jim Meyering  <meyering@redhat.com>
55158         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
55159         * Makefile (sc_cpp_indent_check): Don't limit the check to files
55160         in lib/.
55162 2011-02-22  Eric Blake  <eblake@redhat.com>
55164         maint: avoid any CDPATH issue
55165         * Makefile (sc_cpp_indent_check): Anchor cd argument.
55167         maint: adjust cpp indentation for my modules, as well
55168         * Makefile (sc_cpp_indent_check): Add my name.
55169         * lib/fbufmode.c: Filter through cppi.
55170         * lib/fpurge.c: Likewise.
55171         * lib/freadable.c: Likewise.
55172         * lib/freading.c: Likewise.
55173         * lib/fwritable.c: Likewise.
55174         * lib/fwriting.c: Likewise.
55175         * lib/sigaction.c: Likewise.
55177 2011-02-22  Jim Meyering  <meyering@redhat.com>
55179         maint: adjust cpp indentation to reflect nesting depth
55180         I.e., in a block of code that begins with an unnested "#if",
55181         put one space between the "#" in column 1 and following token.
55182         For example,
55183         -#include <sys/vfs.h>
55184         +# include <sys/vfs.h>
55185         Do this only in .c files that are part of a module I maintain.
55186         * lib/linkat.c: Filter through cppi.
55187         * lib/nanosleep.c: Likewise.
55188         * lib/openat.c: Likewise.
55189         * lib/openat-die.c: Likewise.
55190         * lib/dup3.c: Likewise.
55191         * lib/fchownat.c: Likewise.
55192         * lib/flock.c: Likewise.
55193         * lib/fsync.c: Likewise.
55194         * lib/fts.c: Likewise.
55195         * lib/getpass.c: Likewise.
55196         * lib/gettimeofday.c: Likewise.
55197         * lib/userspec.c: Likewise.
55198         * Makefile (sc_cpp_indent_check): New rule, to check this.
55200 2011-02-22  Bruno Haible  <bruno@clisp.org>
55202         New module 'wctomb'.
55203         * lib/stdlib.in.h (wctomb): New declaration.
55204         * lib/wctomb.c: New file.
55205         * lib/wctomb-impl.h: New file.
55206         * m4/wctomb.m4: New file.
55207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
55208         REPLACE_WCTOMB.
55209         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
55210         REPLACE_WCTOMB.
55211         * modules/wctomb: New file.
55212         * tests/test-stdlib-c++.cc: Test signature of wctomb.
55213         * doc/posix-functions/wctomb.texi: Mention the new module.
55214         * modules/wctob (Depends-on): Add wctomb.
55216 2011-02-22  Bruno Haible  <bruno@clisp.org>
55218         New module 'mbtowc'.
55219         * lib/stdlib.in.h (mbtowc): New declaration.
55220         * lib/mbtowc.c: New file.
55221         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
55222         * m4/mbtowc.m4: New file.
55223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
55224         REPLACE_MBTOWC.
55225         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
55226         REPLACE_MBTOWC.
55227         * modules/mbtowc: New file.
55228         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
55229         * doc/posix-functions/mbtowc.texi: Mention the new module.
55230         * modules/btowc (Depends-on): Add mbtowc.
55232 2011-02-22  Bruno Haible  <bruno@clisp.org>
55234         wcrtomb: Add more tests for native Windows platforms.
55235         * tests/test-wcrtomb-w32-1.sh: New file.
55236         * tests/test-wcrtomb-w32-2.sh: New file.
55237         * tests/test-wcrtomb-w32-3.sh: New file.
55238         * tests/test-wcrtomb-w32-4.sh: New file.
55239         * tests/test-wcrtomb-w32-5.sh: New file.
55240         * tests/test-wcrtomb-w32.c: New file.
55241         * modules/wcrtomb-tests (Files): Add them.
55242         (Makefile.am): Arrange to run these tests.
55243         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
55244         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
55246 2011-02-20  Bruno Haible  <bruno@clisp.org>
55248         wcrtomb: Enhance test.
55249         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
55251 2011-02-20  Bruno Haible  <bruno@clisp.org>
55253         mbrtowc: Tiny optimization.
55254         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
55256 2011-02-20  Jim Meyering  <meyering@redhat.com>
55258         test-exclude.c: remove unmatched #endif
55259         * tests/test-exclude.c: Remove stray #endif, left over from
55260         the change of a week ago.
55262 2011-02-19  Jim Meyering  <meyering@redhat.com>
55264         git-version-gen: skip "-dirty" check when appropriate
55265         * build-aux/git-version-gen: Don't run any git commands when the
55266         version string comes from .tarball-version.  Prior to this, we
55267         would run git update-index --refresh even from a just-unpacked
55268         tarball directory, and that could affect a .git/ directory in a
55269         parent of the build directory.  Reported by Mike Frysinger.
55271 2011-02-19  Bruno Haible  <bruno@clisp.org>
55273         unictype/property-byname: Reduce the size of the 'data' segment.
55274         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
55276 2011-02-19  Bruno Haible  <bruno@clisp.org>
55278         unictype/scripts: Reduce the size of the 'data' segment.
55279         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
55280         '%pic'.
55281         * lib/unictype/scripts_byname.gperf: Regenerated.
55283 2011-02-19  Bruno Haible  <bruno@clisp.org>
55285         stdint: Update documentation.
55286         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
55288 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
55290         stdint: omit redundant check for wchar.h
55291         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
55292         always tests whether wchar.h exists, so remove the now-redundant test.
55294 2011-02-18  Bruno Haible  <bruno@clisp.org>
55296         stdint: Cut dependency to module 'wchar'.
55297         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
55298         include the necessary prerequisites.
55299         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
55300         * modules/stdint (Depends-on): Remove wchar.
55301         (Makefile.am): Substitute HAVE_WCHAR_H.
55302         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
55304 2011-02-18  Eric Blake  <eblake@redhat.com>
55306         longlong: skip, rather than fail, on cross-compilation
55307         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
55308         when cross-compiling; regression from 2011-02-16.
55310 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55312         * NEWS: Mention 2011-02-08 change to stdlib.
55314 2011-02-17  Bruno Haible  <bruno@clisp.org>
55316         getloadavg: Add comments about platforms.
55317         * m4/getloadavg.m4: Add comment.
55318         * lib/getloadavg.c: Likewise.
55320 2011-02-17  Bruno Haible  <bruno@clisp.org>
55322         getloadavg: Fix link error on Solaris 2.6.
55323         * modules/getloadavg (Link): New section.
55324         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
55325         linking test-getloadavg.
55326         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
55327         getloadavg.
55329 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55331         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
55332         It was 'int', but this doesn't match the IRIX 6.5 manual.
55333         Suggested by Bruno Haible in
55334         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
55336 2011-02-17  Bruno Haible  <bruno@clisp.org>
55338         havelib: Fix comments.
55339         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
55340         change.
55342 2011-02-17  Bruno Haible  <bruno@clisp.org>
55344         havelib: Update config.rpath.
55345         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
55347 2011-02-17  Bruno Haible  <bruno@clisp.org>
55349         getloadavg test: Add some plausibility checks.
55350         * tests/test-getloadavg.c (check_avg): Print a warning when the value
55351         is improbable.
55353 2011-02-16  Eric Blake  <eblake@redhat.com>
55355         maintainer-makefile: make syntax-check a no-op from tarballs
55356         * top/maint.mk (no-vc-detected): New rule.
55357         (local-checks-available): Use it to avoid hanging if someone tries
55358         'make syntax-check' from a tarball.  Also append to any non-syntax
55359         checks already defined in cfg.mk.
55361 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
55363         longlong: tune, particularly for common case of c99
55365         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
55366         or running anything if c99, or if unsigned long long int does not
55367         work.  In either case, we know the answer without further tests.
55368         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
55369         it at most once, and use its results for both long long int and
55370         unsigned long long int.  This is more likely to be efficient in
55371         the common case where the program wants to check for both long
55372         long int and unsigned long long int.
55373         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
55374         since the answer is already known.
55376 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
55378         getloadavg: set errno
55379         * lib/getloadavg.c: Set errno when returning -1.  If no other
55380         error number looks appropriate, set it to ENOSYS if the getloadavg
55381         looks like it can't possibly ever work, ENOTSUP otherwise.
55382         Suggested by Bruno Haible in
55383         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
55385         getloadavg: trim unused parts and speed up 'configure'
55386         * NEWS: Document this.
55387         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
55388         always compiled if getloadavg is absent.
55389         Move test code to ...
55390         * tests/test-getloadavg.c: New file, containing previous
55391         contents of test from lib/getloadavg.c.  It also contains
55392         suggestions by Bruno Haible in
55393         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
55394         * modules/getloadavg-tests: New file.
55395         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
55396         Do tests in the same order as they're needed for getloadavg.c.
55397         Omit setgid-related tests that generate symbols KMEM_GROUP,
55398         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
55399         Do only the tests that are needed to see whether the system has
55400         getloadavg, moving the other tests into ...
55401         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
55402         NLIST_NAME_UNION; nobody should be using it.  Do not define
55403         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
55404         relevant, as the user of this module shouldn't care how getloadavg
55405         is implemented.
55407         getloadavg: omit unused var
55408         * lib/getloadavg.c (getloadavg): Omit unused local variable.
55410 2011-02-15  Jim Meyering  <meyering@redhat.com>
55412         doc: update users.txt
55413         * users.txt: Update iwhd's URL.
55415 2011-02-13  Bruno Haible  <bruno@clisp.org>
55417         Consistent macro naming for macros that use GCC __attribute__.
55418         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
55419         _ATTRIBUTE_NONNULL_.
55420         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
55421         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
55422         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
55423         ATTRIBUTE_DEPRECATED.
55424         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
55425         ATTRIBUTE_NORETURN.
55426         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55427         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55428         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55429         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55430         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
55431         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
55432         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
55433         ATTRIBUTE_SENTINEL.
55434         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
55435         ATTRIBUTE_RETURN_CHECK.
55436         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
55437         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
55438         ATTRIBUTE_NORETURN.
55439         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
55440         Reported by Paul Eggert.
55442 2011-02-13  Bruno Haible  <bruno@clisp.org>
55444         Don't interfere with a program's definition of __attribute__.
55445         * lib/argp.h (__attribute__): Remove definition.
55446         (_GL_ATTRIBUTE_FORMAT): New macro.
55447         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
55448         * lib/argp-fmtstream.h (__attribute__): Remove definition.
55449         (_GL_ATTRIBUTE_FORMAT): New macro.
55450         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
55451         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
55452         GCC 3 or newer.
55453         * lib/error.h (__attribute__): Remove definition.
55454         (_GL_ATTRIBUTE_FORMAT): New macro.
55455         (error, error_at_line): Use it.
55456         * lib/hash.h (__attribute__): Remove definition.
55457         (ATTRIBUTE_WUR): Update definition. Define always.
55458         * lib/openat.h (__attribute__): Remove definition.
55459         (ATTRIBUTE_NORETURN): Update definition. Define always.
55460         * lib/sigpipe-die.h (__attribute__): Remove definition.
55461         (ATTRIBUTE_NORETURN): Update definition. Define always.
55462         * lib/vasnprintf.h (__attribute__): Remove definition.
55463         (_GL_ATTRIBUTE_FORMAT): New macro.
55464         (asnprintf, vasnprintf): Use it.
55465         * lib/xalloc.h (__attribute__): Remove definition.
55466         (ATTRIBUTE_NORETURN): Update definition. Define always.
55467         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
55468         * lib/xmemdup0.h (__attribute__): Remove definition.
55469         (ATTRIBUTE_NORETURN): Update definition. Define always.
55470         * lib/xprintf.h (__attribute__): Remove definition.
55471         (_GL_ATTRIBUTE_FORMAT): New macro.
55472         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
55473         * lib/xstrtol.h (__attribute__): Remove definition.
55474         (ATTRIBUTE_NORETURN): Update definition. Define always.
55475         * lib/xvasprintf.h (__attribute__): Remove definition.
55476         (_GL_ATTRIBUTE_FORMAT): New macro.
55477         (xasprintf, xvasprintf): Use it.
55478         * tests/test-argmatch.c (__attribute__): Remove definition.
55479         (ATTRIBUTE_NORETURN): Update definition. Define always.
55480         * tests/test-exclude.c (__attribute__): Remove definition.
55481         (ATTRIBUTE_NORETURN): Update definition. Define always.
55482         Reported by Paul Eggert.
55484 2011-02-13  Bruno Haible  <bruno@clisp.org>
55486         mbrtowc: Add more tests for native Windows platforms.
55487         * tests/test-mbrtowc-w32-1.sh: New file.
55488         * tests/test-mbrtowc-w32-2.sh: New file.
55489         * tests/test-mbrtowc-w32-3.sh: New file.
55490         * tests/test-mbrtowc-w32-4.sh: New file.
55491         * tests/test-mbrtowc-w32-5.sh: New file.
55492         * tests/test-mbrtowc-w32.c: New file.
55493         * modules/mbrtowc-tests (Files): Add them.
55494         (Makefile.am): Arrange to run these tests.
55495         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
55496         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
55498 2011-02-13  Bruno Haible  <bruno@clisp.org>
55500         mbrtowc: Work around native Windows bug.
55501         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
55502         guess when no suitable locale for testing was found.
55503         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
55505 2011-02-13  Bruno Haible  <bruno@clisp.org>
55507         mbsinit: Work around mingw bug.
55508         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
55509         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
55510         Windows.
55511         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
55513 2011-02-13  Bruno Haible  <bruno@clisp.org>
55515         mbsinit: Don't crash for a NULL argument.
55516         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
55517         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
55519 2011-02-13  Bruno Haible  <bruno@clisp.org>
55521         Don't interfere with a program's definition of __attribute__.
55522         * lib/stdio.in.h (__attribute__): Remove definition.
55523         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
55524         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
55525         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
55526         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
55527         * lib/string.in.h (__attribute__): Remove definition.
55528         Reported by Paul Eggert.
55530 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55532         stdlib: don't get in the way of non-GCC __attribute__
55533         See thread starting at
55534         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
55535         Revert previous stdlib change, installing the following instead:
55536         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
55537         to get in the way of a non-GCC compiler that supports __attribute__.
55538         (_GL_ATTRIBUTE_RETURN): New macro.
55539         (_Exit): Use it instead of __attribute__.
55541 2011-02-12  Bruno Haible  <bruno@clisp.org>
55543         quotearg test: Avoid test failure on mingw.
55544         * tests/test-quotearg.sh: Convert the locale identifier from native
55545         Windows syntax to Unix syntax.
55547 2011-02-12  Bruno Haible  <bruno@clisp.org>
55549         setlocale: Prefer gnulib's override over libintl's override.
55550         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
55551         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
55552         GNULIB_defined_setlocale is set.
55554 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55556         stdlib: support non-GCC __attribute__
55558         Fix a serious and tricky problem encountered when attempting to
55559         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
55560         5.5, but it crashed due to memory corruption on Solaris 10 with
55561         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
55562         bits that are otherwise zero.  This tagging is optional inside
55563         Emacs but is preferred and is used when __attribute__ ((__aligned
55564         (8))) works, as it does with both recent-enough GCC and with Sun C
55565         5.11.  However, Sun C 5.11 is not GCC and does not #define
55566         __GNUC__ and __GNUC_MINOR__.
55568         When I added the getloadavg module to Emacs, it brought in
55569         stdlib.in.h, which contained this fragment:
55571            #ifndef __attribute__
55572            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
55573            #  define __attribute__(Spec)   /* empty */
55574            # endif
55575            #endif
55577         When files that include <stdlib.h> were compiled with Sun C 5.11,
55578         the above code disabled __attribute__ ((__aligned (8))), which
55579         caused variables to not be properly aligned, which eventually led
55580         to the pointer corruption mentioned above.  (This was a bit hard
55581         to diagnose, unfortunately.)
55583         Several "#define __attribute__(X) /* empty */" code snippets need
55584         to be eradicated from Gnulib to work with non-GCC compilers that
55585         support __attribute__.  The Autoconf way to do this is to test for
55586         each kind of attribute that we want support for, and selectively
55587         enable that in source code.
55589         Fix this problem just for stdlib.h, by adding a test for the
55590         __noreturn__ attribute, and change stdlib.in.h to use that test
55591         when needed.  This technique can be easily generalized to the
55592         other *.in.h files and attributes, and a similar technique can be
55593         used for *.h and *.c files.  This patch is enough to solve the
55594         problem for Emacs + getloadavg, and I thought I'd publish it for
55595         feedback before undertaking further, similar fixes in other
55596         modules.
55598         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
55599         because it's not needed for stdlib.h.  It merely substitutes the
55600         value directly into stdlib.h.  We may well need to #define it, or
55601         similar symbols, for other modules, but it's nice to also have an
55602         option to not #define it for applications like Emacs that do not
55603         need it.
55605         * lib/stdlib.in.h (__attribute__): Do not #define.
55606         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
55607         be defined only if the _Exit module is also used.
55608         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
55609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
55610         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
55611         platforms.
55612         * modules/_Exit (Files): Add m4/attribute.m4.
55613         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
55614         * m4/attribute.m4: New file.
55616 2011-02-12  Bruno Haible  <bruno@clisp.org>
55618         wcsrtombs: Work around bug on native Windows.
55619         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
55620         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
55621         instead of len.
55622         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
55624 2011-02-12  Bruno Haible  <bruno@clisp.org>
55626         mbsrtowcs: Work around bug on native Windows.
55627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
55628         against mingw bug.
55629         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
55631 2011-02-12  Bruno Haible  <bruno@clisp.org>
55633         Avoid setlocale bugs in tests.
55634         * modules/btowc (Dependencies): Add setlocale.
55635         * modules/c-strcase (Dependencies): Likewise.
55636         * modules/mbmemcasecmp (Dependencies): Likewise.
55637         * modules/mbmemcasecoll (Dependencies): Likewise.
55638         * modules/mbrtowc (Dependencies): Likewise.
55639         * modules/mbscasecmp (Dependencies): Likewise.
55640         * modules/mbscasestr (Dependencies): Likewise.
55641         * modules/mbschr (Dependencies): Likewise.
55642         * modules/mbscspn (Dependencies): Likewise.
55643         * modules/mbsinit (Dependencies): Likewise.
55644         * modules/mbsncasecmp (Dependencies): Likewise.
55645         * modules/mbsnrtowcs (Dependencies): Likewise.
55646         * modules/mbspbrk (Dependencies): Likewise.
55647         * modules/mbspcasecmp (Dependencies): Likewise.
55648         * modules/mbsrchr (Dependencies): Likewise.
55649         * modules/mbsrtowcs (Dependencies): Likewise.
55650         * modules/mbsspn (Dependencies): Likewise.
55651         * modules/mbsstr (Dependencies): Likewise.
55652         * modules/nl_langinfo (Dependencies): Likewise.
55653         * modules/quotearg (Dependencies): Likewise.
55654         * modules/unicase/locale-language (Dependencies): Likewise.
55655         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
55656         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
55657         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
55658         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
55659         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
55660         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
55661         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
55662         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
55663         * modules/vasnprintf-posix (Dependencies): Likewise.
55664         * modules/wcrtomb (Dependencies): Likewise.
55665         * modules/wcsnrtombs (Dependencies): Likewise.
55666         * modules/wcsrtombs (Dependencies): Likewise.
55668 2011-02-12  Bruno Haible  <bruno@clisp.org>
55670         setlocale: Workaround native Windows bug.
55671         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55672         succeeds but sets LC_CTYPE to "C", report a failure.
55673         * tests/test-setlocale2.sh: New file.
55674         * tests/test-setlocale2.c: New file.
55675         * modules/setlocale-tests (Files): Add the new files.
55676         (Makefile.am): Enable test-setlocale2.sh test.
55677         * doc/posix-functions/setlocale.texi: Mention workaround.
55679 2011-02-11  Bruno Haible  <bruno@clisp.org>
55681         Tests for module 'setlocale'.
55682         * modules/setlocale-tests: New file.
55683         * tests/test-setlocale1.sh: New file.
55684         * tests/test-setlocale1.c: New file.
55686         New module 'setlocale'.
55687         * lib/locale.in.h (setlocale): New declaration.
55688         * lib/setlocale.c: New file, based on
55689         gettext/gettext-runtime/intl/setlocale.c.
55690         * m4/setlocale.m4: New file.
55691         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55692         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55693         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55694         REPLACE_SETLOCALE.
55695         * modules/setlocale: New file.
55696         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55697         * doc/posix-functions/setlocale.texi: Mention the new module.
55699 2011-02-11  Bruno Haible  <bruno@clisp.org>
55701         Prepare for locale dependent tests on mingw.
55702         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55703         because it has the wrong locale encoding.
55704         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55705         French_France.1252 instead of "fr".
55706         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55707         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
55708         because it has the wrong locale encoding.
55709         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
55710         native Windows, try Turkish_Turkey.65001.
55711         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
55712         Chinese_China.54936.
55714         Prepare for locale dependent tests on mingw.
55715         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
55716         differently.
55717         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
55718         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
55719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55722 2011-02-11  Eric Blake  <eblake@redhat.com>
55724         strptime: avoid compiler warnings
55725         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
55726         compiler warnings about dead code.
55727         Reported by Daniel P. Berrange.
55729 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
55731         doc: update users.txt
55732         * users.txt: Add rcs.
55734 2011-02-10  John W. Eaton  <jwe@gnu.org>
55736         doc: update users.txt
55737         * users.txt: Add octave.
55739 2011-02-10  Jim Meyering  <meyering@redhat.com>
55741         doc: update users.txt
55742         * users.txt: Add iwhd.
55744 2011-02-09  Bruno Haible  <bruno@clisp.org>
55746         gnulib-tool: Make copyright notice adjustment more robust.
55747         * gnulib-tool (func_import): In sed_transform_main_lib_file,
55748         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
55749         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
55750         License".
55751         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
55753 2011-02-06  Bruno Haible  <bruno@clisp.org>
55755         New module 'towctrans'.
55756         * modules/towctrans: New file.
55757         * lib/wctype.in.h (towctrans): New declaration.
55758         * lib/towctrans.c: New file.
55759         * lib/towctrans-impl.h: New file.
55760         * m4/towctrans.m4: New file.
55761         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
55762         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
55763         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
55764         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
55765         * doc/posix-functions/towctrans.texi: Mention the new module.
55767 2011-02-06  Bruno Haible  <bruno@clisp.org>
55769         New module 'wctrans'.
55770         * modules/wctrans: New file.
55771         * lib/wctype.in.h (wctrans): New declaration.
55772         * lib/wctrans.c: New file.
55773         * lib/wctrans-impl.h: New file.
55774         * m4/wctrans.m4: New file.
55775         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
55776         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
55777         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
55778         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
55779         * doc/posix-functions/wctrans.texi: Mention the new module.
55781 2011-02-06  Bruno Haible  <bruno@clisp.org>
55783         New module 'iswctype'.
55784         * modules/iswctype: New file.
55785         * lib/wctype.in.h (iswctype): New declaration.
55786         * lib/iswctype.c: New file.
55787         * lib/iswctype-impl.h: New file.
55788         * m4/iswctype.m4: New file.
55789         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
55790         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
55791         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
55792         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
55793         * doc/posix-functions/iswctype.texi: Mention the new module and the
55794         HP-UX 11.00 problem.
55796 2011-02-06  Bruno Haible  <bruno@clisp.org>
55798         New module 'wctype'.
55799         * modules/wctype: Change to represent the wctype() substitute.
55800         * lib/wctype.in.h (wctype): New declaration.
55801         * lib/wctype.c: New file.
55802         * lib/wctype-impl.h: New file.
55803         * m4/wctype.m4: New file.
55804         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
55805         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55806         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55807         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55808         * doc/posix-functions/wctype.texi: Mention the new module and the
55809         HP-UX 11.00 problem.
55811 2011-02-06  Bruno Haible  <bruno@clisp.org>
55813         wctype-h: Ensure wctype_t and wctrans_t are defined.
55814         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55815         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55816         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55817         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55818         HAVE_WCTRANS_T.
55819         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55821 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55823         flock: fix license typo
55825         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55826         omitted.
55828 2011-02-08  Bruno Haible  <bruno@clisp.org>
55830         Split large sed scripts, for HP-UX sed.
55831         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55832         to avoid HP-UX limit of 99 commands, in the near future.
55833         * modules/stdlib (Makefile.am): Likewise.
55834         * modules/unistd (Makefile.am): Likewise.
55835         * modules/wchar (Makefile.am): Likewise.
55836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55837         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55838         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55840 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55841             Bruno Haible  <bruno@clisp.org>
55843         stdlib: improve random_r modularization
55844         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55845         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55846         you also need the random_r module to get this material right.
55847         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55848         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55849         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55851 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55853         stdlib: don't depend on stdint
55854         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55855         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55856         be independent of whether stdint.h is needed.
55857         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55858         here, instead of ...
55859         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55860         struct random_data should be using the random_r module, not just
55861         the stdlib module (which wouldn't make sense: what package needs
55862         just struct random_data without also needing random_r?).
55863         * modules/stdlib (Depends-on): Remove stdint.
55865         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55866         See the thread rooted at
55867         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55868         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55869         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55870         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55871         __VMS)); previously it was always included (via fcntl--.h).
55872         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55873         hand; this is good enough for load averages.  Also, do not use
55874         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55875         flags directly if available and don't bother otherwise.  (Packages
55876         that need the extra reliability should use the modules that define
55877         these flags on older platforms that lack them.)
55878         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55879         fcntl-safer.
55881 2011-02-08  Jim Meyering  <meyering@redhat.com>
55883         di-set.h, ino-map.h: add multiple-inclusion guard
55884         Technically, the guard is required only for ino-map.h, due to its
55885         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55886         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55887         * lib/ino-map.h: Likewise.
55889 2011-02-06  Bruno Haible  <bruno@clisp.org>
55891         iswblank: Ensure declaration on glibc systems.
55892         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55893         * modules/iswblank (Dependencies): Add 'extensions'.
55894         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55896 2011-02-06  Bruno Haible  <bruno@clisp.org>
55898         New module 'iswblank'.
55899         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55900         * modules/iswblank: New file.
55901         * modules/wctype-h (Files): Remove lib/iswblank.c.
55902         (Makefile.am): Substitute GNULIB_ISWBLANK.
55903         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55904         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55905         (gl_WCTYPE_H_DEFAULTS): New macro.
55906         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55907         * modules/iswblank-tests: New file.
55908         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55909         * tests/test-wctype-h.c (main): Remove iswblank tests.
55910         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55911         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55912         of 'wctype-h'.
55913         * NEWS: Mention the change.
55914         * modules/mbchar (Depends-on): Add iswblank.
55916 2011-02-08  Bruno Haible  <bruno@clisp.org>
55918         di-set tests: Refactor.
55919         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55920         unnecessary includes.
55921         (ASSERT): Remove macro.
55922         (main): Make C90 compliant by avoiding variable declaration after
55923         statement.
55924         * modules/di-set-tests (Files): Add tests/macros.h.
55926 2011-02-08  Bruno Haible  <bruno@clisp.org>
55928         ino-map tests: Refactor.
55929         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55930         unnecessary includes.
55931         (ASSERT): Remove macro.
55932         (main): Make C90 compliant by avoiding variable declaration after
55933         statement.
55934         * modules/ino-map-tests (Files): Add tests/macros.h.
55936 2011-02-08  Jim Meyering  <meyering@redhat.com>
55938         di-set: add "const" to a cast
55939         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55940         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55942 2011-02-06  Bruno Haible  <bruno@clisp.org>
55944         Rename module 'wctype' to 'wctype-h'.
55945         * modules/wctype-h: Renamed from modules/wctype.
55946         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55947         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55948         (Files, Depends-on, Makefile.am): Update.
55949         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55950         (Files, Makefile.am): Update.
55951         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55952         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55953         * doc/posix-headers/wctype.texi: Update.
55954         * doc/posix-functions/iswalnum.texi: Update.
55955         * doc/posix-functions/iswalpha.texi: Update.
55956         * doc/posix-functions/iswblank.texi: Update.
55957         * doc/posix-functions/iswcntrl.texi: Update.
55958         * doc/posix-functions/iswdigit.texi: Update.
55959         * doc/posix-functions/iswgraph.texi: Update.
55960         * doc/posix-functions/iswlower.texi: Update.
55961         * doc/posix-functions/iswprint.texi: Update.
55962         * doc/posix-functions/iswpunct.texi: Update.
55963         * doc/posix-functions/iswspace.texi: Update.
55964         * doc/posix-functions/iswupper.texi: Update.
55965         * doc/posix-functions/iswxdigit.texi: Update.
55966         * doc/posix-functions/towlower.texi: Update.
55967         * doc/posix-functions/towupper.texi: Update.
55968         * NEWS: Mention the change.
55969         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55970         * modules/mbchar (Dependencies): Likewise.
55971         * modules/mbswidth (Dependencies): Likewise.
55972         * modules/quotearg (Dependencies): Likewise.
55973         * modules/regex (Dependencies): Likewise.
55974         * modules/wcscasecmp (Dependencies): Likewise.
55975         * modules/wcsncasecmp (Dependencies): Likewise.
55976         * modules/wcwidth (Dependencies): Likewise.
55978 2011-02-06  Bruno Haible  <bruno@clisp.org>
55980         New module 'wcswidth'.
55981         * modules/wcswidth: New file.
55982         * lib/wchar.in.h (wcswidth): New declaration.
55983         * lib/wcswidth.c: New file.
55984         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55985         * m4/wcswidth.m4: New file.
55986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55988         REPLACE_WCSWIDTH.
55989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55990         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55991         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55992         * doc/posix-functions/wcswidth.texi: Mention the new module.
55994 2011-02-06  Bruno Haible  <bruno@clisp.org>
55996         New module 'wcstok'.
55997         * modules/wcstok: New file.
55998         * lib/wchar.in.h (wcstok): New declaration.
55999         * lib/wcstok.c: New file.
56000         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
56001         * m4/wcstok.m4: New file.
56002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
56003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
56004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
56005         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
56006         * doc/posix-functions/wcstok.texi: Mention the new module.
56008 2011-02-06  Bruno Haible  <bruno@clisp.org>
56010         New module 'wcsstr'.
56011         * modules/wcsstr: New file.
56012         * lib/wchar.in.h (wcsstr): New declaration.
56013         * lib/wcsstr.c: New file.
56014         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
56015         * m4/wcsstr.m4: New file.
56016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
56017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
56018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
56019         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
56020         * doc/posix-functions/wcsstr.texi: Mention the new module.
56022 2011-02-06  Bruno Haible  <bruno@clisp.org>
56024         New module 'wcspbrk'.
56025         * modules/wcspbrk: New file.
56026         * lib/wchar.in.h (wcspbrk): New declaration.
56027         * lib/wcspbrk.c: New file.
56028         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
56029         * m4/wcspbrk.m4: New file.
56030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
56031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
56032         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
56033         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
56034         * doc/posix-functions/wcspbrk.texi: Mention the new module.
56036 2011-02-06  Bruno Haible  <bruno@clisp.org>
56038         New module 'wcsspn'.
56039         * modules/wcsspn: New file.
56040         * lib/wchar.in.h (wcsspn): New declaration.
56041         * lib/wcsspn.c: New file.
56042         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
56043         * m4/wcsspn.m4: New file.
56044         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
56045         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
56046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
56047         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
56048         * doc/posix-functions/wcsspn.texi: Mention the new module.
56050 2011-02-06  Bruno Haible  <bruno@clisp.org>
56052         New module 'wcscspn'.
56053         * modules/wcscspn: New file.
56054         * lib/wchar.in.h (wcscspn): New declaration.
56055         * lib/wcscspn.c: New file.
56056         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
56057         * m4/wcscspn.m4: New file.
56058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
56059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
56060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
56061         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
56062         * doc/posix-functions/wcscspn.texi: Mention the new module.
56064 2011-02-06  Bruno Haible  <bruno@clisp.org>
56066         New module 'wcsrchr'.
56067         * modules/wcsrchr: New file.
56068         * lib/wchar.in.h (wcsrchr): New declaration.
56069         * lib/wcsrchr.c: New file.
56070         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
56071         * m4/wcsrchr.m4: New file.
56072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
56073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
56074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
56075         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
56076         * doc/posix-functions/wcsrchr.texi: Mention the new module.
56078 2011-02-06  Bruno Haible  <bruno@clisp.org>
56080         New module 'wcschr'.
56081         * modules/wcschr: New file.
56082         * lib/wchar.in.h (wcschr): New declaration.
56083         * lib/wcschr.c: New file.
56084         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
56085         * m4/wcschr.m4: New file.
56086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
56087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
56088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
56089         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
56090         * doc/posix-functions/wcschr.texi: Mention the new module.
56092 2011-02-06  Bruno Haible  <bruno@clisp.org>
56094         New module 'wcsdup'.
56095         * modules/wcsdup: New file.
56096         * lib/wchar.in.h (wcsdup): New declaration.
56097         * lib/wcsdup.c: New file.
56098         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
56099         * m4/wcsdup.m4: New file.
56100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
56101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
56102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
56103         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
56104         * doc/posix-functions/wcsdup.texi: Mention the new module.
56106 2011-02-06  Bruno Haible  <bruno@clisp.org>
56108         New module 'wcsxfrm'.
56109         * modules/wcsxfrm: New file.
56110         * lib/wchar.in.h (wcsxfrm): New declaration.
56111         * lib/wcsxfrm.c: New file.
56112         * lib/wcsxfrm-impl.h: New file.
56113         * m4/wcsxfrm.m4: New file.
56114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
56115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
56116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
56117         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
56118         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
56120 2011-02-06  Bruno Haible  <bruno@clisp.org>
56122         New module 'wcscoll'.
56123         * modules/wcscoll: New file.
56124         * lib/wchar.in.h (wcscoll): New declaration.
56125         * lib/wcscoll.c: New file.
56126         * lib/wcscoll-impl.h: New file.
56127         * m4/wcscoll.m4: New file.
56128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
56129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
56130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
56131         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
56132         * doc/posix-functions/wcscoll.texi: Mention the new module.
56134 2011-02-06  Bruno Haible  <bruno@clisp.org>
56136         New module 'wcsncasecmp'.
56137         * modules/wcsncasecmp: New file.
56138         * lib/wchar.in.h (wcsncasecmp): New declaration.
56139         * lib/wcsncasecmp.c: New file.
56140         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
56141         * m4/wcsncasecmp.m4: New file.
56142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
56143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
56144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
56145         HAVE_WCSNCASECMP.
56146         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
56147         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
56149 2011-02-06  Bruno Haible  <bruno@clisp.org>
56151         New module 'wcscasecmp'.
56152         * modules/wcscasecmp: New file.
56153         * lib/wchar.in.h (wcscasecmp): New declaration.
56154         * lib/wcscasecmp.c: New file.
56155         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
56156         * m4/wcscasecmp.m4: New file.
56157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
56158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
56159         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
56160         HAVE_WCSCASECMP.
56161         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
56162         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
56164 2011-02-05  Bruno Haible  <bruno@clisp.org>
56166         New module 'wcsncmp'.
56167         * modules/wcsncmp: New file.
56168         * lib/wchar.in.h (wcsncmp): New declaration.
56169         * lib/wcsncmp.c: New file.
56170         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
56171         * m4/wcsncmp.m4: New file.
56172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
56173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
56174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
56175         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
56176         * doc/posix-functions/wcsncmp.texi: Mention the new module.
56178 2011-02-05  Bruno Haible  <bruno@clisp.org>
56180         New module 'wcscmp'.
56181         * modules/wcscmp: New file.
56182         * lib/wchar.in.h (wcscmp): New declaration.
56183         * lib/wcscmp.c: New file.
56184         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
56185         * m4/wcscmp.m4: New file.
56186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
56187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
56188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
56189         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
56190         * doc/posix-functions/wcscmp.texi: Mention the new module.
56192 2011-02-05  Bruno Haible  <bruno@clisp.org>
56194         New module 'wcsncat'.
56195         * modules/wcsncat: New file.
56196         * lib/wchar.in.h (wcsncat): New declaration.
56197         * lib/wcsncat.c: New file.
56198         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
56199         * m4/wcsncat.m4: New file.
56200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
56201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
56202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
56203         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
56204         * doc/posix-functions/wcsncat.texi: Mention the new module.
56206 2011-02-05  Bruno Haible  <bruno@clisp.org>
56208         New module 'wcscat'.
56209         * modules/wcscat: New file.
56210         * lib/wchar.in.h (wcscat): New declaration.
56211         * lib/wcscat.c: New file.
56212         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
56213         * m4/wcscat.m4: New file.
56214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
56215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
56216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
56217         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
56218         * doc/posix-functions/wcscat.texi: Mention the new module.
56220 2011-02-05  Bruno Haible  <bruno@clisp.org>
56222         New module 'wcpncpy'.
56223         * modules/wcpncpy: New file.
56224         * lib/wchar.in.h (wcpncpy): New declaration.
56225         * lib/wcpncpy.c: New file.
56226         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
56227         * m4/wcpncpy.m4: New file.
56228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
56229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
56230         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
56231         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
56232         * doc/posix-functions/wcpncpy.texi: Mention the new module.
56234 2011-02-05  Bruno Haible  <bruno@clisp.org>
56236         New module 'wcsncpy'.
56237         * modules/wcsncpy: New file.
56238         * lib/wchar.in.h (wcsncpy): New declaration.
56239         * lib/wcsncpy.c: New file.
56240         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
56241         * m4/wcsncpy.m4: New file.
56242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
56243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
56244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
56245         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
56246         * doc/posix-functions/wcsncpy.texi: Mention the new module.
56248 2011-02-05  Bruno Haible  <bruno@clisp.org>
56250         New module 'wcpcpy'.
56251         * modules/wcpcpy: New file.
56252         * lib/wchar.in.h (wcpcpy): New declaration.
56253         * lib/wcpcpy.c: New file.
56254         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
56255         * m4/wcpcpy.m4: New file.
56256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
56257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
56258         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
56259         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
56260         * doc/posix-functions/wcpcpy.texi: Mention the new module.
56262 2011-02-05  Bruno Haible  <bruno@clisp.org>
56264         New module 'wcscpy'.
56265         * modules/wcscpy: New file.
56266         * lib/wchar.in.h (wcscpy): New declaration.
56267         * lib/wcscpy.c: New file.
56268         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
56269         * m4/wcscpy.m4: New file.
56270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
56271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
56272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
56273         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
56274         * doc/posix-functions/wcscpy.texi: Mention the new module.
56276 2011-02-05  Bruno Haible  <bruno@clisp.org>
56278         New module 'wcsnlen'.
56279         * modules/wcsnlen: New file.
56280         * lib/wchar.in.h (wcsnlen): New declaration.
56281         * lib/wcsnlen.c: New file.
56282         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
56283         * m4/wcsnlen.m4: New file.
56284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
56285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
56286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
56287         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
56288         * doc/posix-functions/wcsnlen.texi: Mention the new module.
56290 2011-02-05  Bruno Haible  <bruno@clisp.org>
56292         New module 'wcslen'.
56293         * modules/wcslen: New file.
56294         * lib/wchar.in.h (wcslen): New declaration.
56295         * lib/wcslen.c: New file.
56296         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
56297         * m4/wcslen.m4: New file.
56298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
56299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
56300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
56301         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
56302         * doc/posix-functions/wcslen.texi: Mention the new module.
56304 2011-02-05  Bruno Haible  <bruno@clisp.org>
56306         New module 'wmemset'.
56307         * modules/wmemset: New file.
56308         * lib/wchar.in.h (wmemset): New declaration.
56309         * lib/wmemset.c: New file.
56310         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
56311         * m4/wmemset.m4: New file.
56312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
56313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
56314         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
56315         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
56316         * doc/posix-functions/wmemset.texi: Mention the new module.
56318 2011-02-05  Bruno Haible  <bruno@clisp.org>
56320         New module 'wmemmove'.
56321         * modules/wmemmove: New file.
56322         * lib/wchar.in.h (wmemmove): New declaration.
56323         * lib/wmemmove.c: New file.
56324         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
56325         * m4/wmemmove.m4: New file.
56326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
56327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
56328         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
56329         HAVE_WMEMMOVE.
56330         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
56331         * doc/posix-functions/wmemmove.texi: Mention the new module.
56333 2011-02-05  Bruno Haible  <bruno@clisp.org>
56335         New module 'wmemcpy'.
56336         * modules/wmemcpy: New file.
56337         * lib/wchar.in.h (wmemcpy): New declaration.
56338         * lib/wmemcpy.c: New file.
56339         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
56340         * m4/wmemcpy.m4: New file.
56341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
56342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
56343         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
56344         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
56345         * doc/posix-functions/wmemcpy.texi: Mention the new module.
56347 2011-02-05  Bruno Haible  <bruno@clisp.org>
56349         New module 'wmemcmp'.
56350         * modules/wmemcmp: New file.
56351         * lib/wchar.in.h (wmemcmp): New declaration.
56352         * lib/wmemcmp.c: New file.
56353         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
56354         * m4/wmemcmp.m4: New file.
56355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
56356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
56357         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
56358         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
56359         * doc/posix-functions/wmemcmp.texi: Mention the new module.
56361 2011-02-07  Jim Meyering  <meyering@redhat.com>
56363         di-set, ino-map: new modules, from coreutils
56364         * lib/di-set.c: New file.
56365         * lib/di-set.h: Likewise.
56366         * lib/ino-map.c: Likewise.
56367         * lib/ino-map.h: Likewise.
56368         * modules/di-set: Likewise.
56369         * modules/di-set-tests: Likewise.
56370         * modules/ino-map: Likewise.
56371         * modules/ino-map-tests: Likewise.
56372         * tests/test-di-set.c: Likewise.
56373         * tests/test-ino-map.c: Likewise.
56375 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
56377         getloadavg: merge minor changes from Emacs
56379         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
56380         (getloadavg): Use memset, not bzero.
56382         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
56383         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
56384         clash (bug#86).
56386 2010-11-14  Bruno Haible  <bruno@clisp.org>
56388         Allow multiple gnulib generated replacements to coexist.
56389         * lib/getopt.in.h (struct option): Avoid identical redefinition.
56390         * lib/inttypes.in.h (imaxdiv_t): Likewise.
56391         * lib/langinfo.in.h (nl_item): Likewise.
56392         * lib/math.in.h (_NaN, NAN): Likewise.
56393         * lib/netdb.in.h (struct addrinfo): Likewise.
56394         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
56395         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
56396         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
56397         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
56398         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
56399         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
56400         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
56401         pthread_mutexattr_init, pthread_mutexattr_settype,
56402         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
56403         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
56404         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
56405         pthread_spin_trylock, pthread_spin_unlock): Likewise.
56406         * lib/sched.in.h (struct sched_param): Likewise.
56407         * lib/se-selinux.in.h (security_class_t, security_context_t,
56408         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
56409         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
56410         lsetfilecon, fsetfilecon, security_check_context,
56411         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
56412         Likewise.
56413         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
56414         Likewise.
56415         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
56416         _gl_function_taking_int_returning_void_t, union sigval,
56417         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
56418         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
56419         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
56420         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
56421         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
56422         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
56423         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
56424         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
56425         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
56426         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
56427         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
56428         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
56429         socklen_t, rpl_fd_isset): Likewise.
56430         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
56431         * lib/sys_time.in.h (struct timeval): Likewise.
56432         * lib/sys_times.in.h (struct tms): Likewise.
56433         * lib/sys_utsname.in.h (struct utsname):
56434         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
56435         * lib/unistd.in.h (getpagesize): Likewise.
56436         * lib/wchar.in.h (mbstate_t): Likewise.
56437         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56438         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
56439         towlower, towupper): Likewise.
56440         Reported by Sam Steingold <sds@gnu.org>.
56442 2011-02-05  Eric Blake  <eblake@redhat.com>
56444         unsetenv: work around Haiku issues
56445         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
56446         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
56448 2010-12-30  Bruce Korb  <bkorb@gnu.org>
56450         libposix: avoid calling error() within libposix
56451         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
56452         is defined.
56454 2011-02-05  Eric Blake  <eblake@redhat.com>
56456         strerror_r-posix: port to cygwin
56457         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
56458         implementation.
56459         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
56460         * tests/test-strerror_r.c (main): Fix test.
56461         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
56462         issue.
56464 2011-02-05  Bruno Haible  <bruno@clisp.org>
56466         New module 'wmemchr'.
56467         * modules/wmemchr: New file.
56468         * lib/wchar.in.h (wmemchr): New declaration.
56469         * lib/wmemchr.c: New file.
56470         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
56471         * m4/wmemchr.m4: New file.
56472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
56473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
56474         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
56475         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
56476         * doc/posix-functions/wmemchr.texi: Mention the new module.
56478 2011-02-04  Eric Blake  <eblake@redhat.com>
56480         fdopendir: detect FreeBSD bug
56481         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
56482         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
56484 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56486         stdbool: do not define HAVE_STDBOOL_H
56487         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
56488         AC_HEADER_STDBOOL.  All uses changed.  Do not define
56489         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
56490         imported from the latest Autoconf git.  It was motivated by Emacs,
56491         which uses gnulib but does not need HAVE_STDBOOL_H.
56493 2011-02-04  Bruno Haible  <bruno@clisp.org>
56495         wcsnrtombs: Prepare for new module wwcsnrtombs.
56496         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
56497         * lib/wcsnrtombs.c: Include it.
56498         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
56500         wcsrtombs: Prepare for new module wwcsrtombs.
56501         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
56502         * lib/wcsrtombs.c: Include it.
56503         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
56505         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
56506         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
56507         * lib/mbsnrtowcs.c: Include it.
56508         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
56510         mbsrtowcs: Prepare for new module mbsrtowwcs.
56511         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
56512         * lib/mbsrtowcs.c: Include it.
56513         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
56515 2011-02-04  Bruno Haible  <bruno@clisp.org>
56517         vasnprintf: Reduce use of malloc for small format strings.
56518         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
56519         (arguments): Add room for the first 7 arguments.
56520         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
56521         (char_directives, u8_directives, u16_directives, u32_directives): Add
56522         room for the first 7 directives.
56523         * lib/printf-parse.c: Include <string.h>.
56524         (PRINTF_PARSE): Change memory handling code so that it uses the first
56525         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
56526         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
56527         Reported by Pádraig Brady <P@draigbrady.com>.
56529 2011-01-31  Eric Blake  <eblake@redhat.com>
56531         dup2: work around Haiku bug
56532         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
56533         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
56534         * doc/posix-functions/dup2.texi (dup2): Document the bug.
56535         * tests/test-dup2.c (main): Enhance test.
56537 2011-01-31  Simon Josefsson  <simon@josefsson.org>
56539         doc: off_t is not available in eglibc 2.11.2 stdio.h.
56540         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
56541         declared by eglibc 2.11.2.
56542         * lib/stdio.in.h: Likewise.
56544 2011-01-31  Eric Blake  <eblake@redhat.com>
56546         ignore-value: add missing test dependency
56547         * tests/test-ignore-value.c: Revert previous change; stdio.h
56548         provides off_t.
56549         * modules/ignore-value-tests (Depends-on): Add missing dependency.
56551 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
56553         mktime: clarify long_int width checking
56554         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
56555         the top level, to make it clearer that the assumption about
56556         long_int width is being checked.  See
56557         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
56559 2011-01-30  Simon Josefsson  <simon@josefsson.org>
56561         ignore-value: Fix self-test.
56562         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56564 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56566         TYPE_MAXIMUM: avoid theoretically undefined behavior
56567         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
56568         negative number, which the C Standard says has undefined behavior.
56569         In practice this is not a problem, but might as well do it by the book.
56570         Reported by Rich Felker and Eric Blake; see
56571         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
56572         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
56573         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56575         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
56576         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56577         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
56579         mktime: #undef mktime before #defining it
56580         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
56582         mktime: systematically normalize tm_isdst comparisons
56583         * lib/mktime.c (isdst_differ): New function.
56584         (__mktime_internal): Use it systematically for all isdst comparisons.
56585         This completes the fix for libc BZ #6723, and removes the need for
56586         normalizing tm_isdst.  See
56587         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
56588         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
56590         mktime: fix some integer overflow issues and sidestep the rest
56592         This was prompted by a bug report by Benjamin Lindner for MinGW
56593         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
56594         His bug is due to signed integer overflow (0 - INT_MIN), and I
56595         I scanned through mktime.c looking for other integer overflow
56596         problems, fixing all the bugs I found.
56598         Although the C Standard says the resulting code is still not safe
56599         in the presence of integer overflow, in practice it should be good
56600         enough for all real-world two's-complement implementations, except
56601         for debugging environments that deliberately trap on integer
56602         overflow (e.g., gcc -ftrapv).
56604         * lib/mktime.c (WRAPV): New macro.
56605         (SHR): Also check that long_int and time_t shift right in the
56606         usual way, before using the fast-but-unportable method.
56607         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
56608         used.  The code already assumed two's complement, so there's
56609         no need to test for alternatives.  All uses removed.
56610         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
56611         the C standard.  Problem reported by Rich Felker in
56612         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
56613         (twos_complement_arithmetic): Also check long_int and time_t.
56614         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
56615         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
56616         (__mktime_internal): Avoid integer overflow with unary subtraction
56617         in two instances where -1 - X is an adequate replacement for -X,
56618         since the calculations are approximate.
56620 2011-01-29  Eric Blake  <eblake@redhat.com>
56622         mktime: avoid infinite loop
56623         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
56624         type; behavior is still undefined but portable to all known targets.
56625         Reported by Rich Felker.
56627 2011-01-29  Simon Josefsson  <simon@josefsson.org>
56629         rename, unlink, same-inode: Relicense.
56630         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
56631         * modules/unlink (License): Likewise.
56632         * modules/same-inode (License): Likewise.
56634 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56636         mktime: avoid problems on NetBSD 5 / i386
56637         * lib/mktime.c (long_int): New type.  This works around a problem
56638         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
56639         but time_t is 64 bits, and where I expect the existing code is
56640         wrong in some cases.
56641         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
56642         (ydhms_diff): Bring back the compile-time check for wide-enough
56643         year and yday.
56645         mktime: fix misspelling in comment
56646         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
56647         This merges all recent glibc changes of importance.
56649 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56651         move-if-change: cope with concurrent mv of identical file.
56652         * build-aux/move-if-change (CMPPROG): Accept environment
56653         variable as an override for `cmp'.
56654         (usage): Document CMPPROG.
56655         Adjust comparison to drop stdout.  Cope with failure of mv if
56656         the target file exists and is identical to the source, for
56657         parallel builds.
56658         Report from H.J. Lu against binutils in PR binutils/12283.
56660 2011-01-28  Bruce Korb  <bkorb@gnu.org>
56662         * users.txt: Mention sharutils.
56664 2011-01-28  Simon Josefsson  <simon@josefsson.org>
56666         * users.txt: Mention OATH Toolkit.
56668 2011-01-27  Bruno Haible  <bruno@clisp.org>
56670         Prepare for supporting FreeBSD 10.
56671         * build-aux/config.libpath: Remove handling of freebsd1*.
56673 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56675         Prepare for supporting FreeBSD 10.
56676         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56677         match FreeBSD 10.0.
56679 2011-01-27  Bruno Haible  <bruno@clisp.org>
56681         vma-iter, get-rusage-as: Add OpenBSD support.
56682         * modules/vma-iter (configure.ac): Test for mquery.
56683         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56684         * lib/vma-iter.c: Include <sys/mman.h>.
56685         (vma_iterate): Add an implementation based on mquery().
56686         * lib/resource-ext.h (get_rusage_as): Update comments.
56687         * lib/get-rusage-as.c: Likewise.
56688         * lib/get-rusage-data.c: Likewise.
56690 2011-01-26  Karl Berry  <karl@gnu.org>
56692         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56693         variables to make it easier to override the makeinfo program used.
56695 2011-01-26  Eric Blake  <eblake@redhat.com>
56697         fcntl: work around Haiku F_DUPFD bugs
56698         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56699         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56700         cloexec bit on duplication.
56701         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56703 2011-01-26  Bruno Haible  <bruno@clisp.org>
56705         Enable memory leak tests on AIX.
56706         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56707         * tests/test-fprintf-posix3.c (main): Likewise.
56709 2011-01-26  Bruno Haible  <bruno@clisp.org>
56711         Tests for module 'get-rusage-data'.
56712         * modules/get-rusage-data-tests: New file.
56713         * tests/test-get-rusage-data.c: New file.
56715         New module 'get-rusage-data'.
56716         * lib/resource-ext.h (get_rusage_data): New declaration.
56717         * lib/get-rusage-data.c: New file.
56718         * modules/get-rusage-data: New file.
56720 2011-01-25  Bruno Haible  <bruno@clisp.org>
56722         get-rusage-as: Allow for easier testing.
56723         * lib/resource-ext.h (get_rusage_as): Add comment.
56724         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
56725         (main): New function for interactive testing.
56727 2011-01-25  Bruno Haible  <bruno@clisp.org>
56729         vma-iter: Treat Haiku like BeOS.
56730         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
56731         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
56733 2011-01-25  Eric Blake  <eblake@redhat.com>
56735         c-stack: fix regression on cygwin when libsigsegv is present
56736         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
56738 2011-01-24  Bruno Haible  <bruno@clisp.org>
56740         vma-iter: Avoid empty intervals.
56741         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
56742         on an empty interval.
56744 2011-01-24  Jim Meyering  <meyering@redhat.com>
56746         u64: remove unnecessary #include
56747         * lib/u64.h: Don't include <stddef.h>.  It was not used.
56749 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56751         Allow the user to avoid the HAVE_RAW_DECL_* macros.
56752         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
56754 2011-01-23  Bruno Haible  <bruno@clisp.org>
56756         New module 'vma-iter'.
56757         * lib/vma-iter.h: New file.
56758         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
56759         * modules/vma-iter: New file.
56760         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
56761         for get_rusage_as_via_iterator.
56762         (vma_iterate_callback): New function.
56763         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
56764         * modules/get-rusage-as (Depends-on): Add vma-iter.
56766 2011-01-23  Bruno Haible  <bruno@clisp.org>
56768         uninorm: Tweak includes.
56769         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
56770         Reported by Jim Meyering.
56772 2011-01-23  Bruno Haible  <bruno@clisp.org>
56774         get-rusage-as: Improve on NetBSD.
56775         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
56776         /proc, like on FreeBSD.
56778 2011-01-23  Jim Meyering  <meyering@redhat.com>
56780         xreadlink.h: remove unnecessary #include
56781         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
56783         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
56784         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
56786 2011-01-23  Bruno Haible  <bruno@clisp.org>
56788         get-rusage-as: Fix bug.
56789         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
56790         original limit when aborting the first loop.
56792 2011-01-23  Bruno Haible  <bruno@clisp.org>
56794         wctype: Ensure valid C syntax.
56795         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
56796         unconditionally, instead of gl_NEXT_HEADERS conditionally.
56798 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56800         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
56801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
56802         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
56803         as they are needed only for configure's test case.
56804         This removes two unnecessary symbols from config.h.
56806         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56807         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56809         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56810         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56811         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56812         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56813         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56814         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56815         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56816         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56818         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56819         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56820         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56821         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56822         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56823         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56825 2011-01-21  Eric Blake  <eblake@redhat.com>
56827         maintainer-makefile: work with older git for submodule check
56828         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56829         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56830         Reported by Matthias Bolte.
56832         bootstrap: minor portability fixes
56833         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56834         (usage): Omit leading capital and trailing . on help phrases, per
56835         GNU Coding Standards.
56836         (check_versions, top level): Prefix messages with script name.
56838 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56840         bootstrap: support --no-git option
56841         * build-aux/bootstrap: Add --no-git option, to be used when
56842         --gnulib-srcdir points to the exact desired checkout.
56844 2011-01-21  Eric Blake  <eblake@redhat.com>
56846         strerror_r-posix: work with glibc 2.13
56847         * lib/strerror_r.c (strerror_r): Fix return type.
56849 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56850             Bruno Haible  <bruno@clisp.org>
56852         uN_strstr: New unit tests.
56853         * modules/unistr/u8-strstr-tests: New file.
56854         * modules/unistr/u16-strstr-tests: New file.
56855         * modules/unistr/u32-strstr-tests: New file.
56856         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56857         * tests/unistr/test-u8-strstr.c: New file.
56858         * tests/unistr/test-u16-strstr.c: New file.
56859         * tests/unistr/test-u32-strstr.c: New file.
56861 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56862             Bruno Haible  <bruno@clisp.org>
56864         Make uN_strstr functions O(n) worst-case.
56865         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56866         16-bit and 32-bit unit cases, use the unibyte algorithm from
56867         lib/mbsstr.c.
56868         * lib/unistr/u8-strstr.c: Include <string.h>.
56869         (UNIT_IS_UINT8_T): New macro.
56870         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56871         (U_STRLEN, U_STRNLEN): New macros.
56872         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56873         (U_STRLEN, U_STRNLEN): New macros.
56874         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56875         (configure.ac): Update required libunistring version.
56876         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56877         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56878         malloca.
56879         (configure.ac): Update required libunistring version.
56880         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56881         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56882         malloca.
56883         (configure.ac): Update required libunistring version.
56885 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56886             Bruno Haible  <bruno@clisp.org>
56888         Prepare for faster uN_strstr functions.
56889         * lib/str-kmp.h: Support definable UNITs.
56890         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56891         needle_len argument.
56892         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56893         * lib/mbscasestr.c (mbscasestr): Likewise.
56895 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56897         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56898         * tests/test-malloca.c (main): Unset the environment variable
56899         to greatly speed up the test.
56900         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56901         * modules/malloca-tests: Depend on unsetenv.
56903 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56905         ignore-value: remove stdint dependency
56906         * lib/ignore-value.h: Remove <stdint.h>
56907         * modules/ignore-value: Remove stdint dependency.
56909 2011-01-21  Jim Meyering  <meyering@redhat.com>
56911         maint.mk: adjust variable name to be consistent with other gl_ vars
56912         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56913         to be lower case.
56915 2011-01-20  Jim Meyering  <meyering@redhat.com>
56917         maint.mk: make "check" depend on public-submodule-commit by default
56918         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56920 2011-01-20  Bruno Haible  <bruno@clisp.org>
56922         mbfile, mbiter: Complete change from 2008-12-21.
56923         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56924         * m4/mbiter.m4 (gl_MBITER): Likewise.
56926 2011-01-20  Jim Meyering  <meyering@redhat.com>
56928         init.sh: insert space between each function name and "()"
56929         * tests/init.sh: Make it a little easier to see that a function's
56930         name is "warn_", and not "warn" when looking at the first part of
56931         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56933 2011-01-20  Jim Meyering  <meyering@redhat.com>
56935         mountlist: clean up code formatting
56936         * lib/mountlist.c (read_file_system_list): Split a long line,
56937         correct bracing style, use NULL in place of "(struct statfs *)0",
56938         don't parenthesize return value, add spaces around "=" and after
56939         ";-in-for-stmt".
56941 2011-01-14  Markus Duft  <mduft@gentoo.org>
56943         mountlist: add support for Interix
56944         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56945         Apply statvfs to all entries of /dev/fs.
56946         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56947         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56949 2011-01-20  Jim Meyering  <meyering@redhat.com>
56951         maint.mk: improve the public-submodule-commit rule
56952         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56953         to suppress printing of its commands... unless V=1.
56954         Add git submodule's --quiet option to suppress printing of e.g.,
56955         "Entering gnulib" output.
56956         "cd" into $(srcdir) before running git submodule.
56958 2011-01-20  Bruno Haible  <bruno@clisp.org>
56960         include_next: Fix bug introduced on 2011-01-18.
56961         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56962         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56963         ac_cv_header_... variable if the second argument is not 'check'.
56964         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56965         gl_NEXT_HEADERS_INTERNAL.
56967 2011-01-20  Bruno Haible  <bruno@clisp.org>
56969         Allow the user to avoid the GNULIB_TEST_* macros.
56970         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56971         Suggested by Paul Eggert.
56973 2011-01-14  Jim Meyering  <meyering@redhat.com>
56975         bootstrap: avoid failure when there is no .gitmodules file
56976         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56977         has been assigned to, even when its value is the empty string.
56978         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56979         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56980         Reported by John W. Eaton <jwe@gnu.org>.
56982 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56984         assume <ctype.h>, ..., <time.h> exist
56985         For years gnulib has been assuming the existence of the headers
56986         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56987         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56988         them, since they don't appear to be needed.
56989         * README (Portability guidelines): Document this.
56990         * lib/flock.c: Assume <fcntl.h> exists.
56991         * lib/regex_internal.h: Assume <locale.h> exists.
56992         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56994         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56995         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56996         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56997         * m4/regex.m4 (gl_REGEX): Likewise.
56998         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56999         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
57000         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
57001         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
57002         * tests/test-argp.c: Likewise.
57003         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
57005         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
57006         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
57007         AA_APPLE_UNIVERSAL_BUILD.  See
57008         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
57009         * NEWS: Document this.
57011 2011-01-19  Eric Blake  <eblake@redhat.com>
57013         c-stack: assume stack overflow if SA_SIGINFO unsupported
57014         * lib/c-stack.c (SIGACTION_WORKS): Rename...
57015         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
57016         sigaction will work.
57017         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
57018         behavior match Linux.
57019         * tests/test-c-stack.c (main): Prefer NULL for pointers.
57021         stdbool-tests: accommodate Haiku
57022         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
57024         binary-io: fix O_TEXT on Haiku
57025         * modules/binary-io (Depends-on): Add fcntl-h.
57026         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
57027         than blindly undefining O_TEXT.
57028         Reported by Scott McCreary.
57030 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57032         include_next: do not check for standard headers like stddef.h
57034         I found this problem when modifying Emacs to use gnulib.
57035         I noticed that it added HAVE_STDDEF_H to config.h, even though
57036         gnulib always assumes <stddef.h> exists as per README and this
57037         symbol is unnecessary.
57038         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
57039         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
57040         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
57041         faster for headers like stddef.h that are known to exist.
57042         (gl_CHECK_NEXT_HEADERS): Use it.
57043         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
57044         rather than gl_CHECK_NEXT_HEADERS.
57045         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
57046         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
57048 2011-01-18  Eric Blake  <eblake@redhat.com>
57050         ansi-c++-opt: skip C++ dependency style if C++ is unused
57051         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
57052         tests when we know C++ compilation is not desired.
57053         Reported by Scott McCreary.
57055 2011-01-18  Bruno Haible  <bruno@clisp.org>
57057         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
57058         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
57059         (main): Perform test also when getrlimit and setrlimit don't exist or
57060         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
57061         limiting the address space size using setrlimit, compare the address
57062         space size before and after the test.
57063         * tests/test-dprintf-posix2.c: Likewise.
57064         * tests/test-fprintf-posix3.sh: Update skip messages.
57065         * tests/test-dprintf-posix2.sh: Likewise.
57066         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
57067         * modules/dprintf-posix-tests (Depends-on): Likewise.
57068         Reported by Bruce Korb <bkorb@gnu.org> and
57069         Gary V. Vaughan <gary@gnu.org>.
57071 2011-01-18  Bruno Haible  <bruno@clisp.org>
57073         get-rusage-as: Improvement for Cygwin.
57074         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
57075         areas that are merely reserved.
57077 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57079         strftime: remove dependencies on multibyte modules
57081         strftime depended on mbrlen, mbsinit, and wchar, but these modules
57082         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
57083         only if __osf__ is defined, and I suspect OSF doesn't need these
57084         other modules.  If my guess is wrong, we'll need to come up with a
57085         variant of strftime that doesn't need the multibyte modules.
57087         I discovered this problem when attempting modify Emacs to use the
57088         strftime module.  With the previous gnulib, this caused Emacs to
57089         need 31 new files, ranging from lib/config.charset to
57090         m4/wint_t.m4.  This was overkill and I expect would be offputting
57091         to the Emacs maintainers.  After this change, only 6 new files are
57092         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
57093         stdbool.m4, and tm_gmtoff.m4.
57095         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
57096         Suggested by Bruno Haible in
57097         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
57098         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
57099         and do not check for wchar.h.
57100         * modules/strftime (Files): Remove m4/mbstate_t.m4.
57101         (Depends-on): Remove mbrlen, mbsinit, wchar.
57103 2011-01-18  Bruno Haible  <bruno@clisp.org>
57105         Tests for module 'get-rusage-as'.
57106         * modules/get-rusage-as-tests: New file.
57107         * tests/test-get-rusage-as.c: New file.
57109         New module 'get-rusage-as'.
57110         * modules/get-rusage-as: New file.
57111         * lib/resource-ext.h: New file.
57112         * lib/get-rusage-as.c: New file.
57114 2011-01-17  Eric Blake  <eblake@redhat.com>
57116         sigaction: relax license from LGPLv3+ to LGPLv2+
57117         * modules/sigaction (License): Relax to LGPLv2+.
57119 2011-01-14  Bruno Haible  <bruno@clisp.org>
57121         filemode: Make function declarations usable in C++ mode.
57122         * lib/filemode.h: Enclose function declarations in extern "C" block.
57123         Reported by John W. Eaton <jwe@gnu.org>.
57125 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
57127         save-cwd: no longer include "xgetcwd.h"
57128         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
57129         This avoids a compilation failure in projects that use save-cwd
57130         without also using the xgetcwd module.
57132 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57134         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
57135         This is so that a program like Emacs, which needs only dtoastr,
57136         does not have to bother with distributing and compiling ftoastr
57137         and ldtoastr.
57138         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
57139         * modules/dtoastr, modules/ldtoastr: New files.
57140         * modules/ftoastr: Now works just for 'float'.
57141         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
57142         (Makefile.am): Remove ftoastr.h (not needed and no effect),
57143         dtoastr.c, ldtoastr.c.
57145 2011-01-11  Jim Meyering  <meyering@redhat.com>
57147         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
57148         There is no need to work around the lack of the fchdir function,
57149         since gnulib can now provide a replacement when required.
57150         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
57151         * modules/save-cwd (Depends-on): Add fchdir.
57153 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57155         openat, save-cwd: avoid xmalloc
57157         This removes a direct (but undocumented) dependency of openat on
57158         xalloc, along with an indirect dependency via save-cwd.  It also
57159         removes a dependency of save-cwd on xgetcwd, and thereby
57160         indirectly on xalloc.  This change causes the openat substitute
57161         to fall back on save_cwd when memory is tight, and for save_cwd to
57162         fail instead of dying when memory is tight, but that's good enough.
57163         Problem and initial idea for fix reported by Bastien Roucaries in
57164         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
57166         * lib/openat-proc.c: Include stdlib.h (for malloc), not
57167         xalloc.h (for xmalloc).
57168         (openat_proc_name): Use malloc, not xmalloc.
57169         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
57170         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
57172         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
57173         This avoids heap allocation for file names whose lengths are in
57174         the range 512..1023, with the upper bound increasing to at most
57175         4031 depending on the platform's PATH_MAX.  (We do not want
57176         pathmax.h here as it might supply a non-constant PATH_MAX.)
57177         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
57178         Perhaps they should be moved to malloca.h?
57179         (OPENAT_BUFFER_SIZE): Use them.
57181 2011-01-10  Bruno Haible  <bruno@clisp.org>
57183         doc: Update users.txt.
57184         * users.txt: Add recutils.
57186 2011-01-09  Karl Berry  <karl@gnu.org>
57188         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
57190         * doc/configmake.texi: New file.
57191         * doc/gnulib.texi: Include it.
57192         * modules/configmake: Move documentation from here.
57194 2011-01-09  Bruno Haible  <bruno@clisp.org>
57196         Update to Unicode 6.0.0.
57197         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
57198         (get_lbp): Update for Unicode 6.0.0.
57199         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
57200         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
57201         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
57202         U+11001, U+11038..U+11046. Remove U+06DE.
57203         (uc_width): Fix bounds of planes.
57204         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57205         lib/uniwidth/width.c.
57206         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
57207         trailing whitespace removed.
57208         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
57209         without comments, but with the original copyright notice.
57210         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
57211         * lib/unicase/ignorable.h: Likewise.
57212         * lib/unicase/tocasefold.h: Likewise.
57213         * lib/unicase/tolower.h: Likewise.
57214         * lib/unicase/totitle.h: Likewise.
57215         * lib/unicase/toupper.h: Likewise.
57216         * lib/unictype/bidi_of.h: Likewise.
57217         * lib/unictype/blocks.h: Likewise.
57218         * lib/unictype/categ_C.h: Likewise.
57219         * lib/unictype/categ_Cn.h: Likewise.
57220         * lib/unictype/categ_L.h: Likewise.
57221         * lib/unictype/categ_Ll.h: Likewise.
57222         * lib/unictype/categ_Lm.h: Likewise.
57223         * lib/unictype/categ_Lo.h: Likewise.
57224         * lib/unictype/categ_Lu.h: Likewise.
57225         * lib/unictype/categ_M.h: Likewise.
57226         * lib/unictype/categ_Mc.h: Likewise.
57227         * lib/unictype/categ_Me.h: Likewise.
57228         * lib/unictype/categ_Mn.h: Likewise.
57229         * lib/unictype/categ_N.h: Likewise.
57230         * lib/unictype/categ_Nd.h: Likewise.
57231         * lib/unictype/categ_No.h: Likewise.
57232         * lib/unictype/categ_P.h: Likewise.
57233         * lib/unictype/categ_Po.h: Likewise.
57234         * lib/unictype/categ_S.h: Likewise.
57235         * lib/unictype/categ_Sc.h: Likewise.
57236         * lib/unictype/categ_Sk.h: Likewise.
57237         * lib/unictype/categ_Sm.h: Likewise.
57238         * lib/unictype/categ_So.h: Likewise.
57239         * lib/unictype/categ_of.h: Likewise.
57240         * lib/unictype/combining.h: Likewise.
57241         * lib/unictype/ctype_alnum.h: Likewise.
57242         * lib/unictype/ctype_alpha.h: Likewise.
57243         * lib/unictype/ctype_graph.h: Likewise.
57244         * lib/unictype/ctype_lower.h: Likewise.
57245         * lib/unictype/ctype_print.h: Likewise.
57246         * lib/unictype/ctype_punct.h: Likewise.
57247         * lib/unictype/ctype_upper.h: Likewise.
57248         * lib/unictype/decdigit.h: Likewise.
57249         * lib/unictype/digit.h: Likewise.
57250         * lib/unictype/numeric.h: Likewise.
57251         * lib/unictype/pr_alphabetic.h: Likewise.
57252         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57253         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57254         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57255         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57256         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57257         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57258         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57259         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57260         * lib/unictype/pr_case_ignorable.h: Likewise.
57261         * lib/unictype/pr_cased.h: Likewise.
57262         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
57263         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
57264         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
57265         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
57266         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
57267         * lib/unictype/pr_combining.h: Likewise.
57268         * lib/unictype/pr_composite.h: Likewise.
57269         * lib/unictype/pr_currency_symbol.h: Likewise.
57270         * lib/unictype/pr_decimal_digit.h: Likewise.
57271         * lib/unictype/pr_deprecated.h: Likewise.
57272         * lib/unictype/pr_format_control.h: Likewise.
57273         * lib/unictype/pr_grapheme_base.h: Likewise.
57274         * lib/unictype/pr_grapheme_extend.h: Likewise.
57275         * lib/unictype/pr_grapheme_link.h: Likewise.
57276         * lib/unictype/pr_id_continue.h: Likewise.
57277         * lib/unictype/pr_id_start.h: Likewise.
57278         * lib/unictype/pr_ideographic.h: Likewise.
57279         * lib/unictype/pr_lowercase.h: Likewise.
57280         * lib/unictype/pr_math.h: Likewise.
57281         * lib/unictype/pr_numeric.h: Likewise.
57282         * lib/unictype/pr_other_alphabetic.h: Likewise.
57283         * lib/unictype/pr_other_id_continue.h: Likewise.
57284         * lib/unictype/pr_other_math.h: Likewise.
57285         * lib/unictype/pr_punctuation.h: Likewise.
57286         * lib/unictype/pr_sentence_terminal.h: Likewise.
57287         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57288         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57289         * lib/unictype/pr_unified_ideograph.h: Likewise.
57290         * lib/unictype/pr_uppercase.h: Likewise.
57291         * lib/unictype/pr_xid_continue.h: Likewise.
57292         * lib/unictype/pr_xid_start.h: Likewise.
57293         * lib/unictype/scripts.h: Likewise.
57294         * lib/unictype/scripts_byname.gperf: Likewise.
57295         * lib/unictype/sy_java_ident.h: Likewise.
57296         * lib/unigbrk/gbrkprop.h: Likewise.
57297         * lib/unilbrk/lbrkprop1.h: Likewise.
57298         * lib/unilbrk/lbrkprop2.h: Likewise.
57299         * lib/uninorm/decomposition-table2.h: Likewise.
57300         * lib/uniwbrk/wbrkprop.h: Likewise.
57301         * tests/unicase/test-cased.c: Likewise.
57302         * tests/unicase/test-ignorable.c: Likewise.
57303         * tests/unicase/test-uc_tolower.c: Likewise.
57304         * tests/unicase/test-uc_totitle.c: Likewise.
57305         * tests/unicase/test-uc_toupper.c: Likewise.
57306         * tests/unictype/test-categ_C.c: Likewise.
57307         * tests/unictype/test-categ_Cn.c: Likewise.
57308         * tests/unictype/test-categ_L.c: Likewise.
57309         * tests/unictype/test-categ_Ll.c: Likewise.
57310         * tests/unictype/test-categ_Lm.c: Likewise.
57311         * tests/unictype/test-categ_Lo.c: Likewise.
57312         * tests/unictype/test-categ_Lu.c: Likewise.
57313         * tests/unictype/test-categ_M.c: Likewise.
57314         * tests/unictype/test-categ_Mc.c: Likewise.
57315         * tests/unictype/test-categ_Me.c: Likewise.
57316         * tests/unictype/test-categ_Mn.c: Likewise.
57317         * tests/unictype/test-categ_N.c: Likewise.
57318         * tests/unictype/test-categ_Nd.c: Likewise.
57319         * tests/unictype/test-categ_No.c: Likewise.
57320         * tests/unictype/test-categ_P.c: Likewise.
57321         * tests/unictype/test-categ_Po.c: Likewise.
57322         * tests/unictype/test-categ_S.c: Likewise.
57323         * tests/unictype/test-categ_Sc.c: Likewise.
57324         * tests/unictype/test-categ_Sk.c: Likewise.
57325         * tests/unictype/test-categ_Sm.c: Likewise.
57326         * tests/unictype/test-categ_So.c: Likewise.
57327         * tests/unictype/test-ctype_alnum.c: Likewise.
57328         * tests/unictype/test-ctype_alpha.c: Likewise.
57329         * tests/unictype/test-ctype_graph.c: Likewise.
57330         * tests/unictype/test-ctype_lower.c: Likewise.
57331         * tests/unictype/test-ctype_print.c: Likewise.
57332         * tests/unictype/test-ctype_punct.c: Likewise.
57333         * tests/unictype/test-ctype_upper.c: Likewise.
57334         * tests/unictype/test-decdigit.h: Likewise.
57335         * tests/unictype/test-digit.h: Likewise.
57336         * tests/unictype/test-numeric.h: Likewise.
57337         * tests/unictype/test-pr_alphabetic.c: Likewise.
57338         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57339         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57340         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57341         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57342         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57343         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57344         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57345         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57346         * tests/unictype/test-pr_case_ignorable.c: Likewise.
57347         * tests/unictype/test-pr_cased.c: Likewise.
57348         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
57349         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
57350         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
57351         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
57352         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
57353         * tests/unictype/test-pr_combining.c: Likewise.
57354         * tests/unictype/test-pr_composite.c: Likewise.
57355         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57356         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57357         * tests/unictype/test-pr_deprecated.c: Likewise.
57358         * tests/unictype/test-pr_format_control.c: Likewise.
57359         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57360         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57361         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57362         * tests/unictype/test-pr_id_continue.c: Likewise.
57363         * tests/unictype/test-pr_id_start.c: Likewise.
57364         * tests/unictype/test-pr_ideographic.c: Likewise.
57365         * tests/unictype/test-pr_lowercase.c: Likewise.
57366         * tests/unictype/test-pr_math.c: Likewise.
57367         * tests/unictype/test-pr_numeric.c: Likewise.
57368         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57369         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57370         * tests/unictype/test-pr_other_math.c: Likewise.
57371         * tests/unictype/test-pr_punctuation.c: Likewise.
57372         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57373         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57374         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57375         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57376         * tests/unictype/test-pr_uppercase.c: Likewise.
57377         * tests/unictype/test-pr_xid_continue.c: Likewise.
57378         * tests/unictype/test-pr_xid_start.c: Likewise.
57379         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57380         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57381         changes.
57382         * lib/unictype/categ_Cc.h: Likewise.
57383         * lib/unictype/categ_Cf.h: Likewise.
57384         * lib/unictype/categ_Co.h: Likewise.
57385         * lib/unictype/categ_Cs.h: Likewise.
57386         * lib/unictype/categ_Lt.h: Likewise.
57387         * lib/unictype/categ_Nl.h: Likewise.
57388         * lib/unictype/categ_Pc.h: Likewise.
57389         * lib/unictype/categ_Pd.h: Likewise.
57390         * lib/unictype/categ_Pe.h: Likewise.
57391         * lib/unictype/categ_Pf.h: Likewise.
57392         * lib/unictype/categ_Pi.h: Likewise.
57393         * lib/unictype/categ_Ps.h: Likewise.
57394         * lib/unictype/categ_Z.h: Likewise.
57395         * lib/unictype/categ_Zl.h: Likewise.
57396         * lib/unictype/categ_Zp.h: Likewise.
57397         * lib/unictype/categ_Zs.h: Likewise.
57398         * lib/unictype/ctype_blank.h: Likewise.
57399         * lib/unictype/ctype_cntrl.h: Likewise.
57400         * lib/unictype/ctype_digit.h: Likewise.
57401         * lib/unictype/ctype_space.h: Likewise.
57402         * lib/unictype/ctype_xdigit.h: Likewise.
57403         * lib/unictype/mirror.h: Likewise.
57404         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57405         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57406         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57407         * lib/unictype/pr_bidi_control.h: Likewise.
57408         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57409         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57410         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57411         * lib/unictype/pr_bidi_pdf.h: Likewise.
57412         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57413         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57414         * lib/unictype/pr_dash.h: Likewise.
57415         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57416         * lib/unictype/pr_diacritic.h: Likewise.
57417         * lib/unictype/pr_extender.h: Likewise.
57418         * lib/unictype/pr_hex_digit.h: Likewise.
57419         * lib/unictype/pr_hyphen.h: Likewise.
57420         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57421         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57422         * lib/unictype/pr_ignorable_control.h: Likewise.
57423         * lib/unictype/pr_iso_control.h: Likewise.
57424         * lib/unictype/pr_join_control.h: Likewise.
57425         * lib/unictype/pr_left_of_pair.h: Likewise.
57426         * lib/unictype/pr_line_separator.h: Likewise.
57427         * lib/unictype/pr_logical_order_exception.h: Likewise.
57428         * lib/unictype/pr_non_break.h: Likewise.
57429         * lib/unictype/pr_not_a_character.h: Likewise.
57430         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57431         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57432         * lib/unictype/pr_other_id_start.h: Likewise.
57433         * lib/unictype/pr_other_lowercase.h: Likewise.
57434         * lib/unictype/pr_other_uppercase.h: Likewise.
57435         * lib/unictype/pr_paired_punctuation.h: Likewise.
57436         * lib/unictype/pr_paragraph_separator.h: Likewise.
57437         * lib/unictype/pr_pattern_syntax.h: Likewise.
57438         * lib/unictype/pr_pattern_white_space.h: Likewise.
57439         * lib/unictype/pr_private_use.h: Likewise.
57440         * lib/unictype/pr_quotation_mark.h: Likewise.
57441         * lib/unictype/pr_radical.h: Likewise.
57442         * lib/unictype/pr_soft_dotted.h: Likewise.
57443         * lib/unictype/pr_space.h: Likewise.
57444         * lib/unictype/pr_titlecase.h: Likewise.
57445         * lib/unictype/pr_variation_selector.h: Likewise.
57446         * lib/unictype/pr_white_space.h: Likewise.
57447         * lib/unictype/pr_zero_width.h: Likewise.
57448         * lib/unictype/sy_c_ident.h: Likewise.
57449         * lib/unictype/sy_c_whitespace.h: Likewise.
57450         * lib/unictype/sy_java_whitespace.h: Likewise.
57451         * lib/uninorm/composition-table.gperf: Likewise.
57452         * lib/uninorm/decomposition-table1.h: Likewise.
57453         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
57454         LB8.
57455         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57456         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57457         * modules/unictype/*: Bump version number of expected libunistring
57458         version.
57460 2011-01-09  Bruno Haible  <bruno@clisp.org>
57462         Update to Unicode 5.2.0.
57463         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
57464         trailing whitespace removed.
57466 2011-01-09  Bruno Haible  <bruno@clisp.org>
57468         New Unicode character properties, from Unicode 5.2.0.
57469         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
57470         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
57471         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
57472         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
57473         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
57474         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
57475         uc_is_property_cased, uc_is_property_case_ignorable,
57476         uc_is_property_changes_when_lowercased,
57477         uc_is_property_changes_when_uppercased,
57478         uc_is_property_changes_when_titlecased,
57479         uc_is_property_changes_when_casefolded,
57480         uc_is_property_changes_when_casemapped): New declarations.
57481         * lib/unictype/pr_byname.gperf: Add the new properties.
57482         * modules/unictype/property-byname (Depends-on): Depend on the new
57483         properties modules.
57484         * modules/unictype/property-all (Depends-on): Likewise.
57485         * MODULES.html.sh (Unicode string functions): Add
57486         unictype/property-case-ignorable, unictype/property-cased,
57487         unictype/property-changes-when-casefolded,
57488         unictype/property-changes-when-casemapped,
57489         unictype/property-changes-when-lowercased,
57490         unictype/property-changes-when-titlecased,
57491         unictype/property-changes-when-uppercased.
57493         New module 'unictype/property-changes-when-casemapped'.
57494         * modules/unictype/property-changes-when-casemapped: New file.
57495         * lib/unictype/pr_changes_when_casemapped.c: New file.
57496         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
57497         generated by gen-uni-tables.
57498         * modules/unictype/property-changes-when-casemapped-tests: New file.
57499         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
57500         automatically generated by gen-uni-tables.
57502         New module 'unictype/property-changes-when-casefolded'.
57503         * modules/unictype/property-changes-when-casefolded: New file.
57504         * lib/unictype/pr_changes_when_casefolded.c: New file.
57505         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
57506         generated by gen-uni-tables.
57507         * modules/unictype/property-changes-when-casefolded-tests: New file.
57508         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
57509         automatically generated by gen-uni-tables.
57511         New module 'unictype/property-changes-when-titlecased'.
57512         * modules/unictype/property-changes-when-titlecased: New file.
57513         * lib/unictype/pr_changes_when_titlecased.c: New file.
57514         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
57515         generated by gen-uni-tables.
57516         * modules/unictype/property-changes-when-titlecased-tests: New file.
57517         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
57518         automatically generated by gen-uni-tables.
57520         New module 'unictype/property-changes-when-uppercased'.
57521         * modules/unictype/property-changes-when-uppercased: New file.
57522         * lib/unictype/pr_changes_when_uppercased.c: New file.
57523         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
57524         generated by gen-uni-tables.
57525         * modules/unictype/property-changes-when-uppercased-tests: New file.
57526         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
57527         automatically generated by gen-uni-tables.
57529         New module 'unictype/property-changes-when-lowercased'.
57530         * modules/unictype/property-changes-when-lowercased: New file.
57531         * lib/unictype/pr_changes_when_lowercased.c: New file.
57532         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
57533         generated by gen-uni-tables.
57534         * modules/unictype/property-changes-when-lowercased-tests: New file.
57535         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
57536         automatically generated by gen-uni-tables.
57538         New module 'unictype/property-case-ignorable'.
57539         * modules/unictype/property-case-ignorable: New file.
57540         * lib/unictype/pr_case_ignorable.c: New file.
57541         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
57542         by gen-uni-tables.
57543         * modules/unictype/property-case-ignorable-tests: New file.
57544         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
57545         generated by gen-uni-tables.
57547         New module 'unictype/property-cased'.
57548         * modules/unictype/property-cased: New file.
57549         * lib/unictype/pr_cased.c: New file.
57550         * lib/unictype/pr_cased.h: New file, automatically generated by
57551         gen-uni-tables.
57552         * modules/unictype/property-cased-tests: New file.
57553         * tests/unictype/test-pr_cased.c: New file, automatically generated by
57554         gen-uni-tables.
57556 2011-01-09  Bruno Haible  <bruno@clisp.org>
57558         Update to Unicode 5.2.0.
57559         * lib/gen-uni-tables.c (output_predicate, output_category,
57560         output_combclass, output_bidi_category, output_decimal_digit_test,
57561         output_decimal_digit, output_digit_test, output_digit,
57562         output_numeric_test, output_numeric, output_mirror, output_scripts,
57563         output_scripts_byname, output_blocks, output_ident_category): Fix
57564         comment header.
57565         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
57566         get_wbp.
57567         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
57568         items.
57569         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
57570         Changes_When_Lowercased, Changes_When_Uppercased,
57571         Changes_When_Titlecased, Changes_When_Casefolded,
57572         Changes_When_Casemapped.
57573         (is_property_alphabetic, is_property_default_ignorable_code_point):
57574         Update for Unicode 5.2.0.
57575         (is_property_cased, is_property_case_ignorable,
57576         is_property_changes_when_lowercased,
57577         is_property_changes_when_uppercased,
57578         is_property_changes_when_titlecased,
57579         is_property_changes_when_casefolded,
57580         is_property_changes_when_casemapped): New functions.
57581         (output_properties): Output also the properties cased, case_ignorable,
57582         changes_when_lowercased, changes_when_uppercased,
57583         changes_when_titlecased, changes_when_casefolded,
57584         changes_when_casemapped.
57585         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
57586         Unicode TR#11 revision 17 -> 19.
57587         (LBP_CP): New enumeration value.
57588         (LBP_*): Adjust values accordingly.
57589         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57590         TR#14 revision 22 -> 24.
57591         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57592         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
57593         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57594         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
57595         is_WBP_MIDLETTER.
57596         (output_composition_tables): Allow for 24 bits instead of 16 bits in
57597         the code1 and code2 of each composition rule.
57598         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
57599         * lib/unicase/ignorable.h: Likewise.
57600         * lib/unicase/tocasefold.h: Likewise.
57601         * lib/unicase/tolower.h: Likewise.
57602         * lib/unicase/totitle.h: Likewise.
57603         * lib/unicase/toupper.h: Likewise.
57604         * lib/unictype/bidi_of.h: Likewise.
57605         * lib/unictype/blocks.h: Likewise.
57606         * lib/unictype/categ_C.h: Likewise.
57607         * lib/unictype/categ_Cf.h: Likewise.
57608         * lib/unictype/categ_Cn.h: Likewise.
57609         * lib/unictype/categ_L.h: Likewise.
57610         * lib/unictype/categ_Ll.h: Likewise.
57611         * lib/unictype/categ_Lm.h: Likewise.
57612         * lib/unictype/categ_Lo.h: Likewise.
57613         * lib/unictype/categ_Lu.h: Likewise.
57614         * lib/unictype/categ_M.h: Likewise.
57615         * lib/unictype/categ_Mc.h: Likewise.
57616         * lib/unictype/categ_Mn.h: Likewise.
57617         * lib/unictype/categ_N.h: Likewise.
57618         * lib/unictype/categ_Nd.h: Likewise.
57619         * lib/unictype/categ_Nl.h: Likewise.
57620         * lib/unictype/categ_No.h: Likewise.
57621         * lib/unictype/categ_P.h: Likewise.
57622         * lib/unictype/categ_Pd.h: Likewise.
57623         * lib/unictype/categ_Po.h: Likewise.
57624         * lib/unictype/categ_S.h: Likewise.
57625         * lib/unictype/categ_Sc.h: Likewise.
57626         * lib/unictype/categ_So.h: Likewise.
57627         * lib/unictype/categ_of.h: Likewise.
57628         * lib/unictype/combining.h: Likewise.
57629         * lib/unictype/ctype_alnum.h: Likewise.
57630         * lib/unictype/ctype_alpha.h: Likewise.
57631         * lib/unictype/ctype_graph.h: Likewise.
57632         * lib/unictype/ctype_lower.h: Likewise.
57633         * lib/unictype/ctype_print.h: Likewise.
57634         * lib/unictype/ctype_punct.h: Likewise.
57635         * lib/unictype/ctype_upper.h: Likewise.
57636         * lib/unictype/decdigit.h: Likewise.
57637         * lib/unictype/digit.h: Likewise.
57638         * lib/unictype/numeric.h: Likewise.
57639         * lib/unictype/pr_alphabetic.h: Likewise.
57640         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57641         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57642         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57643         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57644         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57645         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57646         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57647         * lib/unictype/pr_combining.h: Likewise.
57648         * lib/unictype/pr_composite.h: Likewise.
57649         * lib/unictype/pr_currency_symbol.h: Likewise.
57650         * lib/unictype/pr_dash.h: Likewise.
57651         * lib/unictype/pr_decimal_digit.h: Likewise.
57652         * lib/unictype/pr_deprecated.h: Likewise.
57653         * lib/unictype/pr_diacritic.h: Likewise.
57654         * lib/unictype/pr_extender.h: Likewise.
57655         * lib/unictype/pr_grapheme_base.h: Likewise.
57656         * lib/unictype/pr_grapheme_extend.h: Likewise.
57657         * lib/unictype/pr_grapheme_link.h: Likewise.
57658         * lib/unictype/pr_id_continue.h: Likewise.
57659         * lib/unictype/pr_id_start.h: Likewise.
57660         * lib/unictype/pr_ideographic.h: Likewise.
57661         * lib/unictype/pr_ignorable_control.h: Likewise.
57662         * lib/unictype/pr_logical_order_exception.h: Likewise.
57663         * lib/unictype/pr_lowercase.h: Likewise.
57664         * lib/unictype/pr_numeric.h: Likewise.
57665         * lib/unictype/pr_other_alphabetic.h: Likewise.
57666         * lib/unictype/pr_punctuation.h: Likewise.
57667         * lib/unictype/pr_sentence_terminal.h: Likewise.
57668         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57669         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57670         * lib/unictype/pr_unified_ideograph.h: Likewise.
57671         * lib/unictype/pr_uppercase.h: Likewise.
57672         * lib/unictype/pr_xid_continue.h: Likewise.
57673         * lib/unictype/pr_xid_start.h: Likewise.
57674         * lib/unictype/pr_zero_width.h: Likewise.
57675         * lib/unictype/scripts.h: Likewise.
57676         * lib/unictype/scripts_byname.gperf: Likewise.
57677         * lib/unictype/sy_java_ident.h: Likewise.
57678         * lib/unigbrk/gbrkprop.h: Likewise.
57679         * lib/unilbrk/lbrkprop1.h: Likewise.
57680         * lib/unilbrk/lbrkprop2.h: Likewise.
57681         * lib/unilbrk/lbrktables.h: Likewise.
57682         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57683         LBP_CP. Implement rule LB30.
57684         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57685         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57686         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57687         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57688         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57689         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57690         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57691         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57692         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57693         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57694         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57695         bits instead of 16 bits in the code1 and code2 of each composition
57696         rule.
57697         (uc_composition): Update for Unicode 5.2.0.
57698         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57699         * lib/uninorm/decomposition-table2.h: Likewise.
57700         * lib/uniwbrk/wbrkprop.h: Likewise.
57701         * tests/unicase/test-cased.c: Likewise.
57702         * tests/unicase/test-ignorable.c: Likewise.
57703         * tests/unicase/test-uc_tolower.c: Likewise.
57704         * tests/unicase/test-uc_totitle.c: Likewise.
57705         * tests/unicase/test-uc_toupper.c: Likewise.
57706         * tests/unictype/test-categ_C.c: Likewise.
57707         * tests/unictype/test-categ_Cf.c: Likewise.
57708         * tests/unictype/test-categ_Cn.c: Likewise.
57709         * tests/unictype/test-categ_L.c: Likewise.
57710         * tests/unictype/test-categ_Ll.c: Likewise.
57711         * tests/unictype/test-categ_Lm.c: Likewise.
57712         * tests/unictype/test-categ_Lo.c: Likewise.
57713         * tests/unictype/test-categ_Lu.c: Likewise.
57714         * tests/unictype/test-categ_M.c: Likewise.
57715         * tests/unictype/test-categ_Mc.c: Likewise.
57716         * tests/unictype/test-categ_Mn.c: Likewise.
57717         * tests/unictype/test-categ_N.c: Likewise.
57718         * tests/unictype/test-categ_Nd.c: Likewise.
57719         * tests/unictype/test-categ_Nl.c: Likewise.
57720         * tests/unictype/test-categ_No.c: Likewise.
57721         * tests/unictype/test-categ_P.c: Likewise.
57722         * tests/unictype/test-categ_Pd.c: Likewise.
57723         * tests/unictype/test-categ_Po.c: Likewise.
57724         * tests/unictype/test-categ_S.c: Likewise.
57725         * tests/unictype/test-categ_Sc.c: Likewise.
57726         * tests/unictype/test-categ_So.c: Likewise.
57727         * tests/unictype/test-ctype_alnum.c: Likewise.
57728         * tests/unictype/test-ctype_alpha.c: Likewise.
57729         * tests/unictype/test-ctype_graph.c: Likewise.
57730         * tests/unictype/test-ctype_lower.c: Likewise.
57731         * tests/unictype/test-ctype_print.c: Likewise.
57732         * tests/unictype/test-ctype_punct.c: Likewise.
57733         * tests/unictype/test-ctype_upper.c: Likewise.
57734         * tests/unictype/test-decdigit.h: Likewise.
57735         * tests/unictype/test-digit.h: Likewise.
57736         * tests/unictype/test-numeric.h: Likewise.
57737         * tests/unictype/test-pr_alphabetic.c: Likewise.
57738         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57739         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57740         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57741         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57742         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57743         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57744         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57745         * tests/unictype/test-pr_combining.c: Likewise.
57746         * tests/unictype/test-pr_composite.c: Likewise.
57747         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57748         * tests/unictype/test-pr_dash.c: Likewise.
57749         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57750         * tests/unictype/test-pr_deprecated.c: Likewise.
57751         * tests/unictype/test-pr_diacritic.c: Likewise.
57752         * tests/unictype/test-pr_extender.c: Likewise.
57753         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57754         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57755         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57756         * tests/unictype/test-pr_id_continue.c: Likewise.
57757         * tests/unictype/test-pr_id_start.c: Likewise.
57758         * tests/unictype/test-pr_ideographic.c: Likewise.
57759         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57760         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57761         * tests/unictype/test-pr_lowercase.c: Likewise.
57762         * tests/unictype/test-pr_numeric.c: Likewise.
57763         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57764         * tests/unictype/test-pr_punctuation.c: Likewise.
57765         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57766         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57767         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57768         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57769         * tests/unictype/test-pr_uppercase.c: Likewise.
57770         * tests/unictype/test-pr_xid_continue.c: Likewise.
57771         * tests/unictype/test-pr_xid_start.c: Likewise.
57772         * tests/unictype/test-pr_zero_width.c: Likewise.
57773         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57774         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
57775         changed behaviour: line breaking is now disallowed between a letter
57776         or '=' and '('.
57777         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57778         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57779         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57780         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
57781         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57782         lib/uniwidth/width.c.
57783         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
57784         without comments, but with the original copyright notice.
57785         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57786         changes.
57787         * lib/unictype/categ_Cc.h: Likewise.
57788         * lib/unictype/categ_Co.h: Likewise.
57789         * lib/unictype/categ_Cs.h: Likewise.
57790         * lib/unictype/categ_Lt.h: Likewise.
57791         * lib/unictype/categ_Me.h: Likewise.
57792         * lib/unictype/categ_Pc.h: Likewise.
57793         * lib/unictype/categ_Pe.h: Likewise.
57794         * lib/unictype/categ_Pf.h: Likewise.
57795         * lib/unictype/categ_Pi.h: Likewise.
57796         * lib/unictype/categ_Ps.h: Likewise.
57797         * lib/unictype/categ_Sk.h: Likewise.
57798         * lib/unictype/categ_Sm.h: Likewise.
57799         * lib/unictype/categ_Z.h: Likewise.
57800         * lib/unictype/categ_Zl.h: Likewise.
57801         * lib/unictype/categ_Zp.h: Likewise.
57802         * lib/unictype/categ_Zs.h: Likewise.
57803         * lib/unictype/ctype_blank.h: Likewise.
57804         * lib/unictype/ctype_cntrl.h: Likewise.
57805         * lib/unictype/ctype_digit.h: Likewise.
57806         * lib/unictype/ctype_space.h: Likewise.
57807         * lib/unictype/ctype_xdigit.h: Likewise.
57808         * lib/unictype/mirror.h: Likewise.
57809         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57810         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57811         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57812         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57813         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57814         * lib/unictype/pr_bidi_control.h: Likewise.
57815         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57816         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57817         * lib/unictype/pr_bidi_pdf.h: Likewise.
57818         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57819         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57820         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57821         * lib/unictype/pr_format_control.h: Likewise.
57822         * lib/unictype/pr_hex_digit.h: Likewise.
57823         * lib/unictype/pr_hyphen.h: Likewise.
57824         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57825         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57826         * lib/unictype/pr_iso_control.h: Likewise.
57827         * lib/unictype/pr_join_control.h: Likewise.
57828         * lib/unictype/pr_left_of_pair.h: Likewise.
57829         * lib/unictype/pr_line_separator.h: Likewise.
57830         * lib/unictype/pr_math.h: Likewise.
57831         * lib/unictype/pr_non_break.h: Likewise.
57832         * lib/unictype/pr_not_a_character.h: Likewise.
57833         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57834         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57835         * lib/unictype/pr_other_id_continue.h: Likewise.
57836         * lib/unictype/pr_other_id_start.h: Likewise.
57837         * lib/unictype/pr_other_lowercase.h: Likewise.
57838         * lib/unictype/pr_other_math.h: Likewise.
57839         * lib/unictype/pr_other_uppercase.h: Likewise.
57840         * lib/unictype/pr_paired_punctuation.h: Likewise.
57841         * lib/unictype/pr_paragraph_separator.h: Likewise.
57842         * lib/unictype/pr_pattern_syntax.h: Likewise.
57843         * lib/unictype/pr_pattern_white_space.h: Likewise.
57844         * lib/unictype/pr_private_use.h: Likewise.
57845         * lib/unictype/pr_quotation_mark.h: Likewise.
57846         * lib/unictype/pr_radical.h: Likewise.
57847         * lib/unictype/pr_soft_dotted.h: Likewise.
57848         * lib/unictype/pr_space.h: Likewise.
57849         * lib/unictype/pr_titlecase.h: Likewise.
57850         * lib/unictype/pr_variation_selector.h: Likewise.
57851         * lib/unictype/pr_white_space.h: Likewise.
57852         * lib/unictype/sy_c_ident.h: Likewise.
57853         * lib/unictype/sy_c_whitespace.h: Likewise.
57854         * lib/unictype/sy_java_whitespace.h: Likewise.
57855         * modules/uni*/*: Bump version number of expected libunistring version.
57856         Reported by Simon Josefsson.
57858 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57860         useless-if-before-free: fix typo in --help and make the internal,
57861         automatic version date update process work once again.
57862         --help output contained a NUL character instead of the
57863         backslash-zero that was intended.  Also, the "must lie within
57864         the first 8 lines" line is on line 9, and hence not getting
57865         automatically updated.
57866         * build-aux/useless-if-before-free: Fix the former by adding a
57867         backslash, and the latter by condensing the three lines of what-it-does
57868         to a single line, leaving one line of slack for the future.
57870 2011-01-09  Bruno Haible  <bruno@clisp.org>
57872         uniwidth/width: Fix width of U+1D173..U+1D17A.
57873         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57874         symbolic_width, output_width_property_test): New functions.
57875         (main): Invoke output_nonspacing_property, output_width_property_test.
57876         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57877         U+1D173..U+1D17A.
57878         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57879         1.
57880         * modules/uniwidth/*: Bump version number of expected libunistring
57881         version.
57882         * modules/unilbrk/*: Likewise.
57884 2011-01-08  Bruno Haible  <bruno@clisp.org>
57886         uninorm tests: Preserve copyright of Unicode data file.
57887         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57888         Mention modifications.
57890 2011-01-08  Bruno Haible  <bruno@clisp.org>
57892         gen-uni-tables: Prepare for Unicode 5.2.0.
57893         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57894         (debug_output_lbp, output_lbp): Update.
57896 2011-01-08  Bruno Haible  <bruno@clisp.org>
57898         unilbrk: Clarify gen-uni-tables.c code.
57899         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57900         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57901         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57903 2011-01-07  Bruno Haible  <bruno@clisp.org>
57905         strtod: Restore errno when successfully parsing Infinity or NaN.
57906         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57907         restore the original errno.
57909 2011-01-07  Bruno Haible  <bruno@clisp.org>
57911         remove test: Avoid failure on HP-UX 11.
57912         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57914 2011-01-07  Bruno Haible  <bruno@clisp.org>
57916         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57917         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57918         error code.
57920 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57922         ignore-value: fixup comments, and add Eric Blake
57923         as an author since he rewrote the macros.
57924         * lib/ignore-value.h (ignore_value):  State that
57925         we now support aggregates.  Also specify exactly
57926         when the GCC warn_unused_result feature was added.
57928 2011-01-06  Eric Blake  <eblake@redhat.com>
57930         ignore-value: support aggregate types
57931         * lib/ignore-value.h (ignore_value): Provide separate gcc
57932         definition.
57933         * modules/ignore-value-tests: New test module.
57934         * tests/test-ignore-value.c: New test.
57936         maint.mk: improve sc_prohibit_strcmp regex
57937         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57938         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57939         definition of STRNEQ.
57941         signal: work around Haiku issue with SIGBUS
57942         * lib/siglist.h: Add comment.
57943         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57944         strsignal's favoring of SIGSEGV.
57945         * tests/test-signal.c (main): Avoid test failure.
57946         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57947         Reported by Scott McCreary.
57949         maint.mk: add pre-release check to ensure submodule commits are public
57950         * top/maint.mk (public-submodule-commit): New rule.
57951         (submodule-checks): New variable.
57952         (alpha beta stable): Depend on the variable.
57954 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57955         and Jim Meyering  <meyering@redhat.com>
57957         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57958         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57959         (ATTRIBUTE_DEPRECATED): Define.
57960         (_ignore_case): New function.
57961         (ignore_value): New macro, to replace the old function.
57962         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57963         * modules/ignore-value (Depends-on): Add stdint.
57965 2011-01-04  Eric Blake  <eblake@redhat.com>
57967         doc: regenerate INSTALL
57968         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57969         @firstparagraphindent support, now that autoconf dropped it.
57970         (INSTALL_PRELUDE): Reinstate old macro.
57971         * doc/install.texi: Resync from autoconf.
57972         * doc/INSTALL: Reflect recent autoconf update.
57973         * doc/INSTALL.ISO: Likewise.
57974         * doc/INSTALL.UTF-8: Likewise.
57975         Reported by Karl Berry.
57977 2011-01-04  Bruce Korb  <address@hidden>
57979         git-version-gen: avoid a sub-shell
57980         * build-aux/git-version-gen: Redirect stderr in `...` via
57981         "exec 2>...", rather than via an added sub-shell.
57983 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57985         git-version-gen: use (...) rather than sh -c '...'
57986         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57987         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57989 2011-01-03  Jim Meyering  <meyering@redhat.com>
57991         git-version-gen: convert leading TABs to spaces
57992         * build-aux/git-version-gen: Expand leading TABs.
57994         git-version-gen: handle failed "git rev-list"
57995         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57996         from git and proceeding as if it had succeeded but printed no SHA1
57997         checksums, suppress the diagnostic and handle the failure.
57998         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
58000         git-version-gen: include command name in one more diagnostic
58001         * build-aux/git-version-gen: When the required .tarball-version file
58002         was missing or unreadable, you might see the diagnostic from "cat",
58003         but no trace of the name of the invoking script.  Now, you still see
58004         the diagnostic from cat, but also get one from "git-version-gen: ".
58005         Inspired by a patch from Bruce Korb.
58007         update-copyright: adjust test to match changed code
58008         * tests/test-update-copyright.sh: Change test's expected output
58009         to match new actual output.
58011 2011-01-02  Bruno Haible  <bruno@clisp.org>
58013         getlogin_r: Avoid test failure on HP-UX 11.
58014         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
58015         ERANGE when the second argument is zero.
58016         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
58017         portability problem.
58019 2011-01-02  Bruce Korb  <bkorb@gnu.org>
58021         * build-aux/update-copyright: doc Simon's changes
58023 2011-01-02  Simon Josefsson  <simon@josefsson.org>
58025         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
58026         environment variable.
58028 2011-01-02  Bruno Haible  <bruno@clisp.org>
58030         unigbrk: Avoid gcc warnings.
58031         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
58032         unused variable.
58033         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
58034         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
58035         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
58036         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
58037         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
58038         Change type of first argument to 'const char *'.
58039         (main): Remove unused variable.
58040         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
58041         type of first argument to 'const char *'.
58042         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
58043         Likewise.
58044         (main): Change type of variable 's'.
58045         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
58046         to 'int'.
58048 2011-01-02  Bruno Haible  <bruno@clisp.org>
58050         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
58051         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
58052         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
58053         bug.
58054         * lib/pwrite.c: Undo 2010-12-31 patch.
58055         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
58057 2011-01-02  Bruno Haible  <bruno@clisp.org>
58059         pread: Fix test whether it works.
58060         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
58062 2011-01-02  Bruno Haible  <bruno@clisp.org>
58064         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
58065         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
58066         ends in "6". Don't require a specific month name. Try also the locale
58067         names found on HP-UX 11 and Solaris 7.
58069 2011-01-02  Bruno Haible  <bruno@clisp.org>
58071         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
58072         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
58073         C linkage.
58074         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
58076 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58078         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
58079         for consistency, since the "cluster" term is not used elsewhere.
58080         * lib/unigbrk.in.h: Update name.
58081         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
58082         * lib/unigbrk/u16-grapheme-next.c: Update name.
58083         * lib/unigbrk/u16-grapheme-prev.c: Update name.
58084         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
58085         * lib/unigbrk/u32-grapheme-next.c: Update name.
58086         * lib/unigbrk/u32-grapheme-prev.c: Update name.
58087         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
58088         * lib/unigbrk/u8-grapheme-next.c: Update name.
58089         * lib/unigbrk/u8-grapheme-prev.c: Update name.
58090         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
58091         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
58092         Suggested by Bruno Haible.
58094 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58096         Remove module 'u8-grapheme-len' as too redundant with
58097         'u8-grapheme-next'.
58098         * modules/unigbrk/u8-grapheme-len: Delete file.
58099         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
58100         * lib/unigbrk.in.h: Remove prototype for deleted function.
58101         * lib/unigbrk/u8-grapheme-len.c: Delete file.
58102         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
58104         Remove module 'u16-grapheme-len' as too redundant with
58105         'u16-grapheme-next'.
58106         * modules/unigbrk/u16-grapheme-len: Delete file.
58107         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
58108         * lib/unigbrk.in.h: Remove prototype for deleted function.
58109         * lib/unigbrk/u16-grapheme-len.c: Delete file.
58110         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
58112         Remove module 'u32-grapheme-len' as too redundant with
58113         'u32-grapheme-next'.
58114         * modules/unigbrk/u32-grapheme-len: Delete file.
58115         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
58116         * lib/unigbrk.in.h: Remove prototype for deleted function.
58117         * lib/unigbrk/u32-grapheme-len.c: Delete file.
58118         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
58120         Suggested by Bruno Haible.
58122 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58124         * unigbrk.in.h: Fix typo: "ben" => "been".
58125         Reported by Bruno Haible.
58127 2011-01-01  Jim Meyering  <meyering@redhat.com>
58129         maint: update almost all copyright ranges to include 2011
58130         Run the new "make update-copyright" rule.
58132 2011-01-01  Jim Meyering  <meyering@redhat.com>
58134         maint: update-copyright: exempt doc/INSTALL*
58135         * Makefile (update-copyright): Also exclude doc/INSTALL*,
58136         since they are generated.  Suggested by Bruno Haible.
58138 2011-01-01  Jim Meyering  <meyering@redhat.com>
58140         maint: refine the update-copyright rule
58141         * Makefile (update-copyright): Also exclude any file that includes
58142         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
58143         code that merely generates the comment.
58145 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58147         New module 'u8-grapheme-len'.
58148         * modules/unigbrk/u8-grapheme-len: New file.
58149         * modules/unigbrk/u8-grapheme-len-tests: New file.
58150         * lib/unigbrk.in.h: Add prototype for new function.
58151         * lib/unigbrk/u8-grapheme-len.c: New file.
58152         * tests/unigbrk/test-u8-grapheme-len.c: New file.
58154         New module 'u16-grapheme-len'.
58155         * modules/unigbrk/u16-grapheme-len: New file.
58156         * modules/unigbrk/u16-grapheme-len-tests: New file.
58157         * lib/unigbrk.in.h: Add prototype for new function.
58158         * lib/unigbrk/u16-grapheme-len.c: New file.
58159         * tests/unigbrk/test-u16-grapheme-len.c: New file.
58161         New module 'u32-grapheme-len'.
58162         * modules/unigbrk/u32-grapheme-len: New file.
58163         * modules/unigbrk/u32-grapheme-len-tests: New file.
58164         * lib/unigbrk.in.h: Add prototype for new function.
58165         * lib/unigbrk/u32-grapheme-len.c: New file.
58166         * tests/unigbrk/test-u32-grapheme-len.c: New file.
58168         New module 'u8-grapheme-next'.
58169         * modules/unigbrk/u8-grapheme-next: New file.
58170         * modules/unigbrk/u8-grapheme-next-tests: New file.
58171         * lib/unigbrk.in.h: Add prototype for new function.
58172         * lib/unigbrk/u8-grapheme-next.c: New file.
58173         * tests/unigbrk/test-u8-grapheme-next.c: New file.
58175         New module 'u16-grapheme-next'.
58176         * modules/unigbrk/u16-grapheme-next: New file.
58177         * modules/unigbrk/u16-grapheme-next-tests: New file.
58178         * lib/unigbrk.in.h: Add prototype for new function.
58179         * lib/unigbrk/u16-grapheme-next.c: New file.
58180         * tests/unigbrk/test-u16-grapheme-next.c: New file.
58182         New module 'u32-grapheme-next'.
58183         * modules/unigbrk/u32-grapheme-next: New file.
58184         * modules/unigbrk/u32-grapheme-next-tests: New file.
58185         * lib/unigbrk.in.h: Add prototype for new function.
58186         * lib/unigbrk/u32-grapheme-next.c: New file.
58187         * tests/unigbrk/test-u32-grapheme-next.c: New file.
58189         New module 'u8-grapheme-prev'.
58190         * modules/unigbrk/u8-grapheme-prev: New file.
58191         * modules/unigbrk/u8-grapheme-prev-tests: New file.
58192         * lib/unigbrk.in.h: Add prototype for new function.
58193         * lib/unigbrk/u8-grapheme-prev.c: New file.
58194         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
58196         New module 'u16-grapheme-prev'.
58197         * modules/unigbrk/u16-grapheme-prev: New file.
58198         * modules/unigbrk/u16-grapheme-prev-tests: New file.
58199         * lib/unigbrk.in.h: Add prototype for new function.
58200         * lib/unigbrk/u16-grapheme-prev.c: New file.
58201         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
58203         New module 'u32-grapheme-prev'.
58204         * modules/unigbrk/u32-grapheme-prev: New file.
58205         * modules/unigbrk/u32-grapheme-prev-tests: New file.
58206         * lib/unigbrk.in.h: Add prototype for new function.
58207         * lib/unigbrk/u32-grapheme-prev.c: New file.
58208         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
58210         New module 'u8-grapheme-breaks'.
58211         * modules/unigbrk/u8-grapheme-breaks: New file.
58212         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
58213         * lib/unigbrk.in.h: Add prototype for new function.
58214         * lib/unigbrk/u8-grapheme-breaks.c: New file.
58215         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
58217         New module 'u16-grapheme-breaks'.
58218         * modules/unigbrk/u16-grapheme-breaks: New file.
58219         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
58220         * lib/unigbrk.in.h: Add prototype for new function.
58221         * lib/unigbrk/u16-grapheme-breaks.c: New file.
58222         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
58224         New module 'u32-grapheme-breaks'.
58225         * modules/unigbrk/u32-grapheme-breaks: New file.
58226         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
58227         * lib/unigbrk.in.h: Add prototype for new function.
58228         * lib/unigbrk/u32-grapheme-breaks.c: New file.
58229         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
58231         New module 'ulc-grapheme-breaks'.
58232         * modules/unigbrk/ulc-grapheme-breaks: New file.
58233         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
58234         * m4/locale-ar.m4: New file.
58235         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
58236         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
58237         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
58239 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58241         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
58242         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
58243         modified how this file was generated before I initially submitted
58244         the module, but failed to regenerate it.  This meant that several
58245         of the level2 entries were wrong.
58246         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
58247         Remove the division-by-2 that is folded into the table now that
58248         gbrkprop.h has been regenerated properly.  Now -1 entries are
58249         handled correctly.
58251         New module 'unigbrk/uc-gbrk-prop-tests'.
58252         * modules/unigbrk/uc-gbrk-prop-tests: New file.
58253         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
58254         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
58255         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
58257 2011-01-01  Bruno Haible  <bruno@clisp.org>
58259         Avoid use of hexadecimal escapes.
58260         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
58261         instead of hexadecimal escapes.
58263 2011-01-01  Jim Meyering  <meyering@redhat.com>
58265         maint: new rule to update copyright year ranges
58266         * Makefile (update-copyright): New rule.
58268         maint: indent with TABs in Makefile
58269         * Makefile: Expand leading sequences of spaces to TABs
58271         version-etc: update the copyright year it reports
58272         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
58274 2010-12-31  Bruno Haible  <bruno@clisp.org>
58276         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
58277         * lib/isfinite.c (zerof, zerod, zerol): New variables.
58278         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
58279         zero.
58281 2010-12-31  Bruno Haible  <bruno@clisp.org>
58283         pwrite: Work around HP-UX 11.11 bug.
58284         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
58285         works and set REPLACE_PWRITE if not.
58286         * lib/pwrite.c (pwrite): Add an implementation that uses the system
58287         function.
58288         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
58290 2010-12-31  Bruno Haible  <bruno@clisp.org>
58292         pread: Work around HP-UX 11 bugs.
58293         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
58294         and set REPLACE_PREAD if not.
58295         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
58297 2010-12-31  Eric Blake  <eblake@redhat.com>
58299         nl_langinfo: fix YESEXPR on Irix 6.5
58300         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
58301         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
58302         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
58303         it.
58305 2010-12-31  Bruno Haible  <bruno@clisp.org>
58307         iconv: Document HP-UX 11 bug.
58308         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
58310 2010-12-31  Bruno Haible  <bruno@clisp.org>
58312         ldexpl: Fix link error on HP-UX 11.
58313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
58314         LDEXPL_LIBM, using $ISNANL_LIBM.
58316 2010-12-31  Eric Blake  <eblake@redhat.com>
58318         ftello: avoid compilation failure with SunStudio c89
58319         * lib/ftello.c (ftello): Use lseek, not llseek.
58321         tests: avoid failing coreutils tests on cygwin
58322         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
58323         (create_exe_shims_): Return 0 when skipping.
58325 2010-12-31  Bruno Haible  <bruno@clisp.org>
58327         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
58328         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
58330 2010-12-31  Bruno Haible  <bruno@clisp.org>
58332         waitpid: Fix link error in C++ mode.
58333         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
58335 2010-12-31  Bruno Haible  <bruno@clisp.org>
58337         isnan: Use GCC built-ins when possible.
58338         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
58339         __builtin_isnan.
58340         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
58341         (isnan): Define using GCC built-ins for GCC >= 4.0.
58343 2010-12-31  Bruno Haible  <bruno@clisp.org>
58345         isnand: Fix mistake.
58346         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
58347         __builtin_isnand.
58349 2010-12-31  Bruno Haible  <bruno@clisp.org>
58351         open: Avoid C++ error on HP-UX 11.
58352         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
58354 2010-12-31  Bruno Haible  <bruno@clisp.org>
58356         time_r: Add missing declarations on HP-UX 11.
58357         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
58358         instead of HAVE_LOCALTIME_R.
58359         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
58360         HAVE_LOCALTIME_R always.
58361         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
58362         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
58363         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
58364         HAVE_LOCALTIME_R.
58365         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
58366         * doc/posix-functions/localtime_r.texi: Likewise.
58368 2010-12-29  Eric Blake  <eblake@redhat.com>
58370         mountlist: tweak previous commit
58371         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
58372         Reported by Paul Eggert.
58374         mountlist: fix local drive detection on cygwin
58375         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
58376         that works for cygwin.
58378 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58380         ftoastr, snprintf: ftoastr + snprintf module
58381         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
58382         since the snprintf module now should be good enough here.
58383         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
58384         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
58385         and gl_MODULE_INDICATOR([snprintf]), but the former enables
58386         GNULIB_SNPRINTF only for the test directory, and the latter
58387         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
58388         seems to suffice by itself.
58390 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58392         alloca: one step towards thread-safety
58393         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
58394         need for a static variable.  All callers changed.  This does not
58395         make the alloca replacement thread-safe, but it's one step.
58397         tests: minor indenting change
58398         * tests/init.sh: Sync from coreutils housekeeping patch
58399         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
58400         to keep lines within 80 columns.
58402 2010-12-28  Jim Meyering  <meyering@redhat.com>
58404         regex: don't infloop on persistent failing calloc
58405         * lib/regexec.c (build_trtable): Return failure indication upon
58406         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
58407         In glibc, this was fixed for version 2.13:
58408         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
58410 2010-12-28  Bruno Haible  <bruno@clisp.org>
58411             Paul Eggert <eggert@cs.ucla.edu>
58413         linkat: Make implementation robust against system behaviour variations.
58414         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
58415         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
58416         way, and to -2 if it needs a generic runtime test.
58417         * lib/linkat.c (solaris_optimized_link_immediate,
58418         solaris_optimized_link_follow): New functions.
58419         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
58420         (check_same_link): Use it.
58422 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
58424         New module 'unigbrk/base'.
58425         * modules/unigbrk/base: New file.
58426         * lib/unigbrk.in.h: New file.
58428         New module 'unigbrk/uc-gbrk-prop'.
58429         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
58430         * modules/unigbrk/uc-gbrk-prop: New file.
58431         * lib/unigbrk/gbrkprop.h: New file.
58432         * lib/unigbrk/uc-gbrk-prop.c: New file.
58434         New module 'unigbrk/uc-is-grapheme-break'.
58435         * modules/unigbrk/uc-is-grapheme-break: New file.
58436         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
58437         * lib/unigbrk/uc-is-grapheme-break.c: New file.
58438         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
58439         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
58440         * tests/unigbrk/GraphemeBreakTest.txt: New file.
58442         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
58444 2010-12-27  Bruno Haible  <bruno@clisp.org>
58446         linkat test: Avoid failure on Solaris 11 2010-11.
58447         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
58449 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58451         utimens: work around glibc rounding bug on more platforms
58452         * lib/utimens.c (fdutimens): Work around rounding bug even if
58453         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
58454         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
58456 2010-12-27  Bruno Haible  <bruno@clisp.org>
58458         select tests: Improve comments.
58459         * tests/test-select.c (do_select): Add comments.
58461 2010-12-27  Bruno Haible  <bruno@clisp.org>
58463         select tests: Safer way of handling timeout.
58464         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
58465         at every invocation.
58467 2010-12-27  Bruno Haible  <bruno@clisp.org>
58469         select tests: Use 'bool' where appropriate.
58470         * tests/test-select.c (connect_to_socket): Change argument type to
58471         'bool'.
58473 2010-12-27  Bruno Haible  <bruno@clisp.org>
58475         select tests: Use existing modules.
58476         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
58477         (configure.ac): Don't test for unistd.h.
58478         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
58479         declared in <unistd.h>.
58481 2010-12-27  Bruno Haible  <bruno@clisp.org>
58483         mbrtowc: Work around a Solaris 7 bug.
58484         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
58485         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
58486         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
58487         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
58488         MBRTOWC_NULL_ARG1_BUG.
58489         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
58490         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
58491         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
58492         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
58494 2010-12-27  Jim Meyering  <meyering@redhat.com>
58496         read-file.c: tweak syntax
58497         * lib/read-file.c (fread_file): Remove space after "*" in function
58498         definitions.
58500 2010-12-27  Bruno Haible  <bruno@clisp.org>
58502         times test: Avoid gcc warnings on OSF/1.
58503         * tests/test-times.c (main): Cast printf arguments from clock_t to
58504         'long int'.
58506 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58508         utimens: work around glibc rounding bug on older Linux kernels
58509         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
58510         on Linux with a glibc whose utimes might not work, then work
58511         around a longstanding glibc bug involving rounding rather than
58512         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
58513         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58515 2010-12-26  Bruno Haible  <bruno@clisp.org>
58517         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
58518         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
58519         _GL_CXXALIAS_SYS.
58520         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58522 2010-12-26  Bruno Haible  <bruno@clisp.org>
58524         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
58525         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
58526         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58527         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
58528         looking for the declaration.
58529         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58530         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
58531         problem.
58532         * doc/posix-functions/inet_pton.texi: Likewise.
58534 2010-12-26  Bruno Haible  <bruno@clisp.org>
58536         arpa_inet: Use the common idioms with C++ support.
58537         * lib/arpa_inet.in.h: Include c++defs.h.
58538         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
58539         support.
58540         * modules/arpa_inet (Depends-on): Add c++defs.
58541         (Makefile.am): Substitute the contents of c++defs.h.
58542         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
58543         * modules/arpa_inet-c++-tests: New file.
58544         * tests/test-arpa_inet-c++.cc: New file.
58546 2010-12-25  Bruno Haible  <bruno@clisp.org>
58548         Fix more C++ link errors on Solaris 8.
58549         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
58550         $(LIB_EACCESS).
58551         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
58552         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
58553         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
58554         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
58555         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
58557 2010-12-25  Bruno Haible  <bruno@clisp.org>
58559         printf-posix: Fix link error when a non-GCC compiler is used.
58560         * lib/stdio.in.h (printf): When not using GCC, override printf
58561         correctly.
58562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58564 2010-12-25  Bruno Haible  <bruno@clisp.org>
58566         strerror_r-posix: Update doc.
58567         * doc/posix-functions/strerror_r.texi: Update doc about the return
58568         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
58570 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58572         utimens: simplify the logic of the previous change
58573         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
58574         This should not affect whether the test succeeds or fails.
58576         utimens: configure better on hosts with NFS clock skew
58577         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
58578         uses the clock of the local host.  It might use the clock of the
58579         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
58580         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58582 2010-12-25  Bruno Haible  <bruno@clisp.org>
58584         ptsname test: Avoid failure on Solaris.
58585         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
58586         open a pseudo-terminal; don't use BSD-style ptys.
58587         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
58589 2010-12-25  Bruno Haible  <bruno@clisp.org>
58591         ptsname: Avoid ERANGE failure on some systems.
58592         * lib/ptsname.c (buffer): Increase size.
58594 2010-12-25  Bruno Haible  <bruno@clisp.org>
58596         rename, renameat: Avoid test failures at NFS mounted locations.
58597         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
58598         so that subsequent mkdir calls succeed.
58600 2010-12-25  Bruno Haible  <bruno@clisp.org>
58602         iswblank: Fix C++ link error on Solaris 8.
58603         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
58604         _GL_FUNCDECL_SYS.
58606 2010-12-25  Bruno Haible  <bruno@clisp.org>
58608         unistd: Fix C++ link error on Solaris 8.
58609         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
58611 2010-12-25  Bruno Haible  <bruno@clisp.org>
58613         readlink doc: Mention an old glibc bug.
58614         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
58616 2010-12-25  Bruno Haible  <bruno@clisp.org>
58618         fcntl-h: Fix for use of C++ on glibc systems.
58619         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
58620         also on glibc systems in C++ mode.
58621         Reported by Gary V. Vaughan <gary@gnu.org>.
58623 2010-12-25  Bruno Haible  <bruno@clisp.org>
58625         roundl-ieee: Make it work on OSF/1 5.1 with cc.
58626         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
58628 2010-12-25  Bruno Haible  <bruno@clisp.org>
58630         truncl-ieee: Make it work on OSF/1 5.1 with cc.
58631         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
58632         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
58633         test whether truncl works according to ISO C 99 with IEC 60559.
58634         * m4/truncl-ieee.m4: New file.
58635         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
58636         m4/signbit.m4.
58637         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
58639 2010-12-25  Bruno Haible  <bruno@clisp.org>
58641         ceill-ieee: Make it work on OSF/1 5.1 with cc.
58642         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
58643         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
58644         test whether ceill works according to ISO C 99 with IEC 60559.
58645         * m4/ceill-ieee.m4: New file.
58646         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
58647         m4/signbit.m4.
58648         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
58650 2010-12-25  Bruno Haible  <bruno@clisp.org>
58652         Ensure all prerequisites of <wchar.h> are included.
58653         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
58654         before <wchar.h>.
58655         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
58656         gl_MBRLEN_NUL_RETVAL): Likewise.
58657         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58658         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
58659         AC_FUNC_MBRTOWC): Likewise.
58660         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58661         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58663         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58664         Likewise.
58665         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58666         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58667         (gl_WCHAR_H): Improve comments.
58668         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58670 2010-12-25  Bruno Haible  <bruno@clisp.org>
58672         strtok_r: Fix C syntax error in autoconf macro.
58673         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58674         characters in test program.
58676 2010-12-24  Bruno Haible  <bruno@clisp.org>
58678         ceil, trunc, round: Fix gcc warnings.
58679         * lib/ceil.c (MIN): Undefine before redefining.
58680         * lib/trunc.c (MIN): Likewise.
58681         * lib/round.c (MIN): Likewise.
58682         Include <math.h> first.
58684 2010-12-24  Bruno Haible  <bruno@clisp.org>
58686         select tests: Avoid failures on OSF/1 5.1.
58687         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58688         failure of closing the last socket; it may fail with ECONNRESET.
58690 2010-12-24  Eric Blake  <eblake@redhat.com>
58692         stdint: avoid HP-UX 10.20 preprocessor bug
58693         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58694         than #if.
58695         * tests/test-floor2.c (main): Likewise.
58696         Reported by Peter O'Gorman.
58698         pipe: make obsoletion transition easier
58699         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58700         * modules/pipe (Files): Include revived file.
58701         (Include): Drop reference, to mirror getdate's behavior.
58703 2010-12-24  Bruno Haible  <bruno@clisp.org>
58705         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58706         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58707         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
58708         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58710 2010-12-24  Bruno Haible  <bruno@clisp.org>
58712         gethostname: Ensure declaration on NonStop Kernel.
58713         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
58714         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58716 2010-12-24  Bruno Haible  <bruno@clisp.org>
58718         sys_select: Ensure all necessary types on NonStop Kernel.
58719         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
58720         include <sys/time.h>.
58721         * doc/posix-headers/sys_select.texi: Mention that it's missing on
58722         NonStop Kernel.
58723         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58725 2010-12-24  Bruno Haible  <bruno@clisp.org>
58727         sys_select: Remove unneeded include.
58728         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
58729         have <sys/select.h>.
58731 2010-12-24  Bruno Haible  <bruno@clisp.org>
58733         gethostname: Provide a fallback for HOST_NAME_MAX.
58734         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
58735         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
58736         instead.
58737         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58739 2010-12-24  Bruno Haible  <bruno@clisp.org>
58741         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
58742         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
58743         (SA_RESTART): Likewise.
58744         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58746 2010-12-24  Bruno Haible  <bruno@clisp.org>
58748         signal: Define NSIG.
58749         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
58750         * tests/test-signal.c (nsig): New variable.
58751         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58753 2010-12-24  Bruno Haible  <bruno@clisp.org>
58755         rename, renameat: Avoid test failures on OSF/1 5.1.
58756         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
58757         alternative error codes.
58758         * tests/test-renameat.c (main): Likewise.
58760 2010-12-24  Bruno Haible  <bruno@clisp.org>
58762         *printf: Detect large precisions bug on Solaris 10/SPARC.
58763         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
58764         by Paul Eggert.
58765         * tests/test-snprintf-posix.h (test_function): Add this test code here
58766         too.
58767         * tests/test-sprintf-posix.h (test_function): Likewise.
58768         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58769         * tests/test-vasprintf-posix.c (test_function): Likewise.
58770         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
58771         around by gnulib.
58772         * doc/posix-functions/printf.texi: Likewise.
58773         * doc/posix-functions/snprintf.texi: Likewise.
58774         * doc/posix-functions/sprintf.texi: Likewise.
58775         * doc/posix-functions/vfprintf.texi: Likewise.
58776         * doc/posix-functions/vprintf.texi: Likewise.
58777         * doc/posix-functions/vsnprintf.texi: Likewise.
58778         * doc/posix-functions/vsprintf.texi: Likewise.
58779         * doc/posix-functions/dprintf.texi: Undo last commit.
58780         * doc/posix-functions/vdprintf.texi: Likewise.
58782 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58784         tests: port test-fdutimensat.c to Solaris 8
58785         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
58786         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
58787         On Solaris 8, it fails with errno == ENOSYS, because there is no
58788         futimens (so it can't use the fd), and there is no lutimens (so it
58789         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
58791         vsnprintf: make more consistent with snprintf; doc fixes
58793         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
58794         the byte count return problem was promoted from the snprintf-posix
58795         to the snprintf module.
58796         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
58797         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
58798         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
58799         * tests/test-snprintf.c (main): Check the byte count returned.
58800         * tests/test-vsnprintf.c (main): Likewise.
58802 2010-12-23  Eric Blake  <eblake@redhat.com>
58804         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
58805         * modules/sigpipe (License): Relax license.
58807 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58809         doc: document Solaris printf bug with large float precisions
58810         * doc/posix-functions/dprintf.texi (dprintf):
58811         * doc/posix-functions/fprintf.texi (fprintf):
58812         * doc/posix-functions/printf.texi (printf):
58813         * doc/posix-functions/snprintf.texi (snprintf):
58814         * doc/posix-functions/sprintf.texi (sprintf):
58815         * doc/posix-functions/vdprintf.texi (vdprintf):
58816         * doc/posix-functions/vfprintf.texi (vfprintf):
58817         * doc/posix-functions/vprintf.texi (vprintf):
58818         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58819         * doc/posix-functions/vsprintf.texi (vsprintf):
58820         Mention that these functions mishandle large floating point
58821         precisions on Solaris 10.  The same bug is also present in Solaris
58822         8, and I assume earlier.  This causes "cd gnulib-tests; make
58823         check" to fail on Solaris 8 (and I assume, later) when building
58824         the latest coreutils, in test-vasprintf-posix's call to
58825         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58826         the wide flavors (e.g., wprintf) so this patch just updates the
58827         documentation for the narrow ones.
58829         test-posixtm.c: add two tests
58830         * tests/test-posixtm.c: Add two tests, to highlight the
58831         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58832         around this bug; this is merely to document it.
58834 2010-12-22  Bruno Haible  <bruno@clisp.org>
58836         getlogin_r: Work around portability problem on OSF/1.
58837         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58838         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58839         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58840         test for a truncated result.
58841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58842         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58843         * modules/getlogin_r (Depends-on): Add memchr.
58844         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58846 2010-12-22  Bruno Haible  <bruno@clisp.org>
58848         ptsname: Avoid test failure on OSF/1 5.1.
58849         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58850         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58851         (same_slave): New function.
58852         (main): Use it to compare ptsname's result with the expected file name.
58854 2010-12-22  Bruno Haible  <bruno@clisp.org>
58856         Port extended stdio modules to HP NonStop Kernel.
58857         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58858         macros.
58859         * lib/fbufmode.c: Update comments.
58860         * lib/fflush.c: Likewise.
58861         * lib/fpurge.c: Likewise.
58862         * lib/freadable.c: Likewise.
58863         * lib/freadahead.c: Likewise.
58864         * lib/freading.c: Likewise.
58865         * lib/freadptr.c: Likewise.
58866         * lib/freadseek.c: Likewise.
58867         * lib/fseeko.c: Likewise.
58868         * lib/fseterr.c: Likewise.
58869         * lib/fwritable.c: Likewise.
58870         * lib/fwriting.c: Likewise.
58871         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58873 2010-12-22  Bruno Haible  <bruno@clisp.org>
58875         ttyname_r: Work around bug on OSF/1 5.1.
58876         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58877         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58878         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58879         present.
58880         * lib/ttyname_r.c (ttyname_r): Update comments.
58882 2010-12-22  Bruno Haible  <bruno@clisp.org>
58884         round: Implement result sign according to IEEE 754.
58885         * lib/round.c (MIN, MINUS_ZERO): New macros.
58886         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58887         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58888         * tests/test-round-ieee.c (main): Likewise.
58889         * tests/test-roundl-ieee.c (main): Likewise.
58891         trunc: Implement result sign according to IEEE 754.
58892         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58893         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58894         * tests/test-trunc2.c: Include minus-zero.h.
58895         (MINUS_ZERO): New macro.
58896         (trunc_reference): Keep in sync with lib/trunc.c.
58897         * tests/test-truncf2.c: Include minus-zero.h.
58898         (MINUS_ZERO): New macro.
58899         (truncf_reference): Keep in sync with lib/trunc.c.
58900         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58901         * tests/test-trunc-ieee.c (main): Likewise.
58902         * tests/test-truncl-ieee.c (main): Likewise.
58904         ceil: Implement result sign according to IEEE 754.
58905         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58906         (FUNC): Return -0.0 for -1 < x < 0.
58907         * tests/test-ceil2.c: Include minus-zero.h.
58908         (MINUS_ZERO): New macro.
58909         (ceil_reference): Keep in sync with lib/ceil.c.
58910         * tests/test-ceilf2.c: Include minus-zero.h.
58911         (MINUS_ZERO): New macro.
58912         (ceilf_reference): Keep in sync with lib/ceil.c.
58913         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58914         * tests/test-ceil-ieee.c (main): Likewise.
58915         * tests/test-ceill-ieee.c (main): Likewise.
58917         floor: Implement result sign according to IEEE 754.
58918         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58919         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58920         * tests/test-floorf2.c (floorf_reference): Likewise.
58921         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58922         * tests/test-floor-ieee.c (main): Likewise.
58923         * tests/test-floorl-ieee.c (main): Likewise.
58925 2010-12-22  Bruno Haible  <bruno@clisp.org>
58927         getaddrinfo: Update doc.
58928         * doc/posix-functions/gai_strerror.texi: Return type is also different
58929         on AIX and HP-UX.
58931 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58933         getaddrinfo, inet_ntop: Update doc for Solaris.
58934         * doc/posix-functions/gai_strerror.texi: Return type is also an
58935         issue on Solaris 9 and earlier.
58936         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58937         on Solaris 10 and earlier.
58939 2010-12-21  Bruno Haible  <bruno@clisp.org>
58941         New module 'roundl-ieee'.
58942         * modules/roundl-ieee: New file.
58943         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58944         test whether roundl works according to ISO C 99 with IEC 60559.
58945         * m4/roundl-ieee.m4: New file.
58946         * modules/roundl-ieee-tests: New file.
58947         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58948         * tests/test-roundl.c (main): Remove signbit tests.
58949         * modules/roundl-tests (Depends-on): Remove signbit.
58950         * doc/posix-functions/roundl.texi: Mention the new module.
58952 2010-12-21  Bruno Haible  <bruno@clisp.org>
58954         New module 'truncl-ieee'.
58955         * modules/truncl-ieee: New file.
58956         * modules/truncl-ieee-tests: New file.
58957         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58958         * tests/test-truncl.c (main): Remove signbit tests.
58959         * modules/truncl-tests (Depends-on): Remove signbit.
58960         * doc/posix-functions/truncl.texi: Mention the new module.
58962 2010-12-21  Bruno Haible  <bruno@clisp.org>
58964         New module 'ceill-ieee'.
58965         * modules/ceill-ieee: New file.
58966         * modules/ceill-ieee-tests: New file.
58967         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58968         * tests/test-ceill.c (main): Remove signbit tests.
58969         * modules/ceill-tests (Depends-on): Remove signbit.
58970         * doc/posix-functions/ceill.texi: Mention the new module.
58972 2010-12-21  Bruno Haible  <bruno@clisp.org>
58974         New module 'floorl-ieee'.
58975         * modules/floorl-ieee: New file.
58976         * modules/floorl-ieee-tests: New file.
58977         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58978         * tests/test-floorl.c (main): Remove signbit tests.
58979         * modules/floorl-tests (Depends-on): Remove signbit.
58980         * doc/posix-functions/floorl.texi: Mention the new module.
58982 2010-12-21  Bruno Haible  <bruno@clisp.org>
58984         New module 'round-ieee'.
58985         * modules/round-ieee: New file.
58986         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58987         whether round works according to ISO C 99 with IEC 60559.
58988         * m4/round-ieee.m4: New file.
58989         * modules/round-ieee-tests: New file.
58990         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58991         * tests/test-round1.c (main): Remove signbit tests.
58992         * modules/round-tests (Depends-on): Remove 'signbit'.
58993         * doc/posix-functions/round.texi: Mention the new module.
58995 2010-12-21  Bruno Haible  <bruno@clisp.org>
58997         New module 'trunc-ieee'.
58998         * modules/trunc-ieee: New file.
58999         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
59000         whether trunc works according to ISO C 99 with IEC 60559.
59001         * m4/trunc-ieee.m4: New file.
59002         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
59003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
59004         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
59005         * modules/trunc-ieee-tests: New file.
59006         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
59007         * tests/test-trunc1.c (main): Remove signbit tests.
59008         * modules/trunc-tests (Depends-on): Remove 'signbit'.
59009         * doc/posix-functions/trunc.texi: Mention the new module.
59011 2010-12-21  Bruno Haible  <bruno@clisp.org>
59013         New module 'ceil-ieee'.
59014         * modules/ceil-ieee: New file.
59015         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
59016         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
59017         ISO C 99 with IEC 60559.
59018         * m4/ceil-ieee.m4: New file.
59019         * modules/ceil (Files): Add lib/ceil.c.
59020         (Depends-on): Add 'float'.
59021         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59022         * lib/math.in.h (ceil): New declaration.
59023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
59024         REPLACE_CEIL.
59025         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
59026         * modules/ceil-ieee-tests: New file.
59027         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
59028         * tests/test-math-c++.cc: Check the signature of 'ceil'.
59029         * doc/posix-functions/ceil.texi: Mention the new module.
59031 2010-12-21  Bruno Haible  <bruno@clisp.org>
59033         New module 'floor-ieee'.
59034         * modules/floor-ieee: New file.
59035         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
59036         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
59037         ISO C 99 with IEC 60559.
59038         * m4/floor-ieee.m4: New file.
59039         * modules/floor (Files): Add lib/floor.c.
59040         (Depends-on): Add 'float'.
59041         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59042         * lib/math.in.h (floor): New declaration.
59043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
59044         REPLACE_FLOOR.
59045         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
59046         * modules/floor-ieee-tests: New file.
59047         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
59048         * tests/test-math-c++.cc: Check the signature of 'floor'.
59049         * doc/posix-functions/floor.texi: Mention the new module.
59051 2010-12-21  Bruno Haible  <bruno@clisp.org>
59053         New module 'roundf-ieee'.
59054         * modules/roundf-ieee: New file.
59055         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
59056         test whether roundf works according to ISO C 99 with IEC 60559.
59057         * m4/roundf-ieee.m4: New file.
59058         * modules/roundf-ieee-tests: New file.
59059         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
59060         * tests/test-roundf1.c (main): Remove signbit tests.
59061         * modules/roundf-tests (Depends-on): Remove 'signbit'.
59062         * doc/posix-functions/roundf.texi: Mention the new module.
59064 2010-12-21  Bruno Haible  <bruno@clisp.org>
59066         New module 'truncf-ieee'.
59067         * modules/truncf-ieee: New file.
59068         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
59069         test whether truncf works according to ISO C 99 with IEC 60559.
59070         * m4/truncf-ieee.m4: New file.
59071         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
59072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
59073         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
59074         * modules/truncf-ieee-tests: New file.
59075         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
59076         * tests/test-truncf1.c (main): Remove signbit tests.
59077         * modules/truncf-tests (Depends-on): Remove 'signbit'.
59078         * doc/posix-functions/truncf.texi: Mention the new module.
59080 2010-12-21  Bruno Haible  <bruno@clisp.org>
59082         New module 'ceilf-ieee'.
59083         * modules/ceilf-ieee: New file.
59084         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
59085         test whether ceilf works according to ISO C 99 with IEC 60559.
59086         * m4/ceilf-ieee.m4: New file.
59087         * modules/ceilf-ieee-tests: New file.
59088         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
59089         * tests/test-ceilf1.c (main): Remove signbit tests.
59090         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
59091         * doc/posix-functions/ceilf.texi: Mention the new module.
59093 2010-12-21  Bruno Haible  <bruno@clisp.org>
59095         New module 'floorf-ieee'.
59096         * modules/floorf-ieee: New file.
59097         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
59098         test whether floorf works according to ISO C 99 with IEC 60559.
59099         * m4/floorf-ieee.m4: New file.
59100         * modules/floorf-ieee-tests: New file.
59101         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
59102         * tests/test-floorf1.c (main): Remove signbit tests.
59103         * modules/floorf-tests (Depends-on): Remove 'signbit'.
59104         * doc/posix-functions/floorf.texi: Mention the new module.
59106 2010-12-21  Bruno Haible  <bruno@clisp.org>
59108         Support for minus zero in autoconf macros.
59109         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
59110         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
59111         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
59112         * tests/minus-zero.h: Update comments.
59114 2010-12-21  Bruno Haible  <bruno@clisp.org>
59116         Tests for module 'ceil'.
59117         * modules/ceil-tests: New file.
59118         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
59119         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
59121 2010-12-21  Bruno Haible  <bruno@clisp.org>
59123         Tests for module 'floor'.
59124         * modules/floor-tests: New file.
59125         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
59126         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
59128 2010-12-21  Bruno Haible  <bruno@clisp.org>
59130         math: Fix indentation.
59131         * lib/math.in.h (floorf): Fix indentation.
59133 2010-12-21  Bruno Haible  <bruno@clisp.org>
59135         Fix cross-compilation guesses on Solaris.
59136         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
59137         not match "solaris2.10".
59138         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59139         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
59140         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
59142 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59144         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
59145         This fixes a problem observed with the latest coreutils snapshot
59146         that caused a test to fail on Solaris 8.  src/csplit.c's call
59147         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
59148         earlier, instead of returning the number of bytes that would have
59149         been generated; this causes csplit to incorrectly report memory
59150         exhaustion.
59151         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
59152         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
59153         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
59154         comments to match.
59155         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
59156         Fix typo in matching older versions of Solaris: "solaris2.10"
59157         is matched by the shell pattern "solaris2.[0-9]*".  This matters
59158         only for guessing while cross-compiling.
59159         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
59161 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
59163         ftoastr: fix comment again
59164         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59165         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
59166         Also, simplify example a bit by using flags = 0.
59168 2010-12-20  Bruno Haible  <bruno@clisp.org>
59170         round*, trunc*: Update documentation regarding glibc.
59171         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
59172         * doc/posix-functions/round.texi: Likewise.
59173         * doc/posix-functions/roundl.texi: Likewise.
59174         * doc/posix-functions/truncf.texi: Likewise.
59175         * doc/posix-functions/trunc.texi: Likewise.
59176         * doc/posix-functions/truncl.texi: Likewise.
59178 2010-12-20  Bruno Haible  <bruno@clisp.org>
59180         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
59181         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
59182         * doc/posix-functions/round.texi: Likewise.
59183         * doc/posix-functions/roundl.texi: Likewise.
59185 2010-12-20  Bruno Haible  <bruno@clisp.org>
59187         ttyname_r: Add missing declaration on HP-UX 11.
59188         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
59189         HAVE_TTYNAME_R.
59190         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
59191         declared. Set HAVE_TTYNAME_R always.
59192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59193         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
59194         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
59195         HAVE_TTYNAME_R.
59196         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
59198 2010-12-20  Bruno Haible  <bruno@clisp.org>
59200         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
59201         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
59202         * doc/posix-functions/getlogin_r.texi: Likewise.
59203         * tests/test-getlogin.c: Include <errno.h>.
59204         (main): Avoid test failure on HP-UX 11.11.
59205         * tests/test-getlogin_r.c (main): Likewise.
59207 2010-12-20  Bruno Haible  <bruno@clisp.org>
59209         getlogin_r: Add missing declaration on HP-UX 11.
59210         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
59211         declared also when it exists as a function.
59212         * doc/posix-functions/getlogin_r.texi: Document this workaround.
59214 2010-12-20  Bruno Haible  <bruno@clisp.org>
59216         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
59217         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
59218         through wcrtomb.
59220 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59222         ftoastr: fix comment
59223         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59224         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
59226 2010-12-19  Bruno Haible  <bruno@clisp.org>
59228         isnan: Ensure it is a macro.
59229         * lib/math.in.h (isnan): Define as a macro if not already a macro.
59230         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
59231         Solaris.
59233 2010-12-19  Bruno Haible  <bruno@clisp.org>
59235         ldexpl test: Fix link error on OSF/1 5.1.
59236         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
59238 2010-12-19  Bruno Haible  <bruno@clisp.org>
59240         wctype: Make it work in C++ mode on OSF/1 5.1.
59241         * lib/wctype.in.h (iswblank): Declare but not define here.
59242         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
59243         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
59244         * modules/wctype (Files): Add lib/iswblank.c.
59246 2010-12-19  Bruno Haible  <bruno@clisp.org>
59248         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
59249         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
59250         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
59252 2010-12-19  Bruno Haible  <bruno@clisp.org>
59254         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
59255         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
59256         _POSIX_PII_SOCKET.
59257         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
59258         * doc/posix-functions/recvfrom.texi: Likewise.
59259         * doc/posix-functions/send.texi: Likewise.
59260         * doc/posix-functions/sendto.texi: Likewise.
59262 2010-12-19  Bruno Haible  <bruno@clisp.org>
59264         tcgetsid: Add missing declaration on OSF/1 5.1.
59265         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
59266         HAVE_TCGETSID.
59267         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
59268         Don't set HAVE_TCGETSID.
59269         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
59270         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
59271         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
59272         HAVE_TCGETSID.
59273         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
59275 2010-12-19  Bruno Haible  <bruno@clisp.org>
59277         stdio: Fix problem with popen() declaration on OSF/1 5.1.
59278         * lib/stdio.in.h: During the include_next statement, let recursive
59279         includes of this file include only the system header file.
59281 2010-12-19  Bruno Haible  <bruno@clisp.org>
59283         iconv_open: Fix regression from 2010-12-04.
59284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
59285         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
59287 2010-12-19  Bruno Haible  <bruno@clisp.org>
59289         stdbool test: Avoid a gcc warning.
59290         * tests/test-stdbool.c (main): Fail if e1 is false.
59291         Reported by Jim Meyering.
59293 2010-12-19  Jim Meyering  <meyering@redhat.com>
59295         setenv: restore to working order
59296         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
59297         mistakenly removed.
59298         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
59299         HAVE_SETENV.
59300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
59301         HAVE_SETENV.
59303 2010-12-19  Bruno Haible  <bruno@clisp.org>
59305         Document some different function declarations on OSF/1 5.1.
59306         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
59307         * doc/posix-functions/inet_ntop.texi: Likewise.
59308         * doc/posix-functions/gethostname.texi: Likewise.
59309         * lib/unistd.in.h (gethostname): Update comment.
59311 2010-12-19  Bruno Haible  <bruno@clisp.org>
59313         doc: Mention vasprintf-posix module.
59314         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
59315         the 'vasprintf-posix' module.
59316         * doc/glibc-functions/vasprintf.texi: Likewise.
59318 2010-12-19  Bruno Haible  <bruno@clisp.org>
59320         unsetenv: Add missing declaration on OSF/1 5.1.
59321         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
59322         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
59323         Don't set HAVE_UNSETENV. In the test program, set _BSD.
59324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
59325         not HAVE_UNSETENV.
59326         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
59327         HAVE_UNSETENV.
59328         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
59330 2010-12-19  Bruno Haible  <bruno@clisp.org>
59332         setenv: Add missing declaration on OSF/1 5.1.
59333         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
59334         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
59335         declared. Don't set HAVE_SETENV.
59336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
59337         not HAVE_SETENV.
59338         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
59339         HAVE_SETENV.
59340         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
59342 2010-12-19  Bruno Haible  <bruno@clisp.org>
59344         nl_langinfo tests: Avoid gcc warning.
59345         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
59347 2010-12-19  Bruno Haible  <bruno@clisp.org>
59349         mknod: Avoid error in C++ mode on OSF/1 with GCC.
59350         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
59351         _GL_CXXALIAS_SYS.
59353 2010-12-19  Bruno Haible  <bruno@clisp.org>
59355         stdbool: Relax test.
59356         * tests/test-stdbool.c (e): Don't require that casts from a variable's
59357         address to 'bool' work in static initializer, for compilers other than
59358         GCC.
59360 2010-12-19  Bruno Haible  <bruno@clisp.org>
59362         ftello: Add missing declaration on OSF/1 5.1.
59363         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
59364         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
59365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
59366         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
59367         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
59369 2010-12-19  Bruno Haible  <bruno@clisp.org>
59371         fseeko: Add missing declaration on OSF/1 5.1.
59372         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
59373         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
59374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
59375         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
59376         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
59378 2010-12-19  Bruno Haible  <bruno@clisp.org>
59380         fchdir: Add missing declaration on OSF/1 5.1.
59381         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
59382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
59383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
59384         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
59385         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
59387 2010-12-19  Bruno Haible  <bruno@clisp.org>
59389         relocatable-prog-wrapper: Separate from relocatable-prog.
59390         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
59391         uninstall-relocwrapper rule here.
59392         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
59393         Reported by Ian Beckwith <ianb@erislabs.net>.
59395 2010-12-19  Bruno Haible  <bruno@clisp.org>
59397         unistr/u8-mbsnlen: Add missing dependency.
59398         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
59399         Reported by Ian Beckwith <ianb@erislabs.net>.
59401 2010-12-19  Bruno Haible  <bruno@clisp.org>
59403         iconv: Make it possible again to use this module without 'iconv-h'.
59404         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
59405         if it is not defined.
59406         Reported by Ian Beckwith <ianb@erislabs.net>.
59408 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59410         acl: port to Solaris 8 when copying from tmpfs to ufs
59411         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
59412         error number.  Problem observed on Solaris 8 with latest
59413         coreutils, with "mv A B", where A is on a tmpfs file system and B
59414         is on a ufs file system.  This caused coreutils' mv/part-symlink
59415         test to fail.
59417         tests: set fail=0 at start
59418         * tests/init.sh (setup_): Move fail=0 initialization here ...
59419         (mktempd_): ... from here, so that tests can rely on fail being
59420         set to 0 initially.  This fixes a problem in coreutils; see:
59421         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
59423 2010-12-18  Bruno Haible  <bruno@clisp.org>
59425         memmem-simple: Stylistic changes.
59426         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
59427         Fix preprocessor directive indentation.
59429 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59431         memmem, memmem-simple: reorganize and expand empty needle check
59432         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
59433         functional checks to memmem-simple so that one has a fully functional
59434         memmem by using just this module.
59435         Restrict the performance only check to the memmem module.
59436         Also expand the empty needle check to ensure the correct
59437         pointer is returned, not just a non NULL pointer.
59438         * doc/glibc-functions/memmem.texi: Rearrange the portability
59439         documentation to correlate with the rearranged checks.
59440         Clarify exactly how the memmem and memmem-simple modules
59441         relate to each other.
59443 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59444             Bruno Haible  <bruno@clisp.org>
59446         Improve cross-compilation guesses for uClibc.
59447         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
59448         that uClibc does not have the glibc bug.
59449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
59450         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
59452 2010-12-14  Eric Blake  <eblake@redhat.com>
59454         configmake: provide fallbacks for oldest supported autotools
59455         * m4/configmake.m4: New file.
59456         * modules/configmake (Files): Ship it.
59457         (configure.ac): Use it to guarantee fallbacks.
59459 2010-12-13  Pádraig Brady  <P@draigBrady.com>
59461         read-file: Improve handling of large files
59462         * lib/read-file.c (fread_file): Minimize realloc()s
59463         for regular files, and better manage sizes around SIZE_MAX.
59465 2010-12-13  Eric Blake  <eblake@redhat.com>
59467         cloexec, fcntl: relax license
59468         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
59469         consent from all contributors.
59470         * modules/fcntl (License): Likewise.
59472 2010-12-10  Bruno Haible  <bruno@clisp.org>
59474         Tests for module 'pipe-posix'.
59475         * modules/pipe-posix-tests: New file.
59476         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
59478 2010-12-10  Bruno Haible  <bruno@clisp.org>
59480         pipe-posix: Make it work in C++ mode.
59481         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
59482         (pipe): Use common idiom, not a macro definition.
59483         * lib/pipe.c: New file.
59484         * m4/pipe.m4: New file.
59485         * modules/pipe-posix (Description): Enhance.
59486         (Files): Add lib/pipe.c, m4/pipe.m4.
59487         (configure.ac): Invoke gl_FUNC_PIPE.
59488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
59489         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
59490         * tests/test-unistd-c++.cc: Check the signature of pipe.
59492 2010-12-10  Bruno Haible  <bruno@clisp.org>
59494         Rename module 'pipe' to 'spawn-pipe'.
59495         * modules/spawn-pipe: New file, renamed from modules/pipe.
59496         (Files, configure.ac, Makefile.am): Update.
59497         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
59498         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
59499         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
59500         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
59501         "spawn-pipe.h" instead of "pipe.h".
59502         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
59503         to gl_SPAWN_PIPE.
59504         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
59505         (Files, Makefile.am): Update.
59506         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
59507         Update.
59508         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
59509         Include "spawn-pipe.h" instead of "pipe.h".
59510         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
59511         * lib/javacomp.c: Likewise.
59512         * lib/javaversion.c: Likewise.
59513         * lib/pipe-filter-gi.c: Likewise.
59514         * lib/pipe-filter-ii.c: Likewise.
59515         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
59516         * modules/javacomp (Depends-on): Likewise.
59517         * modules/javaversion (Depends-on): Likewise.
59518         * modules/pipe-filter-gi (Depends-on): Likewise.
59519         * modules/pipe-filter-ii (Depends-on): Likewise.
59520         * MODULES.html.sh (Executing programs): Update.
59521         * NEWS: Mention the change.
59523 2010-12-10  Eric Blake  <eblake@redhat.com>
59525         pipe-posix: new module
59526         * modules/pipe-posix: New file.
59527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
59528         (gl_UNISTD_H): Check for declaration.
59529         * modules/unistd (Makefile.am): Substitute it.
59530         * lib/unistd.in.h (pipe): Provide it for mingw.
59531         * doc/posix-functions/pipe.texi (pipe): Update documentation.
59532         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
59534 2010-12-07  Bruno Haible  <bruno@clisp.org>
59536         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
59537         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
59538         u8_strcmp_gnu.
59539         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
59541 2010-12-06  Bruno Haible  <bruno@clisp.org>
59543         Update internal documentation.
59544         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
59546 2010-12-04  Bruno Haible  <bruno@clisp.org>
59548         Put more information about failed tests into the test return codes.
59549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
59550         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
59551         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59552         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59553         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
59554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59555         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59556         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
59557         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
59558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
59560         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59561         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
59562         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59563         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
59564         returns a bit mask.
59565         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
59566         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
59567         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
59568         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
59569         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59570         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59573         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59574         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59575         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59576         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59577         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59578         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59579         * m4/link.m4 (gl_FUNC_LINK): Likewise.
59580         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59581         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
59582         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
59583         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59584         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
59585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59586         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59587         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
59588         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59589         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59590         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59591         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
59592         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59593         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59594         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
59595         gl_PRINTF_PRECISION): Likewise.
59596         * m4/regex.m4 (gl_REGEX): Likewise.
59597         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59598         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59599         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
59600         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59602         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59603         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
59604         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
59605         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59606         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59607         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59608         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59609         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59610         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59611         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59613         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
59614         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59616         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
59617         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
59618         enumerated value.
59619         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
59621 2010-12-04  Bruno Haible  <bruno@clisp.org>
59623         Update for Solaris 11 2010-11.
59624         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
59625         Express, released in November 2010.
59627 2010-12-04  Bruno Haible  <bruno@clisp.org>
59629         nproc: Relax license.
59630         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
59631         and Paul Eggert.
59632         Requested by Ludovic Courtès <ludo@gnu.org>.
59634 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59636         utimecmp: fine-grained src to nearby coarse-grained dest
59638         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
59639         and the source is on a file system with higher-resolution time
59640         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
59641         not work, and the time stamps are close together, the algorithm to
59642         determine the exact resolution from the read-back mtime was buggy:
59643         it had a "!=" where it should have had an "==".  This bug has been
59644         in the code ever since it was introduced to gnulib.
59645         Problem reported by Dan Jacobson in
59646         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
59648 2010-11-30  Bruno Haible  <bruno@clisp.org>
59650         strerror_r-posix: Fix autoconf test.
59651         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
59653 2010-11-28  Bruno Haible  <bruno@clisp.org>
59654             Paul Eggert  <eggert@cs.ucla.edu>
59656         Tests for module 'getdomainname'.
59657         * modules/getdomainname-tests: New file.
59658         * tests/test-getdomainname.c: New file, based on
59659         tests/test-gethostname.c.
59661 2010-11-28  Bruno Haible  <bruno@clisp.org>
59662             Paul Eggert  <eggert@cs.ucla.edu>
59664         getdomainname: Use the system function when possible.
59665         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
59666         (getdomainname): Replace if needed. Provide the declaration if it is
59667         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59668         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59669         (getdomainname): When the system has getdomainname, call the system
59670         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59671         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59672         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59673         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59674         the function if its second argument is of type 'int' or if it is found
59675         in libnsl.
59676         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59677         <sys/systeminfo.h> and sysinfo().
59678         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59680         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59681         HAVE_GETDOMAINNAME.
59682         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59683         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59684         * doc/glibc-functions/getdomainname.texi: Document the problems with
59685         the getdomainname declaration.
59687 2010-11-28  Bruno Haible  <bruno@clisp.org>
59689         sys_socket: Ensure ss_family field on AIX.
59690         * lib/sys_socket.in.h (ss_family): New macro definition.
59691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59692         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59693         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59694         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59695         * modules/sys_socket (Makefile.am): Substitute
59696         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59697         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59699 2010-11-27  Bruno Haible  <bruno@clisp.org>
59701         readline: Improve configure output.
59702         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59703         "checking for readline..." result understandable.
59705 2010-11-27  Bruno Haible  <bruno@clisp.org>
59707         *printf-posix: Detect a bug on Solaris 10/x86.
59708         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
59709         for floating-point output.
59710         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
59711         directive.
59712         * tests/test-snprintf-posix.h (test_function): Likewise.
59713         * tests/test-sprintf-posix.h (test_function): Likewise.
59714         * tests/test-vasprintf-posix.c (test_function): Likewise.
59715         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
59716         * doc/posix-functions/printf.texi: Likewise.
59717         * doc/posix-functions/snprintf.texi: Likewise.
59718         * doc/posix-functions/sprintf.texi: Likewise.
59719         * doc/posix-functions/vfprintf.texi: Likewise.
59720         * doc/posix-functions/vprintf.texi: Likewise.
59721         * doc/posix-functions/vsnprintf.texi: Likewise.
59722         * doc/posix-functions/vsprintf.texi: Likewise.
59723         * doc/glibc-functions/obstack_printf.texi: Likewise.
59724         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
59726 2010-11-27  Bruno Haible  <bruno@clisp.org>
59728         Fix link error when module libunistring-optional is in use.
59729         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
59730         * modules/striconveha-tests (Makefile.am): Likewise.
59732 2010-11-27  Bruno Haible  <bruno@clisp.org>
59734         regex: Mention link dependencies.
59735         * modules/regex (Link): New section.
59736         * modules/rpmatch (Link): Likewise.
59737         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
59739 2010-11-27  Bruno Haible  <bruno@clisp.org>
59741         ftoastr: Fix compilation error on Solaris.
59742         * lib/ftoastr.c: Include <config.h>.
59744 2010-11-27  Bruno Haible  <bruno@clisp.org>
59746         getloadavg: Update documentation.
59747         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
59749 2010-11-27  Bruno Haible  <bruno@clisp.org>
59751         sys_socket: Fix test whether the functions are declared.
59752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
59753         not <sys/select.h>.
59755 2010-11-27  Bruno Haible  <bruno@clisp.org>
59757         getpass: Make sure to get system declaration on some platforms.
59758         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
59759         gl_USE_SYSTEM_EXTENSIONS.
59760         * modules/getpass (Depends-on): Add extensions.
59762 2010-11-26  Bruno Haible  <bruno@clisp.org>
59764         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
59765         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
59766         'iconv' module is present.
59767         (ICONV_CONST): New macro.
59768         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
59769         ICONV_CONST.
59770         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
59771         set ICONV_CONST.
59772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
59773         here.
59774         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
59775         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
59776         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
59777         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
59778         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
59779         present.
59781 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59783         ftoastr: comment fix
59784         * lib/ftoastr.c: "little" -> "little or no" in comment
59786 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
59788         stdint: port to GCC 4.3 + OSX + Octave
59789         On this platform, stdint.h is buggy and defines int64_t to long
59790         long int.  The replacement defined it to long int, causing
59791         problems with C++ style name mangling.  Instead, trust the system
59792         definition if INT64_MAX is defined, and likewise for the unsigned
59793         variant.   Problem reported by Jarno Rajahalme in
59794         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
59795         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
59796         and don't mess with int64_t and INT64_MAX in this case.
59797         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
59799 2010-11-24  Bruno Haible  <bruno@clisp.org>
59801         doc: Corrections regarding MacOS X 10.4 and 10.5.
59802         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
59803         MacOS X.
59804         Reported by Simon Josefsson.
59806 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59808         Uninstall ".bin" files installed by relocwrapper.
59809         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59810         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59811         unless it is already there.
59813 2010-11-21  Bruno Haible  <bruno@clisp.org>
59815         Update for NetBSD 5.0.
59816         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59817         NetBSD; the test fails on NetBSD 5.0.
59818         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59819         about NetBSD.
59821 2010-11-21  Bruno Haible  <bruno@clisp.org>
59823         Update for HP-UX 11.23 and HP-UX 11.31.
59824         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59825         HP-UX.
59827 2010-11-21  Bruno Haible  <bruno@clisp.org>
59829         Update for MacOS X 10.5.
59830         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59831         MacOS X; the test fails on MacOS X 10.5.8.
59832         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59833         about MacOS X.
59835 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59837         bootstrap: add bootstrap_sync option.
59838         See discussion at
59839         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59840         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59841         * build-aux/bootstrap: Accept --bootstrap-sync to update
59842         bootstrap if it is not identical to the local gnulib's
59843         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59844         enable this by default.  Accept --no-bootstrap-sync to disable
59845         it.
59847 2010-11-20  Bruno Haible  <bruno@clisp.org>
59849         Ensure that <features.h> is included before __GLIBC__ is tested.
59850         * lib/printf-parse.h: Include <features.h>.
59851         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59852         Reported by Mike Frysinger <vapier@gentoo.org>.
59854         Ensure that <features.h> is included before __GLIBC__ is tested.
59855         * lib/wchar.in.h: Include <features.h>.
59856         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59857         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
59858         Reported by Mike Frysinger <vapier@gentoo.org>.
59860         Ensure that <features.h> is included before __GLIBC__ is tested.
59861         * lib/arpa_inet.in.h: Include <features.h>.
59862         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59863         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59864         Reported by Mike Frysinger <vapier@gentoo.org>.
59866         Ensure that <features.h> is included before __GLIBC__ is tested.
59867         * build-aux/link-warning.h: Include <features.h>.
59868         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59869         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59870         Reported by Mike Frysinger <vapier@gentoo.org>.
59872         Ensure that <features.h> is included before __GLIBC__ is tested.
59873         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59874         Reported by Mike Frysinger <vapier@gentoo.org>.
59876 2010-11-20  Bruno Haible  <bruno@clisp.org>
59878         memmem: Fix autoconf test.
59879         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59881 2010-11-20  Bruno Haible  <bruno@clisp.org>
59883         Port to uClibc.
59884         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59885         * lib/fcntl.in.h: Likewise.
59886         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59887         * lib/mbrtowc.c (mbrtowc): Likewise.
59888         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59889         * lib/strerror_r.c: Likewise.
59890         * lib/unistr/u8-strnlen.c: Likewise.
59891         * lib/vasnprintf.c (decimal_point_char): Likewise.
59892         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59893         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59894         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59895         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59896         * tests/test-sigaction.c (handler, main): Likewise.
59897         * lib/freading.h: Treat uClibc like a non-glibc platform.
59898         * lib/freading.c: Likewise.
59899         * lib/gettext.h: Likewise.
59900         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59901         Likewise.
59902         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59903         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59904         * lib/propername.c (proper_name_utf8): Likewise.
59905         * lib/spawn.in.h: Likewise.
59906         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59907         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59908         mem_cd_iconveh_internal): Likewise.
59909         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59910         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59911         strstr, strcasestr): Likewise.
59912         * lib/unicodeio.c (unicode_to_mb): Likewise.
59913         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59914         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59915         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59916         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59917         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59918         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59919         * lib/unistr/u8-stpncpy.c: Likewise.
59920         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59921         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59922         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59923         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59924         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59925         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59926         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59927         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59929         Likewise.
59930         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59931         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59932         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59935         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59936         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59937         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59938         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59939         * tests/test-striconveha.c (main): Likewise.
59940         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59941         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59942         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59943         * doc/posix-functions/getline.texi: Likewise.
59944         Reported by Mike Frysinger <vapier@gentoo.org>.
59946 2010-11-20  Bruno Haible  <bruno@clisp.org>
59948         nproc: Fix condition.
59949         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59950         HAVE_PTHREAD_AFFINITY_NP.
59952 2010-11-20  Bruno Haible  <bruno@clisp.org>
59954         Fix a comment.
59955         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59957 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59959         ftoastr: don't assume snprintf
59960         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59961         Implement a subset of snprintf here, by using sprintf safely.
59962         * modules/ftoastr (Depends-on): Remove snprintf.
59964 2010-11-19  Jim Meyering  <meyering@redhat.com>
59966         test-rename.h: fix compilation failure
59967         * tests/test-rename.h (test_rename): Add omitted "}".
59969 2010-11-17  Jim Meyering  <meyering@redhat.com>
59971         maint.mk: add a URL discussing the no-@acronym policy
59972         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59974 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59976         ftoastr: depend on snprintf, improve comments
59977         * lib/ftoastr.c: Also mention Loitsch's draft.
59978         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59979         needed in the current implementation, but it might simplify
59980         speeding up the code later.
59981         * modules/ftoastr: Depend on snprintf; this improves portability.
59982         Suggested by Bruno Haible in the same email.
59984         ftoastr: port to hosts lacking strtof and strtold
59985         Problem reported by Bruno Haible in
59986         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59987         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59988         environment and strtold (and presumably strtof) are not available.
59989         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59990         (configure.ac): Require gl_C99_STRTOLD.
59992 2010-11-18  Bruno Haible  <bruno@clisp.org>
59994         c-strtold: Avoid link error on AIX 7.
59995         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59996         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59997         (gl_C_STRTOLD): Test whether strtold_l exists.
59998         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60000 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60002         intprops: new macro INT_BITS_STRLEN_BOUND
60003         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
60004         ftoastr.h.  This exposes an internal of intprops.h that was formerly
60005         not exposed.  Also, it uses a slightly tighter bound than before;
60006         though this makes no practical difference, we might as well be as
60007         tight as we easily can.
60009         ftoastr: new module, for lossless conversion of floats to short strings
60010         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
60011         * modules/ftoastr: New files.
60013 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60015         bootstrap: port to Solaris sed
60016         * build-aux/bootstrap (get_version): Port to Solaris sed.
60017         See Ralf Wildenhues's note in
60018         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
60020 2010-11-14  Jim Meyering  <meyering@redhat.com>
60022         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
60023         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
60024         and move definition closer to sole use.
60026 2010-11-13  Jim Meyering  <meyering@redhat.com>
60028         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
60029         Now we require at least autoconf-2.59, which means the work-around
60030         is no longer needed.
60031         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
60032         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60033         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60034         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
60035         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
60037 2010-11-13  Bruno Haible  <bruno@clisp.org>
60039         rename, renameat: Avoid test failures at NFS mounted locations.
60040         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
60041         functions.
60042         (test_rename): Use assert_nonexistent.
60043         * tests/test-rename.c: Include <dirent.h>.
60044         * tests/test-renameat.c: Likewise.
60045         Reported by Gary V. Vaughan <gary@gnu.org>.
60047         rename, renameat: Document Linux bug with NFS
60048         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
60049         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
60050         * doc/posix-functions/renameat.texi: Likewise.
60051         Suggested by Eric Blake.
60053 2010-11-13  Bruno Haible  <bruno@clisp.org>
60055         rename test: Add comments.
60056         * tests/test-rename.h (test_rename): Add structure and comments.
60058 2010-11-13  Eric Blake  <eblake@redhat.com>
60060         maintainer-makefile: cover a few more files
60061         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
60062         scripts generated within C files, for libvirt.
60064 2010-11-13  Bruno Haible  <bruno@clisp.org>
60066         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
60067         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
60068         character, return the number of bytes that belong together, not always
60069         1.
60070         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
60071         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
60072         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
60073         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
60074         number of bytes of an invalid character.
60075         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
60076         (main): Invoke it.
60077         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
60078         results.
60079         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
60080         malformed byte sequences.
60081         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
60082         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
60083         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
60084         Reported by Ben Pfaff and Paolo Bonzini.
60086 2010-11-13  Bruno Haible  <bruno@clisp.org>
60088         openat: Work around glibc bug with fchownat() and empty file names.
60089         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
60090         (gl_FUNC_FCHOWNAT): Invoke it.
60091         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
60092         * doc/posix-functions/fchownat.texi: Document the glibc bug.
60093         Reported by Gary V. Vaughan <gary@gnu.org>.
60095 2010-11-13  Bruno Haible  <bruno@clisp.org>
60097         openat: Ensure autoconf macro ordering.
60098         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
60099         gl_USE_SYSTEM_EXTENSIONS.
60100         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
60102 2010-11-13  Bruno Haible  <bruno@clisp.org>
60104         Update comments.
60105         * lib/unistr/u8-check.c: Update file name in comments.
60106         * lib/unistr/u8-mblen.c: Likewise.
60107         * lib/unistr/u8-prev.c: Likewise.
60108         * lib/unistr/u8-strmblen.c: Likewise.
60109         * lib/unistr/u8-strmbtouc.c: Likewise.
60111 2010-11-13  Jim Meyering  <meyering@redhat.com>
60113         tests: avoid test failure on Solaris 10 due to lack of PATH export
60114         * tests/test-update-copyright.sh: Don't forget to export PATH.
60116         init.sh: ensure that IFS is defined, just in case...
60117         * tests/init.sh (setup_): Ensure that IFS is defined,
60118         so that saving and restoring it works as expected.  This
60119         appears to be useful at least for an old version of dash
60120         from a long time ago (RH 6).  See here for details:
60121         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
60123         maint.mk: tighten "test a == b" check
60124         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
60125         test to files that contain something like #!/bin/sh.
60126         Without this, coreutils would get two false positives in
60127         the comments of C source files.
60129 2010-11-12  Eric Blake  <eblake@redhat.com>
60131         bootstrap: fix typo in previous attempt
60132         * build-aux/bootstrap (buildreq): Correct the grouping.
60133         Reported by Paul Eggert.
60135         maintainer-makefile: prohibit test x == x
60136         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
60137         Based on a report by Matthias Bolte.
60139         bootstrap: allow FreeBSD gzip
60140         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
60141         which has no '.' and goes to stderr.
60142         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
60143         Reported by Matthias Bolte.
60145         maintainer-makefile: check for i18n setup
60146         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
60147         will likely work.
60149 2010-11-12  Bruno Haible  <bruno@clisp.org>
60151         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
60152         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
60153         * lib/nanosleep.c (nanosleep): Likewise.
60155 2010-11-11  Bruno Haible  <bruno@clisp.org>
60157         fcntl-h: Fix for use of C++ on glibc systems.
60158         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60159         also on glibc systems in C++ mode.
60160         Reported by Gary V. Vaughan <gary@gnu.org>.
60162 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60164         mknod: avoid false failure with dash
60165         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
60167 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60169         unlink: Fix "is it should" typo in diagnostic.
60170         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
60171         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
60173 2010-11-11  Bruno Haible  <bruno@clisp.org>
60175         Tests for module 'strerror_r-posix'.
60176         * modules/strerror_r-posix-tests: New file.
60177         * tests/test-strerror_r.c: New file.
60178         * tests/test-string-c++.cc: Check the signature of strerror_r.
60180         New module 'strerror_r-posix'.
60181         * lib/string.in.h (strerror_r): New declaration.
60182         * lib/strerror_r.c: New file.
60183         * m4/strerror_r.m4: New file.
60184         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
60185         of strerror_r.
60186         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
60187         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60188         * modules/strerror_r-posix: New file.
60189         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
60190         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60191         * doc/posix-functions/strerror_r.texi: Mention the new module and the
60192         portability problems.
60194 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
60196         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
60197         line is also considered for output. Quoted function name in shell
60198         command, so temporary files for functions like MyClass::operator()
60199         are removed correctly without errors.
60201 2010-11-09  Bruno Haible  <bruno@clisp.org>
60203         * doc/posix-functions/strerror.texi: List more failing platforms.
60205         * doc/posix-functions/strerror.texi: Add a comment.
60207 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60209         fdopendir: fix bug on MacOS X when low on file descriptors
60211         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
60212         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
60213         All callers changed.
60214         (fdopendir): Invoke save_cwd at the top level, not after using
60215         multiple dup() calls to use up file descriptors.  Then retry
60216         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
60217         less than the maximum number of open file descriptors, because
60218         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
60219         on Mac OS X 10.6.4 for tar 1.24
60220         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
60221         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
60222         and for tar 1.25
60223         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
60225 2010-11-07  Bruno Haible  <bruno@clisp.org>
60227         vasnprintf: Support I flag on glibc systems.
60228         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
60229         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
60230         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
60231         snprintf function.
60232         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
60233         glibc systems.
60234         * tests/test-vasnprintf-posix3.c: New file.
60235         * modules/vasnprintf-posix-tests (Files): Add it.
60236         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
60238 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60240         [html] Fix copy/paste bug: Use unique name for compiler warnings.
60241         * MODULES.html.sh: For compiler warnings, use name
60242         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
60244 2010-11-05  Eric Blake  <eblake@redhat.com>
60246         ceil, floor: avoid spurious failure with icc
60247         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
60248         [denormals-as-zero] when optimizing without -mieee-fp option.
60249         * tests/test-floorf2.c (floorf_reference): Likewise.
60250         * tests/test-ceilf1.c (dummy): New function.
60251         (main): Use it to outsmart icc's optimization.
60252         * tests/test-floorf1.c (dummy, main): Likewise.
60254         tests: require working signbit
60255         * modules/ceilf-tests (Depends-on): Add signbit.
60256         * modules/ceill-tests (Depends-on): Likewise.
60257         * modules/floorf-tests (Depends-on): Likewise.
60258         * modules/floorl-tests (Depends-on): Likewise.
60259         * modules/round-tests (Depends-on): Likewise.
60260         * modules/roundf-tests (Depends-on): Likewise.
60261         * modules/roundl-tests (Depends-on): Likewise.
60262         * modules/trunc-tests (Depends-on): Likewise.
60263         * modules/truncf-tests (Depends-on): Likewise.
60264         * modules/truncl-tests (Depends-on): Likewise.
60266         strtod: work around icc bug
60267         * lib/strtod.c (minus_zero): Define to working value.
60268         (strtod): Use it to avoid icc bug.
60270         copysign: enhance tests
60271         * modules/copysign-tests (Files): Add minus-zero.h.
60272         * tests/test-copysign.c (main): Also test zeros.
60274 2010-11-04  Eric Blake  <eblake@redhat.com>
60276         ceil, floor, round, trunc: enhance tests of -0
60277         * tests/test-ceilf1.c (main): Ensure correct sign of result.
60278         * tests/test-ceill.c (main): Likewise.
60279         * tests/test-floorf1.c (main): Likewise.
60280         * tests/test-floorl.c (main): Likewise.
60281         * tests/test-round1.c (main): Likewise.
60282         * tests/test-roundf1.c (main): Likewise.
60283         * tests/test-roundl.c (main): Likewise.
60284         * tests/test-trunc1.c (main): Likewise.
60285         * tests/test-truncf1.c (main): Likewise.
60286         * tests/test-truncl.c (main): Likewise.
60288 2010-11-04  Eric Blake  <eblake@redhat.com>
60290         frexp, tests: work around ICC bug with -zero
60291         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
60292         works with more compilers.
60293         * tests/minus-zero.h: New file.
60294         * modules/ceilf-tests (Files): Include it.
60295         * modules/ceill-tests (Files): Likewise.
60296         * modules/floorf-tests (Files): Likewise.
60297         * modules/floorl-tests (Files): Likewise.
60298         * modules/frexp-nolibm-tests (Files): Likewise.
60299         * modules/frexp-tests (Files): Likewise.
60300         * modules/frexpl-nolibm-tests (Files): Likewise.
60301         * modules/frexpl-tests (Files): Likewise.
60302         * modules/isnan-tests (Files): Likewise.
60303         * modules/isnand-nolibm-tests (Files): Likewise.
60304         * modules/isnand-tests (Files): Likewise.
60305         * modules/isnanf-nolibm-tests (Files): Likewise.
60306         * modules/isnanf-tests (Files): Likewise.
60307         * modules/isnanl-nolibm-tests (Files): Likewise.
60308         * modules/isnanl-tests (Files): Likewise.
60309         * modules/round-tests (Files): Likewise.
60310         * modules/roundf-tests (Files): Likewise.
60311         * modules/roundl-tests (Files): Likewise.
60312         * modules/ldexpl-tests (Files): Likewise.
60313         * modules/signbit-tests (Files): Likewise.
60314         * modules/snprintf-posix-tests (Files): Likewise.
60315         * modules/sprintf-posix-tests (Files): Likewise.
60316         * modules/strtod-tests (Files): Likewise.
60317         * modules/trunc-tests (Files): Likewise.
60318         * modules/truncf-tests (Files): Likewise.
60319         * modules/truncl-tests (Files): Likewise.
60320         * modules/vsnprintf-posix-tests (Files): Likewise.
60321         * modules/vsprintf-posix-tests (Files): Likewise.
60322         * modules/vasnprintf-posix-tests (Files): Likewise.
60323         * modules/vasprintf-posix-tests (Files): Likewise.
60324         * tests/test-ceilf1.c (main): Use it.
60325         * tests/test-ceill.c (main): Likewise.
60326         * tests/test-floorf1.c (main): Likewise.
60327         * tests/test-floorl.c (main): Likewise.
60328         * tests/test-frexp.c (main): Likewise.
60329         * tests/test-frexpl.c (main): Likewise.
60330         * tests/test-isnan.c (main): Likewise.
60331         * tests/test-isnand.h (main): Likewise.
60332         * tests/test-isnanf.h (main): Likewise.
60333         * tests/test-isnanl.h (main): Likewise.
60334         * tests/test-ldexpl.c (main): Likewise.
60335         * tests/test-round.c (main): Likewise.
60336         * tests/test-roundf.c (main): Likewise.
60337         * tests/test-roundl.c (main): Likewise.
60338         * tests/test-signbit.c (test_signbitf, test_signbitd)
60339         (test_signbitl): Likewise.
60340         * tests/test-snprintf-posix.h (test_function): Likewise.
60341         * tests/test-sprintf-posix.h (test_function): Likewise.
60342         * tests/test-strtod.c (main): Likewise.
60343         * tests/test-trunc1.c (main): Likewise.
60344         * tests/test-truncf1.c (main): Likewise.
60345         * tests/test-truncl.c (main): Likewise.
60347         isnanl: work around icc bug
60348         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
60350 2010-11-03  Eric Blake  <eblake@redhat.com>
60352         tests: fix compiler warnings
60353         * tests/test-getopt.h (test_getopt): Fix condition.
60354         * tests/test-getopt_long.h (test_getopt_long): Likewise.
60355         * tests/test-pipe2.c (main): Likewise.
60356         * tests/test-quotearg-simple.c (main): Avoid icc warning.
60358         utimens: fix broken m4 test
60359         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
60361 2010-10-28  Bruno Haible  <bruno@clisp.org>
60363         posix_spawn*, getdtablesize: Relax license.
60364         * modules/posix_spawn (License): Change to LGPLv2+.
60365         * modules/posix_spawnp (License): Likewise.
60366         * modules/posix_spawn-internal (License): Likewise.
60367         * modules/posix_spawnattr_init (License): Likewise.
60368         * modules/posix_spawnattr_getflags (License): Likewise.
60369         * modules/posix_spawnattr_setflags (License): Likewise.
60370         * modules/posix_spawnattr_getpgroup (License): Likewise.
60371         * modules/posix_spawnattr_setpgroup (License): Likewise.
60372         * modules/posix_spawnattr_getschedparam (License): Likewise.
60373         * modules/posix_spawnattr_setschedparam (License): Likewise.
60374         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
60375         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
60376         * modules/posix_spawnattr_getsigdefault (License): Likewise.
60377         * modules/posix_spawnattr_setsigdefault (License): Likewise.
60378         * modules/posix_spawnattr_getsigmask (License): Likewise.
60379         * modules/posix_spawnattr_setsigmask (License): Likewise.
60380         * modules/posix_spawnattr_destroy (License): Likewise.
60381         * modules/posix_spawn_file_actions_init (License): Likewise.
60382         * modules/posix_spawn_file_actions_addclose (License): Likewise.
60383         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
60384         * modules/posix_spawn_file_actions_addopen (License): Likewise.
60385         * modules/posix_spawn_file_actions_destroy (License): Likewise.
60386         * modules/getdtablesize (License): Likewise.
60387         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
60389 2010-10-26  Bruno Haible  <bruno@clisp.org>
60391         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
60392         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
60393         Cygwin and mingw.
60394         Suggested by Eric Blake.
60396 2010-10-26  Bruno Haible  <bruno@clisp.org>
60398         stdio: Work around compilation error due to renameat() on Solaris 10.
60399         * lib/stdio.in.h: Include <unistd.h> on Solaris.
60400         * lib/renameat.c: Don't include <unistd.h> here.
60401         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
60402         Reported by Paul Eggert and Eric Blake.
60404 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60406         renameat: port to Solaris 10, which declares renameat in unistd.h
60408         * lib/renameat.c: Include unistd.h before stdio.h, because
60409         Solaris 10 declares renameat in unistd.h.  Problem encountered
60410         when building GNU tar 1.24 on Solaris 10.
60412 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60414         fdopendir: fix C89 compilation
60415         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
60416         compilers.
60418 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
60420         inttostr: simplify by removing unnecessary redundancy
60421         * lib/anytostr.c: Don't include verify.h.
60422         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
60423         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
60424         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
60425         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
60426         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
60427         Likewise.
60428         * modules/inttostr (Depends-on): Remove 'verify'.
60430 2010-10-23  Bruno Haible  <bruno@clisp.org>
60432         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
60433         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
60434         Reported by Eric Blake.
60436 2010-10-23  Bruno Haible  <bruno@clisp.org>
60438         Tests: Fix LOCALE_JA on MirBSD 10.
60439         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
60440         to an UTF-8 locale.
60441         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
60442         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60443         Reported by Eric Blake.
60445 2010-10-21  Bruno Haible  <bruno@clisp.org>
60447         nl_langinfo test: Avoid test failure on NetBSD 5.
60448         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
60449         Reported by Eric Blake.
60451 2010-10-21  Eric Blake  <eblake@redhat.com>
60453         c-stack: work around libsigsegv 2.8 bug
60454         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
60455         overflow on at least PowerPC64.
60457 2010-10-17  Bruno Haible  <bruno@clisp.org>
60459         userspec: Drop redundant file.
60460         * modules/userspec (Files): Remove lib/inttostr.h.
60462 2010-10-17  Bruno Haible  <bruno@clisp.org>
60464         nl_langinfo tests: Silence some warnings.
60465         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
60466         Reported by Jim Meyering.
60468 2010-10-17  Bruno Haible  <bruno@clisp.org>
60470         Make use of GCC's attribute __alloc_size__.
60471         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
60472         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
60473         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
60474         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
60475         __alloc_size__.
60476         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60477         Suggested by Jim Meyering.
60479 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
60481         bootstrap: anchor .gitignore entries.
60482         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
60483         with...
60484         (insert_vc_ignore): ... this new function, which prepends `/' to
60485         all .gitignore entries before passing them to
60486         insert_sorted_if_absent.
60488 2010-10-16  Bruno Haible  <bruno@clisp.org>
60490         nextafter: Fix configure check.
60491         * modules/nextafter (configure.ac): Correct expected prototype.
60493 2010-10-16  Bruno Haible  <bruno@clisp.org>
60495         termios: Update documentation.
60496         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
60498 2010-10-16  Bruno Haible  <bruno@clisp.org>
60500         tests: Make them compile with TinyCC.
60501         * tests/test-strstr.c (main): Remove parentheses around array
60502         initializer.
60504 2010-10-15  Eric Blake  <eblake@redhat.com>
60506         ignore-value: make header idempotent
60507         * lib/ignore-value.h: Add double-inclusion guards.
60508         Reported by Stefan Berger.
60510 2010-10-15  Jim Meyering  <meyering@redhat.com>
60512         GNUmakefile: handle "stable" target, not "major"
60513         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
60514         lists in maint.mk and announce-gen.  Without this, "make stable"
60515         would fail to ensure that $(VERSION) is up to date.
60517 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
60519         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
60520         & co.
60522 2010-10-14  Bruno Haible  <bruno@clisp.org>
60524         vasnprintf: Don't set errno to 0.
60525         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
60526         block that sets it to 0.
60527         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
60529 2010-10-14  Bruno Haible  <bruno@clisp.org>
60531         socketlib: Fix.
60532         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
60533         gl_PREREQ_SYS_H_WINSOCK2.
60534         Reported by Ian Beckwith <ianb@erislabs.net>.
60536 2010-10-13  Jim Meyering  <meyering@redhat.com>
60538         test-select-stdin.c: avoid warn_unused_result warnings
60539         * tests/test-select-stdin.c: Include "macros.h".
60540         ASSERT that read and fflush succeed.
60542 2010-10-13  Jim Meyering  <meyering@redhat.com>
60544         git-version-gen: do require git-VC'd files in cwd
60545         * build-aux/git-version-gen: Reject a git version string
60546         if there are no commits associated with the current directory.
60547         This avoids an unlikely false-positive (unrelated dir whose parent
60548         repository also contains a tag matching v*), as pointed out
60549         by Giuseppe Scrivano in
60550         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
60552 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60554         argv-iter: omit nonconforming declaration
60555         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
60556         enum arg_iter_err declaration, which doesn't conform to C99.
60557         Solaris 10 cc warns about this.
60559 2010-10-13  Eric Blake  <eblake@redhat.com>
60561         termios: fix compilation on mingw
60562         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
60563         (gl_TERMIOS_H): Adjust it on mingw.
60564         * modules/termios (Makefile.am): Substitute new key.
60565         * lib/termios.in.h (includes): Make include_next conditional.
60566         * doc/posix-headers/termios.texi (termios.h): Update
60567         documentation.
60568         Reported by Daniel P. Berrange.
60570 2010-10-13  Jim Meyering  <meyering@redhat.com>
60572         git-version-gen: don't require that .git/ be in the current dir
60573         * build-aux/git-version-gen: Adjust this script so that it works
60574         when run from any working directory beneath the top-level .git/-
60575         containing directory.  Inspired by a patch from Giuseppe Scrivano,
60576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
60578         test-select: avoid warn_unused_result warnings
60579         * tests/test-select.c: Include "macros.h".
60580         ASSERT that each call to read, write, and pipe succeeds.
60581         While not technically required, also check each "close".
60582         * modules/select-tests (Files): Add tests/macros.h.
60584         test-symlinkat: remove declaration of unused local
60585         * tests/test-symlinkat.c (main): Remove unused local, "buf".
60587         test-inttostr: avoid shadowing warnings
60588         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
60589         and use malloc rather than the stack for the same reason as
60590         mentioned in the comment justifying the other allocation.
60592 2010-10-11  Bruno Haible  <bruno@clisp.org>
60594         stdlib: Allow multiple gnulib generated replacements to coexist.
60595         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
60596         Reported by Sam Steingold <sds@gnu.org>.
60598 2010-10-11  Jim Meyering  <meyering@redhat.com>
60600         fix a documentation typo
60601         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
60603 2010-10-11  Eric Blake  <eblake@redhat.com>
60605         futimens: work around Solaris 11 bug
60606         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
60607         * tests/test-futimens.h (test_futimens): Enhance, rather than
60608         weaken test.
60609         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60611 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60613         Indentation.
60614         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
60615         higher-level operators more to the left.
60617 2010-10-11  Jim Meyering  <meyering@redhat.com>
60619         test-futimens: avoid unwarranted test failure on Solaris 5.11
60620         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
60621         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
60622         because it tries to dereference the NULL name argument.
60624 2010-10-11  Bruno Haible  <bruno@clisp.org>
60626         Indentation.
60627         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
60628         indentation.
60630 2010-10-11  Jim Meyering  <meyering@redhat.com>
60632         spawn.in.h: make indentation consistent with parentheses
60633         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
60634         Make indentation consistent with parentheses.
60636 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
60638         Fix mismatched parens in previous commit
60639         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
60640         parens.
60642 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60644         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
60646         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
60647         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
60648         * lib/malloca.c: Include "verify.h".
60649         (verify1): Remove, replacing with a verify call.
60650         * lib/relocwrapper.c (verify1): Likewise.
60651         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
60652         Likewise.
60653         * modules/malloca (Depends-on): Add 'verify'.
60654         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
60655         * modules/vasnprintf (Depends-on): Add 'verify'.
60656         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60657         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60658         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60659         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60660         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60661         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60662         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60664         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
60666         Formerly the style was sometimes 2*X - 1, because the C standard
60667         was wrongly thought to disallow ?: in integral constant expressions.
60668         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60669         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60670         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60671         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60672         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60673         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60674         verify that time_t cannot be floating.
60676 2010-10-08  Eric Blake  <eblake@redhat.com>
60678         time: enforce recent POSIX ruling that time_t is integral
60679         * lib/time.in.h (__time_t_must_be_integral): Detect any
60680         problematic systems, allowing the rest of gnulib to assume POSIX.
60682 2010-10-08  Jim Meyering  <meyering@redhat.com>
60684         fdopendir: fix a bug on systems lacking openat and /proc support
60685         OpenBSD 4.7 is one such system.  The most noticeable effect was
60686         failure of any application making nontrivial use of fts: rm, du,
60687         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60688           ./rm: traversal failed: `a': Bad file descriptor
60689         Debugging that, you see that even though FD 6 was closed just
60690         prior to the opendir call in fd_clone_opendir, its resulting
60691         dir->dd_fd was 8, rather than the expected value of 6:
60693         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60694         93                close (fd);
60695         (gdb) n
60696         94                dir = fd_clone_opendir (dupfd);
60697         (gdb) n
60698         95                saved_errno = errno;
60699         (gdb) p dir->dd_fd
60700         $11 = 8
60702         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60703         The problem is that on OpenBSD, fd_clone_opendir has to resort
60704         to using the old-style save/restore CWD mechanism, due to its
60705         lack of openat/proc support, and *that* would steal the FD (6)
60706         that opendir was supposed to use.
60708         The fix is to squirrel away the desired FD so that save_cwd uses a
60709         different one, and then free the dest FD right before calling opendir.
60710         That guarantees opendir will use the required file descriptor.
60712         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
60714 2010-10-08  Bruno Haible  <bruno@clisp.org>
60716         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
60717         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
60719 2010-10-08  Bruno Haible  <bruno@clisp.org>
60721         nanosleep: Make replacement POSIX compliant.
60722         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
60723         is out of range.
60724         Reported by Jim Meyering.
60726 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60728         bootstrap: add hook for altering gnulib.mk, for Bison
60729         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
60730         the Bison bootstrapping process can rewrite file names and variables
60731         in this file before later parts of 'bootstrap' use the file.
60732         Bison wants to include lib/gnulib.mk from the top-level makefile,
60733         so it needs the file names in this file to be relative to the top
60734         level, not relative to lib; plus it needs variable names to be
60735         rewritten.
60736         (slurp): Use the new function.
60738         bootstrap: reformat for readability
60739         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
60741 2010-10-08  Eric Blake  <eblake@redhat.com>
60743         docs: update cygwin progress
60744         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
60745         1.7.7.
60746         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
60747         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
60748         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
60749         * doc/posix-functions/carg.texi (carg): Likewise.
60750         * doc/posix-functions/cargf.texi (cargf): Likewise.
60751         * doc/posix-functions/casin.texi (casin): Likewise.
60752         * doc/posix-functions/casinf.texi (casinf): Likewise.
60753         * doc/posix-functions/casinh.texi (casinh): Likewise.
60754         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
60755         * doc/posix-functions/catan.texi (catan): Likewise.
60756         * doc/posix-functions/catanf.texi (catanf): Likewise.
60757         * doc/posix-functions/catanh.texi (catanh): Likewise.
60758         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
60759         * doc/posix-functions/ccos.texi (ccos): Likewise.
60760         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
60761         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
60762         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
60763         * doc/posix-functions/cexp.texi (cexp): Likewise.
60764         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
60765         * doc/posix-functions/cimag.texi (cimag): Likewise.
60766         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
60767         * doc/posix-functions/clog.texi (clog): Likewise.
60768         * doc/posix-functions/clogf.texi (clogf): Likewise.
60769         * doc/posix-functions/conj.texi (conj): Likewise.
60770         * doc/posix-functions/conjf.texi (conjf): Likewise.
60771         * doc/posix-functions/cpow.texi (cpow): Likewise.
60772         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
60773         * doc/posix-functions/cproj.texi (cproj): Likewise.
60774         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
60775         * doc/posix-functions/creal.texi (creal): Likewise.
60776         * doc/posix-functions/crealf.texi (crealf): Likewise.
60777         * doc/posix-functions/csin.texi (csin): Likewise.
60778         * doc/posix-functions/csinf.texi (csinf): Likewise.
60779         * doc/posix-functions/csinh.texi (csinh): Likewise.
60780         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
60781         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
60782         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
60783         * doc/posix-functions/ctan.texi (ctan): Likewise.
60784         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
60785         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
60786         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
60787         * doc/posix-headers/complex.texi (complex.h): Likewise.
60789 2010-10-07  Jim Meyering  <meyering@redhat.com>
60791         parse-datetime: avoid compilation failure on OpenBSD 4.7
60792         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
60793         This works around a compilation failure on OpenBSD 4.7:
60794         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
60796 2010-10-07  Eric Blake  <eblake@redhat.com>
60798         docs: update cygwin progress
60799         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
60800         1.7.6.
60801         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60802         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
60803         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
60804         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
60805         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60806         Likewise.
60807         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60808         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60809         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60810         Likewise.
60811         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60812         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60813         Likewise.
60814         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60815         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60816         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60817         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60818         Likewise.
60819         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60820         Likewise.
60821         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60823         docs: update parse-datetime history
60824         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60825         documentation of this function's history and alternatives.
60827         cygwin: use more robust version check
60828         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60829         exclude an eventual cygwin 1.9.1.
60830         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60832         (gl_FUNC_STRCASESTR): Likewise.
60833         Reported by Bruno Haible.
60835 2010-10-06  Bruno Haible  <bruno@clisp.org>
60837         string, sys_select: Avoid #including large headers unless necessary.
60838         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60839         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60840         OSF/1, BeOS, Haiku.
60841         Reported by Jim Meyering.
60843 2010-10-05  Eric Blake  <eblake@redhat.com>
60845         memmem, strstr, strcasestr: fix bug with long periodic needle
60846         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60847         periodic needle having false positive.
60848         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60849         and cygwin 1.7.7.
60850         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60852         (gl_FUNC_STRCASESTR): Likewise.
60853         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60854         * tests/test-memmem.c (main): Expose the bug.
60855         * tests/test-strcasestr.c (main): Likewise.
60856         * tests/test-strstr.c (main): Likewise.
60857         * tests/test-c-strcasestr.c (main): Likewise.
60858         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60859         * doc/posix-functions/strstr.texi (strstr): Likewise.
60860         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60861         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60863 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60865         parse-datetime: do some more renaming
60866         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60867         parse_datetime, not get_date.  Mention the renaming.
60868         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60869         in comments.
60870         * m4/bison.m4: Likewise.
60872 2010-10-05  Eric Blake  <eblake@redhat.com>
60874         parse-datetime: better name than get_date
60875         * NEWS: Reword the deprecation notice.
60876         * modules/get_date: Rename to modules/parse-datetime.
60877         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60878         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60879         * lib/get_date.y: Rename to lib/parse-datetime.y.
60880         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60881         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60882         * doc/getdate.texi: Provide fallback wrapper.
60883         * lib/getdate.h: Move guts, and wrap...
60884         * lib/parse-datetime.h: ...new file.
60885         * lib/parse-datetime.y (get_date): Rename...
60886         (parse_datetime): ...to this.
60887         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60888         (gl_PARSE_DATETIME): ...to this.
60889         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60890         documentation.
60891         * modules/getdate (Files): Provide fallback docs and header.
60892         (Notice, Depends-on): Update references.
60893         * tests/test-parse-datetime.c: Likewise.
60894         * DEPENDENCIES: Likewise.
60895         * MODULES.html.sh (Date and time <time.h>): Likewise.
60896         * doc/parse-datetime.texi (Date input formats)
60897         (Authors of parse_datetime): Likewise.
60898         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60899         (Include): Likewise.
60900         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60901         * gnulib-tool: Likewise.
60902         * m4/bison.m4 (gl_BISON): Likewise.
60903         Suggested by Bruno Haible.
60905 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60907         more ports to Solaris tr, which needs [] around ranges
60908         * gnulib-tool: Solaris tr needs [] around ranges.
60909         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60910         * tests/test-pipe-filter-gi1.c (main): Likewise.
60911         * tests/test-pipe-filter-ii1.c (main): Likewise.
60913 2010-10-05  Eric Blake  <eblake@redhat.com>
60915         bootstrap: fix Solaris regression
60916         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60917         around ranges.
60918         Reported by Pádraig Brady.
60920         bootstrap: work with pkg-config
60921         * build-aux/bootstrap (check_versions): Also transliterate - in
60922         prerequisite name.
60923         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60924         prerequisites that were already found, to avoid confusion.
60925         Reported by Justin Clift.
60927         faccessat: remove unused wrappers
60928         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60929         presence of these wrappers dragged in -lgen on Solaris.
60930         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60932 2010-10-05  Jim Meyering  <meyering@redhat.com>
60934         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60935         * Makefile (sc_pragma_columns): New syntax-check rule.
60937 2010-10-04  Bruno Haible  <bruno@clisp.org>
60939         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60940         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60941         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60942         Reported by Bruce Korb and Eric Blake.
60944 2010-10-04  Bruno Haible  <bruno@clisp.org>
60946         threadlib: Make option --with-libpth-prefix work.
60947         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60948         use $LIBPTH, not just -lpth.
60950 2010-10-04  Bruno Haible  <bruno@clisp.org>
60952         Avoid line length limitation from HP NonStop system header files.
60953         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60954         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60955         * lib/ctype.in.h: Likewise.
60956         * lib/dirent.in.h: Likewise.
60957         * lib/errno.in.h: Likewise.
60958         * lib/fcntl.in.h: Likewise.
60959         * lib/float.in.h: Likewise.
60960         * lib/getopt.in.h: Likewise.
60961         * lib/iconv.in.h: Likewise.
60962         * lib/inttypes.in.h: Likewise.
60963         * lib/langinfo.in.h: Likewise.
60964         * lib/locale.in.h: Likewise.
60965         * lib/math.in.h: Likewise.
60966         * lib/netdb.in.h: Likewise.
60967         * lib/netinet_in.in.h: Likewise.
60968         * lib/poll.in.h: Likewise.
60969         * lib/pthread.in.h: Likewise.
60970         * lib/pty.in.h: Likewise.
60971         * lib/sched.in.h: Likewise.
60972         * lib/se-selinux.in.h: Likewise.
60973         * lib/search.in.h: Likewise.
60974         * lib/signal.in.h: Likewise.
60975         * lib/spawn.in.h: Likewise.
60976         * lib/stdarg.in.h: Likewise.
60977         * lib/stddef.in.h: Likewise.
60978         * lib/stdint.in.h: Likewise.
60979         * lib/stdio.in.h: Likewise.
60980         * lib/stdlib.in.h: Likewise.
60981         * lib/string.in.h: Likewise.
60982         * lib/strings.in.h: Likewise.
60983         * lib/sys_file.in.h: Likewise.
60984         * lib/sys_ioctl.in.h: Likewise.
60985         * lib/sys_select.in.h: Likewise.
60986         * lib/sys_socket.in.h: Likewise.
60987         * lib/sys_stat.in.h: Likewise.
60988         * lib/sys_time.in.h: Likewise.
60989         * lib/sys_times.in.h: Likewise.
60990         * lib/sys_utsname.in.h: Likewise.
60991         * lib/sys_wait.in.h: Likewise.
60992         * lib/sysexits.in.h: Likewise.
60993         * lib/termios.in.h: Likewise.
60994         * lib/time.in.h: Likewise.
60995         * lib/unistd.in.h: Likewise.
60996         * lib/wchar.in.h: Likewise.
60997         * lib/wctype.in.h: Likewise.
60998         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60999         * modules/ctype (Makefile.am): Likewise.
61000         * modules/dirent (Makefile.am): Likewise.
61001         * modules/errno (Makefile.am): Likewise.
61002         * modules/fcntl-h (Makefile.am): Likewise.
61003         * modules/float (Makefile.am): Likewise.
61004         * modules/getopt-posix (Makefile.am): Likewise.
61005         * modules/iconv-h (Makefile.am): Likewise.
61006         * modules/inttypes (Makefile.am): Likewise.
61007         * modules/langinfo (Makefile.am): Likewise.
61008         * modules/locale (Makefile.am): Likewise.
61009         * modules/math (Makefile.am): Likewise.
61010         * modules/netdb (Makefile.am): Likewise.
61011         * modules/netinet_in (Makefile.am): Likewise.
61012         * modules/poll-h (Makefile.am): Likewise.
61013         * modules/pthread (Makefile.am): Likewise.
61014         * modules/pty (Makefile.am): Likewise.
61015         * modules/sched (Makefile.am): Likewise.
61016         * modules/search (Makefile.am): Likewise.
61017         * modules/selinux-h (Makefile.am): Likewise.
61018         * modules/signal (Makefile.am): Likewise.
61019         * modules/spawn (Makefile.am): Likewise.
61020         * modules/stdarg (Makefile.am): Likewise.
61021         * modules/stddef (Makefile.am): Likewise.
61022         * modules/stdint (Makefile.am): Likewise.
61023         * modules/stdio (Makefile.am): Likewise.
61024         * modules/stdlib (Makefile.am): Likewise.
61025         * modules/string (Makefile.am): Likewise.
61026         * modules/strings (Makefile.am): Likewise.
61027         * modules/sys_file (Makefile.am): Likewise.
61028         * modules/sys_ioctl (Makefile.am): Likewise.
61029         * modules/sys_select (Makefile.am): Likewise.
61030         * modules/sys_socket (Makefile.am): Likewise.
61031         * modules/sys_stat (Makefile.am): Likewise.
61032         * modules/sys_time (Makefile.am): Likewise.
61033         * modules/sys_times (Makefile.am): Likewise.
61034         * modules/sys_utsname (Makefile.am): Likewise.
61035         * modules/sys_wait (Makefile.am): Likewise.
61036         * modules/sysexits (Makefile.am): Likewise.
61037         * modules/termios (Makefile.am): Likewise.
61038         * modules/time (Makefile.am): Likewise.
61039         * modules/unistd (Makefile.am): Likewise.
61040         * modules/wchar (Makefile.am): Likewise.
61041         * modules/wctype (Makefile.am): Likewise.
61043 2010-10-04  Bruno Haible  <bruno@clisp.org>
61045         read-file tests: Avoid a test failure on NonStop Kernel.
61046         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
61047         a regular file.
61048         Reported by Joachim Schmitz <schmitz@hp.com>.
61050 2010-10-03  Bruno Haible  <bruno@clisp.org>
61052         gnulib-tool: Fixes for --create-testdir with --libtool.
61053         * gnulib-tool (func_get_automake_snippet): Don't augment
61054         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
61055         an executable.
61056         (func_create_testdir): Handle module 'alloca' like func_import.
61057         Reported by Bruce Korb <bruce.korb@gmail.com>.
61059 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61061         Avoid some lines longer than 80 characters.
61062         * lib/stdint.in.h: Break long comment lines.
61063         * lib/math.in.h: Likewise.
61064         (_GL_NUM_UINT_WORDS): New macro, for readability.
61065         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
61066         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
61067         * lib/stdlib.in.h: Likewise.
61068         * lib/spawn.in.h: Likewise.
61069         * lib/sys_socket.in.h: Update an URL.
61070         * lib/sys_stat.in.h: Break long line.
61072 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
61074         Improve pmccabe2html.
61075         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
61076         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
61077         when the sources change. Remove the line in the HTML about "Used
61078         ranges" (which implied that there might be other unused ranges),
61079         rename "Resume" to "Summary" (easier to understand for more users).
61080         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
61081         styles, and some unnecessary blank lines.
61083 2010-10-03  Bruno Haible  <bruno@clisp.org>
61084             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
61086         acl: Add support for ACLs on NonStop Kernel.
61087         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
61088         Check whether the function aclsort() exists.
61089         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
61090         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
61091         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61092         (acl_nontrivial [HAVE_ACLSORT]: New function.
61093         (file_has_acl): Implement for NonStop Kernel.
61094         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61095         (qset_acl): Implement for NonStop Kernel.
61096         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
61097         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61098         (main): Implement for NonStop Kernel.
61099         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
61100         Kernel. Handle this flavor.
61101         * tests/test-set-mode-acl.sh: Likewise.
61102         * tests/test-copy-acl.sh: Likewise.
61103         * tests/test-copy-file.sh: Likewise.
61105 2010-10-03  Bruno Haible  <bruno@clisp.org>
61107         Info about ACLs on NonStop Kernel.
61108         * doc/acl-resources.txt: Add info about NonStop Kernel.
61109         References by Joachim Schmitz <schmitz@hp.com>.
61111 2010-10-02  Bruno Haible  <bruno@clisp.org>
61113         Define missing EDQUOT on NonStop Kernel.
61114         * lib/errno.in.h (EDQUOT): Assign a value if missing.
61115         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
61116         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
61117         missing.
61118         * doc/posix-headers/errno.texi: Mention the NSK bug.
61119         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
61120         Reported by Joachim Schmitz <schmitz@hp.com>.
61122 2010-10-02  Bruno Haible  <bruno@clisp.org>
61124         Update doc for POSIX:2008.
61125         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
61126         Update URL of POSIX specification.
61128 2010-10-02  Bruno Haible  <bruno@clisp.org>
61130         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
61131         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
61132         from gnulib, not from Automake.
61134 2010-10-02  Bruno Haible  <bruno@clisp.org>
61136         New module 'system-posix'.
61137         * modules/system-posix: New file.
61138         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
61139         module is present.
61140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61141         GNULIB_SYSTEM_POSIX.
61142         * modules/stdlib (Depends-on): Remove sys_wait.
61143         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
61144         * doc/posix-functions/system.texi: Mention the new module.
61145         * doc/posix-headers/stdlib.texi: Likewise.
61146         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
61147         define test_sys_wait_macros to a no-op.
61148         Reported by Sam Steingold <sds@gnu.org>.
61150 2010-09-30  Bruno Haible  <bruno@clisp.org>
61152         More renaming from 'getdate' to 'get_date'.
61153         * doc/get_date.texi: Renamed from doc/getdate.texi.
61154         * modules/get_date (Files): Update.
61155         * MODULES.html.sh (Date and time <time.h>): Update.
61156         * DEPENDENCIES: Update.
61157         * gnulib-tool: Update comment.
61158         * m4/bison.m4 (gl_BISON): Likewise.
61159         * m4/get_date.m4 (gl_GET_DATE): Likewise.
61161 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
61163         bootstrap: support ACLOCAL_FLAGS during aclocal
61164         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
61165         can add additional -I dir for third-party .m4 files.
61167 2010-09-30  Eric Blake  <eblake@redhat.com>
61169         bootstrap: use glibtoolize on MacOS
61170         * build-aux/bootstrap (check_versions): Convert libtool into
61171         libtoolize.
61172         (tool search): Move libtool check earlier, and look for
61173         glibtoolize for MacOS.
61174         (gnulib_tool_options): Auto-add --libtool when appropriate.
61175         Reported by Justin Clift.
61177         poll: fix typo that broke test on MacOS
61178         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
61179         Reported by Justin Clift.
61181         getdate: rename to get_date
61182         Note: getdate.h is not renamed, to minimize client impact.
61183         * modules/getdate: Mark obsolete.  Move old contents...
61184         * modules/get_date: ...to new module name.
61185         * modules/getdate-tests: Move...
61186         * modules/get_date-tests: ...here.
61187         * m4/getdate.m4: Move...
61188         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
61189         * lib/getdate.y: Move...
61190         * lib/get_date.y: ...here.
61191         * tests/test-getdate.c: Move...
61192         * tests/test-get_date.c: ...here.
61193         * doc/posix-functions/getdate.texi (getdate): Update name.
61194         * NEWS: Mention the change.
61196 2010-09-29  Bruno Haible  <bruno@clisp.org>
61198         Separate the module 'waitpid' from the module 'sys_wait'.
61199         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
61200         present.
61201         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
61202         gl_MODULE_INDICATOR_FOR_TESTS.
61203         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
61204         * modules/sys_wait (Depends-on): Remove waitpid.
61205         (Makefile.am): Substitute GNULIB_WAITPID.
61206         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
61207         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
61208         signature only if the 'waitpid' module is present.
61209         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
61210         * NEWS: Mention the change.
61211         * modules/grantpt (Depends-on): Add waitpid.
61212         * modules/wait-process (Depends-on): Likewise.
61214 2010-09-29  Bruno Haible  <bruno@clisp.org>
61216         More tests for module 'sys_wait'.
61217         * modules/sys_wait-c++-tests: New file.
61218         * tests/test-sys_wait-c++.cc: New file.
61219         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
61220         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61222 2010-09-29  Bruno Haible  <bruno@clisp.org>
61224         New module 'waitpid'.
61225         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
61226         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
61227         Don't include <process.h>.
61228         (waitpid): Declare only, using modern idiom.
61229         * m4/waitpid.m4: New file.
61230         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
61231         * modules/waitpid: New file.
61232         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
61233         (Makefile.am): Update.
61234         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61236 2010-09-28  Bruno Haible  <bruno@clisp.org>
61238         poll: Assume ANSI C.
61239         * lib/poll.c (poll): Use an ANSI C declaration.
61241 2010-09-28  Bruno Haible  <bruno@clisp.org>
61243         poll-h: Create poll.h on all platforms.
61244         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
61245         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
61246         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
61247         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
61248         (gl_REPLACE_POLL_H): Don't set POLL_H.
61249         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
61250         * modules/poll-h (Depends-on): Add include_next.
61251         (Makefile.am): Create poll.h unconditionally. Substitute also
61252         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
61254 2010-09-28  Bruno Haible  <bruno@clisp.org>
61256         Tests for module 'poll-h'.
61257         * modules/poll-h-c++-tests: New file.
61258         * tests/test-poll-h-c++.cc: New file.
61260         Tests for module 'poll-h'.
61261         * modules/poll-h-tests: New file.
61262         * tests/test-poll-h.c: New file.
61264 2010-09-28  Bruno Haible  <bruno@clisp.org>
61266         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
61267         * modules/poll-h (Depends-on): Add 'extensions'.
61269 2010-09-28  Bruno Haible  <bruno@clisp.org>
61271         New module 'poll-h'.
61272         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
61273         (poll): Use modern idiom.
61274         * modules/poll-h: New file.
61275         * modules/poll (Files): Remove lib/poll.in.h.
61276         (Depends-on): Add poll-h.
61277         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
61278         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
61279         * m4/poll_h.m4: New file.
61280         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
61281         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
61282         and invoke gl_REPLACE_POLL_H.
61283         * lib/poll.c: Use common idiom.
61284         * tests/test-poll.c: Likewise.
61285         * doc/posix-headers/poll.texi: Mention the poll-h module.
61286         Suggested by Eric Blake.
61288 2010-09-26  Bruno Haible  <bruno@clisp.org>
61290         sys_wait: Implement WSTOPSIG.
61291         * lib/sys_wait.in.h (WSTOPSIG): New macro.
61292         Reported by Simon Josefsson.
61294 2010-09-26  Simon Josefsson  <simon@josefsson.org>
61296         stdlib, sys_wait: Avoid compilation error on mingw.
61297         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
61299 2010-09-26  Bruno Haible  <bruno@clisp.org>
61301         stdlib tests: Avoid code duplication.
61302         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
61303         * modules/sys_wait-tests (Files): Likewise.
61304         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
61305         * tests/test-stdlib.c: Include test-sys_wait.h.
61306         (main): Invoke test_sys_wait_macros.
61307         * tests/test-sys_wait.c: Include test-sys_wait.h.
61308         (main): Invoke test_sys_wait_macros.
61310 2010-09-25  Simon Josefsson  <simon@josefsson.org>
61312         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
61313         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
61314         sure Windows sockets are working before calling getaddrinfo.
61315         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
61316         * doc/gnulib.texi (Windows sockets): Fix typo.
61318 2010-09-25  Bruno Haible  <bruno@clisp.org>
61320         Tests for module 'regex-quote'.
61321         * modules/regex-quote-tests: New file.
61322         * tests/test-regex-quote.c: New file.
61324         New module 'regex-quote'.
61325         * lib/regex-quote.h: New file.
61326         * lib/regex-quote.c: New file.
61327         * modules/regex-quote: New file.
61328         Suggested by Reuben Thomas <rrt@sc3d.org>.
61330 2010-09-24  Bruno Haible  <bruno@clisp.org>
61332         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
61333         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
61335 2010-09-23  Bruno Haible  <bruno@clisp.org>
61337         setenv: Relax license.
61338         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
61339         Blake.
61340         Requested by Eric Blake.
61342 2010-09-22  Bruno Haible  <bruno@clisp.org>
61344         termios: Relax license.
61345         * modules/termios (License): Change to LGPLv2+.
61346         Requested by Eric Blake.
61348 2010-09-22  Bruno Haible  <bruno@clisp.org>
61350         threadlib: Allow the package to change the default to 'no'.
61351         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
61352         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
61353         Reported by Paul Eggert.
61355 2010-09-22  Pádraig Brady  <P@draigbrady.com>
61356             Bruno Haible  <bruno@clisp.org>
61358         Fix endless loop in mbmemcasecoll.
61359         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
61360         byte.
61361         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
61363 2010-09-22  Bruno Haible  <bruno@clisp.org>
61365         Tests for module 'memcoll'.
61366         * modules/memcoll-tests: New file.
61367         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
61369         memcoll, xmemcoll: Clarify size vs. length.
61370         * modules/memcoll.c (memcoll0): Clarify specification.
61371         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
61372         passed to collate_error.
61374 2010-09-22  Bruno Haible  <bruno@clisp.org>
61376         Tests for module 'memcasecmp'.
61377         * modules/memcasecmp-tests: New file.
61378         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
61380 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61382         * lib/pthread.in.h: Add split double-inclusion guard, and include
61383         system <pthread.h> if there is one.  Use @@-style as in other
61384         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
61385         pthread.h doesn't.
61386         (pthread_mutexattr_destroy, pthread_mutexattr_init):
61387         (pthread_mutexattr_settype, pthread_mutex_trylock):
61388         New static inline functions, if there's no system <pthread.h>.
61389         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
61390         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
61391         Approximate with mutexes if the system lacks spinlocks, as in
61392         MacOS.
61393         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
61394         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
61395         @@-style.  Check for spinlocks separately.
61396         (gl_PTHREAD_DEFAULTS): New macro.
61397         * modules/pthread: Redo to use a more typical style for in.h files.
61399 2010-09-21  Eric Blake  <eblake@redhat.com>
61401         net_if: enhance tests
61402         * tests/test-net_if.c (main): Move signature checks earlier.
61403         Print failures to stderr.
61404         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
61405         Document the bug that we do not yet fix.
61407 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61409         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
61410         about gnulib, not GSS.
61412 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61414         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
61415         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
61416         for Emacs.
61417         * build-aux/pmccabe2html: Make Makefile.am example code more
61418         cut-and-paste friendly.
61420 2010-09-21  Simon Josefsson  <simon@josefsson.org>
61422         * tests/test-net_if.c: New file.
61423         * modules/net_if-tests: New file.
61425 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61427         pthread: add pthread_spin_destroy
61428         * lib/pthread.in.h (pthread_spin_destroy): New function.
61430 2010-09-19  Bruno Haible  <bruno@clisp.org>
61432         gnulib-tool: Fix --help output.
61433         * gnulib-tool (func_usage): Fix help message.
61434         Reported by Reuben Thomas <rrt@sc3d.org>.
61436 2010-09-18  Jim Meyering  <meyering@redhat.com>
61438         maint.mk: avoid unexpanded \n in two diagnostics
61439         * top/maint.mk (sc_prohibit_always_true_header_tests):
61440         Don't use a literal \n in a halt=... assignment.  It would not be
61441         expanded, and the two \n bytes would appear in the diagnostic output
61442         rather than the desired newline.  Use halt=$$(printf ... instead.
61443         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61445 2010-09-18  Bruno Haible  <bruno@clisp.org>
61447         netinet_in: Doc tweak.
61448         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
61449         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61451 2010-09-18  Jim Meyering  <meyering@redhat.com>
61453         init.sh: correct an outdated comment
61454         * tests/init.sh (create_exe_shims_):  s/function/alias/
61456         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
61457         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
61458         a file named "*.exe" is removed between the glob expansion and the
61459         processing of that oddly named file.
61461 2010-09-17  Eric Blake  <eblake@redhat.com>
61463         mirbsd: add some more support
61464         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
61465         in BSD family.
61466         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
61467         devices as OpenBSD.
61468         * m4/host-os.m4 (mirbsd): Add MirBSD.
61470         tests: fix unportable assumption on sys/wait.h
61471         * tests/test-sys_wait.c (main): Relax test.
61472         * tests/test-stdlib.c (main): Likewise.
61474         init.sh: accommodate directory with no .exes
61475         * tests/init.sh: Accomodate directory containing only scripts.
61477         tests: avoid compiler warning
61478         * tests/test-stdlib.c (main): Use the variable.
61480         fdutimens, fdutimensat: update signature, again
61481         * lib/utimens.h (gl_futimens): Delete, and move signature...
61482         (fdutimens): ...here.
61483         (fdutimensat): Rearrange signature.
61484         (lutimensat): Rename variable for clarity.
61485         * lib/fdutimensat.c (fdutimensat): Update signature.
61486         * lib/utimens.c (fdutimens): Likewise.
61487         (gl_futimens): Delete.
61488         (utimens, lutimens): Update callers.
61489         * lib/futimens.c (futimens): Likewise.
61490         * tests/test-fdutimensat.c: Likewise.
61491         * tests/test-utimens.c: Likewise.
61492         * tests/test-futimens.h: Update comment.
61493         * NEWS: Mention this.
61494         Suggested by Paul Eggert.
61496 2010-09-17  Bruno Haible  <bruno@clisp.org>
61498         Take over the maintenance of some older macros from Autoconf.
61499         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
61500         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
61501         GNU Autoconf.
61502         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
61503         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
61505 2010-09-17  Eric Blake  <eblake@redhat.com>
61507         fdutimensat: drop atflag validation
61508         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
61509         with valid fd, to close a race scenario where futimens is
61510         unsupported and FILE was replaced by a symlink.
61511         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
61512         accordingly.
61513         Suggested by Paul Eggert.
61515 2010-09-16  Bruno Haible  <bruno@clisp.org>
61517         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
61518         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
61520 2010-09-16  Bruno Haible  <bruno@clisp.org>
61522         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
61523         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
61524         login_tty exists.
61525         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61527 2010-09-16  Bruno Haible  <bruno@clisp.org>
61529         login_tty: Make the replacement code work on BSD systems.
61530         * lib/login_tty.c: Include <sys/ioctl.h>.
61531         (login_tty): Use ioctl TIOCSCTTY when available.
61532         * modules/login_tty (Depends-on): Add sys_ioctl.
61533         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61535 2010-09-16  Bruno Haible  <bruno@clisp.org>
61537         login_tty: Stricter unit test.
61538         * modules/login_tty-tests (Depends-on): Add tcgetsid.
61539         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
61540         and tcgetsid() after login_tty.
61541         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61543 2010-09-16  Bruno Haible  <bruno@clisp.org>
61545         New module 'tcgetsid'.
61546         * lib/tcgetsid.c: New file.
61547         * m4/tcgetsid.m4: New file.
61548         * modules/tcgetsid: New file.
61549         * modules/termios (Depends-on): Add c++defs, warn-on-use.
61550         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
61551         GNULIB_TCGETSID, HAVE_TCGETSID.
61552         * lib/termios.in.h: Include <sys/types.h>.
61553         (tcgetsid): New declaration.
61554         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
61555         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
61556         * doc/posix-functions/tcgetsid.texi: Mention the new module.
61557         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
61559 2010-09-16  Bruno Haible  <bruno@clisp.org>
61561         Tests for module 'termios'.
61562         * modules/termios-c++-tests: New file.
61563         * modules/termios-tests: New file.
61564         * tests/test-termios-c++.cc: New file.
61565         * tests/test-termios.c: New file.
61567         New module 'termios'.
61568         * modules/termios: New file.
61569         * lib/termios.in.h: New file.
61570         * m4/termios_h.m4: New file.
61571         * doc/posix-headers/termios.texi: Mention the new module.
61573 2010-09-16  Eric Blake  <eblake@redhat.com>
61575         fdutimensat: add an atflag parameter
61576         * lib/fdutimensat.c (fdutimensat): Add new parameter.
61577         * lib/utimens.h (fdutimensat): Update prototype.
61578         * tests/test-fdutimensat.c: Adjust test to match.
61579         * NEWS: Document the change.
61580         Suggested by Paul Eggert.
61582 2010-09-16  Bruno Haible  <bruno@clisp.org>
61584         Fix typos in comments.
61585         * lib/striconveh.h: Fix typo in comment.
61586         * lib/login_tty.c (login_tty): Likewise.
61588 2010-09-15  Bruno Haible  <bruno@clisp.org>
61590         stdlib: clarify MirBSD WEXITSTATUS bug
61591         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
61592         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61594 2010-09-15  Eric Blake  <eblake@redhat.com>
61596         stdlib: work around MirBSD WEXITSTATUS bug
61597         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
61598         * modules/stdlib (Depends-on): Add sys_wait.
61599         * tests/test-sys_wait.c (main): Enhance test.
61600         * tests/test-stdlib.c (main): Likewise.
61601         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
61603         docs: mention MacOS issue with WEXITSTATUS(constant)
61604         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
61605         issue.
61606         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61608         strnlen: add tests
61609         * modules/strnlen-tests: New file.
61610         * tests/test-strnlen.c: Likewise.
61612 2010-09-14  Bruno Haible  <bruno@clisp.org>
61614         unistr/base: Avoid link errors when module 'libunistring' is also used.
61615         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
61616         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
61617         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
61618         Declare also when HAVE_LIBUNISTRING is set.
61619         Reported by Pádraig Brady <P@draigbrady.com>.
61621 2010-09-14  Eric Blake  <eblake@redhat.com>
61623         test-rawmemchr: make more robust
61624         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
61625         (Depends-on, configure.ac): Add needed prerequisites to use it.
61626         * modules/memchr-tests (Files, Depends-on, configure.ac):
61627         Likewise, to avoid implicit reliance on memchr module prereqs.
61628         * tests/test-memchr.c (main): Ensure proper masking.
61629         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
61630         reads.
61632         memchr: detect glibc Alpha bug
61633         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
61634         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
61635         Alpha.
61636         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
61637         * tests/test-memchr.c (main): Enhance test.
61638         Reported by Nelson H. F. Beebe.
61640 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61642         fts, getcwd, glob: audit for dirfd returning -1
61643         * lib/fts.c (opendir): Remove #define; no longer used.
61644         (opendirat): New arg PDIR_FD.  All callers changed.
61645         (fts_build, _opendir2): Use new opendirat to avoid the need for
61646         dirfd, or for checking whether dirfd returns a negative value.
61647         Don't use opendir; always use openat followed by fdopendir.
61648         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
61649         it.
61650         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
61651         returns -1 here.
61652         * modules/fts (Depends-on): Remove dirfd.
61653         * modules/getcwd (Depends-on): Likewise.
61655 2010-09-13  Eric Blake  <eblake@redhat.com>
61657         float: fix broken MirBSD header
61658         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
61659         * doc/posix-headers/float.texi (float.h): Document it.
61661 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61663         fts: use O_NOFOLLOW to avoid race condition when opening a directory
61664         * lib/fts.c (opendirat): New arg extra_flags.
61665         (__opendir2): Use it to avoid following symlinks when opening
61666         a directory, if symlinks are not supposed to be followed.  See
61667         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61669         fdopendir: preserve argument fd before returning
61670         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61671         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61672         (fdopendir): Use them, arranging for FD to be open to the same
61673         directory that it was when it started.  (It might be temporarily
61674         closed while fdopendir is running, so this not thread- or
61675         signal-safe.)  Be careful to do the right thing even when file
61676         descriptors are scarce and dup fails with errno == EMFILE.  See
61677         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61679 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61681         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61682         * NEWS: Document change.
61683         * m4/regex.m4: Disable test for regoff_t size.
61685 2010-09-13  Jim Meyering  <meyering@redhat.com>
61687         fts: don't operate on an invalid file descriptor after failed dup
61688         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61689         negative file descriptor.
61691 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61693         savedir: add streamsavedir, deprecate fdsavedir
61694         * NEWS: Mention deprecation of fdsavedir.
61695         * lib/savedir.c (streamsavedir): New extern function, whose name
61696         ends in "savedir" to be consistent with the others.  This differs
61697         from savedirstream in that it doesn't close its argument.  The
61698         next version of GNU tar will use this instead of fdsavedir, to
61699         avoid some race conditions and conserve file descriptors.
61700         (savedirstream): Reimplement as a wrapper around streamsavedir.
61701         (fdsavedir): Add a comment deprecating this function.  As far as
61702         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61703         * lib/savedir.h (streamsavedir): New decl.
61704         (fdsavedir): Add a comment deprecating this.
61706 2010-09-10  Bruno Haible  <bruno@clisp.org>
61708         langinfo: Fix last commit.
61709         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
61710         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
61711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61713 2010-09-10  Bruno Haible  <bruno@clisp.org>
61715         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
61716         * lib/progreloc.c (O_EXEC): Define fallback.
61718 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
61720         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
61721         * NEWS: Document recent changes to fcntl-h.
61722         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
61723         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
61724         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
61725         Similarly for O_SEARCH; this last was already true, but not documented.
61726         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
61727         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
61728         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
61729         Likewise.
61730         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
61731         is zero, not whether it is defined.
61732         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
61733         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
61734         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
61736 2010-09-10  Bruno Haible  <bruno@clisp.org>
61738         langinfo, nl_langinfo: Fix for IRIX 5.3.
61739         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
61740         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
61741         HAVE_LANGINFO_YESEXPR.
61742         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
61743         HAVE_LANGINFO_YESEXPR.
61744         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
61745         HAVE_LANGINFO_T_FMT_AMPM is 0.
61746         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
61747         HAVE_LANGINFO_YESEXPR is 0.
61748         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
61749         NOEXPR.
61750         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
61751         * doc/posix-functions/nl_langinfo.texi: Likewise.
61752         Reported by Eric Blake.
61754 2010-09-10  Bruno Haible  <bruno@clisp.org>
61756         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
61757         * doc/glibc-functions/login_tty.texi: Mention the include file problem
61758         on FreeBSD 8.0 and OpenBSD 4.6.
61759         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
61760         * m4/pty_h.m4 (gl_PTY_H): Likewise.
61761         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
61762         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
61763         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
61764         ac_includes_default.
61765         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61767 2010-09-09  Eric Blake  <eblake@redhat.com>
61769         strsignal: work around NetBSD bug
61770         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
61771         * lib/string.in.h (includes): Likewise.
61772         * doc/posix-functions/strsignal.texi (strsignal): Document the
61773         bug.
61774         Reported by Nelson H. F. Beebe.
61776         gnulib-tool: work with NetBSD /bin/sh
61777         * gnulib-tool (func_cache_var, func_cache_lookup_module)
61778         (func_get_description, func_get_comment, func_get_status)
61779         (func_get_notice, func_get_applicability, func_get_filelist)
61780         (func_get_dependencies, func_get_autoconf_early_snippet)
61781         (func_get_autoconf_snippet, func_get_automake_snippet)
61782         (func_get_include_directive, func_get_link_directive)
61783         (func_get_license, func_get_maintainer, func_import): Avoid
61784         shell syntax errors from parsing syntax extensions.
61786 2010-09-09  Bruno Haible  <bruno@clisp.org>
61788         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61789         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
61790         a reliable way to determine whether the 'alias' command works.
61792 2010-09-08  Jim Meyering  <meyering@redhat.com>
61794         init.sh: penalize a set-x-impaired shell; don't disqualify it
61795         * tests/init.sh: Too many shells corrupt application stderr when
61796         you set -x, so we can't afford to disqualify them, since at least
61797         on Irix-6.5, that would disqualify all bourne shells.
61798         Instead, use a two-pass approach.
61799         On the first pass, try to find a shell that meets the stricter
61800         condition that set -x does not corrupt stderr.
61801         If no shell meets the stricter condition, retest each candidate
61802         shell, but without that extra condition.  Finally, when
61803         VERBOSE=yes is requested and set -x might cause trouble, simply
61804         issue a warning and refrain from enabling debug output.
61806 2010-09-08  Eric Blake  <eblake@redhat.com>
61808         unsetenv: fix OpenBSD bug
61809         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61810         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61811         documentation.
61812         Reported by Jim Meyering.
61814         strtod: work around IRIX 6.5 bug
61815         * lib/strtod.c (strtod): Reparse number on shorter string if
61816         exponent parse was invalid.
61817         * tests/test-strtod.c (main): Add check for "0x1p 2".
61818         Reported by Tom G. Christensen.
61820         getopt: optimize previous patch
61821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61822         empty variable.  Speed up awk script.
61823         Reported by Paolo Bonzini.
61825 2010-09-08  Jim Meyering  <meyering@redhat.com>
61827         test.sh: disqualify shells for which set -x corrupts stderr
61828         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61829         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61830         appear in stderr output.  For example, this command:
61831             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61832         prints "P=1" on those two systems:
61834 2010-09-08  Bruno Haible  <bruno@clisp.org>
61836         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61837         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61838         commands, because some shells ignore redirections when there is an
61839         error in the command lookup.
61840         Reported by Eric Blake.
61842 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61844         * lib/regex.h: Fix a mention of `regex_compile' (should be
61845         `re_compile_pattern').
61846         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61847         (re_set_registers): Correct name of parameter in comment.
61849         * doc/regex.texi: Add documentation for missing syntax flags.
61850         Remove commented-out documentation of defunct syntax option
61851         RE_NO_EMPTY_ALTS.
61852         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61853         Add documentation of re_set_registers.
61854         Document trick to re-use a pattern buffer by setting fastmap manually.
61855         Update documentation of struct re_pattern_buffer per public members.
61856         Uncomment documentation of equivalence class operators and
61857         collating symbol operators, since they are now implemented,
61858         Explain leftmost-longest matching in relation to alternatives.
61859         Tidy documentation of substring matching.
61860         Remove POSIX documentation, which is done better in
61861         glibc, and refer the reader there. Keep BSD API documentation, as
61862         that is not readily available elsewhere.
61864 2010-09-07  Eric Blake  <eblake@redhat.com>
61866         getopt: handle POSIXLY_CORRECT set but not exported
61867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61868         export state of POSIXLY_CORRECT, due to bash set -o posix.
61869         Reported by Dustin J. Mitchell.
61871 2010-09-05  Bruno Haible  <bruno@clisp.org>
61873         gnulib-tool: Highlight the changed options.
61874         * gnulib-tool (func_usage): Display the --import, --add-import,
61875         --remove-import explanations in bold font.
61877 2010-09-06  Karl Berry  <karl@gnu.org>
61879         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61881 2010-09-05  Bruno Haible  <bruno@clisp.org>
61883         uniwidth/width: Update comment.
61884         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61885         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61887 2010-09-05  Bruno Haible  <bruno@clisp.org>
61889         isinf, isnan: Relax license.
61890         * modules/isinf (License): Change from GPL to LGPL, with consent from
61891         Ben Pfaff.
61892         * modules/isnan (License): Likewise.
61893         Requested by Ludovic Courtès.
61895 2010-09-04  Bruno Haible  <bruno@clisp.org>
61897         gnulib-tool: Help migration from --import to --add-import or --update.
61898         * gnulib-tool: Emit a verbose error message when --import is used
61899         without any module name.
61901 2010-09-04  Bruno Haible  <bruno@clisp.org>
61903         Update doc about gnulib-tool.
61904         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61905         'gnulib-tool --update' in more detail.
61906         Reported by Eric Blake.
61908 2010-09-04  Bruno Haible  <bruno@clisp.org>
61910         gnulib-tool: Change --import. New options --add/remove-import.
61911         * gnulib-tool: New options --add-import, --remove-import.
61912         (func_usage): Document them.
61913         (have_associative): Define always.
61914         (func_import): In import mode, don't merge the specified settings with
61915         the cached settings. Implement remove-import mode.
61916         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61917         Explain when to use them versus --import.
61918         (Simple update): Use --add-import instead of --import.
61919         * NEWS: Mention the change.
61921 2010-09-04  Bruno Haible  <bruno@clisp.org>
61923         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61924         separate gnulib.mk.
61926 2010-09-04  Bruno Haible  <bruno@clisp.org>
61928         gnulib-tool: Don't talk about CVS any more.
61929         * gnulib-tool (func_usage, func_import): Write "version control"
61930         instead of CVS.
61932 2010-09-04  Jim Meyering  <meyering@redhat.com>
61934         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61935         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61936         false positives (whose names may be ill-chosen) when searching
61937         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61938         would cause a false-positive.
61940         avoid coreutils "make distcheck" failure
61941         Coreutils tests with an absolute build directory name that contains
61942         a space.  Not quoting this directory name caused a failure.
61943         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61944         * tests/test-vc-list-files-cvs.sh: Likewise.
61946 2010-09-04  Bruno Haible  <bruno@clisp.org>
61948         gnulib-tool: Avoid error when run in a package without Makefile.am.
61949         * gnulib-tool: When collecting the m4dirs in a package that does not
61950         have a Makefile.am, eliminate those directories that contain no
61951         gnulib-cache.m4. Fix expression that counts these directories.
61953 2010-09-04  Bruno Haible  <bruno@clisp.org>
61955         update-copyright test: Improve output when perl is missing or too old.
61956         * tests/test-update-copyright.sh: Move test of Perl version down after
61957         the test whether Perl exists. Provide an explanation relating Perl's
61958         error message to Automake's SKIP: message.
61960 2010-09-04  Bruno Haible  <bruno@clisp.org>
61962         Don't augment PATH in TESTS_ENVIRONMENT.
61963         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61964         set abs_aux_dir instead of augmenting PATH.
61965         * modules/vc-list-files-tests (Makefile.am): Likewise.
61966         * tests/test-update-copyright.sh: Augment PATH here.
61967         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61968         path_prepend_.
61969         * tests/test-vc-list-files-git.sh: Likewise.
61971 2010-09-04  Jim Meyering  <meyering@redhat.com>
61973         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61974         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61976 2010-09-04  Bruno Haible  <bruno@clisp.org>
61978         strdup: Fix compilation error in C++ mode.
61979         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61980         the macro.
61982 2010-09-04  Bruno Haible  <bruno@clisp.org>
61984         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61985         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61986         macro into a function.
61987         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61989 2010-09-04  Bruno Haible  <bruno@clisp.org>
61991         Set PATH_SEPARATOR the same way autoconf does.
61992         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61993         the value of PATH_SEPARATOR the same way autoconf-generated configure
61994         scripts do.
61995         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61996         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61998 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62000         Set PATH_SEPARATOR the same way autoconf does.
62001         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
62002         the same way autoconf-generated configure scripts do.
62003         * posix-modules: Likewise.
62005 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62007         hash: fix safe_hasher const typo
62008         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
62009         const; otherwise, there is a type error later.
62011 2010-09-02  Jim Meyering  <meyering@redhat.com>
62013         test-update-copyright.sh: require perl 5.8.0
62014         * tests/test-update-copyright.sh: Require 5.8.0,
62015         which Tom G. Christensen has confirmed is adequate,
62016         while 5.6.1 is not.
62018 2010-09-02  Eric Blake  <eblake@redhat.com>
62020         tests: init.sh improvements for re-exec'ing with zsh
62021         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
62022         -vx through shell re-exec.
62023         Reported by Tom G. Christensen.
62025         wctype: fix typo in previous commit
62026         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
62027         Reported by Ludovic Courtès.
62029 2010-09-02  Jim Meyering  <meyering@redhat.com>
62031         test-update-copyright.sh: skip test if Perl is too old
62032         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
62033         Reported by Tom G. Christensen.
62035 2010-09-02  Bruno Haible  <bruno@clisp.org>
62037         wctype: Avoid compilation error on IRIX 6.5.30.
62038         * lib/wctype.in.h (iswblank): Declare with a replacement if
62039         REPLACE_ISWBLANK is set.
62040         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
62041         declared. Set REPLACE_ISWBLANK.
62042         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
62043         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
62044         * doc/posix-headers/wctype.texi: Likewise.
62045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62047 2010-09-01  Bruno Haible  <bruno@clisp.org>
62049         New module 'socketlib'.
62050         * modules/socketlib: New file.
62051         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
62052         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
62053         * modules/sockets (Depends-on): Add socketlib.
62054         Suggested by Sam Steingold <sds@gnu.org>.
62056 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62058         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
62060         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
62061         when one needs search access to a directory but not read access.
62062         On systems where it is available, it works in some cases where
62063         O_RDONLY does not, namely on directories that are searchable but
62064         not readable, and which need only to be searchable.  If O_SEARCH
62065         is not available, fall back to the traditional method of using
62066         O_RDONLY.
62068         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
62069         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
62070         when opening a directory that needs only to be searchable.
62071         * lib/chdir-safer.c (chdir_no_follow): Likewise.
62072         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
62073         * lib/openat-proc.c (openat_proc_name): Likewise.
62074         * lib/openat.c (openat_needs_fchdir): Likewise.
62075         * lib/save-cwd.c (save_cwd): Likewise.
62076         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
62078 2010-08-28  Bruno Haible  <bruno@clisp.org>
62080         New module 'host-cpu-c-abi'.
62081         * modules/host-cpu-c-abi: New file.
62082         * m4/host-cpu-c-abi.m4: New file, based on part of
62083         clisp/src/m4/general.m4.
62084         Requested by Sam Steingold <sds@gnu.org>.
62086 2010-08-31  Eric Blake  <eblake@redhat.com>
62087         and Jim Meyering  <meyering@redhat.com>
62089         hash: factor, and guard against misbehaving hasher function
62090         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
62091         of table->hasher's return value.  Also protect against a hash value
62092         so large that adding it to table->bucket results in a NULL pointer.
62093         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
62094         Use it in place of open-coded check-and-abort.
62096 2010-08-30  Bruno Haible  <bruno@clisp.org>
62098         hash: silence spurious clang warning
62099         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
62100         Reported by Eric Blake.
62102 2010-08-30  Eric Blake  <eblake@redhat.com>
62104         strstr, memmem, strcasestr: avoid leaked shell message
62105         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
62106         FreeBSD.
62107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62110         tests: silence clang warning
62111         * tests/test-malloca.c (do_allocation): Avoid dead store.
62113 2010-08-29  Bruno Haible  <bruno@clisp.org>
62115         gettext: Fix recent mistake.
62116         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62118 2010-08-29  Bruno Haible  <bruno@clisp.org>
62120         selinux-h: Offer a --without-selinux option.
62121         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
62122         --without-selinux was specified, skip all tests and define
62123         HAVE_SELINUX_SELINUX_H to 0.
62124         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
62125         set LIB_SELINUX to empty.
62126         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
62127         gl_LIBSELINUX. If --without-selinux was specified, replace
62128         selinux/context.h.
62129         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
62131 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62132             Bruno Haible  <bruno@clisp.org>
62134         Make the module 'realloc-gnu' work again on AIX and OSF/1.
62135         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
62136         of HAVE_REALLOC.
62137         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
62138         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
62139         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
62140         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62142 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62143             Bruno Haible  <bruno@clisp.org>
62145         Make the module 'calloc-gnu' work again on AIX and OSF/1.
62146         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
62147         HAVE_CALLOC.
62148         * lib/xmalloc.c: Update accordingly.
62149         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
62150         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
62151         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
62153 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62154             Bruno Haible  <bruno@clisp.org>
62156         Make the module 'malloc-gnu' work again on AIX and OSF/1.
62157         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
62158         HAVE_MALLOC.
62159         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
62160         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
62161         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62163 2010-08-29  Bruno Haible  <bruno@clisp.org>
62165         Update modules list.
62166         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62167         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
62168         (String handling <string.h>): Add astrxfrm.
62169         (File system functions): Add readlinkat.
62171 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62173         Tests for module 'realloc-gnu'.
62174         * modules/realloc-gnu-tests: New file.
62175         * tests/test-realloc-gnu.c: New file.
62177         Tests for module 'calloc-gnu'.
62178         * modules/calloc-gnu-tests: New file.
62179         * tests/test-calloc-gnu.c: New file.
62181         Tests for module 'malloc-gnu'.
62182         * modules/malloc-gnu-tests: New file.
62183         * tests/test-malloc-gnu.c: New file.
62185 2010-08-28  Bruno Haible  <bruno@clisp.org>
62187         Rename module 'realloc' -> 'realloc-gnu'.
62188         * modules/realloc-gnu: New file, copied from modules/realloc.
62189         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
62190         obsolete.
62191         * modules/mgetgroups (Depends-on): Update.
62192         * doc/posix-functions/realloc.texi: Update.
62193         * NEWS: Mention the change.
62195         Rename module 'calloc' -> 'calloc-gnu'.
62196         * modules/calloc-gnu: New file, copied from modules/calloc.
62197         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
62198         obsolete.
62199         * doc/posix-functions/calloc.texi: Update.
62200         * NEWS: Mention the change.
62202         Rename module 'malloc' -> 'malloc-gnu'.
62203         * modules/malloc-gnu: New file, copied from modules/malloc.
62204         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
62205         obsolete.
62206         * modules/argp (Depends-on): Update.
62207         * modules/regex (Depends-on): Update.
62208         * doc/posix-functions/malloc.texi: Update.
62209         * NEWS: Mention the change.
62211 2010-08-28  Eric Blake  <eblake@redhat.com>
62213         pread, pwrite: add missing dependency
62214         * modules/pread (Depends-on): Add extensions.
62215         * modules/pwrite (Depends-on): Likewise.
62217 2010-08-28  Bruno Haible  <bruno@clisp.org>
62219         unistr/u*-strchr: Fix tests dependencies.
62220         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
62221         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
62222         Reported by Ian Beckwith <ianb@erislabs.net>.
62224 2010-08-28  Bruno Haible  <bruno@clisp.org>
62226         read-file: Don't occupy too much unused memory.
62227         * lib/read-file.c (fread_file): Shrink the buffer at the end.
62229 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
62230             Eric Blake  <eblake@redhat.com>
62231             Bruno Haible  <bruno@clisp.org>
62233         read-file: Avoid memory reallocations with regular files.
62234         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
62235         (fread_file): With regular files, use the remaining length as the
62236         initial buffer size.  Check against overflow.
62237         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
62238         sys_stat.
62240 2010-08-28  Bruno Haible  <bruno@clisp.org>
62242         ftello: Relax license.
62243         * modules/ftello (License): Relax to LGPLv2+.
62244         Reported by Eric Blake.
62246 2010-08-28  Bruno Haible  <bruno@clisp.org>
62248         Avoid relocwrapper link errors due to gnulib replacement functions.
62249         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
62250         function.
62251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62253 2010-08-28  Bruno Haible  <bruno@clisp.org>
62255         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
62256         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
62257         defined.
62258         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
62259         Suggested by Eric Blake.
62261 2010-08-28  Bruno Haible  <bruno@clisp.org>
62263         sys_socket, netdb: Ensure socklen_t gets defined.
62264         * modules/sys_socket (Depends-on): Add socklen.
62265         * modules/netdb (Depends-on): Likewise.
62266         * modules/getaddrinfo (Depends-on): Remove socklen.
62267         * modules/getsockopt (Depends-on): Likewise.
62268         * modules/setsockopt (Depends-on): Likewise.
62269         * tests/test-sys_socket.c: Check that socklen_t is defined.
62270         * tests/test-netdb.c: Likewise.
62271         * m4/socklen.m4: Update comments.
62272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62274 2010-08-27  Eric Blake  <eblake@redhat.com>
62276         login_tty: add missing dependency
62277         * modules/login_tty (Depends-on): Add pty.
62279 2010-08-26  Eric Blake  <eblake@redhat.com>
62281         lib-symbol-versions: fix m4 quoting
62282         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
62283         format for AC_LINK_IFELSE.
62285         glob: fix compile test
62286         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
62288         btowc: fix missing file
62289         * modules/btowc (Files): Also ship locale-fr.m4.
62291         lseek: fix link test
62292         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
62293         AC_LINK_IFELSE.
62295         include_next: silence autoconf 2.68 warning
62296         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
62297         AC_COMPILE_IFELSE as special.
62298         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
62299         autoconf < 2.68.
62301         acl: fix compilation test
62302         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
62303         AC_COMPILE_IFELSE.
62305 2010-08-26  Bruno Haible  <bruno@clisp.org>
62307         Modernize AC_TRY_RUN invocations.
62308         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
62309         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62310         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
62311         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
62312         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
62313         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62316         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62317         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62318         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62319         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62320         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62323         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62324         gl_MBRLEN_NUL_RETVAL): Likewise.
62325         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62326         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62327         Likewise.
62328         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62329         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62330         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62331         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62332         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
62333         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
62334         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
62335         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
62336         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
62337         Likewise.
62338         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62339         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
62340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62341         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62342         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62343         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62344         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62345         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
62346         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62349 2010-08-26  Bruno Haible  <bruno@clisp.org>
62351         Modernize AC_TRY_LINK invocations.
62352         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
62353         AC_TRY_LINK.
62354         * m4/argp.m4 (gl_ARGP): Likewise.
62355         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
62356         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62357         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62358         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62359         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62360         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
62361         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
62362         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
62363         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62364         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62365         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62366         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
62367         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
62368         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62369         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62370         * m4/hostent.m4 (gl_HOSTENT): Likewise.
62371         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62372         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
62373         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62374         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
62375         Likewise.
62376         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
62377         Likewise.
62378         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
62379         Likewise.
62380         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62381         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
62382         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
62383         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
62384         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
62385         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62386         * m4/servent.m4 (gl_SERVENT): Likewise.
62387         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
62388         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
62389         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
62390         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
62391         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62392         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
62393         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
62394         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62395         * modules/tsearch-tests (configure.ac): Likewise.
62397 2010-08-26  Bruno Haible  <bruno@clisp.org>
62399         Modernize AC_TRY_COMPILE invocations.
62400         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
62401         AC_TRY_COMPILE.
62402         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
62403         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
62404         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62405         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62406         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62407         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62408         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62409         * m4/lock.m4 (gl_LOCK): Likewise.
62410         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
62411         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62412         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
62413         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
62414         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62415         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
62416         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62417         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
62418         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62419         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62420         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62421         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62422         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
62423         extraneous semicolon.
62425 2010-08-26  Jim Meyering  <meyering@redhat.com>
62427         stat-time: relax license LGPL
62428         * modules/stat-time (License): Change from GPL to LGPL,
62429         with consent from all contributors, for use in libguile.
62430         Requested by Ludovic Courtès.
62432 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
62434         poll: return immediately on POLLHUP.
62435         * lib/poll.c (poll): Always set timeout before wait_timeout is
62436         computed.
62438 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62440         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
62441         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
62442         rmdir ("dir/.//"), unlinkat.
62444 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62446         stdbool: avoid spurious failure with modern xlc
62447         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62449 2010-08-24  Bruno Haible  <bruno@clisp.org>
62451         getloadavg: simplify code
62452         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
62453         gl_have_func. Update comments.
62455 2010-08-24  Eric Blake  <eblake@redhat.com>
62457         getloadavg: don't define SVR4 on cygwin
62458         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
62459         only define SVR4 when -lkvm is required.
62460         Reported by Yaakov Selkowitz.
62462 2010-08-24  Bruno Haible  <bruno@clisp.org>
62464         priv-set: fix comment
62465         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
62467 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62469         priv-set: fix comments
62470         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
62471         to match code, as suggested by David Bartley in:
62472         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
62474 2010-08-23  Eric Blake  <eblake@redhat.com>
62476         stdbool: avoid rejecting clang
62477         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62478         * tests/test-stdbool.c: Enable more tests if using the system
62479         <stdbool.h> instead of the gnulib replacement.
62480         (main): Move xlc bug test to a runtime test for all compilers.
62481         Reported by Anders Kaseorg.
62483         argz: fix shell quoting issue
62484         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
62485         Reported by Charles Wilson.
62487 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
62488             Erik Faye-Lund <kusmabite@gmail.com>
62490         poll, select: handle ERROR_BROKEN_PIPE.
62491         * lib/poll.c (win32_compute_revents): Return POLLHUP when
62492         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62493         * lib/select.c (win32_compute_revents): Do not mark a pipe
62494         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62496 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
62498         fts: allow compilation with C++
62499         * lib/fts_.h: Specify extern "C" linkage with C++.
62501 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62503         Fix gnulib-tool sed script de-commentation for AIX sed.
62504         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
62505         sed.
62507 2010-08-17  Eric Blake  <eblake@redhat.com>
62509         test-stddef: test for (some) offsetof bugs
62510         * tests/test-stddef.c: Enhance test to ensure correct type of
62511         offsetof.
62512         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
62513         that we are not fixing at this time.
62515 2010-08-15  Bruno Haible  <bruno@clisp.org>
62517         stpncpy: Allow stpncpy to be defined as a macro.
62518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
62519         if it's already correctly declared.
62520         * lib/string.in.h (stpncpy): Undefine before redefining.
62521         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
62523 2010-08-14  Bruno Haible  <bruno@clisp.org>
62525         Rename module 'memxfrm' to 'amemxfrm'.
62526         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
62527         (amemxfrm): Renamed from memxfrm.
62528         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
62529         (amemxfrm): Renamed from memxfrm.
62530         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
62531         * NEWS: Mention the change.
62532         * MODULES.html.sh (String handling <string.h>): Update.
62533         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
62534         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
62535         * lib/unicase/u16-casexfrm.c: Likewise.
62536         * lib/unicase/u32-casexfrm.c: Likewise.
62537         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
62538         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
62539         * lib/uninorm/u16-normxfrm.c: Likewise.
62540         * lib/uninorm/u32-normxfrm.c: Likewise.
62541         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
62542         memxfrm.
62543         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
62544         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
62545         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
62546         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
62547         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
62548         Suggested by Paul Eggert.
62550 2010-08-14  Bruno Haible  <bruno@clisp.org>
62552         Tests for module 'astrxfrm'.
62553         * modules/astrxfrm-tests: New file.
62554         * tests/test-astrxfrm.c: New file.
62556         New module 'astrxfrm'.
62557         * lib/astrxfrm.h: New file.
62558         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
62559         * modules/astrxfrm: New file.
62561 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
62563         regex: Tweak doc.
62564         * doc/regex.texi (Overview): Don't mention regex.c.
62565         (GNU Regular Expression Compiling): Likewise.
62566         (Match-end-of-line Operator): Mention 'not_eol'.
62568 2010-08-14  Brian Gough  <bjg@gnu.org>
62569             Bruno Haible  <bruno@clisp.org>
62571         git-merge-changelog: add doc relating to use with bzr and hg.
62572         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
62574 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
62576         pthread: fix pthread.h creation for srcdir != builddir
62577         * modules/pthread (Makefile.am): Fix the rule to work also in a
62578         non-srcdir build.
62580 2010-08-13  Karl Berry  <karl@gnu.org>
62582         * doc/regex.texi (Predefined Syntaxes): @smallexample.
62583         * doc/posix-*/*: force line break before @url of POSIX
62584         specifications.
62585         Suggested by Werner Lemberg.
62587 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62589         strtod: fix const diagnostic
62590         * lib/strtod.c (strtod): Don't assign const char * to char *,
62591         as this elicits a warning from GCC when warnings are enabled.
62593 2010-08-10  Pádraig Brady  <P@draigbrady.com>
62594         and Eric Blake  <eblake@redhat.com>
62596         copy-acl: ignore ENOTSUP on HP-UX
62597         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
62598         so that it is available for HP-UX.
62599         * lib/copy-acl.c (qcopy_acl): Use it.
62600         Reported by Patrick M. Callahan.
62602 2010-08-10  Eric Blake  <eblake@redhat.com>
62604         open, chown: relax license
62605         * modules/open (License): Change to LGPLv2+, with consent by all
62606         authors, for use in augeas.
62607         * modules/chown (License): Likewise.
62608         * modules/lchown (Likewise): Likewise.
62609         Requested by Adam Stokes.
62611 2010-08-09  Karl Berry  <karl@gnu.org>
62613         * build-aux/ar-lib: new file, import from Automake.
62614         * config/srclist.txt: autocheck for updates.
62616 2010-08-09  Eric Blake  <eblake@redhat.com>
62618         readlinkat: adjust client modules
62619         * modules/areadlinkat (Depends-on): Use readlinkat, not
62620         symlinkat.
62621         * modules/areadlinkat-with-size (Depends-on): Likewise.
62623         mknod: be more vocal about danger of running tests as root
62624         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
62625         root, since that is just asking for problems.
62626         Suggested by Bruno Haible, based on a report by Rainer Tammer.
62628         readlinkat: split into its own module
62629         * modules/symlinkat: Split readlinkat...
62630         * modules/readlinkat: ...into separate module.
62631         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
62632         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
62633         * lib/symlinkat.c (readlinkat): Move...
62634         * lib/readlinkat.c: ...into new file.
62635         * modules/symlinkat-tests: Split readlinkat test...
62636         * modules/readlinkat-tests: ...into separate module.
62637         * tests/test-symlinkat.c: Split...
62638         * tests/test-readlinkat.c: ...into new file.
62639         * NEWS: Document the split.
62640         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62641         * lib/unistd.in.h (readlinkat): Likewise.
62642         Suggested by Bruno Haible.
62644 2010-08-08  Bruno Haible  <bruno@clisp.org>
62646         memxfrm: Speed up.
62647         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
62648         that usually only one call to strxfrm is necessary for each string
62649         part.
62650         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62652 2010-08-07  Karl Berry  <karl@gnu.org>
62654         * doc/posix-headers/limits.texi,
62655         * doc/posix-functions/malloc.texi,
62656         * doc/posix-functions/strsignal.texi: missing @item.
62657         * doc/ld-version-script.texi: spurious leading i.
62658         * doc/regex.texi (Interval Operators): no commas inside @var.
62660 2010-08-01  Bruno Haible  <bruno@clisp.org>
62662         Integrate the regex documentation.
62663         * doc/gnulib.texi: Define 'cn' index.
62664         (Regular expressions): New a chapter that includes regex.texi and
62665         regexprops-generic.texi.
62666         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62667         syntax.
62669         Whitespace cleanup.
62670         * doc/regex.texi: Remove trailing spaces.
62672         Add regex documentation.
62673         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62674         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62675         Written by Kathy A. Hargreaves and Karl Berry.
62677 2010-08-01  Bruno Haible  <bruno@clisp.org>
62679         link: Update documentation.
62680         * doc/posix-functions/link.texi: Update regarding Solaris.
62682 2010-07-31  Bruno Haible  <bruno@clisp.org>
62684         Update modules list.
62685         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62686         (String handling <string.h>): Add memcmp2, memxfrm.
62687         (Container data structures): Add xlist, xsublist, xoset.
62688         (Core language properties): Add alignof, unused-parameter.
62689         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62690         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62691         (Unibyte characters <ctype.h>): New section.
62692         (String handling <string.h>): New section.
62693         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62694         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62695         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62696         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62697         tan, tanh, tanl, y0, y1, yn.
62698         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62699         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62700         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62701         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62702         unlockpt, vdprintf, vdprintf-posix.
62703         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62704         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62705         xconcat-filename.
62706         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62707         getdtablesize, pipe2, pipe2-safer.
62708         (Security): New section.
62709         (Networking functions): Add accept4.
62710         (Signal handling): Add sigpipe.
62711         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
62712         mbmemcasecoll.
62713         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62714         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
62715         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
62716         pipe-filter-ii.
62717         (Misc): Add argp-version-etc, login_tty, parse-duration.
62719 2010-07-31  Bruno Haible  <bruno@clisp.org>
62721         Improve doc in MODULES.html.
62722         * modules/linkat (Description): Add the word "function".
62723         * modules/mkfifo (Description): Likewise.
62724         * modules/mknod (Description): Likewise.
62725         * modules/remove (Description): Likewise.
62726         * modules/renameat (Description): Likewise.
62727         * modules/stat (Description): Likewise.
62728         * modules/symlink (Description): Likewise.
62729         * modules/unlink (Description): Likewise.
62731 2010-07-31  Bruno Haible  <bruno@clisp.org>
62733         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
62734         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
62735         option --enable/disable-c++ instead of --enable/disable-cxx.
62736         * NEWS: Mention the change.
62738 2010-07-31  Bruno Haible  <bruno@clisp.org>
62740         readlink, areadlink: Relax test a bit.
62741         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
62742         alternative to ENOTDIR.
62743         * tests/test-areadlink.h (test_areadlink): Likewise.
62744         Reported by Rainer Tammer.
62746 2010-07-31  Bruno Haible  <bruno@clisp.org>
62748         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
62749         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
62750         character, perform the search using U_STRCHR.
62751         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
62752         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
62753         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
62754         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
62755         Suggested by Paolo Bonzini.
62757 2010-07-31  Bruno Haible  <bruno@clisp.org>
62759         unistr/u*-strstr: Fix dependencies.
62760         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
62761         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
62762         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
62764 2010-07-31  Bruno Haible  <bruno@clisp.org>
62766         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
62767         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
62768         the beginning of the loop.
62769         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
62770         cases in 'switch' statement.
62772         unistr/u8-strchr: Fix several bugs.
62773         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
62774         the string. When not found, return NULL, not a pointer near the end.
62776         More tests for unistr/u8-strchr.
62777         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
62778         that the function does not read past the first occurrence of the byte
62779         being searched.
62780         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
62781         * tests/unistr/test-u16-strchr.c (main): New function.
62782         * tests/unistr/test-u32-strchr.c (main): New function.
62784 2010-07-31  Bruno Haible  <bruno@clisp.org>
62786         posix-modules: Ignore backup files of documentation files.
62787         * posix-modules: grep only through files named *.texi.
62789 2010-07-31  Bruno Haible  <bruno@clisp.org>
62791         symlinkat: Fix documentation.
62792         * doc/posix-functions/readlinkat.texi: Fix module name.
62794 2010-07-31  Bruno Haible  <bruno@clisp.org>
62796         fchownat: Replace also when chown has the trailing slash bug.
62797         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
62798         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62799         introduced on 2010-04-10.
62800         Reported by Rainer Tammer.
62802 2010-07-31  Bruno Haible  <bruno@clisp.org>
62804         linkat: Work around AIX 7.1 bug.
62805         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62806         whether linkat handles trailing slash correctly. If not, replace linkat
62807         and define LINKAT_TRAILING_SLASH_BUG.
62808         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62809         check whether (fd1,file1) points to a directory if file1 or file2 ends
62810         in a slash. Code taken from lib/link.c.
62811         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62812         Reported by Rainer Tammer.
62814 2010-07-31  Bruno Haible  <bruno@clisp.org>
62816         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62817         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62818         This disables an xlc optimization that was causing wrong test results.
62819         Reported by Rainer Tammer.
62821 2010-07-31  Bruno Haible  <bruno@clisp.org>
62823         iconv: Work around AIX 6.1..7.1 bug.
62824         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62825         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62826         cross-compiling, guess no on all versions of AIX.
62827         Reported by Rainer Tammer.
62829 2010-07-31  Bruno Haible  <bruno@clisp.org>
62831         readlink: Relax test a bit.
62832         * tests/test-readlink.h (test_readlink): Allow different errno value
62833         when readlink is called with a file name that ends in / and refers to
62834         a file.
62835         Suggested by Eric Blake.
62836         Reported by Rainer Tammer.
62838 2010-07-31  Bruno Haible  <bruno@clisp.org>
62840         copysign: Does not require -lm on glibc systems.
62841         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62842         gl_COMMON_DOUBLE_MATHFUNC.
62843         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62845 2010-07-31  Bruno Haible  <bruno@clisp.org>
62847         duplocale: Work around AIX 7.1 bug.
62848         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62849         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62850         * lib/duplocale.c (rpl_duplocale): Update comment.
62851         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62852         Reported by Rainer Tammer.
62854 2010-07-30  Bruno Haible  <bruno@clisp.org>
62856         dirfd: Avoid link error on AIX 7.1.
62857         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62858         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62859         exist, set REPLACE_DIRFD.
62860         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62861         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62862         * doc/posix-functions/dirfd.texi: Update.
62863         Reported by Rainer Tammer.
62865 2010-07-30  Eric Blake  <eblake@redhat.com>
62867         strtod: next round of AIX fixes
62868         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62869         exponent.
62870         * tests/test-strtod.c (main): Enhance tests.
62871         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62872         Reported by Rainer Tammer.
62874         futimens: fix configure check
62875         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62876         Reported by Bruno Haible.
62878 2010-07-30  Bruno Haible  <bruno@clisp.org>
62880         getline: Update regarding AIX.
62881         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62882         Reported by Rainer Tammer.
62884 2010-07-30  Bruno Haible  <bruno@clisp.org>
62886         wcwidth: Drop replacement on AIX 7.
62887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62888         AIX 7.
62889         Reported by Rainer Tammer.
62891 2010-07-30  Bruno Haible  <bruno@clisp.org>
62893         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62895         a 'char *'.
62896         Reported by Rainer Tammer.
62898 2010-07-30  Bruno Haible  <bruno@clisp.org>
62900         unlink: Update regarding AIX.
62901         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62902         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62903         Reported by Rainer Tammer.
62905 2010-07-30  Bruno Haible  <bruno@clisp.org>
62907         symlink: Update regarding AIX.
62908         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62909         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62910         Reported by Rainer Tammer.
62912 2010-07-30  Bruno Haible  <bruno@clisp.org>
62914         strndup: Update regarding AIX.
62915         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62916         AIX 7.
62917         Reported by Rainer Tammer.
62919 2010-07-30  Bruno Haible  <bruno@clisp.org>
62921         stat: Update regarding AIX.
62922         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62923         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62924         Reported by Rainer Tammer.
62926 2010-07-30  Bruno Haible  <bruno@clisp.org>
62928         truncl: Fix autoconf test.
62929         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62930         whether truncl works.
62931         Reported by Rainer Tammer.
62933 2010-07-30  Bruno Haible  <bruno@clisp.org>
62935         round: Update regarding AIX.
62936         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62937         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62938         Reported by Rainer Tammer.
62940 2010-07-30  Bruno Haible  <bruno@clisp.org>
62942         rename: Update regarding AIX.
62943         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62944         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62945         Reported by Rainer Tammer.
62947 2010-07-30  Bruno Haible  <bruno@clisp.org>
62949         printf.m4: Update regarding AIX.
62950         * m4/printf.m4: Update comments regarding AIX.
62951         Reported by Rainer Tammer.
62953 2010-07-30  Bruno Haible  <bruno@clisp.org>
62955         iconv: Update regarding AIX.
62956         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62957         AIX 7.
62958         Reported by Rainer Tammer.
62960 2010-07-30  Bruno Haible  <bruno@clisp.org>
62962         getopt: Update regarding AIX.
62963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62964         no on AIX.
62965         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62966         Reported by Rainer Tammer.
62968 2010-07-30  Bruno Haible  <bruno@clisp.org>
62970         ldexpl; Update regarding AIX.
62971         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62972         on AIX 7.
62973         Reported by Rainer Tammer.
62975 2010-07-30  Bruno Haible  <bruno@clisp.org>
62977         frexpl: Update regarding AIX.
62978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62979         on AIX 7.
62980         Reported by Rainer Tammer.
62982 2010-07-30  Bruno Haible  <bruno@clisp.org>
62984         open, fopen: Update regarding AIX.
62985         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62986         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62987         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62988         * doc/posix-functions/fopen.texi: Likewise.
62989         Reported by Rainer Tammer.
62991 2010-07-30  Bruno Haible  <bruno@clisp.org>
62993         chown: Update doc regarding AIX.
62994         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62995         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62996         Reported by Rainer Tammer.
62998 2010-07-30  Eric Blake  <eblake@redhat.com>
63000         strtod: fix bug in replacement function on AIX
63001         * lib/strtod.c (strtod): Special case broken "0x" parse in
63002         underlying strtod.
63003         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
63004         * doc/posix-functions/strtod.texi (strtod): Likewise.
63005         Reported by Rainer Tammer.
63007 2010-07-30  Bruno Haible  <bruno@clisp.org>
63009         mbrlen: Fix cross-compilation guess for AIX.
63010         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
63011         guess. Leftover from 2008-12-22.
63013 2010-07-30  Bruno Haible  <bruno@clisp.org>
63015         mbrtowc: Fix cross-compilation guess for AIX.
63016         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
63017         guess. Leftover from 2008-12-21.
63019 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
63021         init.sh: work around trap limitation of some shells
63022         * tests/init.sh (setup_): Move exit trap outside of shell function.
63024 2010-07-29  Eric Blake  <eblake@redhat.com>
63026         strtod: aid debugging
63027         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
63028         understanding why strtod is rejected.
63030 2010-07-28  Bruno Haible  <bruno@clisp.org>
63032         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
63033         * lib/unistr/u8-chr.c: Include <string.h>.
63034         * tests/unistr/test-u8-chr.c: Likewise.
63035         * tests/unistr/test-u16-chr.c: Likewise.
63036         * tests/unistr/test-u32-chr.c: Likewise.
63037         * tests/unistr/test-u8-strchr.c: Likewise.
63038         * tests/unistr/test-u16-strchr.c: Likewise.
63039         * tests/unistr/test-u32-strchr.c: Likewise.
63040         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
63041         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
63042         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
63043         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
63045 2010-07-28  Bruno Haible  <bruno@clisp.org>
63047         Use spaces for indentation, not tabs.
63048         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
63050 2010-07-27  Bruno Haible  <bruno@clisp.org>
63052         mbspcasecmp: Fix function specification.
63053         * lib/string.in.h (mbspcasecmp): Fix specification comment.
63054         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
63055         Reported by Eric Blake <eblake@redhat.com>.
63057 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
63059         timespec: use cast and not conditional, as truncation isn't possible
63060         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
63061         instead of a conditional.  Comment about the situation in more detail.
63062         This undoes most of the 2009-10-29 patch.
63064 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
63066         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
63067         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
63068         * lib/unistr/u8-strchr.c: Likewise.
63069         * modules/unistr/u8-chr: Depend on memchr.
63071         unistr/u*-strchr: add tests
63072         * modules/unistr/u8-strchr-tests: New file.
63073         * modules/unistr/u16-strchr-tests: New file.
63074         * modules/unistr/u32-strchr-tests: New file.
63075         * tests/unistr/test-strchr.h: New file.
63076         * tests/unistr/test-u8-strchr.c: New file.
63077         * tests/unistr/test-u16-strchr.c: New file.
63078         * tests/unistr/test-u32-strchr.c: New file.
63080         unistr/u*-chr: test multibyte sequences more
63081         * tests/unistr/test-chr.h: Do complete testing of the characters in the
63082         test vector.
63083         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
63084         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
63085         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
63087         unistr/u*-chr: test multibyte sequences
63088         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
63090         unistr/u*-chr: prepare for multibyte tests
63091         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
63092         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
63093         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
63094         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
63095         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
63096         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
63098 2010-07-18  Bruno Haible  <bruno@clisp.org>
63100         unistr/u8-strchr: Optimize non-ASCII argument case.
63101         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
63102         because the first byte often matches anyway.
63103         Reported by Pádraig Brady <P@draigbrady.com>.
63105 2010-07-15  Karl Berry  <karl@gnu.org>
63107         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
63109 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
63111         getcwd: on Solaris, work better if ancestors are inaccessible
63112         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
63113         buffer and size, try again with a large buffer.  This works better
63114         on Solaris, since its getcwd succeeds even if the path to the root
63115         is inaccessible, and this is helpful in common cases such as .zfs
63116         hidden directories.  Problem reported by J Chapman Flack in
63117         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
63118         Use system getcwd if it's declared, not merely if it's partly
63119         working; use the partly-working test only to avoid needless effort
63120         if the system getcwd fails.
63121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
63122         comment that was already obsolete and is now even more obsolete.
63123         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
63124         now might call strdup.
63126 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
63128         pthread: Add enough so that coreutils/src/sort.c compiles.
63129         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
63130         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
63131         gnulib. Include <sched.h> and <time.h>, as per POSIX.
63132         Include <sys/types.h>, in case it defines pthread_t.
63133         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
63134         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
63135         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
63136         (pthread_rwlockattr_t, pthread_spinlock_t):
63137         New typedefs, if HAVE_PTHREAD_T is not defined.
63138         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
63139         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
63140         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
63141         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
63142         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
63143         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
63144         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
63145         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
63146         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
63147         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
63148         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
63149         New macros.
63150         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
63151         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
63152         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
63153         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
63154         (pthread_spin_unlock): New dummy functions.
63155         (pthread_create): Return EAGAIN; don't set errno.
63156         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
63157         require AC_C_INLINE.
63158         * modules/pthread (Depends-on): Add sched, time.
63159         (pthread.h): Use AM_V_GEN.
63161 2010-07-13  Bruno Haible  <bruno@clisp.org>
63163         striconveh: Don't malloc memory if the result buffer is sufficient.
63164         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
63165         buffer if its size is sufficient.
63166         Reported by Ludovic Courtès <ludo@gnu.org>.
63168 2010-07-13  Bruno Haible  <bruno@clisp.org>
63170         strtod: Add safety check.
63171         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
63173 2010-07-12  Bruno Haible  <bruno@clisp.org>
63175         Unify tests that set gl_cv_func_ldexpl_no_libm.
63176         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
63177         gl_FUNC_LDEXPL.
63178         (gl_FUNC_LDEXPL): Invoke it.
63179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63181 2010-07-12  Bruno Haible  <bruno@clisp.org>
63183         Unify tests that set gl_cv_func_ldexp_no_libm.
63184         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
63185         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
63186         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
63187         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63188         * modules/strtod (Files): Add m4/ldexp.m4.
63190 2010-07-12  Bruno Haible  <bruno@clisp.org>
63192         Unify tests that set gl_cv_func_frexpl_no_libm.
63193         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
63194         gl_FUNC_FREXPL_NO_LIBM.
63195         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
63196         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63198 2010-07-12  Bruno Haible  <bruno@clisp.org>
63200         Unify tests that set gl_cv_func_frexp_no_libm.
63201         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
63202         gl_FUNC_FREXP_NO_LIBM.
63203         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
63204         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
63206 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63208         memcoll: clarify sizes versus lengths, document better, and tweak perf
63209         * lib/memcoll.c (strcoll_loop, memcoll0):
63210         Improve quality of descriptive comments.  Name variables
63211         consistently as to whether they are lengths (which do not include
63212         terminating null) versus sizes (which do).
63213         * lib/xmemcoll.c (xmemcoll0): Likewise.
63214         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
63215         returned when s1size == 0; this is easier to compile and saves
63216         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
63218 2010-07-12  Bruno Haible  <bruno@clisp.org>
63220         Tests for module '_Exit'.
63221         * modules/_Exit-tests: New file.
63222         * tests/test-_Exit.sh: New file.
63223         * tests/test-_Exit.c: New file.
63225         New module '_Exit'.
63226         * lib/stdlib.in.h (__attribute__): New macro.
63227         (_Exit): New declaration.
63228         * lib/_Exit.c: New file.
63229         * m4/_Exit.m4: New file.
63230         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
63231         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
63232         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
63233         * modules/_Exit: New file.
63234         * tests/test-stdlib-c++.cc (_Exit): Check signature.
63235         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
63237 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63239         strtod: make it more-accurate typically, and don't require libm
63240         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
63241         Include limits.h.  Don't include string.h.
63242         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
63243         (locale_isspace): New function, so that no casts are needed to
63244         check whether *s is a space.
63245         (ldexp): Provide an unused dummy if not available.
63246         (scale_radix_exp, parse_number, underlying_strtod): New functions.
63247         (strtod): Use them.  This implementation prefers to use the
63248         underlying strtod if available, falling back on our own code
63249         only to fix known bugs.  This is more likely to produce an
63250         accurate result.  Also, it avoids the use of libm functions.
63251         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
63252         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
63253         was absent, but it caused a test failure with coreutils.
63254         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
63255         with libm.
63256         * modules/strtod (Makefile.am, Link): libm is no longer needed.
63257         * modules/strtod-tests (Makefile.am): Likewise.
63259 2010-07-11  Pádraig Brady  <P@draigBrady.com>
63260             Bruno Haible  <bruno@clisp.org>
63262         unistr/u8-strchr: Optimize ASCII argument case.
63263         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
63265 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63267         (x)memcoll: minor tweaks
63268         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
63269         is after the type that it qualifies.
63270         (memcoll0): Likewise.
63271         * lib/memcoll.h (memcoll0): Likewise.
63272         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
63273         * lib/xmemcoll.h (xmemcoll0): Likewise.
63274         * lib/memcoll.c (memcoll0): Correct the comment.  This function
63275         differs from memcoll in that the NUL byte is part of the argument.
63276         Omit the abort-checks, as performance is a real issue here.  Plus,
63277         the checks were wrong anyway (an off-by-one error).  Omit local
63278         variable 'diff', as it's a bit clearer that way.
63279         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
63280         no longer needed.
63282 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
63284         (x)memcoll: speedup when input is known to be NUL delimited
63285         * lib/memcoll.c: Include stdlib.
63286         (memcoll0): New function.
63287         (strcoll_loop): New function, refactored for use in both memcoll
63288         and memcoll0.
63289         * lib/memcoll.h (memcoll0): Add prototype.
63290         * lib/xmemcoll.c (xmemcoll0): New function.
63291         (collate_error): New function, refactored for use in both xmemcoll
63292         and xmemcoll0.
63293         * lib/xmemcoll.h (xmemcoll0): Add prototype.
63294         * m4/memcoll.m4: add inline invocation.
63296 2010-07-06  Pádraig Brady  <P@draigBrady.com>
63298         * build-aux/bootstrap: Remove any local translations
63299         from the translation project synchronization directory,
63300         so that local only translations are not distributed.
63302 2010-07-04  Bruno Haible  <bruno@clisp.org>
63304         fsusage: Clarify which code applies to which platforms.
63305         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
63306         platform.
63307         * lib/fsusage.c (get_fs_usage): Likewise.
63309 2010-07-04  Bruno Haible  <bruno@clisp.org>
63311         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
63312         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
63313         Reported by Martin Lambers <marlam@marlam.de>.
63315 2010-07-04  Jim Meyering  <meyering@redhat.com>
63317         hash: once again explicitly disallow insertion of NULL
63318         * lib/hash.c (hash_insert0): Reinstate just-removed test:
63319         inserting a NULL pointer cannot work with these functions.
63320         Add a comment with details.
63321         This reverts part of the 2010-07-01 commit, 5bef1a35
63322         "hash: extend module to deal with non-pointer keys".
63324 2010-07-01  Bruno Haible  <bruno@clisp.org>
63326         stdbool: Update doc.
63327         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
63328         Info from Christian Weisgerber <naddy@mips.inka.de>.
63330 2010-07-01  Jim Meyering  <meyering@redhat.com>
63332         hash: extend module to deal with non-pointer keys
63333         * lib/hash.c (hash_insert0): New interface, much like hash_insert
63334         but that allows insertion of non-pointer entries.
63335         Do not disallow an ENTRY value of NULL.
63336         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
63337         * lib/hash.h (hash_insert0): Declare.
63339 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63341         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
63342         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
63343         not present (i.e. with autoconf 2.59 and when using gettextize, not
63344         gnulib), require AC_GNU_SOURCE instead.
63346 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
63348         idpriv-drop: Fix tests.
63349         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
63350         not to the test-idpriv-droptemp program.
63352 2010-06-29  Bruno Haible  <bruno@clisp.org>
63354         string: Fix syntax error with g++ 2.96.
63355         * lib/string.in.h (__pure__): Remove definition.
63356         (_GL_ATTRIBUTE_PURE): New macro.
63357         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
63358         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
63359         Reported by Christian Weisgerber <naddy@mips.inka.de>.
63361 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
63363         unitypes: Fix bug introduced on 2010-05-18.
63364         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
63366 2010-06-22  Eric Blake  <eblake@redhat.com>
63368         memmem: slight optimization
63369         * lib/str-two-way.h (critical_factorization): Update comments.
63370         Reduce work during factorization phase.
63371         Reported by Carlos Bueno <carlos@bueno.org>.
63373 2010-06-21  Bruno Haible  <bruno@clisp.org>
63375         Fix HAVE_CALLOC_POSIX misnomer.
63376         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
63377         !HAVE_CALLOC_POSIX.
63378         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
63379         HAVE_CALLOC_POSIX.
63380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
63381         instead of HAVE_CALLOC_POSIX.
63382         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
63383         HAVE_CALLOC_POSIX.
63385         Use modern idiom for calloc() replacement.
63386         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
63387         AC_FUNC_CALLOC.
63388         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
63389         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
63390         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63391         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
63392         (gl_REPLACE_CALLOC): New macro.
63394 2010-06-21  Bruno Haible  <bruno@clisp.org>
63396         Fix HAVE_REALLOC_POSIX misnomer.
63397         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
63398         !HAVE_REALLOC_POSIX.
63399         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
63400         HAVE_REALLOC_POSIX.
63401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
63402         instead of HAVE_REALLOC_POSIX.
63403         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
63404         HAVE_REALLOC_POSIX.
63406         Use modern idiom for realloc() replacement.
63407         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
63408         AC_FUNC_REALLOC.
63409         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
63410         Autoconf's AC_FUNC_REALLOC.
63411         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63412         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
63413         (gl_REPLACE_REALLOC): New macro.
63414         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63416 2010-06-21  Bruno Haible  <bruno@clisp.org>
63418         Fix HAVE_MALLOC_POSIX misnomer.
63419         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
63420         !HAVE_MALLOC_POSIX.
63421         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
63422         HAVE_MALLOC_POSIX.
63423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
63424         instead of HAVE_MALLOC_POSIX.
63425         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
63426         HAVE_MALLOC_POSIX.
63428         Use modern idiom for malloc() replacement.
63429         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
63430         AC_FUNC_MALLOC.
63431         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
63432         Autoconf's AC_FUNC_MALLOC.
63433         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63434         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
63435         (gl_REPLACE_MALLOC): New macro.
63436         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63438 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
63440         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
63441         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
63442         This macro takes 3 arguments, not 4.
63444 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
63446         ipv6: fix detection under mingw
63447         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
63448         in6_addr.
63450 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
63452         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
63453         that strtod() works when cross-compiling to a glibc version known
63454         to work.
63456 2010-06-15  Bruno Haible  <bruno@clisp.org>
63458         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
63460 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
63462         select: Correct timeout.
63463         * lib/select.c (rpl_select): Compute wait_timeout correctly.
63465 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63467         git-version-gen: init shell var to avoid env var influence
63468         * build-aux/git-version-gen (v): Init shell var to empty.
63470 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
63472         priv-set: Don't assume that priv.h exists merely because getppriv does.
63473         See Jan Andersen's bug report about AIX 5L in
63474         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
63475         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
63476         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
63477         * lib/priv-set.h: Likewise.
63478         * tests/test-priv-set.c: Likewise.
63480 2010-06-13  Bruno Haible  <bruno@clisp.org>
63482         relocatable: Make it easier to test whether to install wrappers.
63483         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
63484         RELOCATABLE_VIA_WRAPPER.
63486 2010-06-13  Bruno Haible  <bruno@clisp.org>
63488         gnulib-tool: Display specified modules and dependencies differently.
63489         * gnulib-tool (func_show_module_list): New function.
63490         (func_import, func_create_testdir): Invoke it.
63491         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
63493 2010-06-13  Bruno Haible  <bruno@clisp.org>
63495         gnulib-tool: Align code of func_import and func_create_testdir.
63496         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
63497         specified_modules.
63499 2010-06-12  Jim Meyering  <meyering@redhat.com>
63501         test-inttostr: avoid spurious failure on Solaris 9
63502         * tests/test-inttostr.c (main): Skip the test when snprintf fails
63503         to accept "%ju".  Reported by Bruno Haible.
63505 2010-06-11  Jim Meyering  <meyering@redhat.com>
63507         test-sys_socket: mark variables as used more readably
63508         * tests/test-sys_socket.c (main): Mark otherwise unused variables
63509         as "used" explicitly via (void) statement casts.  This is more
63510         readable than using them in an artificial return expression.
63511         Suggestion from Bruno Haible.
63513 2010-06-11  Bruno Haible  <bruno@clisp.org>
63515         Avoid some more warnings from "gcc -Wwrite-strings".
63516         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
63517         to 'const char *'.
63518         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
63519         * tests/test-c-strcasestr.c (main): Likewise.
63520         * tests/test-mbscasestr1.c (main): Likewise.
63521         * tests/test-mbscasestr2.c (main): Likewise.
63522         * tests/test-memmem.c (main): Likewise.
63523         * tests/test-strstr.c (main): Likewise.
63524         * tests/test-strcasestr.c (main): Likewise.
63526 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63528         init.sh: change framework_failure_ to fail with status 99, not 1
63529         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
63530         automake's parallel-tests rule that this is an unexpected failure,
63531         even if the test is listed in XFAIL_TESTS.
63533 2010-06-11  Jim Meyering  <meyering@redhat.com>
63535         test-inttostr: avoid warnings about 4-6KB literal strings
63536         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
63537         Include "macros.h", for its definition of ASSERT.
63538         (CK): s/assert/ASSERT/
63539         * modules/inttostr-tests (Files): Add macros.h.
63541         init.sh: don't use $ME_ or skip_ before they are defined
63542         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
63543         their first uses.  Also hoist their companions: warn_, fail_,
63544         framework_failure_, $stderr_fileno.  Prompted by a patch from
63545         Stefano Lattarini.
63547         test-sys_socket: avoid set-but-not-used warnings from gcc
63548         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
63549         avoid warning about set-but-not-used variables.
63551         test-xvasprintf: avoid 'const' discard warnings
63552         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
63553         "const" when assigning from literal strings.
63554         (test_xasprintf): Add "void" in function argument list to placate
63555         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
63557         tests: avoid compilation warnings in argmatch and exclude tests...
63558         in packages that define ARGMATCH_DIE_DECL, like coreutils.
63559         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
63560         Since it always exits, declare with the "noreturn" attribute.
63561         * tests/test-argmatch.c: Likewise.
63563         tests: avoid 'const' discard warnings in mbsstr tests
63564         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
63565         * tests/test-mbsstr2.c (main): Likewise.
63567         test-verify: avoid warning from gcc's -Wmissing-declarations
63568         * tests/test-verify.c (function): Declare to be static.
63570         test-inttostr.c: include <string.h> for use of strcmp
63571         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
63573         test-linkat: avoid failed assertion on "other" architectures
63574         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
63575         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
63576         sparc: https://bugs.launchpad.net/bugs/591968
63578 2010-06-11  Jim Meyering  <meyering@redhat.com>
63580         printf.m4: avoid autoconf's "Expanded Before Required" warning
63581         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
63582         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
63583         autoconf warning.
63585 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
63587         Replacement header templates are now named with ".in", not "_".
63588         * doc/gnulib-intro.texi: Correct.
63590 2010-06-10  Jim Meyering  <meyering@redhat.com>
63592         inttostr-tests: depend on snprintf, not snprintf-posix
63593         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
63594         snprintf-posix, to avoid this aclocal failure:
63595           missing file gnulib-tests/vasnprintf.c
63596           configure.ac:45: error: expected source file, required through \
63597           AC_LIBSOURCES, not found
63599 2010-06-10  Jim Meyering  <meyering@redhat.com>
63601         inttostr: add a new function, inttostr, and tests
63602         The namesake function was not available.  The existence of the
63603         template file, inttostr.c makes its addition nontrivial.
63604         * lib/anytostr.c: Rename from inttostr.c.
63605         (anytostr): Rename from inttostr.
63606         * lib/inttostr.c: New file.
63607         * modules/inttostr (Files): Add anytostr.c.
63608         (Makefile.am): Set lib_SOURCES instead of ...
63609         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
63610         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
63611         * lib/offtostr.c: Likewise.
63612         * lib/uinttostr.c: Likewise.
63613         * lib/umaxtostr.c: Likewise.
63614         * modules/inttostr-tests: New file.
63615         * tests/test-inttostr.c: New file.  Test these functions.
63617 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
63618             Bruno Haible  <bruno@clisp.org>
63620         Add "Extending Gnulib" chapter to manual.
63621         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
63622         chapter.
63623         (Extending Gnulib): New chapter.
63624         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
63625         chapter.
63627 2010-06-09  Bruno Haible  <bruno@clisp.org>
63629         Avoid relocwrapper link errors due to gnulib replacement functions.
63630         * lib/areadlink.c: Use the system's malloc, realloc functions.
63631         (areadlink): Set errno to ENOMEM explicitly.
63632         * modules/areadlink (Depends-on): Remove malloc-posix.
63633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63635 2010-06-09  Bruno Haible  <bruno@clisp.org>
63637         Avoid relocwrapper link errors due to gnulib replacement functions.
63638         * lib/canonicalize-lgpl.c: Use the system's malloc function.
63639         * lib/malloca.c: Likewise.
63640         * lib/relocatable.c: Likewise.
63641         * lib/progreloc.c: Use the system's malloc, sprintf functions.
63642         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
63643         * lib/setenv.c: Use the system's malloc, realloc functions.
63644         * lib/strerror.c: Use the system's sprintf function.
63645         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63647 2010-06-04  Bruno Haible  <bruno@clisp.org>
63649         Prefer documented low-level autoconf macro names.
63650         * m4/lib-link.m4: Use m4_translit instead of translit.
63651         * m4/environ.m4: Likewise.
63652         * m4/mathfunc.m4: Likewise.
63653         * m4/onceonly.m4: Likewise.
63654         * m4/stdint.m4: Likewise.
63655         Suggested by Eric Blake.
63657 2010-06-04  Martin Lambers  <marlam@marlam.de>
63658             Bruno Haible  <bruno@clisp.org>
63660         havelib: Allow library names with '+' characters.
63661         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63662         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
63664 2010-06-09  Bruno Haible  <bruno@clisp.org>
63666         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63667         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63668         realloc failed.
63670 2010-06-08  Peter Simons  <simons@cryp.to>
63672         maint.mk: make the news-check rule more configurable
63673         * top/maint.mk (news-check-lines-spec): New variable.
63674         (news-check): Use "sed -n 1,10p" in place of "head".
63676 2010-06-07  Jim Meyering  <meyering@redhat.com>
63678         do-release-commit-and-tag: fix typo in --help
63679         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63681         regex: avoid new dead-code warning with gcc-4.6.0
63682         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63683         if-block containing a while-loop.  It's been unused for at least
63684         5 years.
63686 2010-06-05  Bruno Haible  <bruno@clisp.org>
63688         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63689         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63691 2010-06-04  Bruno Haible  <bruno@clisp.org>
63693         Update to GNU gettext 0.18.1.
63694         * modules/gettext (configure.ac): Require gettext infrastructure from
63695         version 0.18.1.
63697 2010-06-03  Bruno Haible  <bruno@clisp.org>
63699         Don't use AC_LIBOBJ with file names in subdirectories.
63700         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63701         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63702         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63703         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63704         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63705         gl_LIBUNISTRING_LIBSOURCE.
63706         (Makefile.am): Augment lib_SOURCES here, conditionally.
63707         * NEWS: Drop requirement for Automake option 'subdir-objects'.
63709 2010-06-03  Bruno Haible  <bruno@clisp.org>
63711         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
63712         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
63713         expansion does not end with a newline.
63714         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
63715         unnecessary newline.
63717 2010-06-03  Bruno Haible  <bruno@clisp.org>
63719         Reduce dependencies.
63720         * tests/test-quotearg.h: New file, extracted from
63721         tests/test-quotearg.c.
63722         * tests/test-quotearg-simple.c: New file, extracted from
63723         tests/test-quotearg.c.
63724         * tests/test-quotearg.c: Don't include <ctype.h>.
63725         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
63726         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
63727         use_quote_double_quotes, use_quotearg_colon): Moved to
63728         tests/test-quotearg.h.
63729         (results_g, flag_results, custom_quotes, custom_results): Moved
63730         to tests/test-quotearg-simple.c.
63731         (main): Moved the part that does not depend on gettext to
63732         tests/test-quotearg-simple.c. Return 77 if the test cannot be
63733         performed.
63734         * modules/quotearg-simple: New file.
63735         * modules/quotearg-simple-tests: New file.
63736         * modules/quotearg (Depends-on): Add quotearg-simple.
63737         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
63738         (Files): Add tests/test-quotearg.h.
63739         Reported by Paolo Bonzini.
63741 2010-06-03  Bruno Haible  <bruno@clisp.org>
63743         Reduce dependencies.
63744         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
63746 2010-06-03  Bruno Haible  <bruno@clisp.org>
63748         time: Undefine more broken macros.
63749         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
63750         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
63751         Reported by Eric Blake.
63753 2010-06-03  Bruno Haible  <bruno@clisp.org>
63755         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
63756         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
63757         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
63758         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
63759         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
63760         Reported by Ludovic Courtès <ludo@gnu.org>.
63762 2010-06-02  Eric Blake  <eblake@redhat.com>
63764         time: work with mingw + pthreads-win32 library
63765         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
63766         if timespec is defined only in pthread.h.
63767         * modules/time (Makefile.am): Substitute it.
63768         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
63769         <pthread.h>, when needed.
63770         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
63771         from the library.
63773 2010-05-31  Bruno Haible  <bruno@clisp.org>
63775         Avoid expanding two macros in the wrong order.
63776         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
63777         gl_LIBUNISTRING if it is defined.
63778         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
63779         autoconf >= 2.64.
63780         Reported by Ludovic Courtès <ludo@gnu.org>.
63782 2010-05-27  Jim Meyering  <meyering@redhat.com>
63784         maint.mk: also prohibit "#undef" of always-defined symbols
63785         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
63786         Allow more than one space before the symbol name.
63787         (sc_prohibit_always-defined_macros): Use grep's -E, now that
63788         the regexp uses alternation.
63790 2010-05-26  Eric Blake  <eblake@redhat.com>
63792         maint.mk: avoid echo -e
63793         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
63794         Convert all uses of echo -* to printf.
63795         Reported by Matthias Bolte.
63797 2010-05-25  Bruno Haible  <bruno@clisp.org>
63799         Update to GNU gettext 0.18, part 2.
63800         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
63801         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
63803 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63805         Add missing include in test-pwrite.c.
63806         * tests/test-pwrite.c: Include string.h, for strcmp.
63808 2010-05-24  Bruno Haible  <bruno@clisp.org>
63810         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63812 2010-05-24  Bruno Haible  <bruno@clisp.org>
63814         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63815         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63816         iconveh_error argument.
63817         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63818         U_STRCONV_TO_LOCALE.
63819         * lib/unistr/u16-strcoll.c: Likewise.
63820         * lib/unistr/u32-strcoll.c: Likewise.
63821         * modules/unistr/u8-strcoll (Depends-on): Add
63822         uniconv/u8-strconv-to-enc, localcharset. Remove
63823         uniconv/u8-strconv-to-locale.
63824         (configure.ac): Bump version number.
63825         * modules/unistr/u16-strcoll (Depends-on): Add
63826         uniconv/u16-strconv-to-enc, localcharset. Remove
63827         uniconv/u16-strconv-to-locale.
63828         (configure.ac): Bump version number.
63829         * modules/unistr/u32-strcoll (Depends-on): Add
63830         uniconv/u32-strconv-to-enc, localcharset. Remove
63831         uniconv/u32-strconv-to-locale.
63832         (configure.ac): Bump version number.
63834 2010-05-24  Bruno Haible  <bruno@clisp.org>
63836         Avoid a test failure on NetBSD 5.0.
63837         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63838         an iconv() bug.
63840 2010-05-24  Bruno Haible  <bruno@clisp.org>
63842         Adjust #include directive style.
63843         * modules/regex (Includes): Recommend to write <regex.h>.
63845 2010-05-24  Bruno Haible  <bruno@clisp.org>
63847         regex: Don't require alloca.
63848         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63849         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63850         only inside if (0).
63852 2010-05-23  Jim Meyering  <meyering@redhat.com>
63854         test-renameat.c: include <sys/stat.h>
63855         * tests/test-renameat.c: Include <sys/stat.h>; required for
63856         definition of S_IS* macros.
63858 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63860         Update maintainer documentation for 'relocatable-prog' module.
63861         * doc/relocatable-maint.texi: Update.
63862         Comments by Bruno Haible.
63864 2010-05-23  Bruno Haible  <bruno@clisp.org>
63866         git-merge-changelog: Enable --split-merged-entry by default.
63867         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63868         (usage): Don't mention this option any more.
63869         Reported by Ralf Wildenhues.
63871 2010-05-23  Jim Meyering  <meyering@redhat.com>
63873         test-pwrite: do not leave behind a test file named "out"
63874         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63875         The trivial-looking use of init.sh is really necessary.
63876         It ensures that the temporary file, "out", is created in
63877         a temporary directory, and removed upon termination.
63878         * tests/test-pwrite.sh: Re-add file.
63879         * modules/pwrite-tests: Reference it.
63881 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63883         Fix output redirection buglet in init.sh.
63884         * tests/init.sh: Fix redirection of stderr.
63886 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63888         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63890 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63892         * modules/valgrind-tests: New file.
63893         * m4/valgrind-tests.m4: New file.
63894         * doc/valgrind-tests.texi: New file.
63895         * doc/gnulib.texi (Running self-tests under valgrind): New
63896         section.
63898 2010-05-19  Bruno Haible  <bruno@clisp.org>
63900         Clean up dead code in recent commit.
63901         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63902         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63903         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63904         Suggested by Paolo Bonzini.
63906 2010-05-19  Bruno Haible  <bruno@clisp.org>
63908         Avoid valgrind error reports from libunistring.
63909         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63910         * modules/libunistring (Files): Add it.
63911         * modules/libunistring-optional (Files): Likewise.
63913 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63914             Bruno Haible  <bruno@clisp.org>
63916         New module 'libunistring-optional'.
63917         * modules/libunistring-optional: New file.
63918         * m4/libunistring-base.m4: New file.
63919         * m4/libunistring-optional.m4: New file.
63920         * lib/unicase.in.h: Renamed from lib/unicase.h.
63921         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63922         * lib/unictype.in.h: Renamed from lib/unictype.h.
63923         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63924         * lib/uniname.in.h: Renamed from lib/uniname.h.
63925         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63926         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63927         * lib/unistr.in.h: Renamed from lib/unistr.h.
63928         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63929         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63930         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63931         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63932         gl_LIBUNISTRING. If the library was found, determine the installed
63933         version and set LIBUNISTRING_VERSION.
63934         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63935         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63936         handle a configuration option --with-included-libunistring.
63937         * modules/libunistring (Files): Add m4/absolute-header.m4.
63938         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63939         Add m4/libunistring-base.m4.
63940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63941         (Makefile.am): Build unicase.h from unicase.in.h.
63942         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63943         Add m4/libunistring-base.m4.
63944         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63945         (Makefile.am): Build uniconv.h from uniconv.in.h.
63946         * modules/unictype/base (Files): Use unictype.in.h instead of
63947         unictype.h. Add m4/libunistring-base.m4.
63948         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63949         (Makefile.am): Build unictype.h from unictype.in.h.
63950         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63951         Add m4/libunistring-base.m4.
63952         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63953         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63954         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63955         Add m4/libunistring-base.m4.
63956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63957         (Makefile.am): Build uniname.h from uniname.in.h.
63958         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63959         Add m4/libunistring-base.m4.
63960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63961         (Makefile.am): Build uninorm.h from uninorm.in.h.
63962         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63963         unistdio.h. Add m4/libunistring-base.m4.
63964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63965         (Makefile.am): Build unistdio.h from unistdio.in.h.
63966         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63967         Add m4/libunistring-base.m4.
63968         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63969         (Makefile.am): Build unistr.h from unistr.in.h.
63970         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63971         Add m4/libunistring-base.m4.
63972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63973         (Makefile.am): Build unitypes.h from unitypes.in.h.
63974         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63975         Add m4/libunistring-base.m4.
63976         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63977         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63978         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63979         uniwidth.h. Add m4/libunistring-base.m4.
63980         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63981         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63982         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63983         instead of augmenting lib_SOURCES.
63984         * modules/unicase/empty-suffix-context: Likewise.
63985         * modules/unicase/locale-language: Likewise.
63986         * modules/unicase/tolower: Likewise.
63987         * modules/unicase/totitle: Likewise.
63988         * modules/unicase/toupper: Likewise.
63989         * modules/unicase/u8-casecmp: Likewise.
63990         * modules/unicase/u8-casecoll: Likewise.
63991         * modules/unicase/u8-casefold: Likewise.
63992         * modules/unicase/u8-casexfrm: Likewise.
63993         * modules/unicase/u8-ct-casefold: Likewise.
63994         * modules/unicase/u8-ct-tolower: Likewise.
63995         * modules/unicase/u8-ct-totitle: Likewise.
63996         * modules/unicase/u8-ct-toupper: Likewise.
63997         * modules/unicase/u8-is-cased: Likewise.
63998         * modules/unicase/u8-is-casefolded: Likewise.
63999         * modules/unicase/u8-is-lowercase: Likewise.
64000         * modules/unicase/u8-is-titlecase: Likewise.
64001         * modules/unicase/u8-is-uppercase: Likewise.
64002         * modules/unicase/u8-prefix-context: Likewise.
64003         * modules/unicase/u8-suffix-context: Likewise.
64004         * modules/unicase/u8-tolower: Likewise.
64005         * modules/unicase/u8-totitle: Likewise.
64006         * modules/unicase/u8-toupper: Likewise.
64007         * modules/unicase/u16-casecmp: Likewise.
64008         * modules/unicase/u16-casecoll: Likewise.
64009         * modules/unicase/u16-casefold: Likewise.
64010         * modules/unicase/u16-casexfrm: Likewise.
64011         * modules/unicase/u16-ct-casefold: Likewise.
64012         * modules/unicase/u16-ct-tolower: Likewise.
64013         * modules/unicase/u16-ct-totitle: Likewise.
64014         * modules/unicase/u16-ct-toupper: Likewise.
64015         * modules/unicase/u16-is-cased: Likewise.
64016         * modules/unicase/u16-is-casefolded: Likewise.
64017         * modules/unicase/u16-is-lowercase: Likewise.
64018         * modules/unicase/u16-is-titlecase: Likewise.
64019         * modules/unicase/u16-is-uppercase: Likewise.
64020         * modules/unicase/u16-prefix-context: Likewise.
64021         * modules/unicase/u16-suffix-context: Likewise.
64022         * modules/unicase/u16-tolower: Likewise.
64023         * modules/unicase/u16-totitle: Likewise.
64024         * modules/unicase/u16-toupper: Likewise.
64025         * modules/unicase/u32-casecmp: Likewise.
64026         * modules/unicase/u32-casecoll: Likewise.
64027         * modules/unicase/u32-casefold: Likewise.
64028         * modules/unicase/u32-casexfrm: Likewise.
64029         * modules/unicase/u32-ct-casefold: Likewise.
64030         * modules/unicase/u32-ct-tolower: Likewise.
64031         * modules/unicase/u32-ct-totitle: Likewise.
64032         * modules/unicase/u32-ct-toupper: Likewise.
64033         * modules/unicase/u32-is-cased: Likewise.
64034         * modules/unicase/u32-is-casefolded: Likewise.
64035         * modules/unicase/u32-is-lowercase: Likewise.
64036         * modules/unicase/u32-is-titlecase: Likewise.
64037         * modules/unicase/u32-is-uppercase: Likewise.
64038         * modules/unicase/u32-prefix-context: Likewise.
64039         * modules/unicase/u32-suffix-context: Likewise.
64040         * modules/unicase/u32-tolower: Likewise.
64041         * modules/unicase/u32-totitle: Likewise.
64042         * modules/unicase/u32-toupper: Likewise.
64043         * modules/unicase/ulc-casecmp: Likewise.
64044         * modules/unicase/ulc-casecoll: Likewise.
64045         * modules/unicase/ulc-casexfrm: Likewise.
64046         * modules/uniconv/u8-conv-from-enc: Likewise.
64047         * modules/uniconv/u8-conv-to-enc: Likewise.
64048         * modules/uniconv/u8-strconv-from-enc: Likewise.
64049         * modules/uniconv/u8-strconv-from-locale: Likewise.
64050         * modules/uniconv/u8-strconv-to-enc: Likewise.
64051         * modules/uniconv/u8-strconv-to-locale: Likewise.
64052         * modules/uniconv/u16-conv-from-enc: Likewise.
64053         * modules/uniconv/u16-conv-to-enc: Likewise.
64054         * modules/uniconv/u16-strconv-from-enc: Likewise.
64055         * modules/uniconv/u16-strconv-from-locale: Likewise.
64056         * modules/uniconv/u16-strconv-to-enc: Likewise.
64057         * modules/uniconv/u16-strconv-to-locale: Likewise.
64058         * modules/uniconv/u32-conv-from-enc: Likewise.
64059         * modules/uniconv/u32-conv-to-enc: Likewise.
64060         * modules/uniconv/u32-strconv-from-enc: Likewise.
64061         * modules/uniconv/u32-strconv-from-locale: Likewise.
64062         * modules/uniconv/u32-strconv-to-enc: Likewise.
64063         * modules/uniconv/u32-strconv-to-locale: Likewise.
64064         * modules/unictype/bidicategory-byname: Likewise.
64065         * modules/unictype/bidicategory-name: Likewise.
64066         * modules/unictype/bidicategory-of: Likewise.
64067         * modules/unictype/bidicategory-test: Likewise.
64068         * modules/unictype/block-list: Likewise.
64069         * modules/unictype/block-test: Likewise.
64070         * modules/unictype/category-C: Likewise.
64071         * modules/unictype/category-Cc: Likewise.
64072         * modules/unictype/category-Cf: Likewise.
64073         * modules/unictype/category-Cn: Likewise.
64074         * modules/unictype/category-Co: Likewise.
64075         * modules/unictype/category-Cs: Likewise.
64076         * modules/unictype/category-L: Likewise.
64077         * modules/unictype/category-Ll: Likewise.
64078         * modules/unictype/category-Lm: Likewise.
64079         * modules/unictype/category-Lo: Likewise.
64080         * modules/unictype/category-Lt: Likewise.
64081         * modules/unictype/category-Lu: Likewise.
64082         * modules/unictype/category-M: Likewise.
64083         * modules/unictype/category-Mc: Likewise.
64084         * modules/unictype/category-Me: Likewise.
64085         * modules/unictype/category-Mn: Likewise.
64086         * modules/unictype/category-N: Likewise.
64087         * modules/unictype/category-Nd: Likewise.
64088         * modules/unictype/category-Nl: Likewise.
64089         * modules/unictype/category-No: Likewise.
64090         * modules/unictype/category-P: Likewise.
64091         * modules/unictype/category-Pc: Likewise.
64092         * modules/unictype/category-Pd: Likewise.
64093         * modules/unictype/category-Pe: Likewise.
64094         * modules/unictype/category-Pf: Likewise.
64095         * modules/unictype/category-Pi: Likewise.
64096         * modules/unictype/category-Po: Likewise.
64097         * modules/unictype/category-Ps: Likewise.
64098         * modules/unictype/category-S: Likewise.
64099         * modules/unictype/category-Sc: Likewise.
64100         * modules/unictype/category-Sk: Likewise.
64101         * modules/unictype/category-Sm: Likewise.
64102         * modules/unictype/category-So: Likewise.
64103         * modules/unictype/category-Z: Likewise.
64104         * modules/unictype/category-Zl: Likewise.
64105         * modules/unictype/category-Zp: Likewise.
64106         * modules/unictype/category-Zs: Likewise.
64107         * modules/unictype/category-and: Likewise.
64108         * modules/unictype/category-and-not: Likewise.
64109         * modules/unictype/category-byname: Likewise.
64110         * modules/unictype/category-name: Likewise.
64111         * modules/unictype/category-none: Likewise.
64112         * modules/unictype/category-of: Likewise.
64113         * modules/unictype/category-or: Likewise.
64114         * modules/unictype/category-test: Likewise.
64115         * modules/unictype/combining-class: Likewise.
64116         * modules/unictype/ctype-alnum: Likewise.
64117         * modules/unictype/ctype-alpha: Likewise.
64118         * modules/unictype/ctype-blank: Likewise.
64119         * modules/unictype/ctype-cntrl: Likewise.
64120         * modules/unictype/ctype-digit: Likewise.
64121         * modules/unictype/ctype-graph: Likewise.
64122         * modules/unictype/ctype-lower: Likewise.
64123         * modules/unictype/ctype-print: Likewise.
64124         * modules/unictype/ctype-punct: Likewise.
64125         * modules/unictype/ctype-space: Likewise.
64126         * modules/unictype/ctype-upper: Likewise.
64127         * modules/unictype/ctype-xdigit: Likewise.
64128         * modules/unictype/decimal-digit: Likewise.
64129         * modules/unictype/digit: Likewise.
64130         * modules/unictype/mirror: Likewise.
64131         * modules/unictype/numeric: Likewise.
64132         * modules/unictype/property-alphabetic: Likewise.
64133         * modules/unictype/property-ascii-hex-digit: Likewise.
64134         * modules/unictype/property-bidi-arabic-digit: Likewise.
64135         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
64136         * modules/unictype/property-bidi-block-separator: Likewise.
64137         * modules/unictype/property-bidi-boundary-neutral: Likewise.
64138         * modules/unictype/property-bidi-common-separator: Likewise.
64139         * modules/unictype/property-bidi-control: Likewise.
64140         * modules/unictype/property-bidi-embedding-or-override: Likewise.
64141         * modules/unictype/property-bidi-eur-num-separator: Likewise.
64142         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
64143         * modules/unictype/property-bidi-european-digit: Likewise.
64144         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
64145         * modules/unictype/property-bidi-left-to-right: Likewise.
64146         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
64147         * modules/unictype/property-bidi-other-neutral: Likewise.
64148         * modules/unictype/property-bidi-pdf: Likewise.
64149         * modules/unictype/property-bidi-segment-separator: Likewise.
64150         * modules/unictype/property-bidi-whitespace: Likewise.
64151         * modules/unictype/property-byname: Likewise.
64152         * modules/unictype/property-combining: Likewise.
64153         * modules/unictype/property-composite: Likewise.
64154         * modules/unictype/property-currency-symbol: Likewise.
64155         * modules/unictype/property-dash: Likewise.
64156         * modules/unictype/property-decimal-digit: Likewise.
64157         * modules/unictype/property-default-ignorable-code-point: Likewise.
64158         * modules/unictype/property-deprecated: Likewise.
64159         * modules/unictype/property-diacritic: Likewise.
64160         * modules/unictype/property-extender: Likewise.
64161         * modules/unictype/property-format-control: Likewise.
64162         * modules/unictype/property-grapheme-base: Likewise.
64163         * modules/unictype/property-grapheme-extend: Likewise.
64164         * modules/unictype/property-grapheme-link: Likewise.
64165         * modules/unictype/property-hex-digit: Likewise.
64166         * modules/unictype/property-hyphen: Likewise.
64167         * modules/unictype/property-id-continue: Likewise.
64168         * modules/unictype/property-id-start: Likewise.
64169         * modules/unictype/property-ideographic: Likewise.
64170         * modules/unictype/property-ids-binary-operator: Likewise.
64171         * modules/unictype/property-ids-trinary-operator: Likewise.
64172         * modules/unictype/property-ignorable-control: Likewise.
64173         * modules/unictype/property-iso-control: Likewise.
64174         * modules/unictype/property-join-control: Likewise.
64175         * modules/unictype/property-left-of-pair: Likewise.
64176         * modules/unictype/property-line-separator: Likewise.
64177         * modules/unictype/property-logical-order-exception: Likewise.
64178         * modules/unictype/property-lowercase: Likewise.
64179         * modules/unictype/property-math: Likewise.
64180         * modules/unictype/property-non-break: Likewise.
64181         * modules/unictype/property-not-a-character: Likewise.
64182         * modules/unictype/property-numeric: Likewise.
64183         * modules/unictype/property-other-alphabetic: Likewise.
64184         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
64185         * modules/unictype/property-other-grapheme-extend: Likewise.
64186         * modules/unictype/property-other-id-continue: Likewise.
64187         * modules/unictype/property-other-id-start: Likewise.
64188         * modules/unictype/property-other-lowercase: Likewise.
64189         * modules/unictype/property-other-math: Likewise.
64190         * modules/unictype/property-other-uppercase: Likewise.
64191         * modules/unictype/property-paired-punctuation: Likewise.
64192         * modules/unictype/property-paragraph-separator: Likewise.
64193         * modules/unictype/property-pattern-syntax: Likewise.
64194         * modules/unictype/property-pattern-white-space: Likewise.
64195         * modules/unictype/property-private-use: Likewise.
64196         * modules/unictype/property-punctuation: Likewise.
64197         * modules/unictype/property-quotation-mark: Likewise.
64198         * modules/unictype/property-radical: Likewise.
64199         * modules/unictype/property-sentence-terminal: Likewise.
64200         * modules/unictype/property-soft-dotted: Likewise.
64201         * modules/unictype/property-space: Likewise.
64202         * modules/unictype/property-terminal-punctuation: Likewise.
64203         * modules/unictype/property-test: Likewise.
64204         * modules/unictype/property-titlecase: Likewise.
64205         * modules/unictype/property-unassigned-code-value: Likewise.
64206         * modules/unictype/property-unified-ideograph: Likewise.
64207         * modules/unictype/property-uppercase: Likewise.
64208         * modules/unictype/property-variation-selector: Likewise.
64209         * modules/unictype/property-white-space: Likewise.
64210         * modules/unictype/property-xid-continue: Likewise.
64211         * modules/unictype/property-xid-start: Likewise.
64212         * modules/unictype/property-zero-width: Likewise.
64213         * modules/unictype/scripts: Likewise.
64214         * modules/unictype/syntax-c-ident: Likewise.
64215         * modules/unictype/syntax-c-whitespace: Likewise.
64216         * modules/unictype/syntax-java-ident: Likewise.
64217         * modules/unictype/syntax-java-whitespace: Likewise.
64218         * modules/unilbrk/u8-possible-linebreaks: Likewise.
64219         * modules/unilbrk/u8-width-linebreaks: Likewise.
64220         * modules/unilbrk/u16-possible-linebreaks: Likewise.
64221         * modules/unilbrk/u16-width-linebreaks: Likewise.
64222         * modules/unilbrk/u32-possible-linebreaks: Likewise.
64223         * modules/unilbrk/u32-width-linebreaks: Likewise.
64224         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
64225         * modules/unilbrk/ulc-width-linebreaks: Likewise.
64226         * modules/uniname/uniname: Likewise.
64227         * modules/uninorm/canonical-decomposition: Likewise.
64228         * modules/uninorm/composition: Likewise.
64229         * modules/uninorm/decomposing-form: Likewise.
64230         * modules/uninorm/decomposition: Likewise.
64231         * modules/uninorm/filter: Likewise.
64232         * modules/uninorm/nfc: Likewise.
64233         * modules/uninorm/nfd: Likewise.
64234         * modules/uninorm/nfkc: Likewise.
64235         * modules/uninorm/nfkd: Likewise.
64236         * modules/uninorm/u8-normalize: Likewise.
64237         * modules/uninorm/u8-normcmp: Likewise.
64238         * modules/uninorm/u8-normcoll: Likewise.
64239         * modules/uninorm/u8-normxfrm: Likewise.
64240         * modules/uninorm/u16-normalize: Likewise.
64241         * modules/uninorm/u16-normcmp: Likewise.
64242         * modules/uninorm/u16-normcoll: Likewise.
64243         * modules/uninorm/u16-normxfrm: Likewise.
64244         * modules/uninorm/u32-normalize: Likewise.
64245         * modules/uninorm/u32-normcmp: Likewise.
64246         * modules/uninorm/u32-normcoll: Likewise.
64247         * modules/uninorm/u32-normxfrm: Likewise.
64248         * modules/unistdio/u8-asnprintf: Likewise.
64249         * modules/unistdio/u8-asprintf: Likewise.
64250         * modules/unistdio/u8-snprintf: Likewise.
64251         * modules/unistdio/u8-sprintf: Likewise.
64252         * modules/unistdio/u8-u8-asnprintf: Likewise.
64253         * modules/unistdio/u8-u8-asprintf: Likewise.
64254         * modules/unistdio/u8-u8-snprintf: Likewise.
64255         * modules/unistdio/u8-u8-sprintf: Likewise.
64256         * modules/unistdio/u8-u8-vasnprintf: Likewise.
64257         * modules/unistdio/u8-u8-vasprintf: Likewise.
64258         * modules/unistdio/u8-u8-vsnprintf: Likewise.
64259         * modules/unistdio/u8-u8-vsprintf: Likewise.
64260         * modules/unistdio/u8-vasnprintf: Likewise.
64261         * modules/unistdio/u8-vasprintf: Likewise.
64262         * modules/unistdio/u8-vsnprintf: Likewise.
64263         * modules/unistdio/u8-vsprintf: Likewise.
64264         * modules/unistdio/u16-asnprintf: Likewise.
64265         * modules/unistdio/u16-asprintf: Likewise.
64266         * modules/unistdio/u16-snprintf: Likewise.
64267         * modules/unistdio/u16-sprintf: Likewise.
64268         * modules/unistdio/u16-u16-asnprintf: Likewise.
64269         * modules/unistdio/u16-u16-asprintf: Likewise.
64270         * modules/unistdio/u16-u16-snprintf: Likewise.
64271         * modules/unistdio/u16-u16-sprintf: Likewise.
64272         * modules/unistdio/u16-u16-vasnprintf: Likewise.
64273         * modules/unistdio/u16-u16-vasprintf: Likewise.
64274         * modules/unistdio/u16-u16-vsnprintf: Likewise.
64275         * modules/unistdio/u16-u16-vsprintf: Likewise.
64276         * modules/unistdio/u16-vasnprintf: Likewise.
64277         * modules/unistdio/u16-vasprintf: Likewise.
64278         * modules/unistdio/u16-vsnprintf: Likewise.
64279         * modules/unistdio/u16-vsprintf: Likewise.
64280         * modules/unistdio/u32-asnprintf: Likewise.
64281         * modules/unistdio/u32-asprintf: Likewise.
64282         * modules/unistdio/u32-snprintf: Likewise.
64283         * modules/unistdio/u32-sprintf: Likewise.
64284         * modules/unistdio/u32-u32-asnprintf: Likewise.
64285         * modules/unistdio/u32-u32-asprintf: Likewise.
64286         * modules/unistdio/u32-u32-snprintf: Likewise.
64287         * modules/unistdio/u32-u32-sprintf: Likewise.
64288         * modules/unistdio/u32-u32-vasnprintf: Likewise.
64289         * modules/unistdio/u32-u32-vasprintf: Likewise.
64290         * modules/unistdio/u32-u32-vsnprintf: Likewise.
64291         * modules/unistdio/u32-u32-vsprintf: Likewise.
64292         * modules/unistdio/u32-vasnprintf: Likewise.
64293         * modules/unistdio/u32-vasprintf: Likewise.
64294         * modules/unistdio/u32-vsnprintf: Likewise.
64295         * modules/unistdio/u32-vsprintf: Likewise.
64296         * modules/unistdio/ulc-asnprintf: Likewise.
64297         * modules/unistdio/ulc-asprintf: Likewise.
64298         * modules/unistdio/ulc-fprintf: Likewise.
64299         * modules/unistdio/ulc-snprintf: Likewise.
64300         * modules/unistdio/ulc-sprintf: Likewise.
64301         * modules/unistdio/ulc-vasnprintf: Likewise.
64302         * modules/unistdio/ulc-vasprintf: Likewise.
64303         * modules/unistdio/ulc-vfprintf: Likewise.
64304         * modules/unistdio/ulc-vsnprintf: Likewise.
64305         * modules/unistdio/ulc-vsprintf: Likewise.
64306         * modules/unistr/u8-check: Likewise.
64307         * modules/unistr/u8-chr: Likewise.
64308         * modules/unistr/u8-cmp: Likewise.
64309         * modules/unistr/u8-cmp2: Likewise.
64310         * modules/unistr/u8-cpy: Likewise.
64311         * modules/unistr/u8-cpy-alloc: Likewise.
64312         * modules/unistr/u8-endswith: Likewise.
64313         * modules/unistr/u8-mblen: Likewise.
64314         * modules/unistr/u8-mbsnlen: Likewise.
64315         * modules/unistr/u8-mbtouc: Likewise.
64316         * modules/unistr/u8-mbtouc-unsafe: Likewise.
64317         * modules/unistr/u8-mbtoucr: Likewise.
64318         * modules/unistr/u8-move: Likewise.
64319         * modules/unistr/u8-next: Likewise.
64320         * modules/unistr/u8-prev: Likewise.
64321         * modules/unistr/u8-set: Likewise.
64322         * modules/unistr/u8-startswith: Likewise.
64323         * modules/unistr/u8-stpcpy: Likewise.
64324         * modules/unistr/u8-stpncpy: Likewise.
64325         * modules/unistr/u8-strcat: Likewise.
64326         * modules/unistr/u8-strchr: Likewise.
64327         * modules/unistr/u8-strcmp: Likewise.
64328         * modules/unistr/u8-strcoll: Likewise.
64329         * modules/unistr/u8-strcpy: Likewise.
64330         * modules/unistr/u8-strcspn: Likewise.
64331         * modules/unistr/u8-strdup: Likewise.
64332         * modules/unistr/u8-strlen: Likewise.
64333         * modules/unistr/u8-strmblen: Likewise.
64334         * modules/unistr/u8-strmbtouc: Likewise.
64335         * modules/unistr/u8-strncat: Likewise.
64336         * modules/unistr/u8-strncmp: Likewise.
64337         * modules/unistr/u8-strncpy: Likewise.
64338         * modules/unistr/u8-strnlen: Likewise.
64339         * modules/unistr/u8-strpbrk: Likewise.
64340         * modules/unistr/u8-strrchr: Likewise.
64341         * modules/unistr/u8-strspn: Likewise.
64342         * modules/unistr/u8-strstr: Likewise.
64343         * modules/unistr/u8-strtok: Likewise.
64344         * modules/unistr/u8-to-u16: Likewise.
64345         * modules/unistr/u8-to-u32: Likewise.
64346         * modules/unistr/u8-uctomb: Likewise.
64347         * modules/unistr/u16-check: Likewise.
64348         * modules/unistr/u16-chr: Likewise.
64349         * modules/unistr/u16-cmp: Likewise.
64350         * modules/unistr/u16-cmp2: Likewise.
64351         * modules/unistr/u16-cpy: Likewise.
64352         * modules/unistr/u16-cpy-alloc: Likewise.
64353         * modules/unistr/u16-endswith: Likewise.
64354         * modules/unistr/u16-mblen: Likewise.
64355         * modules/unistr/u16-mbsnlen: Likewise.
64356         * modules/unistr/u16-mbtouc: Likewise.
64357         * modules/unistr/u16-mbtouc-unsafe: Likewise.
64358         * modules/unistr/u16-mbtoucr: Likewise.
64359         * modules/unistr/u16-move: Likewise.
64360         * modules/unistr/u16-next: Likewise.
64361         * modules/unistr/u16-prev: Likewise.
64362         * modules/unistr/u16-set: Likewise.
64363         * modules/unistr/u16-startswith: Likewise.
64364         * modules/unistr/u16-stpcpy: Likewise.
64365         * modules/unistr/u16-stpncpy: Likewise.
64366         * modules/unistr/u16-strcat: Likewise.
64367         * modules/unistr/u16-strchr: Likewise.
64368         * modules/unistr/u16-strcmp: Likewise.
64369         * modules/unistr/u16-strcoll: Likewise.
64370         * modules/unistr/u16-strcpy: Likewise.
64371         * modules/unistr/u16-strcspn: Likewise.
64372         * modules/unistr/u16-strdup: Likewise.
64373         * modules/unistr/u16-strlen: Likewise.
64374         * modules/unistr/u16-strmblen: Likewise.
64375         * modules/unistr/u16-strmbtouc: Likewise.
64376         * modules/unistr/u16-strncat: Likewise.
64377         * modules/unistr/u16-strncmp: Likewise.
64378         * modules/unistr/u16-strncpy: Likewise.
64379         * modules/unistr/u16-strnlen: Likewise.
64380         * modules/unistr/u16-strpbrk: Likewise.
64381         * modules/unistr/u16-strrchr: Likewise.
64382         * modules/unistr/u16-strspn: Likewise.
64383         * modules/unistr/u16-strstr: Likewise.
64384         * modules/unistr/u16-strtok: Likewise.
64385         * modules/unistr/u16-to-u32: Likewise.
64386         * modules/unistr/u16-to-u8: Likewise.
64387         * modules/unistr/u16-uctomb: Likewise.
64388         * modules/unistr/u32-check: Likewise.
64389         * modules/unistr/u32-chr: Likewise.
64390         * modules/unistr/u32-cmp: Likewise.
64391         * modules/unistr/u32-cmp2: Likewise.
64392         * modules/unistr/u32-cpy: Likewise.
64393         * modules/unistr/u32-cpy-alloc: Likewise.
64394         * modules/unistr/u32-endswith: Likewise.
64395         * modules/unistr/u32-mblen: Likewise.
64396         * modules/unistr/u32-mbsnlen: Likewise.
64397         * modules/unistr/u32-mbtouc: Likewise.
64398         * modules/unistr/u32-mbtouc-unsafe: Likewise.
64399         * modules/unistr/u32-mbtoucr: Likewise.
64400         * modules/unistr/u32-move: Likewise.
64401         * modules/unistr/u32-next: Likewise.
64402         * modules/unistr/u32-prev: Likewise.
64403         * modules/unistr/u32-set: Likewise.
64404         * modules/unistr/u32-startswith: Likewise.
64405         * modules/unistr/u32-stpcpy: Likewise.
64406         * modules/unistr/u32-stpncpy: Likewise.
64407         * modules/unistr/u32-strcat: Likewise.
64408         * modules/unistr/u32-strchr: Likewise.
64409         * modules/unistr/u32-strcmp: Likewise.
64410         * modules/unistr/u32-strcoll: Likewise.
64411         * modules/unistr/u32-strcpy: Likewise.
64412         * modules/unistr/u32-strcspn: Likewise.
64413         * modules/unistr/u32-strdup: Likewise.
64414         * modules/unistr/u32-strlen: Likewise.
64415         * modules/unistr/u32-strmblen: Likewise.
64416         * modules/unistr/u32-strmbtouc: Likewise.
64417         * modules/unistr/u32-strncat: Likewise.
64418         * modules/unistr/u32-strncmp: Likewise.
64419         * modules/unistr/u32-strncpy: Likewise.
64420         * modules/unistr/u32-strnlen: Likewise.
64421         * modules/unistr/u32-strpbrk: Likewise.
64422         * modules/unistr/u32-strrchr: Likewise.
64423         * modules/unistr/u32-strspn: Likewise.
64424         * modules/unistr/u32-strstr: Likewise.
64425         * modules/unistr/u32-strtok: Likewise.
64426         * modules/unistr/u32-to-u16: Likewise.
64427         * modules/unistr/u32-to-u8: Likewise.
64428         * modules/unistr/u32-uctomb: Likewise.
64429         * modules/uniwbrk/u8-wordbreaks: Likewise.
64430         * modules/uniwbrk/u16-wordbreaks: Likewise.
64431         * modules/uniwbrk/u32-wordbreaks: Likewise.
64432         * modules/uniwbrk/ulc-wordbreaks: Likewise.
64433         * modules/uniwbrk/wordbreak-property: Likewise.
64434         * modules/uniwidth/u8-strwidth: Likewise.
64435         * modules/uniwidth/u8-width: Likewise.
64436         * modules/uniwidth/u16-strwidth: Likewise.
64437         * modules/uniwidth/u16-width: Likewise.
64438         * modules/uniwidth/u32-strwidth: Likewise.
64439         * modules/uniwidth/u32-width: Likewise.
64440         * modules/uniwidth/width: Likewise.
64441         * modules/unicase/cased-tests (Makefile.am): Link all test programs
64442         with $(LIBUNISTRING).
64443         * modules/unicase/ignorable-tests: Likewise.
64444         * modules/unicase/locale-language-tests: Likewise.
64445         * modules/unicase/tolower-tests: Likewise.
64446         * modules/unicase/totitle-tests: Likewise.
64447         * modules/unicase/toupper-tests: Likewise.
64448         * modules/unicase/u8-casecmp-tests: Likewise.
64449         * modules/unicase/u8-casecoll-tests: Likewise.
64450         * modules/unicase/u8-casefold-tests: Likewise.
64451         * modules/unicase/u8-is-cased-tests: Likewise.
64452         * modules/unicase/u8-is-casefolded-tests: Likewise.
64453         * modules/unicase/u8-is-lowercase-tests: Likewise.
64454         * modules/unicase/u8-is-titlecase-tests: Likewise.
64455         * modules/unicase/u8-is-uppercase-tests: Likewise.
64456         * modules/unicase/u8-tolower-tests: Likewise.
64457         * modules/unicase/u8-totitle-tests: Likewise.
64458         * modules/unicase/u8-toupper-tests: Likewise.
64459         * modules/unicase/u16-casecmp-tests: Likewise.
64460         * modules/unicase/u16-casecoll-tests: Likewise.
64461         * modules/unicase/u16-casefold-tests: Likewise.
64462         * modules/unicase/u16-is-cased-tests: Likewise.
64463         * modules/unicase/u16-is-casefolded-tests: Likewise.
64464         * modules/unicase/u16-is-lowercase-tests: Likewise.
64465         * modules/unicase/u16-is-titlecase-tests: Likewise.
64466         * modules/unicase/u16-is-uppercase-tests: Likewise.
64467         * modules/unicase/u16-tolower-tests: Likewise.
64468         * modules/unicase/u16-totitle-tests: Likewise.
64469         * modules/unicase/u16-toupper-tests: Likewise.
64470         * modules/unicase/u32-casecmp-tests: Likewise.
64471         * modules/unicase/u32-casecoll-tests: Likewise.
64472         * modules/unicase/u32-casefold-tests: Likewise.
64473         * modules/unicase/u32-is-cased-tests: Likewise.
64474         * modules/unicase/u32-is-casefolded-tests: Likewise.
64475         * modules/unicase/u32-is-lowercase-tests: Likewise.
64476         * modules/unicase/u32-is-titlecase-tests: Likewise.
64477         * modules/unicase/u32-is-uppercase-tests: Likewise.
64478         * modules/unicase/u32-tolower-tests: Likewise.
64479         * modules/unicase/u32-totitle-tests: Likewise.
64480         * modules/unicase/u32-toupper-tests: Likewise.
64481         * modules/unicase/ulc-casecmp-tests: Likewise.
64482         * modules/unicase/ulc-casecoll-tests: Likewise.
64483         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
64484         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
64485         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
64486         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
64487         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
64488         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
64489         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
64490         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
64491         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
64492         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
64493         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
64494         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
64495         * modules/unictype/bidicategory-byname-tests: Likewise.
64496         * modules/unictype/bidicategory-name-tests: Likewise.
64497         * modules/unictype/bidicategory-of-tests: Likewise.
64498         * modules/unictype/bidicategory-test-tests: Likewise.
64499         * modules/unictype/block-list-tests: Likewise.
64500         * modules/unictype/block-of-tests: Likewise.
64501         * modules/unictype/block-test-tests: Likewise.
64502         * modules/unictype/category-C-tests: Likewise.
64503         * modules/unictype/category-Cc-tests: Likewise.
64504         * modules/unictype/category-Cf-tests: Likewise.
64505         * modules/unictype/category-Cn-tests: Likewise.
64506         * modules/unictype/category-Co-tests: Likewise.
64507         * modules/unictype/category-Cs-tests: Likewise.
64508         * modules/unictype/category-L-tests: Likewise.
64509         * modules/unictype/category-Ll-tests: Likewise.
64510         * modules/unictype/category-Lm-tests: Likewise.
64511         * modules/unictype/category-Lo-tests: Likewise.
64512         * modules/unictype/category-Lt-tests: Likewise.
64513         * modules/unictype/category-Lu-tests: Likewise.
64514         * modules/unictype/category-M-tests: Likewise.
64515         * modules/unictype/category-Mc-tests: Likewise.
64516         * modules/unictype/category-Me-tests: Likewise.
64517         * modules/unictype/category-Mn-tests: Likewise.
64518         * modules/unictype/category-N-tests: Likewise.
64519         * modules/unictype/category-Nd-tests: Likewise.
64520         * modules/unictype/category-Nl-tests: Likewise.
64521         * modules/unictype/category-No-tests: Likewise.
64522         * modules/unictype/category-P-tests: Likewise.
64523         * modules/unictype/category-Pc-tests: Likewise.
64524         * modules/unictype/category-Pd-tests: Likewise.
64525         * modules/unictype/category-Pe-tests: Likewise.
64526         * modules/unictype/category-Pf-tests: Likewise.
64527         * modules/unictype/category-Pi-tests: Likewise.
64528         * modules/unictype/category-Po-tests: Likewise.
64529         * modules/unictype/category-Ps-tests: Likewise.
64530         * modules/unictype/category-S-tests: Likewise.
64531         * modules/unictype/category-Sc-tests: Likewise.
64532         * modules/unictype/category-Sk-tests: Likewise.
64533         * modules/unictype/category-Sm-tests: Likewise.
64534         * modules/unictype/category-So-tests: Likewise.
64535         * modules/unictype/category-Z-tests: Likewise.
64536         * modules/unictype/category-Zl-tests: Likewise.
64537         * modules/unictype/category-Zp-tests: Likewise.
64538         * modules/unictype/category-Zs-tests: Likewise.
64539         * modules/unictype/category-and-not-tests: Likewise.
64540         * modules/unictype/category-and-tests: Likewise.
64541         * modules/unictype/category-byname-tests: Likewise.
64542         * modules/unictype/category-name-tests: Likewise.
64543         * modules/unictype/category-none-tests: Likewise.
64544         * modules/unictype/category-of-tests: Likewise.
64545         * modules/unictype/category-or-tests: Likewise.
64546         * modules/unictype/category-test-withtable-tests: Likewise.
64547         * modules/unictype/combining-class-tests: Likewise.
64548         * modules/unictype/ctype-alnum-tests: Likewise.
64549         * modules/unictype/ctype-alpha-tests: Likewise.
64550         * modules/unictype/ctype-blank-tests: Likewise.
64551         * modules/unictype/ctype-cntrl-tests: Likewise.
64552         * modules/unictype/ctype-digit-tests: Likewise.
64553         * modules/unictype/ctype-graph-tests: Likewise.
64554         * modules/unictype/ctype-lower-tests: Likewise.
64555         * modules/unictype/ctype-print-tests: Likewise.
64556         * modules/unictype/ctype-punct-tests: Likewise.
64557         * modules/unictype/ctype-space-tests: Likewise.
64558         * modules/unictype/ctype-upper-tests: Likewise.
64559         * modules/unictype/ctype-xdigit-tests: Likewise.
64560         * modules/unictype/decimal-digit-tests: Likewise.
64561         * modules/unictype/digit-tests: Likewise.
64562         * modules/unictype/mirror-tests: Likewise.
64563         * modules/unictype/numeric-tests: Likewise.
64564         * modules/unictype/property-alphabetic-tests: Likewise.
64565         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
64566         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
64567         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
64568         * modules/unictype/property-bidi-block-separator-tests: Likewise.
64569         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
64570         * modules/unictype/property-bidi-common-separator-tests: Likewise.
64571         * modules/unictype/property-bidi-control-tests: Likewise.
64572         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
64573         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
64574         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
64575         * modules/unictype/property-bidi-european-digit-tests: Likewise.
64576         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
64577         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
64578         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
64579         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
64580         * modules/unictype/property-bidi-pdf-tests: Likewise.
64581         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
64582         * modules/unictype/property-bidi-whitespace-tests: Likewise.
64583         * modules/unictype/property-byname-tests: Likewise.
64584         * modules/unictype/property-combining-tests: Likewise.
64585         * modules/unictype/property-composite-tests: Likewise.
64586         * modules/unictype/property-currency-symbol-tests: Likewise.
64587         * modules/unictype/property-dash-tests: Likewise.
64588         * modules/unictype/property-decimal-digit-tests: Likewise.
64589         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
64590         * modules/unictype/property-deprecated-tests: Likewise.
64591         * modules/unictype/property-diacritic-tests: Likewise.
64592         * modules/unictype/property-extender-tests: Likewise.
64593         * modules/unictype/property-format-control-tests: Likewise.
64594         * modules/unictype/property-grapheme-base-tests: Likewise.
64595         * modules/unictype/property-grapheme-extend-tests: Likewise.
64596         * modules/unictype/property-grapheme-link-tests: Likewise.
64597         * modules/unictype/property-hex-digit-tests: Likewise.
64598         * modules/unictype/property-hyphen-tests: Likewise.
64599         * modules/unictype/property-id-continue-tests: Likewise.
64600         * modules/unictype/property-id-start-tests: Likewise.
64601         * modules/unictype/property-ideographic-tests: Likewise.
64602         * modules/unictype/property-ids-binary-operator-tests: Likewise.
64603         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
64604         * modules/unictype/property-ignorable-control-tests: Likewise.
64605         * modules/unictype/property-iso-control-tests: Likewise.
64606         * modules/unictype/property-join-control-tests: Likewise.
64607         * modules/unictype/property-left-of-pair-tests: Likewise.
64608         * modules/unictype/property-line-separator-tests: Likewise.
64609         * modules/unictype/property-logical-order-exception-tests: Likewise.
64610         * modules/unictype/property-lowercase-tests: Likewise.
64611         * modules/unictype/property-math-tests: Likewise.
64612         * modules/unictype/property-non-break-tests: Likewise.
64613         * modules/unictype/property-not-a-character-tests: Likewise.
64614         * modules/unictype/property-numeric-tests: Likewise.
64615         * modules/unictype/property-other-alphabetic-tests: Likewise.
64616         * modules/unictype/property-other-default-ignorable-code-point-tests:
64617         Likewise.
64618         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
64619         * modules/unictype/property-other-id-continue-tests: Likewise.
64620         * modules/unictype/property-other-id-start-tests: Likewise.
64621         * modules/unictype/property-other-lowercase-tests: Likewise.
64622         * modules/unictype/property-other-math-tests: Likewise.
64623         * modules/unictype/property-other-uppercase-tests: Likewise.
64624         * modules/unictype/property-paired-punctuation-tests: Likewise.
64625         * modules/unictype/property-paragraph-separator-tests: Likewise.
64626         * modules/unictype/property-pattern-syntax-tests: Likewise.
64627         * modules/unictype/property-pattern-white-space-tests: Likewise.
64628         * modules/unictype/property-private-use-tests: Likewise.
64629         * modules/unictype/property-punctuation-tests: Likewise.
64630         * modules/unictype/property-quotation-mark-tests: Likewise.
64631         * modules/unictype/property-radical-tests: Likewise.
64632         * modules/unictype/property-sentence-terminal-tests: Likewise.
64633         * modules/unictype/property-soft-dotted-tests: Likewise.
64634         * modules/unictype/property-space-tests: Likewise.
64635         * modules/unictype/property-terminal-punctuation-tests: Likewise.
64636         * modules/unictype/property-test-tests: Likewise.
64637         * modules/unictype/property-titlecase-tests: Likewise.
64638         * modules/unictype/property-unassigned-code-value-tests: Likewise.
64639         * modules/unictype/property-unified-ideograph-tests: Likewise.
64640         * modules/unictype/property-uppercase-tests: Likewise.
64641         * modules/unictype/property-variation-selector-tests: Likewise.
64642         * modules/unictype/property-white-space-tests: Likewise.
64643         * modules/unictype/property-xid-continue-tests: Likewise.
64644         * modules/unictype/property-xid-start-tests: Likewise.
64645         * modules/unictype/property-zero-width-tests: Likewise.
64646         * modules/unictype/scripts-tests: Likewise.
64647         * modules/unictype/syntax-c-ident-tests: Likewise.
64648         * modules/unictype/syntax-c-whitespace-tests: Likewise.
64649         * modules/unictype/syntax-java-ident-tests: Likewise.
64650         * modules/unictype/syntax-java-whitespace-tests: Likewise.
64651         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
64652         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
64653         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
64654         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
64655         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
64656         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
64657         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
64658         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
64659         * modules/uniname/uniname-tests: Likewise.
64660         * modules/uninorm/canonical-decomposition-tests: Likewise.
64661         * modules/uninorm/compat-decomposition-tests: Likewise.
64662         * modules/uninorm/composition-tests: Likewise.
64663         * modules/uninorm/decomposing-form-tests: Likewise.
64664         * modules/uninorm/decomposition-tests: Likewise.
64665         * modules/uninorm/filter-tests: Likewise.
64666         * modules/uninorm/nfc-tests: Likewise.
64667         * modules/uninorm/nfd-tests: Likewise.
64668         * modules/uninorm/nfkc-tests: Likewise.
64669         * modules/uninorm/nfkd-tests: Likewise.
64670         * modules/uninorm/u8-normcmp-tests: Likewise.
64671         * modules/uninorm/u8-normcoll-tests: Likewise.
64672         * modules/uninorm/u16-normcmp-tests: Likewise.
64673         * modules/uninorm/u16-normcoll-tests: Likewise.
64674         * modules/uninorm/u32-normcmp-tests: Likewise.
64675         * modules/uninorm/u32-normcoll-tests: Likewise.
64676         * modules/unistdio/u8-asnprintf-tests: Likewise.
64677         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64678         * modules/unistdio/u8-vasprintf-tests: Likewise.
64679         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64680         * modules/unistdio/u8-vsprintf-tests: Likewise.
64681         * modules/unistdio/u16-asnprintf-tests: Likewise.
64682         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64683         * modules/unistdio/u16-vasprintf-tests: Likewise.
64684         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64685         * modules/unistdio/u16-vsprintf-tests: Likewise.
64686         * modules/unistdio/u32-asnprintf-tests: Likewise.
64687         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64688         * modules/unistdio/u32-vasprintf-tests: Likewise.
64689         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64690         * modules/unistdio/u32-vsprintf-tests: Likewise.
64691         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64692         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64693         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64694         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64695         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64696         * modules/unistr/u8-check-tests: Likewise.
64697         * modules/unistr/u8-chr-tests: Likewise.
64698         * modules/unistr/u8-cmp-tests: Likewise.
64699         * modules/unistr/u8-cmp2-tests: Likewise.
64700         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64701         * modules/unistr/u8-cpy-tests: Likewise.
64702         * modules/unistr/u8-mblen-tests: Likewise.
64703         * modules/unistr/u8-mbsnlen-tests: Likewise.
64704         * modules/unistr/u8-mbtouc-tests: Likewise.
64705         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64706         * modules/unistr/u8-mbtoucr-tests: Likewise.
64707         * modules/unistr/u8-move-tests: Likewise.
64708         * modules/unistr/u8-next-tests: Likewise.
64709         * modules/unistr/u8-prev-tests: Likewise.
64710         * modules/unistr/u8-set-tests: Likewise.
64711         * modules/unistr/u8-stpcpy-tests: Likewise.
64712         * modules/unistr/u8-stpncpy-tests: Likewise.
64713         * modules/unistr/u8-strcat-tests: Likewise.
64714         * modules/unistr/u8-strcmp-tests: Likewise.
64715         * modules/unistr/u8-strcoll-tests: Likewise.
64716         * modules/unistr/u8-strcpy-tests: Likewise.
64717         * modules/unistr/u8-strdup-tests: Likewise.
64718         * modules/unistr/u8-strlen-tests: Likewise.
64719         * modules/unistr/u8-strmblen-tests: Likewise.
64720         * modules/unistr/u8-strmbtouc-tests: Likewise.
64721         * modules/unistr/u8-strncat-tests: Likewise.
64722         * modules/unistr/u8-strncmp-tests: Likewise.
64723         * modules/unistr/u8-strncpy-tests: Likewise.
64724         * modules/unistr/u8-strnlen-tests: Likewise.
64725         * modules/unistr/u8-to-u16-tests: Likewise.
64726         * modules/unistr/u8-to-u32-tests: Likewise.
64727         * modules/unistr/u8-uctomb-tests: Likewise.
64728         * modules/unistr/u16-check-tests: Likewise.
64729         * modules/unistr/u16-chr-tests: Likewise.
64730         * modules/unistr/u16-cmp-tests: Likewise.
64731         * modules/unistr/u16-cmp2-tests: Likewise.
64732         * modules/unistr/u16-cpy-alloc-tests: Likewise.
64733         * modules/unistr/u16-cpy-tests: Likewise.
64734         * modules/unistr/u16-mblen-tests: Likewise.
64735         * modules/unistr/u16-mbsnlen-tests: Likewise.
64736         * modules/unistr/u16-mbtouc-tests: Likewise.
64737         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
64738         * modules/unistr/u16-mbtoucr-tests: Likewise.
64739         * modules/unistr/u16-move-tests: Likewise.
64740         * modules/unistr/u16-next-tests: Likewise.
64741         * modules/unistr/u16-prev-tests: Likewise.
64742         * modules/unistr/u16-set-tests: Likewise.
64743         * modules/unistr/u16-stpcpy-tests: Likewise.
64744         * modules/unistr/u16-stpncpy-tests: Likewise.
64745         * modules/unistr/u16-strcat-tests: Likewise.
64746         * modules/unistr/u16-strcmp-tests: Likewise.
64747         * modules/unistr/u16-strcoll-tests: Likewise.
64748         * modules/unistr/u16-strcpy-tests: Likewise.
64749         * modules/unistr/u16-strdup-tests: Likewise.
64750         * modules/unistr/u16-strlen-tests: Likewise.
64751         * modules/unistr/u16-strmblen-tests: Likewise.
64752         * modules/unistr/u16-strmbtouc-tests: Likewise.
64753         * modules/unistr/u16-strncat-tests: Likewise.
64754         * modules/unistr/u16-strncmp-tests: Likewise.
64755         * modules/unistr/u16-strncpy-tests: Likewise.
64756         * modules/unistr/u16-strnlen-tests: Likewise.
64757         * modules/unistr/u16-to-u32-tests: Likewise.
64758         * modules/unistr/u16-to-u8-tests: Likewise.
64759         * modules/unistr/u16-uctomb-tests: Likewise.
64760         * modules/unistr/u32-check-tests: Likewise.
64761         * modules/unistr/u32-chr-tests: Likewise.
64762         * modules/unistr/u32-cmp-tests: Likewise.
64763         * modules/unistr/u32-cmp2-tests: Likewise.
64764         * modules/unistr/u32-cpy-alloc-tests: Likewise.
64765         * modules/unistr/u32-cpy-tests: Likewise.
64766         * modules/unistr/u32-mblen-tests: Likewise.
64767         * modules/unistr/u32-mbsnlen-tests: Likewise.
64768         * modules/unistr/u32-mbtouc-tests: Likewise.
64769         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
64770         * modules/unistr/u32-mbtoucr-tests: Likewise.
64771         * modules/unistr/u32-move-tests: Likewise.
64772         * modules/unistr/u32-next-tests: Likewise.
64773         * modules/unistr/u32-prev-tests: Likewise.
64774         * modules/unistr/u32-set-tests: Likewise.
64775         * modules/unistr/u32-stpcpy-tests: Likewise.
64776         * modules/unistr/u32-stpncpy-tests: Likewise.
64777         * modules/unistr/u32-strcat-tests: Likewise.
64778         * modules/unistr/u32-strcmp-tests: Likewise.
64779         * modules/unistr/u32-strcoll-tests: Likewise.
64780         * modules/unistr/u32-strcpy-tests: Likewise.
64781         * modules/unistr/u32-strdup-tests: Likewise.
64782         * modules/unistr/u32-strlen-tests: Likewise.
64783         * modules/unistr/u32-strmblen-tests: Likewise.
64784         * modules/unistr/u32-strmbtouc-tests: Likewise.
64785         * modules/unistr/u32-strncat-tests: Likewise.
64786         * modules/unistr/u32-strncmp-tests: Likewise.
64787         * modules/unistr/u32-strncpy-tests: Likewise.
64788         * modules/unistr/u32-strnlen-tests: Likewise.
64789         * modules/unistr/u32-to-u16-tests: Likewise.
64790         * modules/unistr/u32-to-u8-tests: Likewise.
64791         * modules/unistr/u32-uctomb-tests: Likewise.
64792         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
64793         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
64794         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
64795         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
64796         * modules/uniwidth/u8-strwidth-tests: Likewise.
64797         * modules/uniwidth/u8-width-tests: Likewise.
64798         * modules/uniwidth/u16-strwidth-tests: Likewise.
64799         * modules/uniwidth/u16-width-tests: Likewise.
64800         * modules/uniwidth/u32-strwidth-tests: Likewise.
64801         * modules/uniwidth/u32-width-tests: Likewise.
64802         * modules/uniwidth/width-tests: Likewise.
64804 2010-05-18  Richard Jones  <rjones@redhat.com>
64806         doc: users.txt: list hivex
64807         * users.txt: Add hivex.
64809 2010-05-18  Richard Jones  <rjones@redhat.com>
64811         doc: users.txt: list febootstrap
64812         * users.txt: Add febootstrap.
64814 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64816         bootstrap: fix an error when gnulib is not used as a git submodule
64817         * build-aux/bootstrap (gnulib_path): If its length is zero then
64818         assign "gnulib" to it.
64819         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64821 2010-05-16  Bruno Haible  <bruno@clisp.org>
64823         Avoid autoconf warnings about AM_ICONV.
64824         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64825         2.64.
64827 2010-05-16  Bruno Haible  <bruno@clisp.org>
64829         absolute-header: Make the macro usable in more situations.
64830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64831         from gl_ABSOLUTE_HEADER.
64832         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64834 2010-05-16  James Youngman  <jay@gnu.org>
64836         doc: update users.txt
64837         * users.txt: Add CSSC.
64839 2010-05-16  Jim Meyering  <meyering@redhat.com>
64841         init.sh: fix an error in the previous change; add more comments
64842         * tests/init.sh: Compare exit code in loop against 9, not 2.
64843         Patch by Bruno Haible.
64844         Make the two tests more similar by adding an empty "then" clause.
64845         Add comments.
64847         init.sh: avoid unnecessary shell re-exec
64848         * tests/init.sh: Improve the re-exec-required check to first test the
64849         current shell.  If it passes the test, do not search for a shell that
64850         does pass, and do not re-exec.  This test is particularly contorted to
64851         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64852         of $(...) evokes a syntax error and causes immediate shell exit with
64853         status 2.  Bruno Haible reported that the re-exec made it impossible
64854         to single-step through any init.sh-using script.
64856 2010-05-16  Bruno Haible  <bruno@clisp.org>
64858         Fix collision between gnulib's and libintl's printf replacements.
64859         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64860         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64861         (printf): When using GNU C, map the __printf__ function to rpl_printf
64862         via __asm__. When not using GNU C, define rpl_printf instead of
64863         __printf__.
64864         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64865         commit.
64866         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64867         commit.
64868         * m4/asm-underscore.m4: New file.
64869         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64870         * modules/stdio (Files): Add m4/asm-underscore.m4.
64871         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64872         Reported by Ben Pfaff.
64874 2010-05-16  Bruno Haible  <bruno@clisp.org>
64876         verify: Avoid skipping the test on openSUSE 11.0.
64877         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64879 2010-05-13  Bruno Haible  <bruno@clisp.org>
64881         Avoid useless warnings from G++.
64882         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64883         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64884         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64886 2010-05-11  Jim Meyering  <meyering@redhat.com>
64888         maint.mk: tweak preceding change
64889         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64890         regexps tighter by anchoring at EOL, and make the new group "shy"
64891         for slightly decreased overhead.
64893 2010-05-11  Eric Blake  <eblake@redhat.com>
64895         maint.mk: gnulib doesn't guarantee NSIG
64896         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64898 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64900         test-pwrite.c: Remove unused variable declaration.
64901         * tests/test-pwrite.c (main): Remove read_buf declaration.
64903         Remove useless test-pwrite.sh file.
64904         * tests/test-pwrite.sh: Delete file.
64905         * modules/pwrite-tests: Remove references.
64906         Reported by Bruno Haible.
64908 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64910         init.sh: fix a typo
64911         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64913 2010-05-10  Jim Meyering  <meyering@redhat.com>
64915         maint.mk: avoid using a temporary file in the always-defined-macros check
64916         * top/maint.mk (.re-defmac): Remove rule.
64917         (gl_trap_): Remove definition.
64918         (sc_prohibit_always-defined_macros): Rewrite not to create and
64919         depend on a temporary file.  Instead, depend on GNU grep's ability
64920         to read a list of regular expressions from stdin when given "-f -".
64922 2010-05-09  Bruno Haible  <bruno@clisp.org>
64924         Update to GNU gettext 0.18, part 1.
64925         * m4/gettext.m4: Update to GNU gettext 0.18.
64926         * m4/intl.m4: Likewise.
64927         * m4/po.m4: Likewise.
64928         * modules/gettext (Files): Add m4/fcntl-o.m4.
64929         (configure.ac): Require gettext infrastructure from version 0.18.
64931 2010-05-09  Jim Meyering  <meyering@redhat.com>
64933         init.sh: enable MALLOC_PERTURB_
64934         * tests/init.sh: Enable glibc's malloc-perturbing option.
64936         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64937         With my recent change in init.sh from the two-line form:
64938             -#   : ${srcdir=.}
64939             -#   . "$srcdir/init.sh"; path_prepend_ .
64940             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64941         I noticed that using the one-line form would cause this test
64942         to fail with a false-positive, or to stop working altogether,
64943         depending on whether help-version changed or all the tests did.
64944         * top/maint.mk (_hv_regex): Remove this definition.
64945         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64946         (_hv_regex_strong): Use a stronger regex to check for conformance.
64947         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64948         Give a separate diagnostic for lack of conforming use.
64950         maint.mk: prohibit definition of symbols defined by gnulib
64951         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64952         definition of symbols defined by gnulib.
64954 2010-05-09  Bruno Haible  <bruno@clisp.org>
64956         acl: Avoid test failure on Cygwin-hosted mingw.
64957         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64959 2010-05-09  Bruno Haible  <bruno@clisp.org>
64961         error: Use system's fcntl function.
64962         * lib/error.c (fcntl): Undefine.
64964 2010-05-09  Jim Meyering  <meyering@redhat.com>
64966         verify: adjust formatting to be more consistent
64967         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64968         argument-list '('s, and after one comma.
64970 2010-05-09  Bruno Haible  <bruno@clisp.org>
64972         error: More reliable output on mingw.
64973         * lib/error.c: Include <windows.h>.
64974         (is_open): New function.
64975         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64976         defined.
64978 2010-05-09  Bruno Haible  <bruno@clisp.org>
64980         vasnprintf: Fix syntax errors in libintl build on mingw.
64981         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64982         pad_ourselves and prec_ourselves after use.
64984 2010-05-08  Bruno Haible  <bruno@clisp.org>
64986         * lib/config.charset: Update comments for Cygwin 1.7.
64987         * lib/localcharset.c: Likewise.
64989 2010-05-07  Jim Meyering  <meyering@redhat.com>
64991         init.sh: improve comments
64992         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64993         . "${srcdir=.}/init.sh"; path_prepend_ .
64994         Add a note about path_prepend_ and the alternative of using
64995         TESTS_ENVIRONMENT.
64997 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64999         exclude: Unescape hashed patterns in wildcard mode.
65000         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
65001         to the hash list.
65002         * tests/test-exclude8.sh: New test case.
65003         * modules/exclude-tests: Add new test.
65005 2010-05-05  Eric Blake  <eblake@redhat.com>
65007         verify: automate tests
65008         * modules/verify-tests: New module.
65009         * tests/test-verify.sh: New file.
65010         * tests/test-verify.c: Guard each negative test with a unique id.
65011         Also avoid warning about unused left hand of comma expressions.
65013 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65015         Further improvements to verify.h, suggested by Eric Blake.
65016         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
65017         the GL_* versions, to avoid collision with OpenGL.
65018         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
65019         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
65020         than testing merely whether it's defined.
65022         Modify verify.h to pacify gcc -Wredundant_decls.
65023         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
65024         These use the prefix "GL_" since they're likely to be useful elsewhere.
65025         We may need to break them out into a different .h file.
65026         (__COUNTER__): Define to 0 if the compiler doesn't support it.
65027         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
65028         of verify_function__.
65030 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65032         Tests for module pwrite.
65033         * modules/pwrite-tests: New file.
65034         * tests/test-pwrite.sh: New file.
65035         * tests/test-pwrite.c: New file.
65037         New module pwrite.
65038         * lib/unistd.in.h (pwrite): New declaration.
65039         * lib/pwrite.c: New file, from glibc with modifications.
65040         * m4/pwrite.m4: New file.
65041         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
65042         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
65043         REPLACE_PWRITE.
65044         * modules/pwrite: New file.
65045         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
65046         REPLACE_PWRITE.
65047         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
65048         * doc/posix-functions/pwrite.texi: Mention the new module.
65050 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65052         pread: Update documentation.
65053         * doc/posix-functions/pread.texi: Mention the 'pread' module.
65055 2010-05-04  Eric Blake  <eblake@redhat.com>
65057         docs: update cygwin progress
65058         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
65059         this bug.
65060         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
65061         Added in cygwin 1.7.2.
65062         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
65063         Likewise.
65064         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
65065         Likewise.
65066         * doc/glibc-functions/dup3.texi (dup3): Likewise.
65067         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
65068         * doc/glibc-functions/accept4.texi (accept4): Likewise.
65069         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
65070         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
65071         Mention nproc module.
65072         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
65073         bug in cygwin 1.7.5 addition.
65074         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
65075         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
65076         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
65077         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
65078         1.7.5.
65079         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
65080         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
65081         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
65082         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
65083         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
65084         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
65085         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
65086         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
65087         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
65088         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
65089         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
65090         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
65091         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
65092         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
65093         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
65094         Likewise.
65095         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
65096         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
65097         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
65098         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
65099         Likewise.
65100         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
65101         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
65102         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
65103         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
65104         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
65105         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
65106         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
65107         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
65108         Likewise.
65109         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
65110         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
65111         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
65112         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
65113         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65114         Likewise.
65115         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
65116         Likewise.
65117         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
65118         Likewise.
65119         * doc/glibc-functions/xdrrec_endofrecord.texi
65120         (xdrrec_endofrecord): Likewise.
65121         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
65122         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
65123         Likewise.
65124         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
65125         Likewise.
65127 2010-05-04  Jim Meyering  <meyering@redhat.com>
65129         gendocs.sh: make its "-s FILE" option more useful
65130         * build-aux/gendocs.sh: When honoring the -s FILE option, update
65131         $PACKAGE to reflect the probably-different basename of "FILE".
65133 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65135         bootstrap: don't ignore download_po_files failure
65136         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
65137         failure.
65139 2010-05-03  Jim Meyering  <meyering@redhat.com>
65141         maint.mk: allow to pass options to gendocs.sh
65142         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
65143         (gendocs_options_): New overridable variable.
65145         gnu-web-doc-update: don't ignore configure or build failure
65146         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
65148         announce-gen: backslash-escape '@'s in --help output
65149         * build-aux/announce-gen: Fix syntax errors.
65151         maint.mk, announce-gen: allow project-specific announcement mail headers
65152         * top/maint.mk (translation_project_): Define default.
65153         (announcement_Cc_, announcement_mail_headers_): Likewise.
65154         (announcement): Invoke announce-gen with new --mail-headers option.
65155         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
65157         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
65158         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
65159         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
65160         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
65161         line in the "err2" output file when running "make check" in verbose
65162         mode (i.e., with set -x enabled).
65164 2010-05-03  Bruno Haible  <bruno@clisp.org>
65166         wctob: Fix for weird platforms.
65167         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
65168         argument value.
65170 2010-05-03  Jim Meyering  <meyering@redhat.com>
65172         maint.mk: prohibit unwarranted use of <strings.h>
65173         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
65174         strings.h in a file that does not also use strcasecmp, strncasecmp,
65175         ffs or ffsll.
65177         maint.mk: remove obsolete comments
65178         * top/maint.mk: Remove stale, commented-out rules.
65180 2010-05-02  Bruno Haible  <bruno@clisp.org>
65182         wcwidth: Declare also when it's aliased.
65183         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
65184         macro.
65186 2010-05-02  Bruno Haible  <bruno@clisp.org>
65188         Fix regression from 2010-04-25.
65189         * gnulib-tool (func_modules_transitive_closure): Check the status of
65190         all modules, not only of the tests that are of the form foo-tests where
65191         foo is a module.
65193 2010-05-02  Bruno Haible  <bruno@clisp.org>
65195         wctob: Work around nasty Cygwin 1.7.2 bug.
65196         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
65197         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
65199 2010-05-01  Bruno Haible  <bruno@clisp.org>
65201         fpurge: Sharper test.
65202         * tests/test-fpurge.c (main): Add one more ftell check.
65203         * modules/fpurge-tests (Depends-on): Add ftell.
65204         Suggested by Eric Blake.
65206 2010-05-01  Bruno Haible  <bruno@clisp.org>
65208         ftello: Another test.
65209         * tests/test-ftello3.c: New file.
65210         * modules/ftello-tests (Files): Add it.
65211         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65212         MOSTLYCLEANFILES.
65214         ftell: Another test.
65215         * tests/test-ftell3.c: New file.
65216         * modules/ftell-tests (Files): Add it.
65217         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65218         MOSTLYCLEANFILES.
65220 2010-05-01  Bruno Haible  <bruno@clisp.org>
65222         ftell, ftello: Work around Solaris bug.
65223         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
65224         * lib/ftello.c: Include stdio-impl.h.
65225         (ftello): On Solaris, when _IOWRT is set, compute the result without
65226         looking at _IOREAD.
65227         * modules/ftello (Files): Add lib/stdio-impl.h.
65228         * doc/posix-functions/ftell.texi: Mention Solaris bug.
65229         * doc/posix-functions/ftello.texi: Likewise.
65230         Reported by Eric Blake.
65232 2010-05-01  Bruno Haible  <bruno@clisp.org>
65234         freading: Adapt to special meaning of _IOREAD flag on Solaris.
65235         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
65236         the _IOWRT flag is also set.
65238 2010-05-01  Bruno Haible  <bruno@clisp.org>
65240         Fix doc about a HP-UX stdio bug.
65241         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
65242         * doc/posix-functions/ftello.texi: Likewise.
65244 2010-05-01  Bruno Haible  <bruno@clisp.org>
65246         lseek test: Fix failure on Solaris.
65247         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
65248         output.
65250 2010-04-30  Jim Meyering  <meyering@redhat.com>
65252         bootstrap: don't ignore failure to generate po*/Makevars
65253         * build-aux/bootstrap (with_gettext): Don't ignore failure
65254         to create po/Makevars or runtime-po/Makevars.
65256 2010-04-29  Eric Blake  <eblake@redhat.com>
65258         headers: relax license to LGPLv2+
65259         * modules/fcntl-h (License): Relax license.
65260         * modules/getopt-posix (License): Likewise.
65261         * modules/locale (License): Likewise.
65262         * modules/math (License): Likewise.
65263         * modules/pty (License): Likewise.
65264         * modules/sched (License): Likewise.
65265         * modules/search (License): Likewise.
65266         * modules/spawn (License): Likewise.
65267         * modules/stdarg (License): Likewise.
65268         * modules/sysexits (License): Likewise.
65270 2010-04-29  Jim Meyering  <meyering@redhat.com>
65272         inttypes: relax license to LGPLv2+
65273         * modules/inttypes (License): Relax license.
65275 2010-04-29  Simon Josefsson  <simon@josefsson.org>
65277         * top/maint.mk (indent): Run twice to produce idempotent results.
65279 2010-04-28  Bruno Haible  <bruno@clisp.org>
65281         getdate: Generate getdate.c in the source directory.
65282         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
65283         MOSTLYCLEANFILES.
65284         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
65286 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
65288         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
65289         is not declared as a const *; avoid warnings in that case.
65291 2010-04-28  Eric Blake  <eblake@redhat.com>
65293         canonicalize-lgpl: avoid compiler warning
65294         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
65295         declaration' / 'extraneous semicolon' warning with some compilers.
65296         Reported by Andreas Gruenbacher.
65298 2010-04-28  Jim Meyering  <meyering@redhat.com>
65300         init.sh: ensure a more reliable exit status when exiting via trap
65301         * tests/init.sh (setup_): Don't rely on $? in signal handler.
65302         Inspired by patches from Dmitry V. Levin.
65303         Also trap on signal 3 (SIGQUIT).
65305 2010-04-27  Bruno Haible  <bruno@clisp.org>
65307         Update doc about utimes().
65308         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
65309         'utimens' module.
65310         Reported by Andreas Gruenbacher <agruen@suse.de>.
65312 2010-04-27  Eric Blake  <eblake@redhat.com>
65314         full-read, full-write: relax license
65315         * modules/full-read (License): Drop to LGPLv2+.
65316         * modules/full-write (License): Likewise.
65317         * modules/safe-read (License): Likewise.
65318         * modules/safe-write (License): Likewise.
65320         pthread: mention library for linking
65321         * modules/pthread (Link): Mention $(LIB_PTHREAD).
65323 2010-04-27  Jim Meyering  <meyering@redhat.com>
65325         maint.mk: fix a bug introduced in last change
65326         * top/maint.mk (gl_assured_headers_): Now that all names are on
65327         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
65328         is not anchored to end of word, it should be adequate.
65330         maint.mk: avoid side-effect in latest syntax-check
65331         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
65332         to run commands via $(shell...), and hence to incur cost only when
65333         the new rule is actually run.
65335         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
65336         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
65337         and use that to create a regexp used to detect all #if HAVE_..._H uses.
65338         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
65339         (gl_assured_headers_, az_, AZ_): Define.
65340         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
65342 2010-04-26  Jim Meyering  <jim@meyering.net>
65343             Bruno Haible  <bruno@clisp.org>
65345         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
65346         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
65347         Prompted by an exchange with Gilles Espinasse.
65349 2010-04-26  Jim Meyering  <meyering@redhat.com>
65351         git-version-gen: aesthetic tweak
65352         * build-aux/git-version-gen: Use "$nl" rather than a literal,
65353         so that the command remains on a single line.
65355 2010-04-26  Eric Blake  <eblake@redhat.com>
65357         git-version-gen: allow use on EBCDIC hosts
65358         * build-aux/git-version-gen (dirty): Use literal rather than tying
65359         ourselves to ascii.
65360         Reported by Steve Goetze.
65362 2010-04-25  Bruno Haible  <bruno@clisp.org>
65364         netdb: Add support for GNULIB_POSIXCHECK.
65365         * lib/netdb.in.h: Include warn-on-use.h.
65366         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
65367         functions are used when GNULIB_POSIXCHECK is defined and the
65368         getaddrinfo module is not in use.
65369         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
65370         freeaddrinfo, gai_strerror, getnameinfo are declared.
65371         * modules/netdb (Depends-on): Add warn-on-use.
65372         (Makefile.am): Include warn-on-use.h in netdb.h.
65374 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
65376         build: avoid "make check" failure without .git/ directory
65377         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
65378         there is no .git/ directory.
65380 2010-04-25  Bruno Haible  <bruno@clisp.org>
65382         ptsname: Fix misuse of ttyname_r.
65383         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
65384         of errno.
65386 2010-04-25  Bruno Haible  <bruno@clisp.org>
65388         ttyname_r: Make it work on Solaris 10.
65389         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
65390         if the system function has the POSIX declaration. Test whether the
65391         function fails if the buffer is less than 128 bytes large.
65392         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
65393         system's ttyname_r function. Provide a reasonably large buffer.
65394         * modules/ttyname_r (Depends-on): Add extensions.
65395         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
65397 2010-04-25  Bruno Haible  <bruno@clisp.org>
65399         Use the 'extensions' module for some more functions on Solaris.
65400         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
65401         module.
65402         * doc/posix-functions/ctime_r.texi: Likewise.
65403         * doc/posix-functions/getgrgid_r.texi: Likewise.
65404         * doc/posix-functions/getgrnam_r.texi: Likewise.
65405         * doc/posix-functions/getpwnam_r.texi: Likewise.
65406         * doc/posix-functions/getpwuid_r.texi: Likewise.
65407         * doc/posix-functions/readdir_r.texi: Likewise.
65408         * doc/posix-functions/sigwait.texi: Likewise.
65409         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
65410         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
65412 2010-04-25  Bruno Haible  <bruno@clisp.org>
65414         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
65415         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
65416         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
65417         * lib/ttyname_r.c: Include <limits.h>.
65418         (ttyname_r): Define using the system's ttyname_r function, if it exists
65419         and not on Solaris.
65420         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
65421         set.
65422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
65423         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
65424         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
65425         Reported by Simon Josefsson.
65427 2010-04-25  Bruno Haible  <bruno@clisp.org>
65429         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
65430         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
65431         * doc/posix-functions/ctime_r.texi: Likewise.
65432         * doc/posix-functions/getgrgid_r.texi: Likewise.
65433         * doc/posix-functions/getgrnam_r.texi: Likewise.
65434         * doc/posix-functions/getlogin_r.texi: Likewise.
65435         * doc/posix-functions/getpwnam_r.texi: Likewise.
65436         * doc/posix-functions/getpwuid_r.texi: Likewise.
65437         * doc/posix-functions/readdir_r.texi: Likewise.
65438         * doc/posix-functions/sigwait.texi: Likewise.
65439         * doc/posix-functions/ttyname_r.texi: Likewise.
65440         Reported by Simon Josefsson.
65442 2010-04-25  Bruno Haible  <bruno@clisp.org>
65444         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
65445         * gnulib-tool (func_usage): Document that --with-*-tests options apply
65446         also to --create-testdir.
65447         (func_acceptable): Don't consider the status of *-tests modules here.
65448         (func_modules_transitive_closure): Consider it here, before including a
65449         test module.
65450         (func_import, func_create_testdir): Set inc_all_direct_tests,
65451         inc_all_indirect_tests.
65452         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
65453         --create-testdir and --create-megatestdir.
65455 2010-04-25  Bruno Haible  <bruno@clisp.org>
65457         gnulib-tool: Add --without-*-tests options.
65458         * gnulib-tool (func_usage): Document the --without-*-tests options.
65459         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
65460         excl_unportable_tests): New variables.
65461         Fail if they are specified with --import or --update.
65462         (func_acceptable): Respect the excl_*_tests variables.
65463         (func_import): Set the excl_*_tests variables to empty.
65465 2010-04-25  Simon Josefsson  <simon@josefsson.org>
65466             Bruno Haible  <bruno@clisp.org>
65468         Work around a MacOS X 10.4 bug with openpty.
65469         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
65470         * tests/test-openpty.c (main): Close the master side explicitly.
65472 2010-04-25  Bruno Haible  <bruno@clisp.org>
65474         strnlen: Fix a C++ test error on MacOS X and Solaris.
65475         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
65476         the function is not declared.
65477         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
65478         Simon Josefsson.
65480 2010-04-24  Bruno Haible  <bruno@clisp.org>
65482         Avoid a gcc warning.
65483         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
65484         of correct type for %08lx directive.
65485         Reported by Eric Blake.
65487 2010-04-24  Bruno Haible  <bruno@clisp.org>
65489         vasnprintf: Correct errno value in case of out-of-memory.
65490         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
65491         or sprintf. Use the errno value from SNPRINTF or sprintf.
65492         Reported by Ian Beckwith <ianb@erislabs.net>.
65494 2010-04-24  Bruno Haible  <bruno@clisp.org>
65496         ansi-c++-opt: Find correct compiler when cross-compiling.
65497         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
65498         AC_CHECK_PROGS.
65499         Reported by Simon Josefsson.
65501 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
65503         vc-list-files: Add support for subversion
65504         * build-aux/vc-list-files: Use "svn list" to generate the list of
65505         files controlled by subversion.
65507 2010-04-23  Jim Meyering  <meyering@redhat.com>
65509         vc-list-files tests: convert to use init.sh
65510         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
65511         path_prepend_.
65512         Use Exit, not exit.
65513         Use skip_ rather than open coding it.
65514         Remove trap set-up and compare definitions.
65515         * tests/test-vc-list-files-git.sh: Likewise.
65516         * modules/vc-list-files-tests (Files): Add tests/init.sh.
65518 2010-04-22  Simon Josefsson  <simon@josefsson.org>
65520         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
65521         backup files.
65523 2010-04-21  Simon Josefsson  <simon@josefsson.org>
65525         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
65527 2010-04-20  Eric Blake  <eblake@redhat.com>
65529         tests: be robust to ignored SIGPIPE
65530         * tests/test-select-in.sh: Consume all output.
65531         * tests/test-lseek.sh: Check correct exit status, while avoiding
65532         EPIPE.
65534 2010-04-20  Simon Josefsson  <simon@josefsson.org>
65535             Bruno Haible  <bruno@clisp.org>
65537         visibility: Don't use -fvisibility if it leads to a warning.
65538         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
65539         yes, don't pretend that visibility works if it leads to a warning.
65540         Reported by Mike Gran <spk121@yahoo.com>.
65542 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
65544         * build-aux/bootstrap: Use "git -h" for testing for supported options
65545         instead of "git --help".  The short-form option only shows a summary,
65546         and doesn't layout the full man page.  Grep for the full option name
65547         in the summary, too.
65549 2010-04-19  Bruno Haible  <bruno@clisp.org>
65551         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
65552         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
65553         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
65554         mention of RELOCATABLE_STRIP.
65555         Reported by Sylvain Beucler <beuc@beuc.net>.
65557 2010-04-19  Bruno Haible  <bruno@clisp.org>
65559         * lib/diffseq.h: Fix typo in comment.
65560         Reported by Eric Blake.
65562 2010-04-19  Bruno Haible  <bruno@clisp.org>
65564         ioctl: Move autoconf macro to a .m4 file.
65565         * m4/ioctl.m4: New file, extracted from modules/ioctl.
65566         * modules/ioctl (Files): Add it.
65567         (configure.ac): Simply invoke gl_FUNC_IOCTL.
65568         Reported by Ian Beckwith <ianb@erislabs.net>.
65570 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
65571             Bruno Haible  <bruno@clisp.org>
65573         diffseq: Accommodate use-case with abstract arrays.
65574         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
65575         is not defined.
65576         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
65577         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
65579 2010-04-18  Bruno Haible  <bruno@clisp.org>
65581         * doc/posix-headers/stdbool.texi: More precise wording.
65583 2010-04-17  Jim Meyering  <meyering@redhat.com>
65585         maint.mk: use gnu-style indentation in an embedded perl script
65586         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
65587         Rename variable: s/two/last_two_bytes/
65589 2010-04-16  Eric Blake  <eblake@redhat.com>
65591         test-stdbool: skip test that fails with Solaris CC
65592         * tests/test-stdbool.c (f): Skip test that causes compilation
65593         error under buggy C++ compiler.
65594         * lib/stdbool.in.h: Document the limitation.
65595         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
65597         setenv: allow compilation with C++
65598         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
65599         register keyword.
65601         stdint: allow test to pass with C++
65602         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
65604         getopt: allow compilation with C++
65605         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
65606         struct.
65607         * lib/getopt.c (_getopt_internal_r): Use correct type.
65608         Reported by Dagobert Michelson, via Joel E. Denny.
65610 2010-04-16  Bruno Haible  <bruno@clisp.org>
65612         Override netdb.h always.
65613         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
65614         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
65615         Reported by Ludovic Courtès <ludo@gnu.org>.
65617 2010-04-15  Bruno Haible  <bruno@clisp.org>
65619         openpty: Fix mistake from 2010-03-21.
65620         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
65621         Reported by Simon Josefsson.
65623 2010-04-15  Eric Blake  <eblake@redhat.com>
65625         test-forkpty: fix expected signature
65626         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
65627         Reported by Simon Josefsson.
65629 2010-04-15  Jim Meyering  <meyering@redhat.com>
65631         maint.mk: texinfo_suffix_re_: correct the default regexp
65632         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
65634         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
65635         make it configurable via texinfo_suffix_re_.
65637 2010-04-14  Eric Blake  <eblake@redhat.com>
65639         strtok_r: relax license to LGPLv2+
65640         * modules/strtok_r (License): Relax license.
65641         Reported by Matthias Bolte.
65643 2010-04-14  Simon Josefsson  <simon@josefsson.org>
65645         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
65646         version 1.4.4 by default instead of requiring the libgcrypt
65647         version used during build.  This makes it possible to use the
65648         application with older but still binary compatible libgcrypt
65649         versions.
65651 2010-04-13  Eric Blake  <eblake@redhat.com>
65653         getopt-gnu: match recent glibc fixes and posix ruling
65654         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
65655         '+' handling, when requesting extensions.
65656         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
65657         'W;' handling.
65658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
65659         * doc/posix-functions/getopt.texi (getopt): Document this.
65660         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65661         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65662         Likewise.
65664         getopt: merge bug fixes from glibc
65665         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
65666         diagnostics.  Honor '+:' correctly.  Reject ';'.
65668         getopt-posix: detect MacOS bug
65669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65670         optind when missing a required argument.
65671         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65672         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65673         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65674         Likewise.
65676         getopt-posix: avoid spurious failure on Solaris
65677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65678         an indicator that setting optind=1 is sufficient for reset.
65680         getopt-posix: avoid spurious failure on FreeBSD
65681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65682         in POSIX mode, since the m4 test uses it.
65684         gnulib-tool: silence warning on BSD sh
65685         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65687 2010-04-13  Jim Meyering  <meyering@redhat.com>
65689         doc: users.txt: GNU patch now uses gnulib
65690         * users.txt: Add patch.
65692 2010-04-12  Jim Meyering  <meyering@redhat.com>
65694         maint.mk: generate more concise timing data for syntax-check rules
65695         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65696         " done" from each line that reports a syntax-check test duration.
65698 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65700         git-version-gen: use "git update-index..." rather than "git status"
65701         * build-aux/git-version-gen: Use git update-index --refresh, not
65702         "git status".  With some versions of git, "git status" would fail
65703         to update the index and result in an unwarranted "-dirty" suffix.
65705 2010-04-11  Jim Meyering  <meyering@redhat.com>
65707         openat: correct formatting (no semantic change)
65708         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
65709         Suggested by Bruno Haible.
65711 2010-04-11  Bruno Haible  <bruno@clisp.org>
65713         Stricter declaration checking in testdirs.
65714         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65715         If for_tests is true, augment AM_CPPFLAGS to define
65716         GNULIB_STRICT_CHECKING.
65717         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
65718         GNULIB_STRICT_CHECKING is defined, verify that the function is
65719         declared.
65721 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
65722             Bruno Haible  <bruno@clisp.org>
65724         libunistring: Improve configure output.
65725         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
65726         Don't say "consider installing GNU libunistring" when checking again
65727         with libiconv.
65729 2010-04-11  Bruno Haible  <bruno@clisp.org>
65731         libunistring: Correct value of $LTLIBUNISTRING.
65732         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
65733         correct the value of $LTLIBUNISTRING.
65735 2010-04-11  Bruno Haible  <bruno@clisp.org>
65737         havelib: Add static libraries to LIBS in the right order.
65738         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
65739         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
65741 2010-04-11  Bruno Haible  <bruno@clisp.org>
65743         libunistring: Detect libunistring also when it depends on libiconv.
65744         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
65745         the second AC_LIB_HAVE_LINKFLAGS invocation.
65747 2010-04-11  James Youngman  <jay@gnu.org>
65749         close-stream: declare local scalars to be "const"
65750         * lib/close-stream.c (close_stream): Make boolean variables const
65751         to document the fact that we set but do not change them.
65753 2010-04-11  Bruno Haible  <bruno@clisp.org>
65755         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
65757 2010-04-11  Jim Meyering  <meyering@redhat.com>
65759         maint.mk: don't include dist-check.mk
65760         * top/maint.mk: Remove bogus include directive.
65762         maint.mk: improve empty-line-at-EOF check
65763         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
65764         solution, rather than tail+Perl-based one.  The latter would read
65765         a few kilobytes from the end of each file, and did not handle empty
65766         files properly.
65768         maint.mk: print the elapsed time for each syntax-check rule
65769         * top/maint.mk (sc_m_rules_): Save start time in a file.
65770         (sc_z_rules_): New rules: remove temp file and print elapsed time.
65771         (local-check): Interpose the .z rules
65773 2010-04-11  Jim Meyering  <meyering@redhat.com>
65775         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
65776         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
65777         empty file with one that ends in an empty line.
65779 2010-04-10  Bruno Haible  <bruno@clisp.org>
65781         mkdir: Make it work on mingw64.
65782         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
65783         * lib/mkdir.c: Update comment.
65784         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
65786 2010-04-10  Bruno Haible  <bruno@clisp.org>
65788         Don't override improved macro from newer autoconf.
65789         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
65790         autoconf >= 2.62.
65791         Reported by Joel E. Denny <jdenny@clemson.edu>.
65793 2010-04-10  Jim Meyering  <meyering@redhat.com>
65795         maint.mk: new syntax-check rule: prohibit empty lines at end of file
65796         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
65798         maint.mk: correct a diagnostic
65799         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
65800         in diagnostic; now use $prohibit.
65802 2010-04-10  Bruno Haible  <address@hidden>
65804         fchownat: Fix a C++ test error on Solaris 8.
65805         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65806         the function does not exist.
65808 2010-04-10  Bruno Haible  <bruno@clisp.org>
65810         vasnprintf: Add more tests.
65811         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65812         (test_function): Test converting an invalid wide string.
65814         vasnprintf: Correct handling of unconvertible wide string arguments.
65815         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65816         VASNPRINTF.
65817         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65818         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65819         smaller than the expected maximum need for the directive. Set errno to
65820         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65821         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65823         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65824         * modules/vasnprintf (Files): Add m4/printf.m4.
65825         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65827 2010-04-10  Bruno Haible  <bruno@clisp.org>
65829         vasnprintf: Fix crash in %ls directive.
65830         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65831         string is passed as argument to %ls, with no precision and no width.
65832         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65834 2010-04-10  Bruno Haible  <bruno@clisp.org>
65836         vasnprintf: Fix multiple test failures on mingw.
65837         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65838         _snprintf, or snwprintf, not _snwprintf.
65840 2010-04-10  Bruno Haible  <bruno@clisp.org>
65842         write: Fix a C++ test error on mingw.
65843         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65845 2010-04-10  Bruno Haible  <bruno@clisp.org>
65847         vasnprintf test: Reduce code duplication.
65848         * tests/test-vasnprintf.c (test_function): New function, extracted from
65849         test_vasnprintf.
65850         (test_vasnprintf, test_asnprintf): Invoke it.
65852 2010-04-10  Bruno Haible  <bruno@clisp.org>
65854         strnlen: Fix warning in C++ mode on MacOS X.
65855         * lib/string.in.h (strnlen): Use the modern idiom.
65856         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65857         defining strnlen as a macro already in <config.h>.
65858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65859         REPLACE_STRNLEN.
65860         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65861         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65863 2010-04-08  James Youngman  <jay@gnu.org>
65865         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65866         the example.
65868 2010-04-09  Jim Meyering  <meyering@redhat.com>
65870         maint.mk: print better diagnostic when there is no $(_hv_file)
65871         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65872         announce that when $(_hv_file) (aka help-version) does not exist.
65874         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65875         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65876         not try to interpret its random input bytes.  Jarno Rajahalme reported
65877         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65878         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65879         (mktempd_): Likewise, just in case.
65881         ftruncate: add two years to projected module removal date: 2012
65882         * m4/ftruncate.m4: Adjust comments.
65884         ftruncate: mark module as obsolete; even MinGW provides it, now
65885         * modules/ftruncate (Status): Obsolete.
65886         (Notice): Say that.
65887         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65888         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65890 2010-04-08  Bruno Haible  <bruno@clisp.org>
65892         Fix side effects from tests-related modules.
65893         * modules/dprintf-posix (Comment): New section.
65894         * modules/fprintf-posix (Comment): Likewise.
65895         * modules/obstack-printf-posix (Comment): Likewise.
65896         * modules/printf-posix (Comment): Likewise.
65897         * modules/snprintf-posix (Comment): Likewise.
65898         * modules/sprintf-posix (Comment): Likewise.
65899         * modules/vasnprintf-posix (Comment): Likewise.
65900         * modules/vasprintf-posix (Comment): Likewise.
65901         * modules/vdprintf-posix (Comment): Likewise.
65902         * modules/vfprintf-posix (Comment): Likewise.
65903         * modules/vprintf-posix (Comment): Likewise.
65904         * modules/vsnprintf-posix (Comment): Likewise.
65905         * modules/vsprintf-posix (Comment): Likewise.
65906         * modules/xprintf-posix (Comment): Likewise.
65907         * modules/xvasprintf-posix (Comment): Likewise.
65908         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65909         * modules/floorf-tests (Depends-on): Likewise.
65910         * modules/round-tests (Depends-on): Likewise.
65911         * modules/roundf-tests (Depends-on): Likewise.
65912         * modules/trunc-tests (Depends-on): Likewise.
65913         * modules/truncf-tests (Depends-on): Likewise.
65914         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65915         'fprintf-posix' module is not present.
65916         * tests/test-floorf2.c (check): Likewise.
65917         * tests/test-trunc2.c (check): Likewise.
65918         * tests/test-truncf2.c (check): Likewise.
65919         * tests/test-round2.c (equal): Likewise.
65920         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65922 2010-04-07  Karl Berry  <karl@gnu.org>
65924         * config/srclist.txt,
65925         * config/srclistvars.sh,
65926         * config/srclist-update: doc fixes.
65928 2010-04-07  Jim Meyering  <meyering@redhat.com>
65930         maint.mk: add a PATH crosschecking syntax-check rule
65931         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65932         Useful if you use a test like the one in help-version (coreutils,
65933         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65934         printed by prog --version.
65936 2010-04-06  Bruno Haible  <bruno@clisp.org>
65938         Fix link error on mingw.
65939         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65940         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65942 2010-04-06  Bruno Haible  <bruno@clisp.org>
65944         Assume rmdir exists.
65945         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65947 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65949         doc: update users.txt
65950         * users.txt: Add gcal.
65952 2010-04-06  Jim Meyering  <meyering@redhat.com>
65954         init.sh: simply unset TMPDIR rather than risking env -i
65955         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65956         although it probably works fine on all Unix-based systems, some
65957         systems (Cygwin?) cannot tolerate a totally cleared environment.
65958         Suggestion from Eric Blake.
65960 2010-04-06  Jim Meyering  <meyering@redhat.com>
65962         init.sh: portability fix: use env's POSIX-specified -i option not -u
65963         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65964         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65966 2010-04-05  Bruno Haible  <bruno@clisp.org>
65968         btowc: Work around Cygwin 1.7.2 bug.
65969         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65970         does not map NUL to 0.
65971         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65973 2010-04-05  Bruno Haible  <bruno@clisp.org>
65975         Make the multithread modules work on Cygwin 1.7.2.
65976         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65977         imported symbols can be declared weak, so that it returns "no" on
65978         Cygwin 1.7.2.
65980 2010-04-05  Bruno Haible  <bruno@clisp.org>
65982         Use the module 'strncat'.
65983         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65985         Tests for module 'strncat'.
65986         * modules/strncat-tests: New file.
65987         * tests/test-strncat.c: New file.
65989         New module 'strncat'.
65990         * lib/string.in.h (strncat): New declaration.
65991         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65992         * m4/strncat.m4: New file, based on m4/memchr.m4.
65993         * modules/strncat: New file.
65994         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65995         is declared.
65996         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65997         REPLACE_STRNCAT.
65998         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65999         REPLACE_STRNCAT.
66000         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
66001         module.
66002         * tests/test-string-c++.cc: Check signature of strncat.
66004 2010-04-05  Jim Meyering  <meyering@redhat.com>
66006         xstrtoumax-tests: convert to use init.sh
66007         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
66008         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66009         Use Exit, not exit.
66010         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66012         xstrtoimax-tests: convert to use init.sh
66013         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
66014         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66015         Use Exit, not exit.
66016         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66018 2010-04-05  Bruno Haible  <bruno@clisp.org>
66020         sys_socket: Avoid #define replacements in C++ mode.
66021         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
66022         warning to the function if possible, rather than #defining the symbol
66023         to a dysfunctional alias.
66025 2010-04-05  Bruno Haible  <bruno@clisp.org>
66027         fseeko: Fix C++ test error on mingw.
66028         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
66029         gl_FUNC_FSEEKO.
66030         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
66031         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
66032         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
66033         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
66035 2010-04-05  Bruno Haible  <bruno@clisp.org>
66037         duplocale: Improve test output.
66038         * tests/test-duplocale.c (main): Print reason for skipped test.
66040 2010-04-05  Bruno Haible  <bruno@clisp.org>
66042         Assume rmdir exists.
66043         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
66044         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
66046 2010-04-05  Bruno Haible  <bruno@clisp.org>
66048         Fix link error on Solaris 8 with cc.
66049         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
66051 2010-04-05  Bruno Haible  <bruno@clisp.org>
66053         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66054         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
66056 2010-04-05  Bruno Haible  <bruno@clisp.org>
66058         vasprintf: Update documentation.
66059         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
66061 2010-04-05  Bruno Haible  <bruno@clisp.org>
66063         ptsname: Improve test.
66064         * tests/test-ptsname.c (main): Also try the various master names of BSD
66065         systems.
66067 2010-04-05  Bruno Haible  <bruno@clisp.org>
66069         memchr: Avoid a possible C++ test error.
66070         * lib/string.in.h (memchr): Provide declaration if function is missing.
66071         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
66072         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
66073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
66074         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
66076 2010-04-05  Bruno Haible  <bruno@clisp.org>
66078         strtok_r: Improve idiom.
66079         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
66080         AC_LIBOBJ is used.
66082 2010-04-05  Bruno Haible  <bruno@clisp.org>
66084         strdup: Improve idiom.
66085         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
66086         AC_LIBOBJ is used.
66087         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
66088         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
66089         when AC_LIBOBJ is used.
66091 2010-04-05  Bruno Haible  <bruno@clisp.org>
66093         mbsinit, mbrtowc, wcrtomb: Improve idioms.
66094         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
66095         don't set REPLACE_MBSINIT to 1.
66096         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
66097         don't set REPLACE_MBRTOWC to 1.
66098         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
66099         exist, don't set REPLACE_MBSRTOWCS to 1.
66100         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
66101         exist, don't set REPLACE_MBSNRTOWCS to 1.
66102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
66103         don't set REPLACE_WCRTOMB to 1.
66104         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
66105         exist, don't set REPLACE_WCSRTOMBS to 1.
66106         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
66107         exist, don't set REPLACE_WCSNRTOMBS to 1.
66109 2010-04-05  Bruno Haible  <bruno@clisp.org>
66111         ldexpl: Improve idiom.
66112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
66113         make sure to set HAVE_DECL_LDEXPL to 0.
66115 2010-04-05  Jim Meyering  <meyering@redhat.com>
66117         xstrtol-tests: convert to use init.sh
66118         * modules/xstrtol-tests (Files): Add tests/init.sh.
66119         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66120         Use Exit, not exit.
66121         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66123         atexit-tests: convert to use init.sh
66124         * modules/atexit-tests (Files): Add tests/init.sh.
66125         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66126         Use Exit, not exit.
66127         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66129         init.sh: fix typo
66130         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
66132         init.sh: make it easier for a test script to write to the tty, ...
66133         when using automake's parallel-tests mode.
66134         * tests/init.sh (stderr_fileno_): Define overridable variable.
66135         (warn_): New function, to use it.
66136         (fail_, skip_, framework_failure_): Use warn_.
66138 2010-04-04  Bruno Haible  <bruno@clisp.org>
66140         btowc: Avoid warning.
66141         * lib/btowc.c: Include <stdlib.h>.
66142         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
66144 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66145             Bruno Haible  <bruno@clisp.org>
66147         wchar: Port to NetBSD 1.5.
66148         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
66149         * lib/wctype.in.h (WEOF): Likewise.
66151 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66152             Bruno Haible  <bruno@clisp.org>
66154         Port extended stdio to NetBSD 1.5.
66155         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
66156         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
66157         older.
66159 2010-04-04  Bruno Haible  <bruno@clisp.org>
66161         string: Remove unused substitution.
66162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66163         HAVE_DECL_STRERROR.
66164         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
66166 2010-04-04  Bruno Haible  <bruno@clisp.org>
66168         strtod: Avoid a possible C++ test error.
66169         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
66170         set REPLACE_STRTOD.
66172 2010-04-04  Bruno Haible  <bruno@clisp.org>
66174         strerror: Update documentation.
66175         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
66177 2010-04-04  Bruno Haible  <bruno@clisp.org>
66179         stdio: Fix some C++ test errors on Solaris 8 with GCC.
66180         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
66181         _GL_CXXALIAS_SYS_CAST.
66183 2010-04-04  Bruno Haible  <bruno@clisp.org>
66185         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66186         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
66187         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
66188         REPLACE_FREXPL to 1.
66189         * doc/posix-functions/frexpl.texi: Update documentation.
66191 2010-04-04  Bruno Haible  <bruno@clisp.org>
66193         math: Fix some C++ test errors on Solaris 8 and Cygwin.
66194         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
66196 2010-04-04  Bruno Haible  <bruno@clisp.org>
66198         Implement nanosleep for native Windows.
66199         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
66201 2010-04-04  Bruno Haible  <bruno@clisp.org>
66203         math: Fix some C++ test errors on Solaris 8.
66204         * lib/math.in.h (truncf, trunc): Use simpler idiom.
66206 2010-04-04  Bruno Haible  <bruno@clisp.org>
66208         math: Fix some C++ test errors on Cygwin.
66209         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
66210         truncl): Provide declaration if the system does not have it.
66211         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
66212         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
66213         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
66214         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
66215         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
66216         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
66217         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
66218         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
66219         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
66220         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
66221         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
66222         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
66223         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
66224         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
66225         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
66226         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
66227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
66228         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66229         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66230         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
66231         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66232         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66234 2010-04-04  Bruno Haible  <bruno@clisp.org>
66236         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
66237         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
66238         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
66239         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
66240         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66241         * m4/isinf.m4 (gl_ISINF): Likewise.
66242         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66244 2010-04-04  Bruno Haible  <bruno@clisp.org>
66246         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
66247         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66249 2010-04-04  Bruno Haible  <bruno@clisp.org>
66251         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
66252         * modules/tmpfile (configure.ac): Update.
66254         tmpfile: Fix C++ test error on mingw.
66255         * lib/stdio.in.h (tmpfile): New declaration.
66256         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
66257         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
66258         * modules/tmpfile (Depends-on): Add stdio.
66259         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66260         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
66261         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
66262         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
66263         REPLACE_TMPFILE.
66264         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
66266 2010-04-04  Bruno Haible  <bruno@clisp.org>
66268         ioctl: Fix C++ test error on mingw.
66269         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
66270         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
66271         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
66273 2010-04-03  Bruno Haible  <bruno@clisp.org>
66275         wcwidth: Fix C++ test error on mingw.
66276         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
66277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
66278         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
66280 2010-04-03  Bruno Haible  <bruno@clisp.org>
66282         nanosleep: Fix C++ test error on mingw.
66283         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
66284         * lib/time.in.h (nanosleep): Use modern idiom.
66285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
66286         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
66287         REPLACE_NANOSLEEP to 1.
66288         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
66289         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
66291 2010-04-03  Bruno Haible  <bruno@clisp.org>
66293         strptime: Fix C++ test error on mingw.
66294         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
66295         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
66296         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
66297         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
66298         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
66299         not REPLACE_STRPTIME.
66300         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
66301         REPLACE_STRPTIME.
66303 2010-04-03  Bruno Haible  <bruno@clisp.org>
66305         timegm: Fix C++ test error on mingw.
66306         * lib/time.in.h (timegm): Use modern idiom.
66307         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
66308         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
66309         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
66310         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
66312 2010-04-03  Bruno Haible  <bruno@clisp.org>
66314         timegm: Assume declaration if function exists.
66315         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
66316         if it exists. Don't clobber ac_cv_func_timegm.
66318 2010-04-03  Bruno Haible  <bruno@clisp.org>
66320         time_r: Fix C++ test error on mingw.
66321         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
66322         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
66323         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
66324         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
66325         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
66327 2010-04-03  Bruno Haible  <bruno@clisp.org>
66329         time_r: Minor updates.
66330         * modules/time_r (Description): Mention the provided functions.
66331         * lib/time_r.c: Don't include <string.h>.
66332         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
66333         * doc/posix-functions/localtime_r.texi: Likewise.
66335 2010-04-03  Bruno Haible  <bruno@clisp.org>
66337         time: Fix regression introduced on 2010-03-08.
66338         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
66339         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
66341 2010-04-03  Jim Meyering  <meyering@redhat.com>
66343         maint.mk: don't silently disable project-specific syntax-check rules
66344         * top/maint.mk (_prohibit_regexp): Define, to help people realize
66345         that they need to convert their project-specific syntax-check rules
66346         to use the new _sc_search_regexp.
66348 2010-04-03  Bruno Haible  <bruno@clisp.org>
66350         fchdir: Fix regression introduced on 2010-03-08.
66351         * lib/unistd.in.h (fchdir): Fix declaration.
66352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
66353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
66354         REPLACE_FCHDIR.
66355         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
66356         REPLACE_FCHDIR.
66358 2010-04-03  Bruno Haible  <bruno@clisp.org>
66360         getpagesize: Fix C++ test error on mingw.
66361         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
66362         system does not declare the function.
66363         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
66364         declared.
66365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66366         HAVE_DECL_GETPAGESIZE.
66367         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
66369 2010-04-03  Bruno Haible  <bruno@clisp.org>
66371         stdio: Make C++ tests work on mingw.
66372         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
66373         does not declare the function.
66375 2010-04-03  Bruno Haible  <bruno@clisp.org>
66377         ftello: Fix C++ test error on mingw.
66378         * lib/stdio.in.h (ftello): Use modern idiom.
66379         * lib/ftello.c (ftello): Renamed from rpl_ftello.
66380         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
66381         is missing and that it needs to be replaced.
66382         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
66383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
66384         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
66386 2010-04-03  Bruno Haible  <bruno@clisp.org>
66388         fseeko: Fix C++ test error on mingw.
66389         * lib/stdio.in.h (fseeko): Use modern idiom.
66390         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
66391         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
66392         is missing and that it needs to be replaced.
66393         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
66394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
66395         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
66397 2010-04-03  Bruno Haible  <bruno@clisp.org>
66399         mkstemp: Fix C++ test error on mingw.
66400         * lib/stdlib.in.h (mkstemp): Use modern idiom.
66401         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
66402         function is missing and that it needs to be replaced.
66403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
66404         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
66406 2010-04-03  Bruno Haible  <bruno@clisp.org>
66408         stpncpy: Fix C++ test error on mingw.
66409         * lib/string.in.h (stpncpy): Use modern idiom.
66410         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
66411         function is missing and that it needs to be replaced.
66412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66413         REPLACE_STPNCPY.
66414         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
66416 2010-04-03  Bruno Haible  <bruno@clisp.org>
66418         sys_stat: Fix C++ test error on mingw.
66419         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
66420         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
66422 2010-04-03  Bruno Haible  <bruno@clisp.org>
66424         pty: Update doc.
66425         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
66427 2010-04-03  Bruno Haible  <bruno@clisp.org>
66429         unistd: Fix C++ test error on mingw.
66430         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
66432 2010-04-03  Bruno Haible  <bruno@clisp.org>
66434         Update doc regarding mingw.
66435         * doc/glibc-functions/openpty.texi: Update regarding mingw.
66436         * doc/glibc-functions/login_tty.texi: Likewise.
66437         * doc/glibc-functions/forkpty.texi: Likewise.
66439 2010-04-03  Bruno Haible  <bruno@clisp.org>
66441         stdlib: Avoid compilation failure of c-strtold on mingw.
66442         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
66444 2010-04-03  Bruno Haible  <bruno@clisp.org>
66446         locale: Make C++ tests work on Cygwin and mingw.
66447         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
66448         cannot provide the function.
66449         Reported by Simon Josefsson.
66451 2010-04-03  Bruno Haible  <bruno@clisp.org>
66453         localename: Port to MacOS X 10.6.
66454         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
66455         memory layout of the locales in MacOS X 10.6 as well.
66456         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
66458 2010-04-02  Bruno Haible  <bruno@clisp.org>
66460         gnulib-tool: Ensure that long-running tests are executed last.
66461         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
66462         running tests after the one for the other tests.
66464 2010-04-02  Bruno Haible  <bruno@clisp.org>
66466         gnulib-tool: Ensure the tests in the main directory are executed first.
66467         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
66468         start with the current directory.
66470 2010-04-02  Bruno Haible  <bruno@clisp.org>
66472         Tests for module 'havelib', moved here from GNU gettext.
66473         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
66474         modifications.
66475         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
66476         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
66477         with modifications.
66478         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
66479         modifications.
66480         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
66481         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
66482         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
66483         with modifications.
66484         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
66485         with modifications.
66486         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
66487         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
66488         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
66489         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
66490         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
66491         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
66492         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
66493         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
66494         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
66495         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
66496         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
66497         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
66498         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
66499         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
66500         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
66501         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
66502         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
66503         with modifications.
66504         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
66505         with modifications.
66506         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
66507         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
66508         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
66509         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
66510         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
66511         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
66512         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
66513         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
66514         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
66515         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
66516         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
66517         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
66518         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
66519         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
66520         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
66521         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
66522         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
66523         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
66524         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
66525         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
66526         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
66527         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
66528         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
66529         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
66530         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
66531         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
66532         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
66533         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
66534         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
66535         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
66536         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
66537         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
66538         * tests/havelib/rpathx/rpathx.c: New file, from
66539         gettext/autoconf-lib-link.
66540         * tests/havelib/rpathx/Makefile.am: New file, from
66541         gettext/autoconf-lib-link.
66542         * tests/havelib/rpathx/configure.ac: New file, from
66543         gettext/autoconf-lib-link with modifications.
66544         * tests/havelib/rpathy/rpathy.c: New file, from
66545         gettext/autoconf-lib-link.
66546         * tests/havelib/rpathy/Makefile.am: New file, from
66547         gettext/autoconf-lib-link.
66548         * tests/havelib/rpathy/configure.ac: New file, from
66549         gettext/autoconf-lib-link with modifications.
66550         * tests/havelib/rpathz/rpathz.c: New file, from
66551         gettext/autoconf-lib-link.
66552         * tests/havelib/rpathz/Makefile.am: New file, from
66553         gettext/autoconf-lib-link.
66554         * tests/havelib/rpathz/configure.ac: New file, from
66555         gettext/autoconf-lib-link with modifications.
66556         * tests/havelib/rpathlx/usex.c: New file, from
66557         gettext/autoconf-lib-link.
66558         * tests/havelib/rpathlx/Makefile.am: New file, from
66559         gettext/autoconf-lib-link.
66560         * tests/havelib/rpathlx/configure.ac: New file, from
66561         gettext/autoconf-lib-link with modifications.
66562         * tests/havelib/rpathly/usey.c: New file, from
66563         gettext/autoconf-lib-link.
66564         * tests/havelib/rpathly/Makefile.am: New file, from
66565         gettext/autoconf-lib-link.
66566         * tests/havelib/rpathly/configure.ac: New file, from
66567         gettext/autoconf-lib-link with modifications.
66568         * tests/havelib/rpathlz/usez.c: New file, from
66569         gettext/autoconf-lib-link.
66570         * tests/havelib/rpathlz/Makefile.am: New file, from
66571         gettext/autoconf-lib-link.
66572         * tests/havelib/rpathlz/configure.ac: New file, from
66573         gettext/autoconf-lib-link with modifications.
66574         * tests/havelib/rpathlyx/usey.c: New file, from
66575         gettext/autoconf-lib-link.
66576         * tests/havelib/rpathlyx/Makefile.am: New file, from
66577         gettext/autoconf-lib-link.
66578         * tests/havelib/rpathlyx/configure.ac: New file, from
66579         gettext/autoconf-lib-link with modifications.
66580         * tests/havelib/rpathlzyx/usez.c: New file, from
66581         gettext/autoconf-lib-link.
66582         * tests/havelib/rpathlzyx/Makefile.am: New file, from
66583         gettext/autoconf-lib-link.
66584         * tests/havelib/rpathlzyx/configure.ac: New file, from
66585         gettext/autoconf-lib-link with modifications.
66586         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
66587         with modifications.
66589 2010-04-02  Bruno Haible  <bruno@clisp.org>
66591         gnulib-tool: Create distributed built sources also for the tests.
66592         * gnulib-tool (func_create_testdir): Also generate distributed built
66593         sources in the tests directory.
66595 2010-04-02  Bruno Haible  <bruno@clisp.org>
66597         gnulib-tool: Obey user's environment variables.
66598         * gnulib-tool (func_create_testdir): When creating built sources,
66599         respect the environment variables for autoconf, automake, etc. given by
66600         the user.
66602 2010-04-02  Bruno Haible  <bruno@clisp.org>
66604         gnulib-tool: Provide the value of --m4-base to modules.
66605         * gnulib-tool (func_import, func_create_testdir): Emit a definition
66606         of gl_m4_base.
66608 2010-04-02  Eric Blake  <eblake@redhat.com>
66610         maint.mk: fix some fallout
66611         * NEWS: Document the incompatible change, and its effect on cfg.mk.
66612         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
66614 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66616         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
66617         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
66618         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
66619         (sc_cast_of_x_alloc_return_value): Likewise.
66620         (sc_cast_of_alloca_return_value): Likewise.
66621         (sc_space_tab): Likewise.
66622         (sc_prohibit_atoi_atof): Likewise.
66623         (sc_prohibit_magic_number_exit): Likewise.
66624         (sc_error_exit_success): Likewise.
66625         (sc_file_system): Likewise.
66626         (sc_prohibit_have_config_h): Likewise.
66627         (sc_require_config_h): Likewise.
66628         (sc_prohibit_HAVE_MBRTOWC): Likewise.
66629         (sc_obsolete_symbols): Likewise.
66630         (sc_changelog): Likewise.
66631         (sc_program_name): Likewise.
66632         (sc_the_the): Likewise.
66633         (sc_trailing_blank): Likewise.
66634         (sc_two_space_separator_in_usage): Likewise.
66635         (sc_useless_cpp_parens): Likewise.
66636         (sc_GPL_version): Likewise.
66637         (sc_GFDL_version): Likewise.
66638         (sc_texinfo_acronym): Likewise.
66639         (sc_prohibit_cvs_keyword): Likewise.
66640         (sc_prohibit_stat_st_blocks): Likewise.
66641         (sc_prohibit_S_IS_definition): Likewise.
66642         (sc_redundant_const): Likewise.
66643         (sc_makefile_TAB_only_indentation): Likewise.
66644         (sc_m4_quote_check): Likewise.
66645         (sc_makefile_path_separator_check): Likewise.
66646         (sc_copyright_check): Likewise.
66647         (sc_Wundef_boolean): Likewise.
66648         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
66650         maint.mk: match 0 or more whitespace-before-function-call '('
66651         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
66652         that have zero or two-and-more spaces between the function name
66653         and the open parenthesis.
66654         (sc_error_message_warn_fatal): Likewise.
66655         (sc_error_message_uppercase): Likewise.
66656         (sc_error_message_period): Likewise.
66658 2010-03-31  Eric Blake  <eblake@redhat.com>
66660         maint.mk: check for [ as well as test
66661         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
66662         Based on a libvirt report by Matthias Bolte.
66664         gnumakefile: don't squelch _version output
66665         * top/GNUmakefile (_version): Create one-shot dependency rather
66666         than using $(shell) when version must be regenerated.
66667         (_autoreconf): Run verbosely, by default.
66669         sys_time: avoid compiler warnings
66670         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66671         unconditional, fixing regression from 2010-03-29.
66672         Reported by Simon Josefsson.
66674 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66676         maint.mk: s/_header_without_use/_sc_header_without_use/
66677         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66678         (sc_prohibit_assert_without_use): Use the new name.
66679         (sc_prohibit_close_stream_without_use): Likewise.
66680         (sc_prohibit_getopt_without_use): Likewise.
66681         (sc_prohibit_quotearg_without_use): Likewise.
66682         (sc_prohibit_quote_without_use): Likewise.
66683         (sc_prohibit_long_options_without_use): Likewise.
66684         (sc_prohibit_inttostr_without_use): Likewise.
66685         (sc_prohibit_ignore_value_without_use): Likewise.
66686         (sc_prohibit_error_without_use): Likewise.
66687         (sc_prohibit_xalloc_without_use): Likewise.
66688         (sc_prohibit_hash_without_use): Likewise.
66689         (sc_prohibit_hash_pjw_without_use): Likewise.
66690         (sc_prohibit_safe_read_without_use): Likewise.
66691         (sc_prohibit_argmatch_without_use): Likewise.
66692         (sc_prohibit_canonicalize_without_use): Likewise.
66693         (sc_prohibit_root_dev_ino_without_use): Likewise.
66694         (sc_prohibit_openat_without_use): Likewise.
66695         (sc_prohibit_c_ctype_without_use): Likewise.
66696         (sc_prohibit_signal_without_use): Likewise.
66697         (sc_prohibit_intprops_without_use): Likewise.
66699 2010-03-30  Eric Blake  <eblake@redhat.com>
66701         maint: improve module indicators
66702         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66703         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66704         columns, and avoid extra macro expansion.
66706         fdopendir: work around FreeBSD bug
66707         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
66708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
66709         * modules/dirent (Makefile.am): Substitute it.
66710         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
66711         declaration.
66712         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
66713         fix.
66714         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66716 2010-03-29  Bruno Haible  <bruno@clisp.org>
66718         Emit #pragma system_header after the inclusion guard, not before.
66719         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
66720         guard that spans the entire file, not before. This enables an
66721         optimization in GCC's preprocessor.
66722         * lib/ctype.in.h: Likewise.
66723         * lib/dirent.in.h: Likewise.
66724         * lib/errno.in.h: Likewise.
66725         * lib/float.in.h: Likewise.
66726         * lib/getopt.in.h: Likewise.
66727         * lib/iconv.in.h: Likewise.
66728         * lib/langinfo.in.h: Likewise.
66729         * lib/locale.in.h: Likewise.
66730         * lib/math.in.h: Likewise.
66731         * lib/netdb.in.h: Likewise.
66732         * lib/netinet_in.in.h: Likewise.
66733         * lib/pty.in.h: Likewise.
66734         * lib/sched.in.h: Likewise.
66735         * lib/se-selinux.in.h: Likewise.
66736         * lib/search.in.h: Likewise.
66737         * lib/spawn.in.h: Likewise.
66738         * lib/stdarg.in.h: Likewise.
66739         * lib/stdint.in.h: Likewise.
66740         * lib/string.in.h: Likewise.
66741         * lib/strings.in.h: Likewise.
66742         * lib/sys_file.in.h: Likewise.
66743         * lib/sys_ioctl.in.h: Likewise.
66744         * lib/sys_time.in.h: Likewise.
66745         * lib/sys_times.in.h: Likewise.
66746         * lib/sys_utsname.in.h: Likewise.
66747         * lib/sys_wait.in.h: Likewise.
66748         * lib/sysexits.in.h: Likewise.
66749         * lib/wctype.in.h: Likewise.
66751 2010-03-28  James Youngman  <jay@gnu.org>
66753         save-cwd: don't leak a file descriptor when the caller execs.
66754         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
66755         saved file descriptor.
66756         * modules/save-cwd (Depends-on): Depend on cloexec.
66758 2010-03-29  Bruno Haible  <bruno@clisp.org>
66760         Remove vestiges of fts-lgpl module.
66761         * lib/fts_.h: Assume GNULIB_FTS is 1.
66762         * lib/fts.c: Likewise.
66763         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66765 2010-03-28  Bruno Haible  <bruno@clisp.org>
66767         Fix definition of tests witness macro.
66768         * gnulib-tool (func_import): Fix definition of witness macro.
66770 2010-03-28  Bruno Haible  <bruno@clisp.org>
66772         Fix ioctl's protoype on glibc systems.
66773         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
66774         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
66775         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
66776         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
66777         signature. If not, arrange to replace the ioctl function.
66778         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66779         REPLACE_IOCTL.
66780         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
66781         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
66782         Reported by Ludovic Courtès <ludo@gnu.org>.
66784 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
66786         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
66787         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
66788         made it so grep -r --include=GLOB* ... did not work.
66790 2010-03-26  Jim Meyering  <meyering@redhat.com>
66791             Eric Blake  <eblake@redhat.com>
66793         maint.mk: prohibit use of test's -o and -a operators
66794         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
66796 2010-03-28  Bruno Haible  <bruno@clisp.org>
66798         Remove unused GNULIB_XYZ macro definitions.
66799         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
66800         invocation.
66802 2010-03-28  Bruno Haible  <bruno@clisp.org>
66804         Mark privileged tests modules.
66805         * modules/idpriv-drop-tests (Status): New section.
66806         * modules/idpriv-droptemp-tests (Status): New section.
66808 2010-03-28  Bruno Haible  <bruno@clisp.org>
66810         Split C++ tests into separate tests modules.
66811         * modules/dirent-c++-tests: New file, extracted from
66812         modules/dirent-tests.
66813         * modules/dirent-tests: Depend on it.
66814         * modules/fcntl-h-c++-tests: New file, extracted from
66815         modules/fcntl-h-tests.
66816         * modules/fcntl-h-tests: Depend on it.
66817         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66818         * modules/glob-tests: Depend on it.
66819         * modules/iconv-h-c++-tests: New file, extracted from
66820         modules/iconv-h-tests.
66821         * modules/iconv-h-tests: Depend on it.
66822         * modules/langinfo-c++-tests: New file, extracted from
66823         modules/langinfo-tests.
66824         * modules/langinfo-tests: Depend on it.
66825         * modules/locale-c++-tests: New file, extracted from
66826         modules/locale-tests.
66827         * modules/locale-tests: Depend on it.
66828         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66829         * modules/math-tests: Depend on it.
66830         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66831         * modules/pty-tests: Depend on it.
66832         * modules/search-c++-tests: New file, extracted from
66833         modules/search-tests.
66834         * modules/search-tests: Depend on it.
66835         * modules/signal-c++-tests: New file, extracted from
66836         modules/signal-tests.
66837         * modules/signal-tests: Depend on it.
66838         * modules/spawn-c++-tests: New file, extracted from
66839         modules/spawn-tests.
66840         * modules/spawn-tests: Depend on it.
66841         * modules/stdio-c++-tests: New file, extracted from
66842         modules/stdio-tests.
66843         * modules/stdio-tests: Depend on it.
66844         * modules/stdlib-c++-tests: New file, extracted from
66845         modules/stdlib-tests.
66846         * modules/stdlib-tests: Depend on it.
66847         * modules/string-c++-tests: New file, extracted from
66848         modules/string-tests.
66849         * modules/string-tests: Depend on it.
66850         * modules/sys_ioctl-c++-tests: New file, extracted from
66851         modules/sys_ioctl-tests.
66852         * modules/sys_ioctl-tests: Depend on it.
66853         * modules/sys_select-c++-tests: New file, extracted from
66854         modules/sys_select-tests.
66855         * modules/sys_select-tests: Depend on it.
66856         * modules/sys_socket-c++-tests: New file, extracted from
66857         modules/sys_socket-tests.
66858         * modules/sys_socket-tests: Depend on it.
66859         * modules/sys_stat-c++-tests: New file, extracted from
66860         modules/sys_stat-tests.
66861         * modules/sys_stat-tests: Depend on it.
66862         * modules/sys_time-c++-tests: New file, extracted from
66863         modules/sys_time-tests.
66864         * modules/sys_time-tests: Depend on it.
66865         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66866         * modules/time-tests: Depend on it.
66867         * modules/unistd-c++-tests: New file, extracted from
66868         modules/unistd-tests.
66869         * modules/unistd-tests: Depend on it.
66870         * modules/wchar-c++-tests: New file, extracted from
66871         modules/wchar-tests.
66872         * modules/wchar-tests: Depend on it.
66873         * modules/wctype-c++-tests: New file, extracted from
66874         modules/wctype-tests.
66875         * modules/wctype-tests: Depend on it.
66876         Reported by Simon Josefsson.
66878 2010-03-28  Bruno Haible  <bruno@clisp.org>
66880         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66881         * gnulib-tool (func_exists_module): New function, extracted from
66882         func_verify_module.
66883         (func_verify_module): Use it.
66884         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66885         'foo' only if 'foo' exists.
66886         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66887         module.
66889 2010-03-28  Bruno Haible  <bruno@clisp.org>
66891         gnulib-tool: Add support for special categories of tests.
66892         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66893         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66894         (func_usage): Document them.
66895         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66896         inc_unportable_tests, inc_all_tests): New variables.
66897         (func_acceptable): Consider these variables.
66898         (func_modules_transitive_closure): Make it work when the 'Status' field
66899         consists of multiple words.
66900         (func_import): Store and restore the values of inc_cxx_tests,
66901         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66902         inc_all_tests in gnulib-comp.m4.
66903         (func_create_testdir): Set inc_all_tests to true.
66904         * doc/gnulib.texi (Extra tests modules): New section.
66905         Suggested by Jim Meyering.
66907 2010-03-28  Bruno Haible  <bruno@clisp.org>
66909         ansi-c++-opt: Allow turning off the C++ build by default.
66910         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66911         gl_CXX_CHOICE_DEFAULT_NO is defined.
66912         Requested by Eric Blake.
66914 2010-03-28  Bruno Haible  <bruno@clisp.org>
66916         unistd: Avoid #define replacements in C++ mode.
66917         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66918         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66919         setsockopt, shutdown, select): In C++, attach a warning to the function
66920         if possible, rather than #defining the symbol to a dysfunctional alias.
66921         Reported by John W. Eaton <jwe@gnu.org>.
66923 2010-03-28  Bruno Haible  <bruno@clisp.org>
66925         Fix link errors on mingw.
66926         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66927         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66928         $(LIBSOCKET).
66929         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66930         $(LIBSOCKET).
66932 2010-03-28  Bruno Haible  <bruno@clisp.org>
66933             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66935         lib-ignore: Determine different options for different compilers.
66936         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66937         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66938         Add comments.
66939         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66940         * NEWS: Mention the change.
66942 2010-03-27  Bruno Haible  <bruno@clisp.org>
66944         Remove unused GNULIB_XYZ macro definitions.
66945         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66946         * modules/fseek (configure.ac): Likewise.
66947         * modules/ioctl (configure.ac): Likewise.
66948         * modules/open (configure.ac): Likewise.
66949         * modules/stdlib-safer (configure.ac): Likewise.
66951 2010-03-27  Bruno Haible  <bruno@clisp.org>
66953         Add a remark about certain modules.
66954         * modules/malloc (Comment): New section.
66955         * modules/realloc (Comment): Likewise.
66956         * modules/sigpipe (Comment): Likewise.
66958 2010-03-27  Bruno Haible  <bruno@clisp.org>
66960         Resolve conflict between the two kinds of module indicators.
66961         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66962         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66963         * modules/canonicalize (configure.ac): Invoke
66964         gl_MODULE_INDICATOR_FOR_TESTS.
66965         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66966         GNULIB_XYZ.
66967         * tests/test-dirent-c++.cc: Likewise.
66968         * tests/test-dirent-safer.c: Likewise.
66969         * tests/test-dup2.c: Likewise.
66970         * tests/test-fchdir.c: Likewise.
66971         * tests/test-fcntl-h-c++.cc: Likewise.
66972         * tests/test-getopt.c: Likewise.
66973         * tests/test-getopt.h: Likewise.
66974         * tests/test-langinfo-c++.cc: Likewise.
66975         * tests/test-locale-c++.cc: Likewise.
66976         * tests/test-math-c++.cc: Likewise.
66977         * tests/test-pty-c++.cc: Likewise.
66978         * tests/test-search-c++.cc: Likewise.
66979         * tests/test-signal-c++.cc: Likewise.
66980         * tests/test-spawn-c++.cc: Likewise.
66981         * tests/test-stdio-c++.cc: Likewise.
66982         * tests/test-stdlib-c++.cc: Likewise.
66983         * tests/test-string-c++.cc: Likewise.
66984         * tests/test-sys_ioctl-c++.cc: Likewise.
66985         * tests/test-sys_select-c++.cc: Likewise.
66986         * tests/test-sys_socket-c++.cc: Likewise.
66987         * tests/test-sys_stat-c++.cc: Likewise.
66988         * tests/test-sys_time-c++.cc: Likewise.
66989         * tests/test-time-c++.cc: Likewise.
66990         * tests/test-unistd-c++.cc: Likewise.
66991         * tests/test-wchar-c++.cc: Likewise.
66992         * tests/uninorm/test-u8-nfc.c: Likewise.
66993         * tests/uninorm/test-u8-nfd.c: Likewise.
66994         * tests/uninorm/test-u8-nfkc.c: Likewise.
66995         * tests/uninorm/test-u8-nfkd.c: Likewise.
66996         * tests/uninorm/test-u16-nfc.c: Likewise.
66997         * tests/uninorm/test-u16-nfd.c: Likewise.
66998         * tests/uninorm/test-u16-nfkc.c: Likewise.
66999         * tests/uninorm/test-u16-nfkd.c: Likewise.
67000         * tests/uninorm/test-u32-nfc.c: Likewise.
67001         * tests/uninorm/test-u32-nfc-big.c: Likewise.
67002         * tests/uninorm/test-u32-nfd.c: Likewise.
67003         * tests/uninorm/test-u32-nfd-big.c: Likewise.
67004         * tests/uninorm/test-u32-nfkc.c: Likewise.
67005         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
67006         * tests/uninorm/test-u32-nfkd.c: Likewise.
67007         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
67008         * tests/uninorm/test-u32-normalize-big.c: Likewise.
67010 2010-03-27  Bruno Haible  <bruno@clisp.org>
67012         Distinguish two kinds of module indicators.
67013         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
67014         gl_MODULE_INDICATOR.
67015         (gl_MODULE_INDICATOR): New macro.
67016         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67017         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
67018         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67019         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67020         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67021         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67022         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67023         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67024         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67025         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67026         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67027         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67030         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67031         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67032         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67033         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67034         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67035         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67036         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67037         * modules/cloexec (configure.ac): Likewise.
67038         * modules/getopt-gnu (configure.ac): Likewise.
67039         * modules/uninorm/u8-normalize (configure.ac): Likewise.
67040         * modules/uninorm/u16-normalize (configure.ac): Likewise.
67041         * modules/uninorm/u32-normalize (configure.ac): Likewise.
67042         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
67044 2010-03-27  Bruno Haible  <bruno@clisp.org>
67046         New module description field 'Comment'.
67047         * gnulib-tool: New option --extract-comment.
67048         (func_usage): Document it.
67049         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
67050         (func_get_comment): New function.
67051         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
67053 2010-03-27  Bruno Haible  <bruno@clisp.org>
67055         Addendum to 2010-02-07 commit.
67056         * gnulib-tool (func_usage): Document --extract-applicability option.
67058 2010-03-27  Bruno Haible  <bruno@clisp.org>
67060         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
67061         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
67062         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
67063         rather than link errors.
67065 2010-03-27  Bruno Haible  <bruno@clisp.org>
67067         Avoid side effects from tests-related modules on the compilation of lib.
67068         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
67069         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
67070         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
67071         parameter. Emit into AM_CPPFLAGS a definition of the designated C
67072         macro.
67073         (func_import): Define a witness macro. Assign it a value that depends
67074         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
67075         tests-related modules.
67076         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
67077         Reported by Jim Meyering.
67079 2010-03-27  Bruno Haible  <bruno@clisp.org>
67081         Factorize common .m4 code.
67082         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
67083         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
67084         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
67085         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
67086         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67087         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
67088         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
67089         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67090         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67091         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67092         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
67093         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67094         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67095         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67096         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67097         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
67098         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67099         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67101         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
67102         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
67103         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67104         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67105         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67106         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67107         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67108         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
67109         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
67110         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
67111         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67112         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67113         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67115 2010-03-27  Bruno Haible  <bruno@clisp.org>
67117         Fix a compilation error on Cygwin with g++ >= 4.3.
67118         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
67119         if it is undefined or if we alias it to chmod.
67120         (lstat): Don't warn about the use of this function if it is undefined
67121         or if we alias it to stat.
67122         Reported by Simon Josefsson.
67124 2010-03-27  Bruno Haible  <bruno@clisp.org>
67126         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
67127         * modules/getlogin (configure.ac): Update.
67129         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
67130         * modules/getlogin_r (configure.ac): Update.
67132         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
67133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
67134         * modules/inet_ntop (configure.ac): Update.
67136         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
67137         * modules/inet_pton (configure.ac): Update.
67139         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
67140         * modules/mbslen (configure.ac): Update.
67142         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
67143         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
67144         * modules/forkpty (configure.ac): Update.
67145         * modules/openpty (configure.ac): Update.
67147 2010-03-26  Simon Josefsson  <simon@josefsson.org>
67149         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
67150         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
67152 2010-03-25  Eric Blake  <eblake@redhat.com>
67154         maint: use pragma consistently across replacement headers
67155         * lib/ctype.in.h (system_header): Hoist for consistent placement.
67156         * lib/dirent.in.h (system_header): Likewise.
67157         * lib/errno.in.h (system_header): Likewise.
67158         * lib/float.in.h (system_header): Likewise.
67159         * lib/getopt.in.h (system_header): Likewise.
67160         * lib/iconv.in.h (system_header): Likewise.
67161         * lib/inttypes.in.h (system_header): Likewise.
67162         * lib/langinfo.in.h (system_header): Likewise.
67163         * lib/locale.in.h (system_header): Likewise.
67164         * lib/math.in.h (system_header): Likewise.
67165         * lib/netdb.in.h (system_header): Likewise.
67166         * lib/netinet_in.in.h (system_header): Likewise.
67167         * lib/pty.in.h (system_header): Likewise.
67168         * lib/sched.in.h (system_header): Likewise.
67169         * lib/se-selinux.in.h (system_header): Likewise.
67170         * lib/search.in.h (system_header): Likewise.
67171         * lib/spawn.in.h (system_header): Likewise.
67172         * lib/stdarg.in.h (system_header): Likewise.
67173         * lib/stdint.in.h (system_header): Likewise.
67174         * lib/string.in.h (system_header): Likewise.
67175         * lib/strings.in.h (system_header): Likewise.
67176         * lib/sys_file.in.h (system_header): Likewise.
67177         * lib/sys_ioctl.in.h (system_header): Likewise.
67178         * lib/sys_socket.in.h (system_header): Likewise.
67179         * lib/sys_times.in.h (system_header): Likewise.
67180         * lib/sys_utsname.in.h (system_header): Likewise.
67181         * lib/sys_wait.in.h (system_header): Likewise.
67182         * lib/sysexits.in.h (system_header): Likewise.
67183         * lib/unistd.in.h (system_header): Likewise.
67184         * lib/wctype.in.h (system_header): Likewise.
67186         arpa/inet: fix mingw compilation warning
67187         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
67188         Reported by Matthew Bolte.
67190 2010-03-25  Bruno Haible  <bruno@clisp.org>
67192         Avoid collision between gnulib wrapper and libintl wrapper.
67193         * lib/printf.c (printf): Don't define if a printf wrapper is already
67194         defined in intl/printf.c.
67195         Reported by Michel Boaventura <michel@michelboaventura.com>.
67197 2010-03-25  Bruno Haible  <bruno@clisp.org>
67199         Use ANSI C.
67200         * lib/readutmp.h (getutent): Provide ANSI C prototype.
67202 2010-03-25  Bruno Haible  <bruno@clisp.org>
67204         Minor formatting changes.
67205         * lib/acosl.c: Insert space before function argument list.
67206         * lib/argz.c: Likewise.
67207         * lib/asinl.c: Likewise.
67208         * lib/expl.c: Likewise.
67209         * lib/gen-uni-tables.c: Likewise.
67210         * lib/gettext.h: Likewise.
67211         * lib/glthread/lock.h: Likewise.
67212         * lib/tanl.c: Likewise.
67213         * lib/uniname/uniname.c: Likewise.
67214         * tests/test-idpriv-drop.c: Likewise.
67215         * tests/test-idpriv-droptemp.c: Likewise.
67216         * tests/test-lock.c: Likewise.
67217         * tests/test-tls.c: Likewise.
67218         * lib/argp-help.c: Insert space before function-like macro argument
67219         list.
67220         * lib/memcmp.c: Likewise.
67221         * tests/test-base64.c: Likewise.
67222         * lib/localename.c: Insert space before sizeof's argument list.
67223         * lib/safe-alloc.h: Likewise.
67224         * lib/file-set.h: Insert space before macro argument list.
67225         * tests/test-argp.c: Likewise.
67226         * lib/argp-namefrob.h: Insert space before function parameter list.
67227         * lib/getaddrinfo.c: Likewise.
67228         * lib/netdb.in.h: Likewise.
67229         * lib/parse-duration.h: Likewise.
67230         * lib/parse-duration.c: Likewise.
67231         * lib/poll.c: Likewise.
67232         * lib/select.c: Likewise.
67233         * lib/trim.h: Likewise.
67234         * tests/test-usleep.c: Likewise.
67235         * lib/ldexpl.c: Insert space before function parameter list and before
67236         function argument list.
67237         * lib/logl.c: Likewise.
67238         * lib/sqrtl.c: Likewise.
67239         * lib/trim.c: Likewise.
67240         * lib/cosl.c: Use GNU style indentation. Insert space before function
67241         argument list.
67242         * lib/sinl.c: Likewise.
67243         * lib/tsearch.c: Insert space after 'for'.
67244         Reported by Jim Meyering.
67246 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
67248         * maint.mk (sc_Wundef_boolean): Check for the presence of the
67249         config header before grepping, as it's not present before
67250         autoreconf/configure are run.  Reported by Simon Josefsson.
67252 2010-03-23  Bruno Haible  <bruno@clisp.org>
67254         pt_chown: Make it work with automake < 1.11.
67255         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
67256         Reported by Simon Josefsson.
67258 2010-03-23  Bruno Haible  <bruno@clisp.org>
67260         pt_chown: Don't depend on GPLed modules.
67261         * lib/pt_chown.c: Don't include idpriv.h.
67262         (main): Don't drop privileges.
67263         * modules/pt_chown (Depends-on): Remove idpriv-drop.
67264         Reported by Simon Josefsson.
67266 2010-03-24  Simon Josefsson  <simon@josefsson.org>
67268         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
67269         suggestions from karl@freefriends.org (Karl Berry).
67271 2010-03-22  Eric Blake  <eblake@redhat.com>
67273         gethostname: further tweaks
67274         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
67275         are overriding gethostname.
67276         Suggested by Bruno Haible.
67278 2010-03-21  Bruno Haible  <bruno@clisp.org>
67280         Fix comments.
67281         * lib/forkpty.c (rpl_forkpty): Fix comment.
67282         * lib/openpty.c (rpl_openpty): Likewise.
67283         Reported by Eric Blake.
67285 2010-03-22  Eric Blake  <eblake@redhat.com>
67287         gethostname: fix build on mingw
67288         * lib/unistd.in.h (includes): Work around fact that mingw
67289         <winsock2.h> re-includes <unistd.h>, by avoiding any
67290         redeclarations if we are being included by <winsock2.h>.
67291         Reported by Matthias Bolte.
67293 2010-03-21  Bruno Haible  <bruno@clisp.org>
67295         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67296         * lib/forkpty.c (forkpty): New replacement function, from glibc with
67297         modifications.
67298         * lib/pty.in.h (forkpty): Update declaration. Add comments.
67299         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
67300         provide the replacement.
67301         * modules/forkpty (Depends-on): Add openpty, login_tty.
67302         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
67303         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
67304         * doc/glibc-functions/forkpty.texi: More supported platforms.
67305         * config/srclist.txt: Add forkpty.c (commented).
67307 2010-03-21  Bruno Haible  <bruno@clisp.org>
67309         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
67310         (Makefile.am): Verify that PTY_LIB is defined.
67312         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
67314 2010-03-21  Bruno Haible  <bruno@clisp.org>
67316         Tests for module 'login_tty'.
67317         * modules/login_tty-tests: New file.
67318         * tests/test-login_tty.c: New file.
67320         New module 'login_tty'.
67321         * lib/login_tty.c: New file.
67322         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
67323         * modules/login_tty: New file.
67324         * doc/glibc-functions/login_tty.texi: Mention the new module.
67326 2010-03-21  Bruno Haible  <bruno@clisp.org>
67328         login_tty: Documentation.
67329         * doc/glibc-functions/login_tty.texi: New file.
67330         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
67332 2010-03-21  Bruno Haible  <bruno@clisp.org>
67334         pty: Consistent macro naming.
67335         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
67336         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
67337         * modules/pty (configure.ac): Update.
67339 2010-03-21  Bruno Haible  <bruno@clisp.org>
67341         Tests for openpty: Make stricter.
67342         * tests/test-openpty.c (main): Add test of canonical processing and
67343         erase.
67344         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
67346         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67347         * lib/openpty.c (openpty): New replacement function.
67348         * lib/pty.in.h: Include <termios.h>.
67349         (openpty): Update declaration. Add comments.
67350         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
67351         is not declared, arrange to provide the replacement. Check for _getpty
67352         and posix_openpt.
67353         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
67354         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
67355         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
67356         * modules/pty-tests (test_pty_c___LDADD): New variable.
67357         * doc/glibc-functions/openpty.texi: More supported platforms.
67359 2010-03-21  Bruno Haible  <bruno@clisp.org>
67361         setenv: Tweaks.
67362         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
67363         the test program.
67364         * doc/posix-functions/setenv.texi: Update platforms list.
67366 2010-03-21  Bruno Haible  <bruno@clisp.org>
67368         New module 'unlockpt'.
67369         * lib/unlockpt.c: New file, from glibc with modifications.
67370         * m4/unlockpt.m4: New file.
67371         * modules/unlockpt: New file.
67372         * lib/stdlib.in.h (unlockpt): New declaration.
67373         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
67374         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
67375         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
67376         HAVE_UNLOCKPT.
67377         * doc/posix-functions/unlockpt.texi: Mention the new module.
67378         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
67379         * config/srclist.txt: Add unlockpt.c (commented).
67381 2010-03-21  Jim Meyering  <meyering@redhat.com>
67383         maint.mk: prohibit inclusion of "intprops.h" without use
67384         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
67386 2010-03-21  Bruno Haible  <bruno@clisp.org>
67388         New module 'grantpt'.
67389         * lib/grantpt.c: New file, from glibc with modifications.
67390         * m4/grantpt.m4: New file.
67391         * modules/grantpt: New file.
67392         * lib/stdlib.in.h (grantpt): New declaration.
67393         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
67394         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
67395         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
67396         HAVE_GRANTPT.
67397         * doc/posix-functions/grantpt.texi: Mention the new module.
67398         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
67399         * config/srclist.txt: Add grantpt.c (commented).
67401 2010-03-21  Bruno Haible  <bruno@clisp.org>
67403         New module 'pt_chown'.
67404         * lib/pt_chown.c: New file, from glibc with modifications.
67405         * lib/pty-private.h: New file, from glibc with modifications.
67406         * modules/pt_chown: New file.
67407         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
67409 2010-03-21  Bruno Haible  <bruno@clisp.org>
67411         Tests for module 'ptsname'.
67412         * modules/ptsname-tests: New file.
67413         * tests/test-ptsname.c: New file.
67415         New module 'ptsname'.
67416         * lib/ptsname.c: New file, from glibc with modifications.
67417         * m4/ptsname.m4: New file.
67418         * modules/ptsname: New file.
67419         * lib/stdlib.in.h (ptsname): New declaration.
67420         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
67421         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
67422         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
67423         HAVE_PTSNAME.
67424         * doc/posix-functions/ptsname.texi: Mention the new module.
67425         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
67426         * config/srclist.txt: Add ptsname.c (commented).
67428 2010-03-21  Bruno Haible  <bruno@clisp.org>
67430         Tests for module 'ttyname_r'.
67431         * modules/ttyname_r-tests: New file.
67432         * tests/test-ttyname_r.c: New file.
67434         New module 'ttyname_r'.
67435         * lib/ttyname_r.c: New file.
67436         * m4/ttyname_r.m4: New file.
67437         * modules/ttyname_r: New file.
67438         * lib/unistd.in.h (ttyname_r): New declaration.
67439         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
67440         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
67441         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
67442         HAVE_TTYNAME_R.
67443         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
67444         * doc/posix-functions/ttyname_r.texi: Mention the new module.
67446 2010-03-20  Bruno Haible  <bruno@clisp.org>
67448         signal: Undefine macro definitions in C++ mode.
67449         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
67450         sigfillset): Undefine macro definitions from the system header in C++
67451         mode.
67452         Reported by John W. Eaton <jwe@gnu.org>.
67454 2010-03-20  Bruno Haible  <bruno@clisp.org>
67456         Ensure no #include statements inside extern "C" { ... }.
67457         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
67458         contain #include statements.
67459         * lib/time.in.h: Likewise.
67461 2010-03-20  Bruno Haible  <bruno@clisp.org>
67463         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
67464         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
67465         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
67466         Reported by John W. Eaton <jwe@gnu.org>.
67468 2010-03-20  Bruno Haible  <bruno@clisp.org>
67470         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
67471         Reported by Jim Meyering.
67473 2010-03-20  Bruno Haible  <bruno@clisp.org>
67475         pipe: Set errno upon failure.
67476         * lib/pipe.h: Specify that when -1 is returned, errno is set.
67477         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
67478         errno value in error message.
67480 2010-03-20  Bruno Haible  <bruno@clisp.org>
67481             Jim Meyering  <meyering@redhat.com>
67483         lchown: Avoid "unused variable" warning.
67484         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
67486 2010-03-20  Bruno Haible  <bruno@clisp.org>
67488         Work around unlink() bug on MacOS X 10.5.6.
67489         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
67490         attempting to unlink a parent directory.
67491         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
67492         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
67493         activate for the replacement function.
67494         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
67496 2010-03-20  Bruno Haible  <bruno@clisp.org>
67498         Fix link errors on Solaris 8.
67499         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
67500         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
67502 2010-03-19  Jim Meyering  <meyering@redhat.com>
67504         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
67505         The _LIBC implementation of build_range_exp correctly honors the
67506         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
67507         However, the non-_LIBC implementation would ignore that syntax-bit
67508         flag and return REG_ERANGE unconditionally.
67509         This change makes it honor that flag.
67510         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
67511         Make two pointer parameters "const".
67512         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
67513         (parse_bracket_exp): Update caller.
67515         regex.m4: correct the reversed range endpoint ([b-a]) test
67516         * m4/regex.m4: When requiring that [b-a] evoke failure,
67517         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
67518         test pass once again for x86-based systems.
67520 2010-03-19  Bruno Haible  <bruno@clisp.org>
67522         scandir: Fix link error on Solaris 8.
67523         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
67524         macros.
67526 2010-03-19  Bruno Haible  <bruno@clisp.org>
67528         getusershell: Fix documentation.
67529         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
67530         module.
67531         * doc/glibc-functions/setusershell.texi: Likewise.
67533         getusershell: Provide declaration, missing on Solaris 9.
67534         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
67535         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
67536         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
67537         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
67538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67539         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
67540         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
67541         HAVE_GETUSERSHELL.
67542         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
67544 2010-03-19  Bruno Haible  <bruno@clisp.org>
67546         wctype: Provide iswblank function.
67547         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
67548         exists and is fine.
67549         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
67550         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
67551         * tests/test-wctype.c (main): Re-enable the iswblank tests.
67552         * doc/posix-functions/iswblank.texi: Update.
67554 2010-03-19  Bruno Haible  <bruno@clisp.org>
67556         Tests of module 'pty' in C++ mode.
67557         * modules/pty-tests: New file.
67558         * tests/test-pty-c++.cc: New file.
67559         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67561 2010-03-19  Eric Blake  <eblake@redhat.com>
67563         logb: fix documentation
67564         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
67565         1.5 declaration bug.
67567         forkpty, openpty: prefer glibc's const-safe prototype
67568         * lib/forkpty.c (rpl_forkpty): New file.
67569         * lib/openpty.c (rpl_openpty): Likewise.
67570         * modules/forkpty (Files): Distribute it.
67571         * modules/openpty (Files): Likewise.
67572         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
67573         check...
67574         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
67575         replacement for non-const BSD signature.
67576         * modules/pty (Makefile.am): Substitute witnesses.
67577         * lib/pty.in.h (forkpty, openpty): Declare replacements.
67578         * tests/test-forkpty.c: Update signature check.
67579         * tests/test-openpty.c: Likewise.
67580         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
67581         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67583         forkpty, openpty: split functions into new modules
67584         * modules/pty (Makefile.am): Substitute new witnesses.
67585         (Libraries): Move library detection...
67586         * modules/forkpty: ...into new module.
67587         * modules/openpty: Another new module.
67588         * modules/pty-tests: Rename and split...
67589         * modules/forkpty-tests: ...to this...
67590         * modules/openpty-tests: ...and this.
67591         * tests/test-pty.c: Rename and split...
67592         * tests/test-forkpty.c: ...to this...
67593         * tests/test-openpty.c: ...and this.
67594         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
67595         (gl_PTY): Split library searching...
67596         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
67597         (gl_FORKPTY, gl_OPENPTY): New macros.
67598         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
67599         * NEWS: Mention the split.
67600         * MODULES.html.sh (Misc): Document the modules.
67601         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
67602         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67604         pty: improve replacement header
67605         * lib/pty.in.h: New file.
67606         * modules/pty (Files): Ship it.
67607         (Makefile.am): Always build replacement.
67608         * m4/pty.m4: Rename...
67609         * m4/pty_h.m4: ...to this.
67610         (gl_PTY): Modernize setting of witness macros; update check of
67611         forkpty to take proper advantage of cache.
67612         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
67614         getopt: avoid compiler warning
67615         * lib/getopt.c (attribute_hidden): Remove unused macro.
67617 2010-03-18  Bruno Haible  <bruno@clisp.org>
67619         Fix link errors on Solaris 8.
67620         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
67621         * modules/search-tests (test_search_c___LDADD): Likewise.
67622         * modules/signal-tests (test_signal_c___LDADD): Likewise.
67623         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
67624         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
67625         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
67626         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
67627         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
67628         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
67630 2010-03-18  Bruno Haible  <bruno@clisp.org>
67632         Fix bug introduced on 2010-03-14.
67633         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
67634         (gl_SPAWN_H): Require it.
67635         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
67636         Reported by Simon Josefsson.
67638 2010-03-18  Bruno Haible  <bruno@clisp.org>
67640         Fix typo introduced on 2009-12-31.
67641         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
67642         posix_spawn_file_actions_adddup2.
67644 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
67645         and Eric Blake  <eblake@redhat.com>
67647         test-vc-list-files-git: make more robust
67648         * tests/test-vc-list-files-git.sh: Unset problematic environment
67649         variables.  Chain commands together.
67651 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
67653         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
67654         `AC_CHECK_DECL' invocation.
67656 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
67658         * lib/inttostr.c (inttostr): Make sure the invocation of verify
67659         appears before executable statements. Suggested by Petr Sumbera
67660         <Petr.Sumbera@Sun.COM>.
67662 2010-03-14  Bruno Haible  <bruno@clisp.org>
67664         * tests/test-flock.c (test_exclusive): Comment out a test that causes
67665         portability problems. Instead use a simpler test.
67666         (main): Check that invalid arguments are rejected only on Linux.
67668 2010-03-14  Bruno Haible  <bruno@clisp.org>
67670         Fix bug introduced on 2009-12-31.
67671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67672         gl_PREREQ_SYS_H_WINSOCK2 always.
67673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67674         SYS_SOCKET_H variable.
67675         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67676         Update comments.
67677         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67678         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67679         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67680         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67681         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67683 2010-03-14  Bruno Haible  <bruno@clisp.org>
67685         Fix values returned by sinl, cosl.
67686         * lib/trigl.h: Add specification comments.
67687         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67688         that combines the values from the precomputed table with the values of
67689         the Chebyshev polynomials.
67691 2010-03-14  Bruno Haible  <bruno@clisp.org>
67693         Fix compilation error when modules 'posix_spawn[p]' are not used.
67694         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67695         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67697 2010-03-14  Bruno Haible  <bruno@clisp.org>
67699         Fix compilation error on mingw when module 'time_r' is not used.
67700         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67701         is 1.
67702         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67703         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67704         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67705         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67707 2010-03-14  Bruno Haible  <bruno@clisp.org>
67709         Fix compilation error with Sun C.
67710         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
67711         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
67712         instead of GCC specific ULONG_LONG_MAX.
67713         * lib/xstrtoll.c: Likewise.
67714         * lib/xstrtoull.c: Likewise.
67716 2010-03-13  Bruno Haible  <bruno@clisp.org>
67718         Allow the user to disable C++ code and tests.
67719         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
67720         (gl_PROG_ANSI_CXX): Require it.
67722 2010-03-13  Bruno Haible  <bruno@clisp.org>
67724         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
67725         cases.
67727 2010-03-13  Bruno Haible  <bruno@clisp.org>
67729         Test that gnulib does not break the standard C++ headers.
67730         * tests/test-locale-c++2.cc: New file.
67731         * modules/locale-tests (Files): Add it.
67732         (Makefile.am): Compile it for test-locale-c++.
67733         * tests/test-math-c++2.cc: New file.
67734         * modules/math-tests (Files): Add it.
67735         (Makefile.am): Compile it for test-math-c++.
67736         * tests/test-signal-c++2.cc: New file.
67737         * modules/signal-tests (Files): Add it.
67738         (Makefile.am): Compile it for test-signal-c++.
67739         * tests/test-stdio-c++2.cc: New file.
67740         * modules/stdio-tests (Files): Add it.
67741         (Makefile.am): Compile it for test-stdio-c++.
67742         * tests/test-stdlib-c++2.cc: New file.
67743         * modules/stdlib-tests (Files): Add it.
67744         (Makefile.am): Compile it for test-stdlib-c++.
67745         * tests/test-string-c++2.cc: New file.
67746         * modules/string-tests (Files): Add it.
67747         (Makefile.am): Compile it for test-string-c++.
67748         * tests/test-time-c++2.cc: New file.
67749         * modules/time-tests (Files): Add it.
67750         (Makefile.am): Compile it for test-time-c++.
67751         Reported by John W. Eaton <jwe@gnu.org>.
67753 2010-03-13  Bruno Haible  <bruno@clisp.org>
67755         * gnulib-tool (func_usage): Clarify which options are available for
67756         --create-testdir and --create-megatestdir.
67758 2010-03-13  Bruno Haible  <bruno@clisp.org>
67760         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
67761         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
67762         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
67763         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
67764         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
67765         when appropriate.
67766         Reported by Jim Meyering.
67768 2010-03-12  Simon Josefsson  <simon@josefsson.org>
67770         * gnulib-tool (func_import): Explain origin of code.
67772 2010-03-12  Bruno Haible  <bruno@clisp.org>
67774         Fix problem with automake's definition of CXXLINK.
67775         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
67776         Reported by Simon Josefsson and Ludovic Courtès.
67778 2010-03-12  Bruno Haible  <bruno@clisp.org>
67780         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
67781         stable releases.
67783 2010-03-11  Bruno Haible  <bruno@clisp.org>
67785         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
67786         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
67787         whether the system provides one variant or multiple variants of the
67788         function.
67789         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
67790         C++ compilers.
67791         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
67792         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
67793         Reported by Jim Meyering.
67795 2010-03-09  Simon Josefsson  <simon@josefsson.org>
67797         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
67799 2010-03-08  Bruno Haible  <bruno@clisp.org>
67801         gnulib-tool: Add support for --libtool in --create-testdir.
67802         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
67803         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
67805 2010-03-08  Eric Blake  <eblake@redhat.com>
67807         gnulib-tool.texi: mention possibility of git submodule
67808         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67809         submodules.
67810         * doc/.gitignore: Ignore another generated file.
67812 2010-03-08  Karl Berry  <karl@gnu.org>
67814         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67815         of committing gnulib files while skipping others.
67817 2010-03-07  Bruno Haible  <bruno@clisp.org>
67819         Tests of module 'wctype' in C++ mode.
67820         * tests/test-wctype-c++.cc: New file.
67821         * modules/wctype-tests (Files): Add it and tests/signature.h.
67822         (Depends-on): Add ansi-c++-opt.
67823         (Makefile.am): Arrange to compile and run test-wctype-c++.
67825         Tests of module 'wchar' in C++ mode.
67826         * tests/test-wchar-c++.cc: New file.
67827         * modules/wchar-tests (Files): Add it and tests/signature.h.
67828         (Depends-on): Add ansi-c++-opt.
67829         (Makefile.am): Arrange to compile and run test-wchar-c++.
67830         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67831         gl_MODULE_INDICATOR.
67833         Tests of module 'unistd' in C++ mode.
67834         * tests/test-unistd-c++.cc: New file.
67835         * modules/unistd-tests (Files): Add it and tests/signature.h.
67836         (Depends-on): Add ansi-c++-opt.
67837         (Makefile.am): Arrange to compile and run test-unistd-c++.
67838         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67839         gl_MODULE_INDICATOR.
67841         Tests of module 'time' in C++ mode.
67842         * tests/test-time-c++.cc: New file.
67843         * modules/time-tests (Files): Add it and tests/signature.h.
67844         (Depends-on): Add ansi-c++-opt.
67845         (Makefile.am): Arrange to compile and run test-time-c++.
67846         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67848         Tests of module 'sys_time' in C++ mode.
67849         * tests/test-sys_time-c++.cc: New file.
67850         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67851         (Depends-on): Add ansi-c++-opt.
67852         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67853         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67854         gl_MODULE_INDICATOR.
67856         Tests of module 'sys_stat' in C++ mode.
67857         * tests/test-sys_stat-c++.cc: New file.
67858         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67859         (Depends-on): Add ansi-c++-opt.
67860         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67861         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67862         gl_MODULE_INDICATOR.
67864         Tests of module 'sys_socket' in C++ mode.
67865         * tests/test-sys_socket-c++.cc: New file.
67866         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67867         (Depends-on): Add ansi-c++-opt.
67868         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67869         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67870         gl_MODULE_INDICATOR.
67872         Tests of module 'sys_select' in C++ mode.
67873         * tests/test-sys_select-c++.cc: New file.
67874         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67875         (Depends-on): Add ansi-c++-opt.
67876         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67877         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67878         gl_MODULE_INDICATOR.
67880         Tests of module 'sys_ioctl' in C++ mode.
67881         * tests/test-sys_ioctl-c++.cc: New file.
67882         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67883         (Depends-on): Add ansi-c++-opt.
67884         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
67885         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67886         gl_MODULE_INDICATOR.
67888         Tests of module 'string' in C++ mode.
67889         * tests/test-string-c++.cc: New file.
67890         * modules/string-tests (Files): Add it and tests/signature.h.
67891         (Depends-on): Add ansi-c++-opt.
67892         (Makefile.am): Arrange to compile and run test-string-c++.
67893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67894         gl_MODULE_INDICATOR.
67896         Tests of module 'stdlib' in C++ mode.
67897         * tests/test-stdlib-c++.cc: New file.
67898         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67899         (Depends-on): Add ansi-c++-opt.
67900         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67901         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67902         gl_MODULE_INDICATOR.
67904         Tests of module 'stdio' in C++ mode.
67905         * tests/test-stdio-c++.cc: New file.
67906         * modules/stdio-tests (Files): Add it and tests/signature.h.
67907         (Depends-on): Add ansi-c++-opt.
67908         (Makefile.am): Arrange to compile and run test-stdio-c++.
67909         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67910         gl_MODULE_INDICATOR.
67912         Tests of module 'spawn' in C++ mode.
67913         * tests/test-spawn-c++.cc: New file.
67914         * modules/spawn-tests (Files): Add it and tests/signature.h.
67915         (Depends-on): Add ansi-c++-opt.
67916         (Makefile.am): Arrange to compile and run test-spawn-c++.
67917         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67918         gl_MODULE_INDICATOR.
67920         Tests of module 'signal' in C++ mode.
67921         * tests/test-signal-c++.cc: New file.
67922         * modules/signal-tests (Files): Add it and tests/signature.h.
67923         (Depends-on): Add ansi-c++-opt.
67924         (Makefile.am): Arrange to compile and run test-signal-c++.
67925         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67926         gl_MODULE_INDICATOR.
67928         Tests of module 'search' in C++ mode.
67929         * tests/test-search-c++.cc: New file.
67930         * modules/search-tests (Files): Add it and tests/signature.h.
67931         (Depends-on): Add ansi-c++-opt.
67932         (Makefile.am): Arrange to compile and run test-search-c++.
67933         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67934         gl_MODULE_INDICATOR.
67936         Tests of module 'math' in C++ mode.
67937         * tests/test-math-c++.cc: New file.
67938         * modules/math-tests (Files): Add it and tests/signature.h.
67939         (Depends-on): Add ansi-c++-opt.
67940         (Makefile.am): Arrange to compile and run test-math-c++.
67941         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67943         Tests of module 'locale' in C++ mode.
67944         * tests/test-locale-c++.cc: New file.
67945         * modules/locale-tests (Files): Add it and tests/signature.h.
67946         (Depends-on): Add ansi-c++-opt.
67947         (Makefile.am): Arrange to compile and run test-locale-c++.
67948         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67949         gl_MODULE_INDICATOR.
67951         Tests of module 'langinfo' in C++ mode.
67952         * tests/test-langinfo-c++.cc: New file.
67953         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67954         (Depends-on): Add ansi-c++-opt.
67955         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67956         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67957         gl_MODULE_INDICATOR.
67959         Tests of module 'iconv-h' in C++ mode.
67960         * tests/test-iconv-h-c++.cc: New file.
67961         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
67962         (Depends-on): Add ansi-c++-opt.
67963         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
67965         Tests of module 'glob' in C++ mode.
67966         * tests/test-glob-c++.cc: New file.
67967         * modules/glob-tests (Files): Add it.
67968         (Depends-on): Add ansi-c++-opt.
67969         (Makefile.am): Arrange to compile and run test-glob-c++.
67971         Tests of module 'fcntl-h' in C++ mode.
67972         * tests/test-fcntl-h-c++.cc: New file.
67973         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67974         (Depends-on): Add ansi-c++-opt.
67975         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67976         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67977         gl_MODULE_INDICATOR.
67979         Tests of module 'dirent' in C++ mode.
67980         * tests/test-dirent-c++.cc: New file.
67981         * modules/dirent-tests (Files): Add it and tests/signature.h.
67982         (Depends-on): Add ansi-c++-opt.
67983         (Makefile.am): Arrange to compile and run test-dirent-c++.
67984         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67985         gl_MODULE_INDICATOR.
67987         New module 'ansi-c++-opt'.
67988         * modules/ansi-c++-opt: New file.
67989         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67991         Document C++ namespace mode.
67992         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67994         wctype: Avoid #define replacements in C++ mode.
67995         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67996         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67997         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67998         In C++, define a namespaced alias symbol.
67999         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
68000         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
68001         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
68002         rule.
68004         wchar: Avoid #define replacements in C++ mode.
68005         * lib/wchar.in.h: Include c++defs.h.
68006         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
68007         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
68008         symbol.
68009         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
68010         * modules/wchar (Depends-on): Add c++defs.
68011         (Makefile.am): Update wchar.h rule.
68013         unistd: Avoid #define replacements in C++ mode.
68014         * lib/unistd.in.h: Include c++defs.h.
68015         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
68016         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
68017         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
68018         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
68019         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
68020         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
68021         symbol.
68022         (environ): Update.
68023         * modules/unistd (Depends-on): Add c++defs.
68024         (Makefile.am): Update unistd.h rule.
68026         time: Avoid #define replacements in C++ mode.
68027         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
68028         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
68029         define a namespaced alias symbol.
68030         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
68031         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
68032         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
68033         * modules/time (Depends-on): Add c++defs, warn-on-use.
68034         (Makefile.am): Update time.h rule.
68035         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68036         * modules/nanosleep (configure.ac): Likewise.
68037         * modules/strptime (configure.ac): Likewise.
68038         * modules/timegm (configure.ac): Likewise.
68040         sys_time: Avoid #define replacements in C++ mode.
68041         * lib/sys_time.in.h: Include c++defs.h.
68042         (gettimeofday): In C++, define a namespaced alias symbol.
68043         * modules/sys_time (Depends-on): Add c++defs.
68044         (Makefile.am): Update sys/time.h rule.
68046         sys_stat: Avoid #define replacements in C++ mode.
68047         * lib/sys_stat.in.h: Include c++defs.h.
68048         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
68049         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
68050         namespaced alias symbol.
68051         In C++, define a namespaced alias symbol.
68052         * modules/sys_stat (Depends-on): Add c++defs.
68053         (Makefile.am): Update sys/stat.h rule.
68055         sys_socket: Avoid #define replacements in C++ mode.
68056         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
68057         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
68058         definitions also when the system has a <sys/socket.h>.
68059         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
68060         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
68061         In C++, define a namespaced alias symbol.
68062         * modules/sys_socket (Depends-on): Add c++defs.
68063         (Makefile.am): Update sys/socket.h rule.
68065         sys_select: Avoid #define replacements in C++ mode.
68066         * lib/sys_select.in.h: Include c++defs.h. Enable the function
68067         definitions also when the system has a <sys/select.h>.
68068         (select): In C++, define a namespaced alias symbol.
68069         * modules/sys_select (Depends-on): Add c++defs.
68070         (Makefile.am): Update sys/select.h rule.
68072         sys_ioctl: Avoid #define replacements in C++ mode.
68073         * lib/sys_ioctl.in.h: Include c++defs.h.
68074         (ioctl): In C++, define a namespaced alias symbol.
68075         * modules/sys_ioctl (Depends-on): Add c++defs.
68076         (Makefile.am): Update sys/ioctl.h rule.
68078         string: Avoid #define replacements in C++ mode.
68079         * lib/string.in.h: Include c++defs.h.
68080         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
68081         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68082         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68083         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
68084         strsignal, strverscmp): In C++, define a namespaced alias symbol.
68085         * modules/string (Depends-on): Add c++defs.
68086         (Makefile.am): Update string.h rule.
68088         stdlib: Avoid #define replacements in C++ mode.
68089         * lib/stdlib.in.h: Include c++defs.h.
68090         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
68091         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
68092         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
68093         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
68094         symbol.
68095         * modules/stdlib (Depends-on): Add c++defs.
68096         (Makefile.am): Update stdlib.h rule.
68098         stdio: Avoid #define replacements in C++ mode.
68099         * lib/stdio.in.h: Include c++defs.h.
68100         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
68101         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
68102         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
68103         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
68104         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68105         namespaced alias symbol.
68106         * modules/stdio (Depends-on): Add c++defs.
68107         (Makefile.am): Update stdio.h rule.
68109         spawn: Avoid #define replacements in C++ mode.
68110         * lib/spawn.in.h: Include c++defs.h.
68111         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68112         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68113         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68114         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68115         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68116         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68117         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68118         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68119         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68120         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68121         In C++, define a namespaced alias symbol.
68122         * modules/spawn (Depends-on): Add c++defs.
68123         (Makefile.am): Update spawn.h rule.
68125         signal: Avoid #define replacements in C++ mode.
68126         * lib/signal.in.h: Include c++defs.h.
68127         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68128         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
68129         namespaced alias symbol.
68130         * modules/signal (Depends-on): Add c++defs.
68131         (Makefile.am): Update signal.h rule.
68133         search: Avoid #define replacements in C++ mode.
68134         * lib/search.in.h: Include c++defs.h.
68135         (_gl_search_compar_fn, _gl_search_action_fn): New types.
68136         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
68137         symbol.
68138         * modules/search (Depends-on): Add c++defs.
68139         (Makefile.am): Update search.h rule.
68141         math: Avoid #define replacements in C++ mode.
68142         * lib/math.in.h: Include c++defs.h.
68143         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
68144         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
68145         trunc, truncl): In C++, define a namespaced alias symbol.
68146         * modules/math (Depends-on): Add c++defs.
68147         (Makefile.am): Update math.h rule.
68149         locale: Avoid #define replacements in C++ mode.
68150         * lib/locale.in.h: Include c++defs.h.
68151         (duplocale): In C++, define a namespaced alias symbol.
68152         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
68153         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
68154         * modules/locale (Depends-on): Add c++defs.
68155         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
68157         langinfo: Avoid #define replacements in C++ mode.
68158         * lib/langinfo.in.h: Include c++defs.h.
68159         (nl_langinfo): In C++, define a namespaced alias symbol.
68160         * modules/langinfo (Depends-on): Add c++defs.
68161         (Makefile.am): Update langinfo.h rule.
68163         iconv-h: Avoid #define replacements in C++ mode.
68164         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
68165         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
68166         symbol.
68167         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68168         whenever iconv is present.
68169         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
68170         (Makefile.am): Update iconv.h rule.
68172         glob: Avoid #define replacements in C++ mode.
68173         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
68174         (_gl_glob_errfunc_fn): New type.
68175         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
68176         symbol.
68177         * modules/glob (Depends-on): Add c++defs, warn-on-use.
68178         (Makefile.am): Update glob.h rule.
68180         fcntl-h: Avoid #define replacements in C++ mode.
68181         * lib/fcntl.in.h: Include c++defs.h.
68182         (fcntl, open, openat): In C++, define a namespaced alias symbol.
68183         * modules/fcntl-h (Depends-on): Add c++defs.
68184         (Makefile.am): Update fcntl.h rule.
68186         dirent: Avoid #define replacements in C++ mode.
68187         * lib/dirent.in.h: Include c++defs.h.
68188         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
68189         namespaced alias symbol.
68190         (dirfd): Update declaration.
68191         * modules/dirent (Depends-on): Add c++defs.
68192         (Makefile.am): Update dirent.h rule.
68194         ctype: Make it usable in C++ code.
68195         * lib/ctype.in.h: Include c++defs.h.
68196         (isblank): Declare as extern "C".
68197         * modules/ctype (Depends-on): Add c++defs.
68198         (Makefile.am): Update ctype.h rule.
68200         New module 'c++defs'.
68201         * modules/c++defs: New file.
68202         * build-aux/c++defs.h: New file.
68203         Reported by John W. Eaton <jwe@gnu.org>.
68205 2010-03-07  Bruno Haible  <bruno@clisp.org>
68207         logb: Provide missing declaration for Cygwin.
68208         * lib/math.in.h (logb): New declaration.
68209         * m4/logb.m4: New file.
68210         * modules/logb (Files): Add m4/logb.m4.
68211         (Depends-on): Add math.
68212         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
68213         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
68214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
68215         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
68216         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
68218 2010-03-07  Bruno Haible  <bruno@clisp.org>
68220         Fix test-cond link error.
68221         * tests/test-cond.c: Include <stdio.h>.
68223 2010-03-07  Bruno Haible  <bruno@clisp.org>
68225         Fix test-dirent-safer link error.
68226         * modules/dirent-safer-tests (Makefile.am): Define
68227         test_dirent_safer_LDADD.
68229 2010-03-07  Bruno Haible  <bruno@clisp.org>
68231         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
68232         among default module list.
68234 2010-03-07  Bruno Haible  <bruno@clisp.org>
68236         Fix link error on platforms with GNU libiconv.
68237         * modules/unistr/u8-strcoll-tests (Makefile): Define
68238         test_u8_strcoll_LDADD.
68239         * modules/unistr/u16-strcoll-tests (Makefile): Define
68240         test_u16_strcoll_LDADD.
68241         * modules/unistr/u32-strcoll-tests (Makefile): Define
68242         test_u32_strcoll_LDADD.
68244 2010-03-07  Bruno Haible  <bruno@clisp.org>
68246         Use POSIX declarations for socket functions.
68247         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
68248         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
68249         rpl_sendto): Change declaration to match POSIX.
68250         * lib/connect.c (rpl_connect): Likewise.
68251         * lib/accept.c (rpl_accept): Likewise.
68252         * lib/bind.c (rpl_bind): Likewise.
68253         * lib/getpeername.c (rpl_getpeername): Likewise.
68254         * lib/getsockname.c (rpl_getsockname): Likewise.
68255         * lib/recv.c (rpl_recv): Likewise.
68256         * lib/send.c (rpl_send): Likewise.
68257         * lib/recvfrom.c (rpl_recvfrom): Likewise.
68258         * lib/sendto.c (rpl_sendto): Likewise.
68260 2010-03-06  Bruno Haible  <bruno@clisp.org>
68262         Clarify access, euidaccess, faccessat.
68263         * doc/posix-functions/faccessat.texi: Mention security problem under
68264         "Other problems", not "Portability problems".
68265         * doc/posix-functions/access.texi: Likewise. Mention a related security
68266         problem.
68267         * doc/glibc-functions/euidaccess.texi: Mention security problems.
68268         * lib/euidaccess.c: Add comments about platforms.
68269         * lib/unistd.in.h (access, euidaccess): Add warnings.
68271 2010-03-07  Bruno Haible  <bruno@clisp.org>
68273         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
68274         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
68275         (POSIX_SPAWN_SETSCHEDULER): Likewise.
68276         (POSIX_SPAWN_USEVFORK): Define in a way that works when
68277         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68278         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
68279         declare when POSIX_SPAWN_SETSCHEDULER is zero.
68280         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
68281         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
68282         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
68283         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
68284         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
68285         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
68286         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
68287         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
68288         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
68289         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
68290         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
68291         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
68292         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
68293         Likewise.
68294         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
68295         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
68296         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
68297         Likewise.
68298         * tests/test-spawn.c (main): Make it work when
68299         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68301 2010-03-07  Bruno Haible  <bruno@clisp.org>
68303         Fix incorrect Makefile.am generation in German locale.
68304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68305         Execute sed command with character range in C locale.
68307 2010-03-06  Bruno Haible  <bruno@clisp.org>
68309         Tests for module 'iconv-h'.
68310         * modules/iconv-h-tests: New file.
68311         * tests/test-iconv-h.c: New file.
68313         New module 'iconv-h'.
68314         * modules/iconv-h: New file.
68315         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
68316         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
68317         (configure.ac): Remove gl_ICONV_H.
68318         (Makefile.am): Remove rule for iconv.h.
68320 2010-03-06  Bruno Haible  <bruno@clisp.org>
68322         More consistent naming of *.m4 files.
68323         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
68324         * modules/wctype (Files): Update.
68326         More consistent naming of *.m4 files.
68327         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
68328         * modules/wchar (Files): Update.
68330 2010-03-06  Jim Meyering  <meyering@redhat.com>
68332         euidaccess: relax license to LGPLv2+
68333         * modules/euidaccess (License): Relax to LGPLv2+.
68335 2010-03-06  Bruno Haible  <bruno@clisp.org>
68337         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
68338         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
68339         (Makefile.am): Augment lib_SOURCES instead.
68341 2010-03-04  Jim Meyering  <meyering@redhat.com>
68343         utime: remove obsolete module
68344         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
68345         unnecessary for years, and has been marked as obsolete for 10 months.
68346         * modules/utime: Remove file.
68347         * lib/utime.c: Remove file.
68348         * m4/utime.m4: Remove file.
68349         * m4/utimes-null.m4: Remove file.
68350         * doc/posix-functions/utime.texi (utime): Remove reference to
68351         the module.  Move the sole "fixed by gnulib" item into the
68352         "problems not fixed by Gnulib" list.
68353         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
68355 2010-03-05  Simon Josefsson  <simon@josefsson.org>
68357         * modules/exit (License): Relax license to LGPLv2+.
68358         (Status): Mark as obsolete.
68359         * NEWS: Mention deprecated 'exit' module.
68360         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
68361         of now obsolete 'exit'.
68363 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68365         fts-lgpl: remove unused module
68366         * modules/fts-lgpl: Remove.
68367         * MODULES.html.sh (func_all_modules): Adjust.
68368         * check-module (find_included_lib_files): Adjust.
68369         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
68371 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
68373         copy-acl: enhance Solaris ACL error handling
68374         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
68375         * lib/set-mode-acl.c (qset_acl): Likewise.
68377 2010-03-02  Bruno Haible  <bruno@clisp.org>
68379         spawn: Don't override the system defined values on FreeBSD 8.
68380         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
68381         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
68382         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
68383         if HAVE_POSIX_SPAWN is 1.
68384         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
68386 2010-03-01  Bruno Haible  <bruno@clisp.org>
68388         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
68389         regarding Automake.
68391 2010-02-25  Bruno Haible  <bruno@clisp.org>
68393         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
68394         * gnulib-tool: Define 'echo' as a function only before the ksh alias
68395         setting, not afterwards.
68396         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
68398 2010-02-24  Eric Blake  <eblake@redhat.com>
68400         bootstrap, git-version-gen: use timestamp
68401         * build-aux/git-version-gen (scriptversion): Force UTC.
68402         * build-aux/bootstrap (scriptversion): New variable.
68404         bootstrap: allow older git
68405         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
68406         older than 1.6.4.  Requested by the libvirt project.
68408 2010-02-23  Eric Blake  <eblake@redhat.com>
68410         warn-on-use: work with old autoconf
68411         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
68412         AS_VAR semantics of autoconf 2.60.
68413         Reported by Bruno Haible.
68415         bootstrap: improve some comments
68416         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
68417         clarification comments.
68419         gettimeofday: provide correct function
68420         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
68421         when replacement is declared, otherwise provide gettimeofday.
68422         Reported by Michael Goffioul.
68424 2010-02-23  Jim Meyering  <meyering@redhat.com>
68426         lib-ignore: relax license to "unlimited", not LGPLv2+
68427         * modules/lib-ignore (License): Relax to "unlimited".
68429 2010-02-23  Jim Meyering  <meyering@redhat.com>
68431         lib-ignore: relax license to LGPLv2+
68432         * modules/lib-ignore (License): Relax to LGPLv2+.
68434 2010-02-22  Eric Blake  <eblake@redhat.com>
68436         lseek: avoid bash 3.2 broken pipe bug
68437         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
68438         warning from bash 3.2.
68439         Reported by Ben Pfaff, with analysis from Bruno Haible.
68441         bootstrap: support non-FSF copyright holder
68442         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
68443         bootstrap.conf override of COPYRIGHT_HOLDER.
68444         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
68446         bootstrap: interoperate with gettext 0.14.1
68447         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
68449         bootstrap: allow for alternate submodule location
68450         * build-aux/bootstrap (gnulib_path): New variable; use instead of
68451         hardcoding submodule location.
68452         (gnulib_mk): Allow direct use of Makefile.am.
68454         bootstrap: use GNULIB_SRCDIR to reduce disk usage
68455         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
68456         rather than reconfiguring where the submodule points.
68458         gettimeofday: restore support for platforms that lack function
68459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
68460         replacement if function is missing.
68461         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
68462         * modules/sys_time (Makefile.am): Substitute it.
68463         * lib/sys_time.in.h (gettimeofday): Check it.
68464         Reported by Michael Goffioul.
68466 2010-02-21  Bruno Haible  <bruno@clisp.org>
68468         * lib/stdio.in.h (obstack_printf): Fix typo.
68470 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
68472         vc-list-files: use bzr ls's -R option
68473         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
68474         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
68476 2010-02-21  Jim Meyering  <meyering@redhat.com>
68478         init.sh: fix EXEEXT shims to work also for names like test-prog
68479         * tests/init.sh: Re-exec a better shell, when needed.
68480         If the current shell lacks support for posix $(...), an init.sh-using
68481         test will now try to find a shell that supports that.  If EXEEXT is
68482         nonempty, we also require support for hyphen-in-alias-name and shell
68483         substitutions like ${var#glob}.  Failure to find such a shell results
68484         in a skipped test.
68486 2010-02-21  Bruno Haible  <bruno@clisp.org>
68488         Really work around "broken pipe" error message from bash 3.2.
68489         * gnulib-tool (func_reset_sigpipe): Remove function.
68490         (echo): In bash 3.2, define to a function that uses printf.
68491         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
68493 2010-02-20  Bruno Haible  <bruno@clisp.org>
68495         Restore support for automake 1.9.6 with autoconf 2.61.
68496         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
68497         Reported by James Youngman <jay@gnu.org>.
68499 2010-02-20  Bruno Haible  <bruno@clisp.org>
68501         Improve *printf warning condition.
68502         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
68503         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
68504         and the function is overridden due to SIGPIPE emulation.
68506 2010-02-20  Bruno Haible  <bruno@clisp.org>
68508         * lib/stdio.in.h: Tweak comments.
68510 2010-02-19  Bruno Haible  <bruno@clisp.org>
68512         Make it easier to find modules. New gnulib-tool option '--find'.
68513         * gnulib-tool: New option --find.
68514         (func_usage): Document it.
68515         (func_sanitize_modulelist): New function, extracted from
68516         func_all_modules.
68517         (func_all_modules): Invoke it.
68518         * doc/gnulib-tool.texi (Which modules?): New node.
68520 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
68522         * lib/sys_select.in.h: Provide select replacement even if
68523         sys/select.h exists on a system, for Interix.
68525 2010-02-18  Jim Meyering  <meyering@redhat.com>
68527         init.sh: don't use $(...) just yet
68528         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
68529         to accommodate e.g., Solaris' /bin/sh.
68531 2010-02-17  Bruno Haible  <bruno@clisp.org>
68533         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
68534         Reported by Ludovic Courtès <ludo@gnu.org>.
68536 2010-02-16  Simon Josefsson  <simon@josefsson.org>
68538         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
68539         linking with -lintl.
68541 2010-02-17  Simon Josefsson  <simon@josefsson.org>
68543         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
68544         if not provided by the system's netdb.h.  Reported by
68545         ludo@gnu.org (Ludovic Courtès).
68547 2010-02-15  Jim Meyering  <meyering@redhat.com>
68549         init.sh: improve portability and efficiency
68550         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
68551         "dummy" in a for loop.
68552         Use '!', not '^' to select the complement of a character set used
68553         in a "case" statement.
68554         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
68555         Suggestions from Eric Blake.
68557         init.sh: automatically accommodate programs with the .exe suffix
68558         Automatically arrange for an invocation of "prog" to execute the
68559         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
68560         may use the simpler "prog", yet still work when built on a system
68561         that requires specifying the added suffix.
68562         Do this by constructing a function named "prog" that invokes
68563         "prog.exe" for each .exe file in selected directories.
68564         * tests/init.sh (find_exe_basenames_): New function.
68565         (create_exe_shim_functions_): New function.
68566         (path_prepend_): Use it.
68568         maint.mk: mark syntax-check sc_*.m rules as .PHONY
68569         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
68570         "make -t syntax-check" doesn't create a ton of sc_*.m files.
68572 2010-02-14  Jim Meyering  <meyering@redhat.com>
68574         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
68575         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
68576         (sc_prohibit_hash_pjw_without_use): New rule.
68578         maint.mk: allow the default upload destination dir to be overridden
68579         * top/maint.mk (upload_dest_dir_): Define with a default that
68580         preserves the status quo.
68581         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
68582         Reported by Peter Simons.
68584         maint.mk: prohibit inclusion of "hash.h" without_use
68585         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
68587 2010-02-10  Jim Meyering  <meyering@redhat.com>
68589         maint.mk: prohibit inclusion of "ignore-value.h" without_use
68590         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
68592 2010-02-09  Eric Blake  <ebb9@byu.net>
68593         and Bruno Haible  <bruno@clisp.org>
68595         obstack-printf-posix: ensure declaration
68596         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
68597         extracted from gl_FUNC_OBSTACK_PRINTF.
68598         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
68599         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68600         Likewise.
68601         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
68602         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
68603         0.
68605 2010-02-08  Bruno Haible  <bruno@clisp.org>
68607         gnulib-tool: Fix typo in 2010-02-07 commit.
68608         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
68609         Reported by Eric Blake.
68611 2010-02-07  Bruno Haible  <bruno@clisp.org>
68613         gnulib-tool: Fix up caching patches.
68614         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
68615         option --no-cache. Use associative arrays when supported by the shell.
68616         (sed_comments): New variable.
68617         (modcache): Renamed from do_cache.
68618         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
68619         abbreviate unnecessarily.
68620         (have_associative): New variable.
68621         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
68622         way also for ksh and zsh.
68623         (func_init_sed_convert_to_cache_statements): New function, extracted
68624         from func_cache_lookup_module. Add support for associative arrays.
68625         Don't set the c_MODULE_cached variable here. Ignore all lines before
68626         the first field header. Remove only the final newline, not all trailing
68627         newlines. Support empty fields correctly. Limit the use of 'eval' to
68628         assignments.
68629         (func_get_description, func_get_status, func_get_notice,
68630         func_get_applicability, func_get_filelist, func_get_dependencies,
68631         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
68632         func_get_automake_snippet, func_get_include_directive,
68633         func_get_link_directive, func_get_license, func_get_maintainer):
68634         Update documentation. List the unoptimized code first. Add support for
68635         associative arrays. Limit the use of 'eval' to assignments.
68636         (func_get_applicability): Undo stylistic pessimisations.
68637         (func_get_automake_snippet, func_get_include_directive): Reduce code
68638         duplication.
68639         (func_modules_transitive_closure, func_modules_add_dummy,
68640         func_modules_notice, func_modules_to_filelist, func_add_file,
68641         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
68642         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
68643         func_create_testdir, func_create_megatestdir): Update documentation.
68645 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68647         * gnulib-tool (func_cache_lookup_module): Store the module name
68648         belonging to the cache variable; error out if two different
68649         module names map to the same cache variable name.
68651 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68653         gnulib-tool: Make caching optional.
68654         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
68655         Update matching short versions of --no-changelog.
68656         (func_usage): Update.
68657         (sed_extract_cache_prog): Renamed from ...
68658         (sed_extract_prog): ... this; revert to old extraction script.
68659         (func_get_description, func_get_status)
68660         (func_get_notice, func_get_applicability, func_get_filelist)
68661         (func_get_dependencies, func_get_autoconf_early_snippet)
68662         (func_get_autoconf_snippet, func_get_automake_snippet)
68663         (func_get_include_directive, func_get_link_directive)
68664         (func_get_license, func_get_maintainer): If $do_cache is false,
68665         use old, non-caching extraction scripts.
68666         Suggestion by Bruno Haible.
68668 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68670         gnulib-tool: cache module metainformation.
68671         * gnulib-tool (sed_extract_prog): Match newline before each
68672         header, and rewrite header to a shell variable suffix.
68673         (func_cache_var, func_cache_lookup_module): New functions,
68674         to turn a module name into a cache variable prefix, and to
68675         look up and cache module metainformation.
68676         (func_get_description, func_get_status)
68677         (func_get_notice, func_get_applicability, func_get_filelist)
68678         (func_get_dependencies, func_get_autoconf_early_snippet)
68679         (func_get_autoconf_snippet, func_get_automake_snippet)
68680         (func_get_include_directive, func_get_link_directive)
68681         (func_get_license, func_get_maintainer): Use
68682         func_cache_lookup_module.
68684 2010-02-07  Bruno Haible  <bruno@clisp.org>
68686         fnctl: Fix missing dependency.
68687         * modules/fcntl (Depends-on): Add getdtablesize.
68688         Reported by John W. Eaton <jwe@gnu.org>.
68690 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68692         Argp: fix recognition of short alias options.
68694         * lib/argp-parse.c (convert_options): Fix improper use of
68695         `|' between character values.
68696         * tests/test-argp.c (group1_option): New alias option
68697         --read (-r).
68698         (group1_parser): Special handling for 'r'.
68699         (test15): New test case.
68700         (test_fun): Add test15.
68701         * tests/test-argp-2.sh: Update expected --help and --usage
68702         outputs.
68704 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68706         * tests/test-argp.c: Fix indentation.
68708 2010-02-04  Eric Blake  <ebb9@byu.net>
68710         gettimeofday: expose type of second argument
68711         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
68712         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
68713         * tests/test-gettimeofday.c: Use it to silence warning.
68714         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
68715         the issue.
68717 2010-02-03  Jim Meyering  <meyering@redhat.com>
68719         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
68720         * lib/regcomp.c (TYPE_SIGNED): Define.
68721         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
68723         regcomp.c: avoid a new -Wshadow warning
68724         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
68726 2010-02-01  Jim Meyering  <meyering@redhat.com>
68728         removing useless parentheses in cpp #define directives
68729         For motivation, see commit c0221df4, "define STREQ(a,b)
68730         consistently, removing useless parentheses"
68731         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
68732         * lib/mountlist.c (MNT_IGNORE): Likewise.
68733         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
68735 2010-02-01  Eric Blake  <ebb9@byu.net>
68737         sys_time: use link-warning
68738         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
68739         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
68740         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
68741         * modules/sys_time (Depends-on): Add warn-on-use.
68742         (Makefile.am): Always build replacement.
68743         (configure.ac): Update substitutions.
68744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
68745         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
68746         bother with SYS_TIME_H.
68747         * modules/gettimeofday (configure.ac): Declare indicator.
68748         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
68749         in use.
68751         closein-tests: silence compiler warning
68752         * tests/test-closein.c (main): Ignore fread result.
68753         * modules/closein-tests (Depends-on): Add ignore-value.
68755         tests: silence warning about system return
68756         * tests/test-areadlink-with-size.c (main): Ignore system result.
68757         * tests/test-areadlink.c (main): Likewise.
68758         * tests/test-areadlinkat-with-size.c (main): Likewise.
68759         * tests/test-areadlinkat.c (main): Likewise.
68760         * tests/test-canonicalize-lgpl.c (main): Likewise.
68761         * tests/test-canonicalize.c (main): Likewise.
68762         * tests/test-chown.c (main): Likewise.
68763         * tests/test-fchownat.c (main): Likewise.
68764         * tests/test-fdutimensat.c (main): Likewise.
68765         * tests/test-fstatat.c (main): Likewise.
68766         * tests/test-futimens.c (main): Likewise.
68767         * tests/test-lchown.c (main): Likewise.
68768         * tests/test-link.c (main): Likewise.
68769         * tests/test-linkat.c (main): Likewise.
68770         * tests/test-lstat.c (main): Likewise.
68771         * tests/test-mkdir.c (main): Likewise.
68772         * tests/test-mkdirat.c (main): Likewise.
68773         * tests/test-mkfifo.c (main): Likewise.
68774         * tests/test-mkfifoat.c (main): Likewise.
68775         * tests/test-mknod.c (main): Likewise.
68776         * tests/test-readlink.c (main): Likewise.
68777         * tests/test-remove.c (main): Likewise.
68778         * tests/test-rename.c (main): Likewise.
68779         * tests/test-renameat.c (main): Likewise.
68780         * tests/test-rmdir.c (main): Likewise.
68781         * tests/test-symlink.c (main): Likewise.
68782         * tests/test-symlinkat.c (main): Likewise.
68783         * tests/test-unlink.c (main): Likewise.
68784         * tests/test-unlinkat.c (main): Likewise.
68785         * tests/test-utimens.c (main): Likewise.
68786         * tests/test-utimensat.c (main): Likewise.
68787         * modules/areadlink-tests (Depends-on): Add ignore-value.
68788         * modules/areadlink-with-size-tests (Depends-on): Likewise.
68789         * modules/areadlinkat-tests (Depends-on): Likewise.
68790         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
68791         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68792         * modules/canonicalize-tests (Depends-on): Likewise.
68793         * modules/chown-tests (Depends-on): Likewise.
68794         * modules/fdutimensat-tests (Depends-on): Likewise.
68795         * modules/futimens-tests (Depends-on): Likewise.
68796         * modules/lchown-tests (Depends-on): Likewise.
68797         * modules/link-tests (Depends-on): Likewise.
68798         * modules/linkat-tests (Depends-on): Likewise.
68799         * modules/lstat-tests (Depends-on): Likewise.
68800         * modules/mkdir-tests (Depends-on): Likewise.
68801         * modules/mkfifo-tests (Depends-on): Likewise.
68802         * modules/mkfifoat-tests (Depends-on): Likewise.
68803         * modules/mknod-tests (Depends-on): Likewise.
68804         * modules/openat-tests (Depends-on): Likewise.
68805         * modules/readlink-tests (Depends-on): Likewise.
68806         * modules/remove-tests (Depends-on): Likewise.
68807         * modules/rename-tests (Depends-on): Likewise.
68808         * modules/renameat-tests (Depends-on): Likewise.
68809         * modules/rmdir-tests (Depends-on): Likewise.
68810         * modules/symlink-tests (Depends-on): Likewise.
68811         * modules/symlinkat-tests (Depends-on): Likewise.
68812         * modules/unlink-tests (Depends-on): Likewise.
68813         * modules/utimens-tests (Depends-on): Likewise.
68814         * modules/utimensat-tests (Depends-on): Likewise.
68816 2010-01-31  Bruno Haible  <bruno@clisp.org>
68818         Perform the same test for many <math.h> functions.
68819         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68820         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68821         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68822         of gl_MATHFUNC.
68823         * modules/acos (configure.ac): Likewise.
68824         * modules/asin (configure.ac): Likewise.
68825         * modules/atan (configure.ac): Likewise.
68826         * modules/atan2 (configure.ac): Likewise.
68827         * modules/cbrt (configure.ac): Likewise.
68828         * modules/copysign (configure.ac): Likewise.
68829         * modules/cos (configure.ac): Likewise.
68830         * modules/cosh (configure.ac): Likewise.
68831         * modules/erf (configure.ac): Likewise.
68832         * modules/erfc (configure.ac): Likewise.
68833         * modules/exp (configure.ac): Likewise.
68834         * modules/fmod (configure.ac): Likewise.
68835         * modules/hypot (configure.ac): Likewise.
68836         * modules/j0 (configure.ac): Likewise.
68837         * modules/j1 (configure.ac): Likewise.
68838         * modules/jn (configure.ac): Likewise.
68839         * modules/lgamma (configure.ac): Likewise.
68840         * modules/log (configure.ac): Likewise.
68841         * modules/log10 (configure.ac): Likewise.
68842         * modules/log1p (configure.ac): Likewise.
68843         * modules/pow (configure.ac): Likewise.
68844         * modules/remainder (configure.ac): Likewise.
68845         * modules/sin (configure.ac): Likewise.
68846         * modules/sinh (configure.ac): Likewise.
68847         * modules/tan (configure.ac): Likewise.
68848         * modules/tanh (configure.ac): Likewise.
68849         * modules/y0 (configure.ac): Likewise.
68850         * modules/y1 (configure.ac): Likewise.
68851         * modules/yn (configure.ac): Likewise.
68852         Suggested by Paolo Bonzini.
68854 2010-01-31  Bruno Haible  <bruno@clisp.org>
68856         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68858 2010-01-31  Bruno Haible  <bruno@clisp.org>
68860         Work around getdelim() bug on FreeBSD 8.0.
68861         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68862         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68863         not work.
68864         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68865         is 1.
68866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68867         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68868         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68869         a non-zero size.
68870         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68872 2010-01-31  Bruno Haible  <bruno@clisp.org>
68874         Work around getline() bug on FreeBSD 8.0.
68875         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68876         and a non-zero size.
68877         * tests/test-getline.c (main): Likewise.
68878         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68879         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68881 2010-01-28  Eric Blake  <ebb9@byu.net>
68883         regex: fix build failure
68884         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68885         platforms.
68887 2010-01-28  Jim Meyering  <meyering@redhat.com>
68889         regex: do not ignore memory allocation failure
68890         * lib/regex_internal.c (create_cd_newstate): Detect
68891         re_node_set_init_copy failure.   Extracted from glibc commit
68892         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68894         regex: sync more white-space changes from libc
68895         * lib/regex_internal.c: White-space only changes.
68896         * lib/regexec.c: Likewise.
68898         regex: add many uses of __attribute_warn_unused_result__
68899         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68900         * lib/regexec.c: Likewise.
68901         Extracted from a messy glibc commit.
68903         regcomp.c: spelling and merge-artifact from glibc
68904         * lib/regcomp.c: Merge remainder of glibc's
68905         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68907         regcomp.c: sync white-space changes from glibc
68908         * lib/regcomp.c: Merge to accommodate white space
68909         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68911         regcomp.c: do not ignore internal return values
68912         * lib/regcomp.c: Do not ignore internal return values.
68913         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68914         but without its white-space changes and spelling fixes.
68916         regex_internal.h: define __attribute_warn_unused_result__
68917         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68919         maint: add a syntax-check rule to check for vulnerable Makefile.in
68920         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68922 2010-01-27  Jim Meyering  <meyering@redhat.com>
68924         ncftpput-ftp: clean up spaces
68925         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68926         Remove trailing blanks.
68928 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68930         * build-aux/git-version-gen: Fix copyright statement.
68931         * build-aux/gnupload: Likewise.
68932         * tests/test-arcfour.c: Likewise.
68933         * tests/test-arctwo.c: Likewise.
68934         * tests/test-count-one-bits.c: Likewise.
68935         * tests/test-crc.c: Likewise.
68936         * tests/test-des.c: Likewise.
68937         * tests/test-gc-arcfour.c: Likewise.
68938         * tests/test-gc-arctwo.c: Likewise.
68939         * tests/test-gc-des.c: Likewise.
68940         * tests/test-gc-hmac-md5.c: Likewise.
68941         * tests/test-gc-hmac-sha1.c: Likewise.
68942         * tests/test-gc-md2.c: Likewise.
68943         * tests/test-gc-md4.c: Likewise.
68944         * tests/test-gc-md5.c: Likewise.
68945         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68946         * tests/test-gc-rijndael.c: Likewise.
68947         * tests/test-gc-sha1.c: Likewise.
68948         * tests/test-gc.c: Likewise.
68949         * tests/test-gethostname.c: Likewise.
68950         * tests/test-gettimeofday.c: Likewise.
68951         * tests/test-hash.c: Likewise.
68952         * tests/test-hmac-md5.c: Likewise.
68953         * tests/test-hmac-sha1.c: Likewise.
68954         * tests/test-md2.c: Likewise.
68955         * tests/test-md4.c: Likewise.
68956         * tests/test-md5.c: Likewise.
68957         * tests/test-memchr.c: Likewise.
68958         * tests/test-memchr2.c: Likewise.
68959         * tests/test-memcmp.c: Likewise.
68960         * tests/test-memmem.c: Likewise.
68961         * tests/test-memrchr.c: Likewise.
68962         * tests/test-rawmemchr.c: Likewise.
68963         * tests/test-read-file.c: Likewise.
68964         * tests/test-rijndael.c: Likewise.
68965         * tests/test-sockets.c: Likewise.
68966         * tests/test-strchrnul.c: Likewise.
68967         * tests/test-strstr.c: Likewise.
68968         * tests/test-strtod.c: Likewise.
68969         * build-aux/ncftpput-ftp: Likewise.
68971 2010-01-26  Eric Blake  <ebb9@byu.net>
68973         ignore-value: update recommended header name
68974         * modules/ignore-value (Include): Only use <> for headers that
68975         exist in glibc.
68977 2010-01-26  Jim Meyering  <meyering@redhat.com>
68979         test-userspec.c: avoid compiler warnings
68980         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68981         and "initialization discards qualifiers..." warnings.
68982         Put the first "uid" in its own scope, and make char* members "const".
68984 2010-01-25  Bruno Haible  <bruno@clisp.org>
68986         gnulib-tool: Make warning diagnostics consistent.
68987         * gnulib-tool (func_warning): New function.
68988         Use it everywhere where gnulib-tool produces output to stderr and it is
68989         not a fatal error.
68991 2010-01-25  Bruno Haible  <bruno@clisp.org>
68993         Fix test dependencies.
68994         * modules/xstrtol-tests (Depends-on): Add inttypes.
68995         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68997 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68999         syntax-check: detect incorrect boolean macro values in config.h
69000         * modules/maintainer-makefile (configure.ac): Parameterize the location
69001         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
69002         The logic is from Eric Blake and the location indicated by Jim Meyering.
69003         Note the more natural CONFIG_HEADER name is prohibited by automake
69004         for backwards compatibility reasons.
69005         * top/maint.mk (sc_Wundef_boolean): New rule.
69007 2010-01-25  Jim Meyering  <meyering@redhat.com>
69009         bootstrap: detect MacOS 10.6's shasum, too
69010         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
69011         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
69013 2010-01-23  Jim Meyering  <meyering@redhat.com>
69015         xstrtoll: new module
69016         * modules/xstrtoll: New file.
69017         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
69018         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
69019         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
69020         ./configure fails if you use this module and lack "long long".
69021         * modules/xstrtoll-tests: New module.
69022         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
69023         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
69024         new init.sh-based test framework.
69026 2010-01-24  Bruno Haible  <bruno@clisp.org>
69028         Tests for module 'yn'.
69029         * modules/yn-tests: New file.
69030         * tests/test-yn.c: New file.
69032         Tests for module 'y1'.
69033         * modules/y1-tests: New file.
69034         * tests/test-y1.c: New file.
69036         Tests for module 'y0'.
69037         * modules/y0-tests: New file.
69038         * tests/test-y0.c: New file.
69040         Tests for module 'tanh'.
69041         * modules/tanh-tests: New file.
69042         * tests/test-tanh.c: New file.
69044         Tests for module 'tan'.
69045         * modules/tan-tests: New file.
69046         * tests/test-tan.c: New file.
69048         Tests for module 'sqrt'.
69049         * modules/sqrt-tests: New file.
69050         * tests/test-sqrt.c: New file.
69052         Tests for module 'sinh'.
69053         * modules/sinh-tests: New file.
69054         * tests/test-sinh.c: New file.
69056         Tests for module 'sin'.
69057         * modules/sin-tests: New file.
69058         * tests/test-sin.c: New file.
69060         Tests for module 'rint'.
69061         * modules/rint-tests: New file.
69062         * tests/test-rint.c: New file.
69064         Tests for module 'remainder'.
69065         * modules/remainder-tests: New file.
69066         * tests/test-remainder.c: New file.
69068         Tests for module 'pow'.
69069         * modules/pow-tests: New file.
69070         * tests/test-pow.c: New file.
69072         Tests for module 'nextafter'.
69073         * modules/nextafter-tests: New file.
69074         * tests/test-nextafter.c: New file.
69076         Tests for module 'modf'.
69077         * modules/modf-tests: New file.
69078         * tests/test-modf.c: New file.
69080         Tests for module 'logb'.
69081         * modules/logb-tests: New file.
69082         * tests/test-logb.c: New file.
69084         Tests for module 'log1p'.
69085         * modules/log1p-tests: New file.
69086         * tests/test-log1p.c: New file.
69088         Tests for module 'log10'.
69089         * modules/log10-tests: New file.
69090         * tests/test-log10.c: New file.
69092         Tests for module 'log'.
69093         * modules/log-tests: New file.
69094         * tests/test-log.c: New file.
69096         Tests for module 'lgamma'.
69097         * modules/lgamma-tests: New file.
69098         * tests/test-lgamma.c: New file.
69100         Tests for module 'ldexp'.
69101         * modules/ldexp-tests: New file.
69102         * tests/test-ldexp.c: New file.
69104         Tests for module 'jn'.
69105         * modules/jn-tests: New file.
69106         * tests/test-jn.c: New file.
69108         Tests for module 'j1'.
69109         * modules/j1-tests: New file.
69110         * tests/test-j1.c: New file.
69112         Tests for module 'j0'.
69113         * modules/j0-tests: New file.
69114         * tests/test-j0.c: New file.
69116         Tests for module 'hypot'.
69117         * modules/hypot-tests: New file.
69118         * tests/test-hypot.c: New file.
69120         Tests for module 'fmod'.
69121         * modules/fmod-tests: New file.
69122         * tests/test-fmod.c: New file.
69124         Tests for module 'fabs'.
69125         * modules/fabs-tests: New file.
69126         * tests/test-fabs.c: New file.
69128         Tests for module 'exp'.
69129         * modules/exp-tests: New file.
69130         * tests/test-exp.c: New file.
69132         Tests for module 'erfc'.
69133         * modules/erfc-tests: New file.
69134         * tests/test-erfc.c: New file.
69136         Tests for module 'erf'.
69137         * modules/erf-tests: New file.
69138         * tests/test-erf.c: New file.
69140         Tests for module 'cosh'.
69141         * modules/cosh-tests: New file.
69142         * tests/test-cosh.c: New file.
69144         Tests for module 'cos'.
69145         * modules/cos-tests: New file.
69146         * tests/test-cos.c: New file.
69148         Tests for module 'copysign'.
69149         * modules/copysign-tests: New file.
69150         * tests/test-copysign.c: New file.
69152         Tests for module 'cbrt'.
69153         * modules/cbrt-tests: New file.
69154         * tests/test-cbrt.c: New file.
69156         Tests for module 'atan2'.
69157         * modules/atan2-tests: New file.
69158         * tests/test-atan2.c: New file.
69160         Tests for module 'atan'.
69161         * modules/atan-tests: New file.
69162         * tests/test-atan.c: New file.
69164         Tests for module 'asin'.
69165         * modules/asin-tests: New file.
69166         * tests/test-asin.c: New file.
69168         Tests for module 'acos'.
69169         * modules/acos-tests: New file.
69170         * tests/test-acos.c: New file.
69172 2010-01-24  Bruno Haible  <bruno@clisp.org>
69174         Fix tests for common <math.h> functions.
69175         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
69176         code snippet that references the function pointer, rather than merely
69177         calling the function. Substitute the FUNC_LIBM variable.
69178         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
69179         * modules/acos (configure.ac): Likewise.
69180         * modules/asin (configure.ac): Likewise.
69181         * modules/atan (configure.ac): Likewise.
69182         * modules/atan2 (configure.ac): Likewise.
69183         * modules/cbrt (configure.ac): Likewise.
69184         * modules/copysign (configure.ac): Likewise.
69185         * modules/cos (configure.ac): Likewise.
69186         * modules/cosh (configure.ac): Likewise.
69187         * modules/erf (configure.ac): Likewise.
69188         * modules/erfc (configure.ac): Likewise.
69189         * modules/exp (configure.ac): Likewise.
69190         * modules/fabs (configure.ac): Likewise.
69191         * modules/fmod (configure.ac): Likewise.
69192         * modules/hypot (configure.ac): Likewise.
69193         * modules/j0 (configure.ac): Likewise.
69194         * modules/j1 (configure.ac): Likewise.
69195         * modules/jn (configure.ac): Likewise.
69196         * modules/ldexp (configure.ac): Likewise.
69197         * modules/lgamma (configure.ac): Likewise.
69198         * modules/log (configure.ac): Likewise.
69199         * modules/log10 (configure.ac): Likewise.
69200         * modules/log1p (configure.ac): Likewise.
69201         * modules/logb (configure.ac): Likewise.
69202         * modules/modf (configure.ac): Likewise.
69203         * modules/nextafter (configure.ac): Likewise.
69204         * modules/pow (configure.ac): Likewise.
69205         * modules/remainder (configure.ac): Likewise.
69206         * modules/rint (configure.ac): Likewise.
69207         * modules/sin (configure.ac): Likewise.
69208         * modules/sinh (configure.ac): Likewise.
69209         * modules/tan (configure.ac): Likewise.
69210         * modules/tanh (configure.ac): Likewise.
69211         * modules/y0 (configure.ac): Likewise.
69212         * modules/y1 (configure.ac): Likewise.
69213         * modules/yn (configure.ac): Likewise.
69215 2010-01-24  Bruno Haible  <bruno@clisp.org>
69217         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
69218         * tests/test-acosl.c (x): New variable.
69219         (main): Store argument in x and fetch it from x.
69220         * tests/test-asinl.c (x): New variable.
69221         (main): Store argument in x and fetch it from x.
69222         * tests/test-atanl.c (x): New variable.
69223         (main): Store argument in x and fetch it from x.
69224         * tests/test-cosl.c (x): New variable.
69225         (main): Store argument in x and fetch it from x.
69226         * tests/test-expl.c (x): New variable.
69227         (main): Store argument in x and fetch it from x.
69228         * tests/test-logl.c (x): New variable.
69229         (main): Store argument in x and fetch it from x.
69230         * tests/test-sinl.c (x): New variable.
69231         (main): Store argument in x and fetch it from x.
69232         * tests/test-sqrtl.c (x): New variable.
69233         (main): Store argument in x and fetch it from x.
69234         * tests/test-tanl.c (x): New variable.
69235         (main): Store argument in x and fetch it from x.
69237 2010-01-24  Bruno Haible  <bruno@clisp.org>
69239         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
69240         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
69241         assignments to the initial TESTS_ENVIRONMENT.
69242         * doc/gnulib.texi (Unit test modules): Document it.
69243         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
69244         TESTS_ENVIRONMENT.
69245         * modules/btowc-tests (Makefile.am): Likewise.
69246         * modules/c-stack-tests (Makefile.am): Likewise.
69247         * modules/c-strcase-tests (Makefile.am): Likewise.
69248         * modules/copy-file-tests (Makefile.am): Likewise.
69249         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
69250         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
69251         * modules/mbrtowc-tests (Makefile.am): Likewise.
69252         * modules/mbscasecmp-tests (Makefile.am): Likewise.
69253         * modules/mbscasestr-tests (Makefile.am): Likewise.
69254         * modules/mbschr-tests (Makefile.am): Likewise.
69255         * modules/mbscspn-tests (Makefile.am): Likewise.
69256         * modules/mbsinit-tests (Makefile.am): Likewise.
69257         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
69258         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
69259         * modules/mbspbrk-tests (Makefile.am): Likewise.
69260         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
69261         * modules/mbsrchr-tests (Makefile.am): Likewise.
69262         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
69263         * modules/mbsspn-tests (Makefile.am): Likewise.
69264         * modules/mbsstr-tests (Makefile.am): Likewise.
69265         * modules/nl_langinfo-tests (Makefile.am): Likewise.
69266         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
69267         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
69268         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
69269         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
69270         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
69271         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
69272         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
69273         * modules/wcrtomb-tests (Makefile.am): Likewise.
69274         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
69275         * modules/wcsrtombs-tests (Makefile.am): Likewise.
69276         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
69277         assignments from TESTS_ENVIRONMENT.
69278         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
69279         augmentation.
69280         * modules/argp-version-etc-tests (Makefile.am): Likewise.
69281         * modules/atexit-tests (Makefile.am): Likewise.
69282         * modules/binary-io-tests (Makefile.am): Likewise.
69283         * modules/closein-tests (Makefile.am): Likewise.
69284         * modules/dprintf-posix-tests (Makefile.am): Likewise.
69285         * modules/exclude-tests (Makefile.am): Likewise.
69286         * modules/fflush-tests (Makefile.am): Likewise.
69287         * modules/fpending-tests (Makefile.am): Likewise.
69288         * modules/fprintf-posix-tests (Makefile.am): Likewise.
69289         * modules/freadahead-tests (Makefile.am): Likewise.
69290         * modules/freadptr-tests (Makefile.am): Likewise.
69291         * modules/freadseek-tests (Makefile.am): Likewise.
69292         * modules/fseek-tests (Makefile.am): Likewise.
69293         * modules/fseeko-tests (Makefile.am): Likewise.
69294         * modules/ftell-tests (Makefile.am): Likewise.
69295         * modules/ftello-tests (Makefile.am): Likewise.
69296         * modules/idpriv-drop-tests (Makefile.am): Likewise.
69297         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
69298         * modules/lseek-tests (Makefile.am): Likewise.
69299         * modules/parse-duration-tests (Makefile.am): Likewise.
69300         * modules/perror-tests (Makefile.am): Likewise.
69301         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
69302         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
69303         * modules/pipe-tests (Makefile.am): Likewise.
69304         * modules/pread-tests (Makefile.am): Likewise.
69305         * modules/printf-posix-tests (Makefile.am): Likewise.
69306         * modules/select-tests (Makefile.am): Likewise.
69307         * modules/sigpipe-tests (Makefile.am): Likewise.
69308         * modules/tsearch-tests (Makefile.am): Likewise.
69309         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
69310         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
69311         * modules/uniname/uniname-tests (Makefile.am): Likewise.
69312         * modules/uniwidth/width-tests (Makefile.am): Likewise.
69313         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
69314         * modules/version-etc-tests (Makefile.am): Likewise.
69315         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
69316         * modules/vprintf-posix-tests (Makefile.am): Likewise.
69317         * modules/xalloc-die-tests (Makefile.am): Likewise.
69318         * modules/xprintf-posix-tests (Makefile.am): Likewise.
69319         * modules/xstrtoimax-tests (Makefile.am): Likewise.
69320         * modules/xstrtol-tests (Makefile.am): Likewise.
69321         * modules/xstrtoumax-tests (Makefile.am): Likewise.
69322         * modules/yesno-tests (Makefile.am): Likewise.
69323         Suggested by Jim Meyering.
69325 2010-01-24  Bruno Haible  <bruno@clisp.org>
69327         More documentation.
69328         * doc/gnulib.texi (Writing modules): New chapter.
69329         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
69330         the new chapter.
69332 2010-01-24  Jim Meyering  <meyering@redhat.com>
69334         maint.mk: do not prepend "./" after filtering
69335         * top/maint.mk (_prepend_srcdir_prefix): New variable
69336         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
69337         "./" when $(srcdir) is ".".
69339         define STREQ(a,b) consistently, removing useless parentheses
69340         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
69341         since the only risk is that "a" or "b" contains an unparenthesized
69342         comma, but if either did that, STREQ would have 3 or more arguments.
69343         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
69344         * lib/fts.c (STREQ): Remove unnecessary parentheses.
69345         * lib/hash-triple.c (STREQ): Likewise.
69346         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
69347         * lib/getugroups.c (STREQ): Likewise.
69349 2010-01-23  Jim Meyering  <meyering@redhat.com>
69351         maint.mk: fix syntax-check in a non-srcdir build directory
69352         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
69353         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
69355 2010-01-22  Jim Meyering  <meyering@redhat.com>
69357         userspec: add unit tests
69358         * tests/test-userspec.c: New file.
69359         * modules/userspec-tests: Likewise.
69361 2010-01-21  Jim Meyering  <meyering@redhat.com>
69363         maint.mk: handle source file names containing "." robustly
69364         * top/maint.mk (_dot_escaped_srcdir): Define.
69365         (VC_LIST): Use it in LHS of sed substitution.
69367 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
69369         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
69370         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
69371         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
69372         from a non-srcdir build.
69374 2010-01-20  Eric Blake  <ebb9@byu.net>
69376         warn-on-use: use instead of link-warning
69377         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
69378         * modules/unistd (Depends-on, Makefile.am): Likewise.
69379         * modules/arpa_inet (Depends-on): Replace link-warning with
69380         warn-on-use.
69381         (Makefile.am): Update rules accordingly.
69382         * modules/ctype (Depends-on, Makefile.am): Likewise.
69383         * modules/dirent (Depends-on, Makefile.am): Likewise.
69384         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
69385         * modules/inttypes (Depends-on, Makefile.am): Likewise.
69386         * modules/langinfo (Depends-on, Makefile.am): Likewise.
69387         * modules/locale (Depends-on, Makefile.am): Likewise.
69388         * modules/math (Depends-on, Makefile.am): Likewise.
69389         * modules/search (Depends-on, Makefile.am): Likewise.
69390         * modules/signal (Depends-on, Makefile.am): Likewise.
69391         * modules/spawn (Depends-on, Makefile.am): Likewise.
69392         * modules/stdlib (Depends-on, Makefile.am): Likewise.
69393         * modules/string (Depends-on, Makefile.am): Likewise.
69394         * modules/strings (Depends-on, Makefile.am): Likewise.
69395         * modules/sys_file (Depends-on, Makefile.am): Likewise.
69396         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
69397         * modules/sys_select (Depends-on, Makefile.am): Likewise.
69398         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
69399         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
69400         * modules/sys_times (Depends-on, Makefile.am): Likewise.
69401         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
69402         * modules/wchar (Depends-on, Makefile.am): Likewise.
69403         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
69404         should be poisoned.
69405         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
69406         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
69407         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
69408         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69409         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69410         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69411         * m4/math_h.m4 (gl_MATH_H): Likewise.
69412         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69413         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69414         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69415         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69416         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69417         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69418         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
69419         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
69420         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
69421         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69424         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69425         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69426         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69427         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69428         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
69429         GL_LINK_WARNING.
69430         * lib/ctype.in.h: Likewise.
69431         * lib/dirent.in.h: Likewise.
69432         * lib/fcntl.in.h: Likewise.
69433         * lib/inttypes.in.h: Likewise.
69434         * lib/langinfo.in.h: Likewise.
69435         * lib/locale.in.h: Likewise.
69436         * lib/math.in.h: Likewise.
69437         * lib/search.in.h: Likewise.
69438         * lib/signal.in.h: Likewise.
69439         * lib/spawn.in.h: Likewise.
69440         * lib/stdio.in.h: Likewise.
69441         * lib/stdlib.in.h: Likewise.
69442         * lib/string.in.h: Likewise.
69443         * lib/strings.in.h: Likewise.
69444         * lib/sys_file.in.h: Likewise.
69445         * lib/sys_ioctl.in.h: Likewise.
69446         * lib/sys_select.in.h: Likewise.
69447         * lib/sys_socket.in.h: Likewise.
69448         * lib/sys_stat.in.h: Likewise.
69449         * lib/sys_times.in.h: Likewise.
69450         * lib/sys_utsname.in.h: Likewise.
69451         * lib/unistd.in.h: Likewise.
69452         * lib/wchar.in.h: Likewise.
69454 2010-01-20  Bruno Haible  <bruno@clisp.org>
69456         Avoid duplicate -lm.
69457         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
69458         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
69459         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
69460         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
69461         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
69462         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
69463         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
69464         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
69465         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
69466         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
69467         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
69468         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
69469         Reported by Paolo Bonzini.
69471 2010-01-19  Bruno Haible  <bruno@clisp.org>
69473         langinfo, nl_langinfo: Relicense under LGPLv2+.
69474         * modules/langinfo (License): Change to LGPLv2+.
69475         * modules/nl_langinfo (License): Likewise.
69476         Patch by David Lutterkort <lutter@redhat.com>.
69478 2010-01-19  Bruno Haible  <bruno@clisp.org>
69480         Avoid compilation error with cc on OSF/1 5.1.
69481         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
69482         statement, not before.
69483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69485 2010-01-18  Bruno Haible  <bruno@clisp.org>
69487         Avoid a link error due to the __printf__ symbol.
69488         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
69489         and 2.6.x.
69490         (__format__, __printf__): Remove definitions.
69491         * lib/argp-fmtstream.h: Likewise.
69492         * lib/argp.h: Likewise.
69493         * lib/error.h: Likewise.
69494         * lib/vasnprintf.h: Likewise.
69495         * lib/xprintf.h: Likewise.
69496         * lib/xvasprintf.h: Likewise.
69497         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69499 2010-01-18  Bruno Haible  <bruno@clisp.org>
69501         Tests for module 'tanl'.
69502         * modules/tanl-tests: New file.
69503         * tests/test-tanl.c: New file.
69505         Tests for module 'sqrtl'.
69506         * modules/sqrtl-tests: New file.
69507         * tests/test-sqrtl.c: New file.
69509         Tests for module 'sinl'.
69510         * modules/sinl-tests: New file.
69511         * tests/test-sinl.c: New file.
69513         Tests for module 'logl'.
69514         * modules/logl-tests: New file.
69515         * tests/test-logl.c: New file.
69517         Tests for module 'expl'.
69518         * modules/expl-tests: New file.
69519         * tests/test-expl.c: New file.
69521         Tests for module 'cosl'.
69522         * modules/cosl-tests: New file.
69523         * tests/test-cosl.c: New file.
69525         Tests for module 'atanl'.
69526         * modules/atanl-tests: New file.
69527         * tests/test-atanl.c: New file.
69529         Tests for module 'asinl'.
69530         * modules/asinl-tests: New file.
69531         * tests/test-asinl.c: New file.
69533         Tests for module 'acosl'.
69534         * modules/acosl-tests: New file.
69535         * tests/test-acosl.c: New file.
69537         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69538         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
69539         tanl): Use the standard gnulib idiom.
69540         * lib/cosl.c: Don't include trigl.c and sincosl.c.
69541         * lib/sinl.c: Likewise.
69542         * lib/tanl.c: Don't include trigl.c.
69543         (kernel_tanl): Make static.
69544         * lib/sincosl.c: Include trigl.h first.
69545         * lib/trigl.c: Likewise.
69546         * m4/acosl.m4: New file.
69547         * m4/asinl.m4: New file.
69548         * m4/atanl.m4: New file.
69549         * m4/cosl.m4: New file.
69550         * m4/expl.m4: New file.
69551         * m4/logl.m4: New file.
69552         * m4/sinl.m4: New file.
69553         * m4/sqrtl.m4: New file.
69554         * m4/tanl.m4: New file.
69555         * m4/mathl.m4: Remove file.
69556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
69557         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69558         Don't initialize GNULIB_MATHL.
69559         * modules/acosl: New file.
69560         * modules/asinl: New file.
69561         * modules/atanl: New file.
69562         * modules/cosl: New file.
69563         * modules/expl: New file.
69564         * modules/logl: New file.
69565         * modules/sinl: New file.
69566         * modules/sqrtl: New file.
69567         * modules/tanl: New file.
69568         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
69569         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
69570         substitute GNULIB_MATHL.
69571         * modules/mathl: Rewritten.
69572         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
69573         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
69574         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
69575         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
69576         * doc/posix-functions/expl.texi: Mention the 'expl' module.
69577         * doc/posix-functions/logl.texi: Mention the 'logl' module.
69578         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
69579         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
69580         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
69582 2010-01-18  Bruno Haible  <bruno@clisp.org>
69584         sqrt: Make gl_FUNC_SQRT requirable.
69585         * m4/sqrt.m4: New file.
69586         * modules/sqrt (Files): Add it.
69587         (configure.ac): Invoke gl_FUNC_SQRT.
69589 2010-01-18  Bruno Haible  <bruno@clisp.org>
69591         New modules for common <math.h> functions.
69592         * m4/mathfunc.m4: New file.
69593         * modules/acos: New file.
69594         * modules/asin: New file.
69595         * modules/atan: New file.
69596         * modules/atan2: New file.
69597         * modules/cbrt: New file.
69598         * modules/copysign: New file.
69599         * modules/cos: New file.
69600         * modules/cosh: New file.
69601         * modules/erf: New file.
69602         * modules/erfc: New file.
69603         * modules/exp: New file.
69604         * modules/fabs: New file.
69605         * modules/fmod: New file.
69606         * modules/hypot: New file.
69607         * modules/j0: New file.
69608         * modules/j1: New file.
69609         * modules/jn: New file.
69610         * modules/ldexp: New file.
69611         * modules/lgamma: New file.
69612         * modules/log: New file.
69613         * modules/log10: New file.
69614         * modules/log1p: New file.
69615         * modules/logb: New file.
69616         * modules/modf: New file.
69617         * modules/nextafter: New file.
69618         * modules/pow: New file.
69619         * modules/remainder: New file.
69620         * modules/rint: New file.
69621         * modules/sin: New file.
69622         * modules/sinh: New file.
69623         * modules/sqrt: New file.
69624         * modules/tan: New file.
69625         * modules/tanh: New file.
69626         * modules/y0: New file.
69627         * modules/y1: New file.
69628         * modules/yn: New file.
69629         * doc/posix-functions/acos.texi: Mention the 'acos' module.
69630         * doc/posix-functions/asin.texi: Mention the 'asin' module.
69631         * doc/posix-functions/atan.texi: Mention the 'atan' module.
69632         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
69633         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
69634         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
69635         * doc/posix-functions/cos.texi: Mention the 'cos' module.
69636         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
69637         * doc/posix-functions/erf.texi: Mention the 'erf' module.
69638         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
69639         * doc/posix-functions/exp.texi: Mention the 'exp' module.
69640         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
69641         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
69642         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
69643         * doc/posix-functions/j0.texi: Mention the 'j0' module.
69644         * doc/posix-functions/j1.texi: Mention the 'j1' module.
69645         * doc/posix-functions/jn.texi: Mention the 'jn' module.
69646         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
69647         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
69648         * doc/posix-functions/log.texi: Mention the 'log' module.
69649         * doc/posix-functions/log10.texi: Mention the 'log10' module.
69650         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
69651         * doc/posix-functions/logb.texi: Mention the 'logb' module.
69652         * doc/posix-functions/modf.texi: Mention the 'modf' module.
69653         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
69654         * doc/posix-functions/pow.texi: Mention the 'pow' module.
69655         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
69656         * doc/posix-functions/rint.texi: Mention the 'rint' module.
69657         * doc/posix-functions/sin.texi: Mention the 'sin' module.
69658         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
69659         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
69660         * doc/posix-functions/tan.texi: Mention the 'tan' module.
69661         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
69662         * doc/posix-functions/y0.texi: Mention the 'y0' module.
69663         * doc/posix-functions/y1.texi: Mention the 'y1' module.
69664         * doc/posix-functions/yn.texi: Mention the 'yn' module.
69666 2010-01-18  Jim Meyering  <meyering@redhat.com>
69668         ignore-value: relax license to LGPLv2+
69669         * modules/ignore-value (License): Relax to LGPLv2+.
69671         getdate: don't leak when TZ contains two or more '"'s
69672         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69673         double quote in TZ after the first one.
69675         readtokens: do not leak internal token_lengths buffer
69676         * lib/readtokens.c (readtokens): Free the local, lengths,
69677         when the supplied "token_lengths" parameter is NULL.
69679 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69681         Fix a couple of missing LIBTHREAD link failures on AIX.
69682         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69683         $(LIBTHREAD).
69684         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69686         Link test-poll against INET_PTON_LIB.
69687         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69688         for inet_pton on Solaris 10.
69690 2010-01-17  Bruno Haible  <bruno@clisp.org>
69692         unistdio/*-sprintf: Fix typo in module description.
69693         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69694         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69695         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69696         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69697         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69698         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69699         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69702 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69704         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69705         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69706         variables in shell case patterns, for AIX and HP-UX ksh.
69708         Split large sed scripts, for HP-UX sed.
69709         * modules/stdio: Split sed scripts around 50 sed commands,
69710         to avoid HP-UX limit of 99 commands, in the near future.
69711         * modules/string: Likewise.
69712         * modules/unistd: Likewise.
69714         gnulib-tool: avoid writing in the current directory.
69715         * gnulib-tool (func_emit_lib_Makefile_am)
69716         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
69717         not in the current directory, so concurrent gnulib-tool
69718         instances do not interfere.
69720 2010-01-16  Jim Meyering  <meyering@redhat.com>
69722         doc: update users.txt
69723         * users.txt: Add grep.
69724         (diffutils, gzip): Update URLs.
69726 2010-01-12  Bruno Haible  <bruno@clisp.org>
69728         posix_spawn: Avoid test failure on Cygwin.
69729         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
69730         characters.
69731         Reported by Simon Josefsson.
69733 2010-01-12  Bruno Haible  <bruno@clisp.org>
69735         * tests/test-cond.c (main): When skipping the test, show the reason.
69737 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69739         * lib/striconv.c (str_cd_iconv): Avoid if before free.
69741 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69743         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
69744         VC_LIST_ALWAYS_EXCLUDE_REGEX.
69746 2010-01-12  Eric Blake  <ebb9@byu.net>
69748         build: guarantee AS_VAR_IF
69749         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
69750         (gl_AS_VAR_IF): Move...
69751         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
69752         Reported by Simon Josefsson.
69754 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69756         * lib/stdio.in.h: Fix typo.
69758 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69760         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
69761         libgpg-error.
69763 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69765         * tests/test-xalloc-die.sh: Use $EXEEXT.
69767 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69768             Bruno Haible  <bruno@clisp.org>
69770         getlogin, getlogin_r: Avoid test failure.
69771         * tests/test-getlogin.c: Include <stdio.h>.
69772         (main): Skip the test when the function fails because stdin is not a
69773         tty.
69774         * tests/test-getlogin_r.c: Include <stdio.h>.
69775         (main): Skip the test when the function fails because stdin is not a
69776         tty.
69778 2010-01-11  Eric Blake  <ebb9@byu.net>
69780         tests: avoid more large file warnings
69781         * tests/test-fflush.c: Avoid warning about ftell use.
69782         * tests/test-fseek.c: Avoid warning about fseek use.
69784 2010-01-10  Bruno Haible  <bruno@clisp.org>
69786         nproc: Work better on Linux when /proc and /sys are not mounted.
69787         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
69788         as lower bound when, on glibc/Linux systems,
69789         sysconf (_SC_NPROCESSORS_CONF) returns 1.
69790         Suggested by Pádraig Brady <P@draigbrady.com>.
69791         Reported by Dmitry V. Levin <ldv@altlinux.org>.
69793         nproc: Refactor.
69794         * lib/nproc.c (num_processors_via_affinity_mask): New function,
69795         extracted from num_processors.
69796         (num_processors): Call it.
69798 2010-01-11  Jim Meyering  <meyering@redhat.com>
69800         utimecmp: avoid new warning from upcoming gcc-4.5.0
69801         * lib/utimecmp.c (BILLION): Define using #define rather than an
69802         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
69804 2010-01-11  Eric Blake  <ebb9@byu.net>
69806         math: add portability warnings for classification macros
69807         * modules/math (Depends-on): Add warn-on-use.
69808         (Makefile.am): Provide new substitutions.
69809         * m4/math_h.m4 (gl_MATH_H): Require inline.
69810         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69811         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69812         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69813         implement warnings.
69815         unistd: warn on use of environ without module
69816         * modules/unistd (Depends-on): Add warn-on-use.
69817         (Makefile.am): Provide new substitutions.
69818         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69819         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69821         stdio: warn on suspicious uses
69822         * modules/stdio (Depends-on): Add warn-on-use.
69823         (Makefile.am): Provide new substitutions.
69824         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69825         fseeko.
69826         * lib/stdio.in.h (gets): Always warn on use.
69827         (fseek, ftell): Adjust when warnings are issued, and honor
69828         _GL_NO_LARGE_FILES as a way to silence the warning.
69829         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69830         any warning about large file offsets.
69831         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69832         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69833         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69834         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69835         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69836         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69837         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69838         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69840         warn-on-use: new module
69841         * modules/warn-on-use: New file.
69842         * build-aux/warn-on-use.h: Likewise.
69843         * m4/warn-on-use.m4: Likewise.
69844         * MODULES.html.sh (Support for building): Mention it.
69846 2010-01-10  Bruno Haible  <bruno@clisp.org>
69848         Tests for module 'unistr/u32-strdup'.
69849         * modules/unistr/u32-strdup-tests: New file.
69850         * tests/unistr/test-u32-strdup.c: New file.
69852         Tests for module 'unistr/u16-strdup'.
69853         * modules/unistr/u16-strdup-tests: New file.
69854         * tests/unistr/test-u16-strdup.c: New file.
69856         Tests for module 'unistr/u8-strdup'.
69857         * modules/unistr/u8-strdup-tests: New file.
69858         * tests/unistr/test-u8-strdup.c: New file.
69859         * tests/unistr/test-strdup.h: New file.
69861         Tests for module 'unistr/u32-strncmp'.
69862         * modules/unistr/u32-strncmp-tests: New file.
69863         * tests/unistr/test-u32-strncmp.c: New file.
69865         Tests for module 'unistr/u16-strncmp'.
69866         * modules/unistr/u16-strncmp-tests: New file.
69867         * tests/unistr/test-u16-strncmp.c: New file.
69869         Tests for module 'unistr/u8-strncmp'.
69870         * modules/unistr/u8-strncmp-tests: New file.
69871         * tests/unistr/test-u8-strncmp.c: New file.
69872         * tests/unistr/test-strncmp.h: New file.
69874         Tests for module 'unistr/u32-strcoll'.
69875         * modules/unistr/u32-strcoll-tests: New file.
69876         * tests/unistr/test-u32-strcoll.c: New file.
69878         Tests for module 'unistr/u16-strcoll'.
69879         * modules/unistr/u16-strcoll-tests: New file.
69880         * tests/unistr/test-u16-strcoll.c: New file.
69882         Tests for module 'unistr/u8-strcoll'.
69883         * modules/unistr/u8-strcoll-tests: New file.
69884         * tests/unistr/test-u8-strcoll.c: New file.
69886         Tests for module 'unistr/u32-strcmp'.
69887         * modules/unistr/u32-strcmp-tests: New file.
69888         * tests/unistr/test-u32-strcmp.c: New file.
69889         * tests/unistr/test-u32-strcmp.h: New file.
69891         Tests for module 'unistr/u16-strcmp'.
69892         * modules/unistr/u16-strcmp-tests: New file.
69893         * tests/unistr/test-u16-strcmp.c: New file.
69894         * tests/unistr/test-u16-strcmp.h: New file.
69896         Tests for module 'unistr/u8-strcmp'.
69897         * modules/unistr/u8-strcmp-tests: New file.
69898         * tests/unistr/test-u8-strcmp.c: New file.
69899         * tests/unistr/test-u8-strcmp.h: New file.
69900         * tests/unistr/test-strcmp.h: New file.
69902         Tests for module 'unistr/u32-strncat'.
69903         * modules/unistr/u32-strncat-tests: New file.
69904         * tests/unistr/test-u32-strncat.c: New file.
69906         Tests for module 'unistr/u16-strncat'.
69907         * modules/unistr/u16-strncat-tests: New file.
69908         * tests/unistr/test-u16-strncat.c: New file.
69910         Tests for module 'unistr/u8-strncat'.
69911         * modules/unistr/u8-strncat-tests: New file.
69912         * tests/unistr/test-u8-strncat.c: New file.
69913         * tests/unistr/test-strncat.h: New file.
69915         Tests for module 'unistr/u32-strcat'.
69916         * modules/unistr/u32-strcat-tests: New file.
69917         * tests/unistr/test-u32-strcat.c: New file.
69919         Tests for module 'unistr/u16-strcat'.
69920         * modules/unistr/u16-strcat-tests: New file.
69921         * tests/unistr/test-u16-strcat.c: New file.
69923         Tests for module 'unistr/u8-strcat'.
69924         * modules/unistr/u8-strcat-tests: New file.
69925         * tests/unistr/test-u8-strcat.c: New file.
69926         * tests/unistr/test-strcat.h: New file.
69928         Tests for module 'unistr/u32-stpncpy'.
69929         * modules/unistr/u32-stpncpy-tests: New file.
69930         * tests/unistr/test-u32-stpncpy.c: New file.
69932         Tests for module 'unistr/u16-stpncpy'.
69933         * modules/unistr/u16-stpncpy-tests: New file.
69934         * tests/unistr/test-u16-stpncpy.c: New file.
69936         Tests for module 'unistr/u8-stpncpy'.
69937         * modules/unistr/u8-stpncpy-tests: New file.
69938         * tests/unistr/test-u8-stpncpy.c: New file.
69939         * tests/unistr/test-stpncpy.h: New file.
69941         Tests for module 'unistr/u32-strncpy'.
69942         * modules/unistr/u32-strncpy-tests: New file.
69943         * tests/unistr/test-u32-strncpy.c: New file.
69945         Tests for module 'unistr/u16-strncpy'.
69946         * modules/unistr/u16-strncpy-tests: New file.
69947         * tests/unistr/test-u16-strncpy.c: New file.
69949         Tests for module 'unistr/u8-strncpy'.
69950         * modules/unistr/u8-strncpy-tests: New file.
69951         * tests/unistr/test-u8-strncpy.c: New file.
69952         * tests/unistr/test-strncpy.h: New file.
69954         Tests for module 'unistr/u32-stpcpy'.
69955         * modules/unistr/u32-stpcpy-tests: New file.
69956         * tests/unistr/test-u32-stpcpy.c: New file.
69958         Tests for module 'unistr/u16-stpcpy'.
69959         * modules/unistr/u16-stpcpy-tests: New file.
69960         * tests/unistr/test-u16-stpcpy.c: New file.
69962         Tests for module 'unistr/u8-stpcpy'.
69963         * modules/unistr/u8-stpcpy-tests: New file.
69964         * tests/unistr/test-u8-stpcpy.c: New file.
69965         * tests/unistr/test-stpcpy.h: New file.
69967         Tests for module 'unistr/u32-strcpy'.
69968         * modules/unistr/u32-strcpy-tests: New file.
69969         * tests/unistr/test-u32-strcpy.c: New file.
69971         Tests for module 'unistr/u16-strcpy'.
69972         * modules/unistr/u16-strcpy-tests: New file.
69973         * tests/unistr/test-u16-strcpy.c: New file.
69975         Tests for module 'unistr/u8-strcpy'.
69976         * modules/unistr/u8-strcpy-tests: New file.
69977         * tests/unistr/test-u8-strcpy.c: New file.
69978         * tests/unistr/test-strcpy.h: New file.
69980         Tests for module 'unistr/u32-strnlen'.
69981         * modules/unistr/u32-strnlen-tests: New file.
69982         * tests/unistr/test-u32-strnlen.c: New file.
69984         Tests for module 'unistr/u16-strnlen'.
69985         * modules/unistr/u16-strnlen-tests: New file.
69986         * tests/unistr/test-u16-strnlen.c: New file.
69988         Tests for module 'unistr/u8-strnlen'.
69989         * modules/unistr/u8-strnlen-tests: New file.
69990         * tests/unistr/test-u8-strnlen.c: New file.
69991         * tests/unistr/test-strnlen.h: New file.
69993         Tests for module 'unistr/u32-strlen'.
69994         * modules/unistr/u32-strlen-tests: New file.
69995         * tests/unistr/test-u32-strlen.c: New file.
69997         Tests for module 'unistr/u16-strlen'.
69998         * modules/unistr/u16-strlen-tests: New file.
69999         * tests/unistr/test-u16-strlen.c: New file.
70001         Tests for module 'unistr/u8-strlen'.
70002         * modules/unistr/u8-strlen-tests: New file.
70003         * tests/unistr/test-u8-strlen.c: New file.
70005         Tests for module 'unistr/u32-prev'.
70006         * modules/unistr/u32-prev-tests: New file.
70007         * tests/unistr/test-u32-prev.c: New file.
70009         Tests for module 'unistr/u16-prev'.
70010         * modules/unistr/u16-prev-tests: New file.
70011         * tests/unistr/test-u16-prev.c: New file.
70013         Tests for module 'unistr/u8-prev'.
70014         * modules/unistr/u8-prev-tests: New file.
70015         * tests/unistr/test-u8-prev.c: New file.
70017         Tests for module 'unistr/u32-next'.
70018         * modules/unistr/u32-next-tests: New file.
70019         * tests/unistr/test-u32-next.c: New file.
70021         Tests for module 'unistr/u16-next'.
70022         * modules/unistr/u16-next-tests: New file.
70023         * tests/unistr/test-u16-next.c: New file.
70025         Tests for module 'unistr/u8-next'.
70026         * modules/unistr/u8-next-tests: New file.
70027         * tests/unistr/test-u8-next.c: New file.
70029         Tests for module 'unistr/u32-strmbtouc'.
70030         * modules/unistr/u32-strmbtouc-tests: New file.
70031         * tests/unistr/test-u32-strmbtouc.c: New file.
70033         Tests for module 'unistr/u16-strmbtouc'.
70034         * modules/unistr/u16-strmbtouc-tests: New file.
70035         * tests/unistr/test-u16-strmbtouc.c: New file.
70037         Tests for module 'unistr/u8-strmbtouc'.
70038         * modules/unistr/u8-strmbtouc-tests: New file.
70039         * tests/unistr/test-u8-strmbtouc.c: New file.
70041         Tests for module 'unistr/u32-strmblen'.
70042         * modules/unistr/u32-strmblen-tests: New file.
70043         * tests/unistr/test-u32-strmblen.c: New file.
70045         Tests for module 'unistr/u16-strmblen'.
70046         * modules/unistr/u16-strmblen-tests: New file.
70047         * tests/unistr/test-u16-strmblen.c: New file.
70049         Tests for module 'unistr/u8-strmblen'.
70050         * modules/unistr/u8-strmblen-tests: New file.
70051         * tests/unistr/test-u8-strmblen.c: New file.
70053         Tests for module 'unistr/u32-cpy-alloc'.
70054         * modules/unistr/u32-cpy-alloc-tests: New file.
70055         * tests/unistr/test-u32-cpy-alloc.c: New file.
70057         Tests for module 'unistr/u16-cpy-alloc'.
70058         * modules/unistr/u16-cpy-alloc-tests: New file.
70059         * tests/unistr/test-u16-cpy-alloc.c: New file.
70061         Tests for module 'unistr/u8-cpy-alloc'.
70062         * modules/unistr/u8-cpy-alloc-tests: New file.
70063         * tests/unistr/test-u8-cpy-alloc.c: New file.
70064         * tests/unistr/test-cpy-alloc.h: New file.
70066         Tests for module 'unistr/u32-mbsnlen'.
70067         * modules/unistr/u32-mbsnlen-tests: New file.
70068         * tests/unistr/test-u32-mbsnlen.c: New file.
70070         Tests for module 'unistr/u16-mbsnlen'.
70071         * modules/unistr/u16-mbsnlen-tests: New file.
70072         * tests/unistr/test-u16-mbsnlen.c: New file.
70074         Tests for module 'unistr/u8-mbsnlen'.
70075         * modules/unistr/u8-mbsnlen-tests: New file.
70076         * tests/unistr/test-u8-mbsnlen.c: New file.
70078         Tests for module 'unistr/u32-chr'.
70079         * modules/unistr/u32-chr-tests: New file.
70080         * tests/unistr/test-u32-chr.c: New file.
70082         Tests for module 'unistr/u16-chr'.
70083         * modules/unistr/u16-chr-tests: New file.
70084         * tests/unistr/test-u16-chr.c: New file.
70086         Tests for module 'unistr/u8-chr'.
70087         * modules/unistr/u8-chr-tests: New file.
70088         * tests/unistr/test-u8-chr.c: New file.
70089         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
70091         Tests for module 'unistr/u32-cmp2'.
70092         * modules/unistr/u32-cmp2-tests: New file.
70093         * tests/unistr/test-u32-cmp2.c: New file.
70095         Tests for module 'unistr/u16-cmp2'.
70096         * modules/unistr/u16-cmp2-tests: New file.
70097         * tests/unistr/test-u16-cmp2.c: New file.
70099         Tests for module 'unistr/u8-cmp2'.
70100         * modules/unistr/u8-cmp2-tests: New file.
70101         * tests/unistr/test-u8-cmp2.c: New file.
70102         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
70104         Tests for module 'unistr/u32-cmp'.
70105         * modules/unistr/u32-cmp-tests: New file.
70106         * tests/unistr/test-u32-cmp.c: New file.
70108         Tests for module 'unistr/u16-cmp'.
70109         * modules/unistr/u16-cmp-tests: New file.
70110         * tests/unistr/test-u16-cmp.c: New file.
70112         Tests for module 'unistr/u8-cmp'.
70113         * modules/unistr/u8-cmp-tests: New file.
70114         * tests/unistr/test-u8-cmp.c: New file.
70115         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
70117         Tests for module 'unistr/u32-set'.
70118         * modules/unistr/u32-set-tests: New file.
70119         * tests/unistr/test-u32-set.c: New file.
70121         Tests for module 'unistr/u16-set'.
70122         * modules/unistr/u16-set-tests: New file.
70123         * tests/unistr/test-u16-set.c: New file.
70125         Tests for module 'unistr/u8-set'.
70126         * modules/unistr/u8-set-tests: New file.
70127         * tests/unistr/test-u8-set.c: New file.
70128         * tests/unistr/test-set.h: New file.
70130         Tests for module 'unistr/u32-move'.
70131         * modules/unistr/u32-move-tests: New file.
70132         * tests/unistr/test-u32-move.c: New file.
70134         Tests for module 'unistr/u16-move'.
70135         * modules/unistr/u16-move-tests: New file.
70136         * tests/unistr/test-u16-move.c: New file.
70138         Tests for module 'unistr/u8-move'.
70139         * modules/unistr/u8-move-tests: New file.
70140         * tests/unistr/test-u8-move.c: New file.
70141         * tests/unistr/test-move.h: New file.
70143         Tests for module 'unistr/u32-cpy'.
70144         * modules/unistr/u32-cpy-tests: New file.
70145         * tests/unistr/test-u32-cpy.c: New file.
70147         Tests for module 'unistr/u16-cpy'.
70148         * modules/unistr/u16-cpy-tests: New file.
70149         * tests/unistr/test-u16-cpy.c: New file.
70151         Tests for module 'unistr/u8-cpy'.
70152         * modules/unistr/u8-cpy-tests: New file.
70153         * tests/unistr/test-u8-cpy.c: New file.
70154         * tests/unistr/test-cpy.h: New file.
70156 2010-01-09  Bruno Haible  <bruno@clisp.org>
70158         Tests for module 'unistr/u32-uctomb'.
70159         * modules/unistr/u32-uctomb-tests: New file.
70160         * tests/unistr/test-u32-uctomb.c: New file.
70162         Tests for module 'unistr/u16-uctomb'.
70163         * modules/unistr/u16-uctomb-tests: New file.
70164         * tests/unistr/test-u16-uctomb.c: New file.
70166         Tests for module 'unistr/u8-uctomb'.
70167         * modules/unistr/u8-uctomb-tests: New file.
70168         * tests/unistr/test-u8-uctomb.c: New file.
70170         Tests for module 'unistr/u32-mbtoucr'.
70171         * modules/unistr/u32-mbtoucr-tests: New file.
70172         * tests/unistr/test-u32-mbtoucr.c: New file.
70174         Tests for module 'unistr/u16-mbtoucr'.
70175         * modules/unistr/u16-mbtoucr-tests: New file.
70176         * tests/unistr/test-u16-mbtoucr.c: New file.
70178         Tests for module 'unistr/u8-mbtoucr'.
70179         * modules/unistr/u8-mbtoucr-tests: New file.
70180         * tests/unistr/test-u8-mbtoucr.c: New file.
70182         Tests for module 'unistr/u32-mbtouc'.
70183         * modules/unistr/u32-mbtouc-tests: New file.
70184         * tests/unistr/test-u32-mbtouc.c: New file.
70186         Tests for module 'unistr/u16-mbtouc'.
70187         * modules/unistr/u16-mbtouc-tests: New file.
70188         * tests/unistr/test-u16-mbtouc.c: New file.
70190         Tests for module 'unistr/u8-mbtouc'.
70191         * modules/unistr/u8-mbtouc-tests: New file.
70192         * tests/unistr/test-u8-mbtouc.c: New file.
70194         Tests for module 'unistr/u32-mbtouc-unsafe'.
70195         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
70196         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
70197         * tests/unistr/test-u32-mbtouc.h: New file.
70199         Tests for module 'unistr/u16-mbtouc-unsafe'.
70200         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
70201         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
70202         * tests/unistr/test-u16-mbtouc.h: New file.
70204         Tests for module 'unistr/u8-mbtouc-unsafe'.
70205         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
70206         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
70207         * tests/unistr/test-u8-mbtouc.h: New file.
70209         Tests for module 'unistr/u32-mblen'.
70210         * modules/unistr/u32-mblen-tests: New file.
70211         * tests/unistr/test-u32-mblen.c: New file.
70213         Tests for module 'unistr/u16-mblen'.
70214         * modules/unistr/u16-mblen-tests: New file.
70215         * tests/unistr/test-u16-mblen.c: New file.
70217         Tests for module 'unistr/u8-mblen'.
70218         * modules/unistr/u8-mblen-tests: New file.
70219         * tests/unistr/test-u8-mblen.c: New file.
70221         Tests for module 'unistr/u32-to-u16'.
70222         * modules/unistr/u32-to-u16-tests: New file.
70223         * tests/unistr/test-u32-to-u16.c: New file.
70225         Tests for module 'unistr/u32-to-u8'.
70226         * modules/unistr/u32-to-u8-tests: New file.
70227         * tests/unistr/test-u32-to-u8.c: New file.
70229         Tests for module 'unistr/u16-to-u32'.
70230         * modules/unistr/u16-to-u32-tests: New file.
70231         * tests/unistr/test-u16-to-u32.c: New file.
70233         Tests for module 'unistr/u16-to-u8'.
70234         * modules/unistr/u16-to-u8-tests: New file.
70235         * tests/unistr/test-u16-to-u8.c: New file.
70237         Tests for module 'unistr/u8-to-u32'.
70238         * modules/unistr/u8-to-u32-tests: New file.
70239         * tests/unistr/test-u8-to-u32.c: New file.
70241         Tests for module 'unistr/u8-to-u16'.
70242         * modules/unistr/u8-to-u16-tests: New file.
70243         * tests/unistr/test-u8-to-u16.c: New file.
70245         Tests for module 'unistr/u32-check'.
70246         * modules/unistr/u32-check-tests: New file.
70247         * tests/unistr/test-u32-check.c: New file.
70249         Tests for module 'unistr/u16-check'.
70250         * modules/unistr/u16-check-tests: New file.
70251         * tests/unistr/test-u16-check.c: New file.
70253         Tests for module 'unistr/u8-check'.
70254         * modules/unistr/u8-check-tests: New file.
70255         * tests/unistr/test-u8-check.c: New file.
70257         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
70258         (category_equals): New function.
70259         (main): Add more tests.
70260         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
70262         * tests/unictype/test-bidi_byname.c (main): Add more tests.
70264 2010-01-10  Bruno Haible  <bruno@clisp.org>
70266         unistr/u*-strcoll: Try harder to distinguish different strings.
70267         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
70268         compare s1 and s2 to see if they are different.
70270 2010-01-10  Bruno Haible  <bruno@clisp.org>
70272         unistr/u*-stpncpy: Fix the return value.
70273         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
70274         description of the return value consistent with stpncpy in glibc.
70275         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
70276         written non-NUL unit.
70278 2010-01-10  Bruno Haible  <bruno@clisp.org>
70280         unistr/u*-next: Add missing dependencies.
70281         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
70282         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
70283         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
70285 2010-01-10  Bruno Haible  <bruno@clisp.org>
70287         unistr/u8-mbsnlen: Fix return value for incomplete character.
70288         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
70289         u8_mblen.
70290         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
70291         Remove unistr/u8-mblen.
70292         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
70293         u16_mblen.
70294         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
70295         Remove unistr/u16-mblen.
70297 2010-01-10  Bruno Haible  <bruno@clisp.org>
70299         wchar: Fix compilation error when <wchar.h> is used from coreutils.
70300         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
70301         Reported by Brian Gough <bjg@gnu.org> and
70302         Chris Clayton <chris2553@googlemail.com> via
70303         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
70305 2010-01-09  Bruno Haible  <bruno@clisp.org>
70307         unistr/u16-to-u32: Reject invalid input.
70308         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
70309         u16_mbtouc.
70310         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
70311         Remove unistr/u16-mbtouc.
70313         unistr/u16-to-u8: Reject invalid input.
70314         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
70315         u16_mbtouc.
70316         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
70317         Remove unistr/u16-mbtouc.
70319         unistr/u8-to-u32: Reject invalid input.
70320         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
70321         u8_mbtouc.
70322         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
70323         Remove unistr/u8-mbtouc.
70325         unistr/u8-to-u16: Reject invalid input.
70326         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
70327         u8_mbtouc.
70328         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
70329         Remove unistr/u8-mbtouc.
70331 2010-01-09  Bruno Haible  <bruno@clisp.org>
70333         Tests for module 'getlogin'.
70334         * modules/getlogin-tests: New file.
70335         * tests/test-getlogin.c: New file.
70337         New module 'getlogin'.
70338         * lib/unistd.in.h (getlogin): New declaration.
70339         * lib/getlogin.c: New file.
70340         * m4/getlogin.m4: New file.
70341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
70342         HAVE_GETLOGIN.
70343         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
70344         HAVE_GETLOGIN.
70345         * modules/getlogin: New file.
70346         * doc/posix-functions/getlogin.texi: Mention the new module.
70347         Reported by John W. Eaton <jwe@gnu.org>.
70349 2010-01-09  Bruno Haible  <bruno@clisp.org>
70351         getlogin_r: Support for native Windows.
70352         * lib/getlogin_r.c: Include <windows.h>
70353         (getlogin_r): Implement for native Windows.
70354         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
70355         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
70356         via John W. Eaton <jwe@gnu.org>.
70358 2010-01-09  Bruno Haible  <bruno@clisp.org>
70360         getlogin_r: Small fixes.
70361         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
70362         succeeds.
70363         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
70364         before testing whether getlogin_r is declared. No need to set
70365         HAVE_DECL_GETLOGIN_R to 1.
70366         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
70368 2010-01-09  Bruno Haible  <bruno@clisp.org>
70370         * lib/unistd.in.h (getlogin_r): Add comment.
70372 2010-01-09  Bruno Haible  <bruno@clisp.org>
70374         Tests for module 'getlogin_r'.
70375         * modules/getlogin_r-tests: New file.
70376         * tests/test-getlogin_r.c: New file.
70378 2010-01-09  Jim Meyering  <meyering@redhat.com>
70380         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
70381         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
70382         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
70384 2010-01-08  Simon Josefsson  <simon@josefsson.org>
70386         * lib/dup2.c (rpl_dup2): Improve comment.
70388 2010-01-08  Eric Blake  <ebb9@byu.net>
70390         maint.mk: allow packages to add makefile @@ exceptions
70391         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
70392         (sc_makefile_check): Rename...
70393         (sc_makefile_at_at_check): ...to this, and use hook.
70395         dup2: work around mingw bug
70396         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
70397         Reported by Simon Josefsson.
70399 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
70401         glob: Fix C++ compilation.
70402         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
70403         C++.
70405 2010-01-07  Bruno Haible  <bruno@clisp.org>
70407         Fix indentation of wctype.in.h, broken since 2007-01-06.
70408         * lib/wctype.in.h: Fix indentation of preprocessor directives.
70410 2010-01-07  Bruno Haible  <bruno@clisp.org>
70412         mbslen: Avoid collision with system function.
70413         * lib/string.in.h [MirBSD]: Include <wchar.h>.
70414         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
70415         * m4/mbslen.m4: New file.
70416         * modules/mbslen (Files): Add it.
70417         (configure.ac): Invoke gl_MBSLEN.
70418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
70419         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
70420         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
70421         via Ian Beckwith <ianb@erislabs.net>.
70423 2010-01-07  Bruno Haible  <bruno@clisp.org>
70425         dirent: Document the last fix.
70426         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
70428 2010-01-07  Bruno Haible  <bruno@clisp.org>
70430         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
70431         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
70432         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
70433         va_list are defined.
70434         * doc/posix-headers/stdio.texi: Document the bug of missing types.
70435         Reported by Eric Blake.
70437 2010-01-07  Bruno Haible  <bruno@clisp.org>
70439         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
70440         * modules/xlist (Depends-on): Add 'list',
70441         * modules/xoset (Depends-on): Add 'oset'.
70442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70444 2010-01-07  Bruno Haible  <bruno@clisp.org>
70446         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
70447         * doc/posix-functions/strncasecmp.texi: Likewise.
70449 2010-01-07  Bruno Haible  <bruno@clisp.org>
70451         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
70453 2010-01-07  John W. Eaton  <jwe@octave.org>
70455         wctype: allow C++ use
70456         * lib/wctype.in.h: Add extern "C" block for C++.
70458 2010-01-06  Eric Blake  <ebb9@byu.net>
70460         maint.mk: detect incorrect GFDL usage
70461         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
70463 2010-01-06  Jim Meyering  <meyering@redhat.com>
70464         and Eric Blake  <ebb9@byu.net>
70466         maint.mk: ignore multi-line copyright in NEWS
70467         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
70469 2010-01-06  Eric Blake  <ebb9@byu.net>
70471         select: add missing dependency
70472         * modules/select-tests (Depends-on): Move sockets dependency...
70473         * modules/select (Depends-on): ...here.
70474         Reported by Ian Beckwith.
70476         doc: regenerate INSTALL
70477         * doc/INSTALL: Reflect recent autoconf update.
70478         * doc/INSTALL.ISO: Likewise.
70479         * doc/INSTALL.UTF-8: Likewise.
70481         pread: fix compilation on glibc
70482         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
70483         Reported by Ralf Wildenhues.
70485         dirent: fix test failure
70486         * lib/dirent.in.h (includes): Guarantee ino_t.
70487         Reported by Ralf Wildenhues.
70489 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
70491         linkat, renameat: avoid bad free
70492         * lib/at-func2.c (at_func2): Fix typo.
70493         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
70495 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70497         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
70498         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
70499         to avoid failure of symlink test later.
70501 2010-01-06  Eric Blake  <ebb9@byu.net>
70503         stdio, unistd: guarantee ssize_t
70504         * lib/unistd.in.h (includes): Ensure that types required by POSIX
70505         2008 are exposed when needed.
70506         * lib/stdio.in.h (includes): Likewise.
70507         Reported by Ralf Wildenhues.
70509 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
70511         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
70512         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
70513         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
70515 2010-01-06  Jim Meyering  <meyering@redhat.com>
70517         readtokens: this module *does* require xalloc.h
70518         It uses only functions that were omitted by the old syntax-check rule.
70519         * lib/readtokens.c: Include "xalloc.h" once again.
70520         * modules/readtokens (Depends-on): Add xalloc.
70521         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
70523 2010-01-05  Eric Blake  <ebb9@byu.net>
70525         maint: support 'make announcement' from a VPATH build
70526         * top/maint.mk (announcement): Look for correct NEWS file.
70528 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
70530         utimens (fdutimens): ignore a negative FD, per contract
70531         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
70532         when we have a valid file descriptor.  Otherwise, using a brand
70533         new glibc (with just-patched futimens that now fails with EBADF)
70534         would cause this function to fail with ENOSYS.
70535         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
70536         See also http://bugzilla.redhat.com/552320.
70538 2010-01-05  Eric Blake  <ebb9@byu.net>
70540         strcase: document what it provides
70541         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
70542         gnulib module.
70543         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
70544         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
70546 2010-01-05  Jim Meyering  <meyering@redhat.com>
70548         maint: remove useless inclusions of "xalloc.h"
70549         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
70550         * lib/readtokens.c: Likewise.
70551         * lib/same.c: Likewise.
70552         * modules/getloadavg (Depends-on): Remove xalloc.
70553         * modules/readtokens: Likewise.
70554         * modules/same: Likewise.
70556         maint.mk: include 4 more function names in alloca.h-checking regexp
70557         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
70558         regexp.  Before, we would give a false-positive (saying alloca.h
70559         is included unnecessarily) when the only uses involved omitted symbols.
70561         xalloc.h: use consistent formatting
70562         * lib/xalloc.h: Move declarations to start in the first column.
70564 2010-01-05  Eric Blake  <ebb9@byu.net>
70566         mkdir: avoid xalloc
70567         * lib/mkdir.c (includes): Drop unused header.
70568         Reported by John W. Eaton.
70570 2010-01-04  Jim Meyering  <meyering@redhat.com>
70572         nl_langinfo: avoid configure-time syntax error
70573         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
70574         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
70575         the empty string.  Don't let that provoke a shell syntax error.
70577         regcomp, regexec, fnmatch: avoid array bounds read error
70578         * lib/regcomp.c (build_equiv_class): From glibc:
70579         Use only the low 24 bits of a findidx return value as an index
70580         into the weights array.  Patch by Ulrich Drepper:
70581         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
70582         * lib/regexec.c (check_node_accept_bytes): Likewise.
70583         * lib/fnmatch_loop.c (FCT): Likewise.
70585         regcomp: skip collseq lookup when there are no rules
70586         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
70587         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
70589         regcomp: recognize ill-formed { } expressions
70590         * lib/regcomp.c (parse_dup_op): From glibc:
70591         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
70593         regcomp: fix typo in comment
70594         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
70595         s/satisfy/satisfies/.
70597         regcomp: sync from glibc: remove dead store
70598         * lib/regcomp.c (duplicate_node_closure): Remove useless
70599         search_duplicated_node call and dead store.
70601         regcomp: sync from glibc; always use nl_langinfo
70602         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
70603         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
70604         * modules/regex (Depends-on): Add nl_langinfo.
70606 2010-01-04  Eric Blake  <ebb9@byu.net>
70608         fdopendir: fix configure test
70609         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
70611 2010-01-01  Bruno Haible  <bruno@clisp.org>
70613         wchar: Remove unused configure check.
70614         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
70616 2010-01-01  Eric Blake  <ebb9@byu.net>
70618         headers: make check of system header explicit
70619         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
70620         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
70621         ourselves.
70622         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70623         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70624         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
70625         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
70626         internals.
70627         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
70628         missing.
70629         Suggested by Bruno Haible.
70631 2010-01-01  Jim Meyering  <meyering@redhat.com>
70633         ChangeLog: tweak to eliminate unnecessary copyright line
70634         * ChangeLog: Remove a copyright line that was mistakenly updated
70635         by today's update-copyright run.  Reported by Eric Blake.
70637         test-update-copyright: don't let envvar setting cause test failure
70638         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70640 2010-01-01  Bruno Haible  <bruno@clisp.org>
70642         localename: Avoid gcc warning.
70643         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
70644         function if it is not used.
70646 2010-01-01  Jim Meyering  <meyering@redhat.com>
70648         update nearly all FSF copyright year lists to include 2010
70649         Use the same procedure as for 2009, outlined in
70650         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
70652         version-etc: set COPYRIGHT_YEAR to 2010
70653         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
70655 2009-12-31  Eric Blake  <ebb9@byu.net>
70657         doc: correct availability of cygwin 1.5.x getopt
70658         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
70659         variables.
70660         * doc/posix-functions/opterr.texi (opterr): Likewise.
70661         * doc/posix-functions/optind.texi (optind): Likewise.
70662         * doc/posix-functions/optopt.texi (optopt): Likewise.
70663         * doc/posix-functions/tzname.texi (tzname): Likewise.
70665         openat: update maintainer
70666         * modules/openat (Maintainer): Add myself.
70668         utimens: avoid shadowing warning
70669         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70670         buffers into one, to avoid shadowing, as well as avoiding a
70671         redundant stat.
70672         Reported by Jim Meyering.
70674         test-dup2: avoid compiler warning
70675         * tests/test-dup2.c (is_inheritable): Only define if used.
70677 2010-01-01  Bruno Haible  <bruno@clisp.org>
70679         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70680         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70681         defined, use wctomb instead of wcrtomb.
70683 2010-01-01  Bruno Haible  <bruno@clisp.org>
70685         iconv: Reject native Solaris iconv.
70686         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70687         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70689 2009-12-31  Bruno Haible  <bruno@clisp.org>
70691         * tests/test-signal.c (main): Remove test of 'SIG'.
70693 2009-12-31  Bruno Haible  <bruno@clisp.org>
70695         spawn: Fix incomplete fix.
70696         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70697         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70698         warnings for GNULIB_POSIXCHECK again.
70699         Reported by Eric Blake.
70701 2009-12-31  Bruno Haible  <bruno@clisp.org>
70703         Avoid namespace pollution on glibc systems.
70704         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70705         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70706         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70707         glibc systems.
70709 2009-12-31  Bruno Haible  <bruno@clisp.org>
70711         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
70712         (gl_REPLACE_WCHAR_H): Turn into a no-op.
70713         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
70714         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
70715         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
70716         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
70717         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
70719 2009-12-31  Bruno Haible  <bruno@clisp.org>
70721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70722         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
70723         afterwards.
70725 2009-12-31  Bruno Haible  <bruno@clisp.org>
70727         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
70728         SYS_UTSNAME_H.
70730 2009-12-31  Bruno Haible  <bruno@clisp.org>
70732         spawn: Fix misapplied patch.
70733         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70734         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70735         warnings for GNULIB_POSIXCHECK.
70737 2009-12-31  Bruno Haible  <bruno@clisp.org>
70739         times: Update after sys_times changed.
70740         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
70741         * modules/times (Files): Add it.
70742         (configure.ac): Invoke gl_FUNC_TIMES.
70744 2009-12-31  Bruno Haible  <bruno@clisp.org>
70746         Use AC_C_INLINE where necessary.
70747         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
70748         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70749         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70750         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
70751         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70752         * m4/mbiter.m4 (gl_MBITER): Likewise.
70753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70754         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70755         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
70756         * modules/u64 (configure.ac): Likewise.
70758 2009-12-31  Bruno Haible  <bruno@clisp.org>
70760         Use AC_C_INLINE instead of module 'inline' where possible.
70761         * modules/inline (Description): Clarify purpose.
70762         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
70763         * modules/count-one-bits (Depends-on): Remove inline.
70764         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
70765         * modules/openat (Depends-on): Remove inline.
70766         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
70767         instead of depending on module 'inline'.
70768         * modules/filevercmp (Depends-on, configure.ac): Likewise.
70769         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
70770         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
70771         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
70772         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
70773         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
70774         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
70775         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
70776         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
70777         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
70778         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
70779         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
70780         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
70781         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
70782         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
70783         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
70784         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
70785         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
70786         Likewise.
70787         * modules/unictype/property-ascii-hex-digit (Depends-on,
70788         configure.ac): Likewise.
70789         * modules/unictype/property-bidi-arabic-digit (Depends-on,
70790         configure.ac): Likewise.
70791         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
70792         configure.ac): Likewise.
70793         * modules/unictype/property-bidi-block-separator (Depends-on,
70794         configure.ac): Likewise.
70795         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
70796         configure.ac): Likewise.
70797         * modules/unictype/property-bidi-common-separator (Depends-on,
70798         configure.ac): Likewise.
70799         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
70800         Likewise.
70801         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
70802         configure.ac): Likewise.
70803         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
70804         configure.ac): Likewise.
70805         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70806         configure.ac): Likewise.
70807         * modules/unictype/property-bidi-european-digit (Depends-on,
70808         configure.ac): Likewise.
70809         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70810         configure.ac): Likewise.
70811         * modules/unictype/property-bidi-left-to-right (Depends-on,
70812         configure.ac): Likewise.
70813         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70814         configure.ac): Likewise.
70815         * modules/unictype/property-bidi-other-neutral (Depends-on,
70816         configure.ac): Likewise.
70817         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70818         Likewise.
70819         * modules/unictype/property-bidi-segment-separator (Depends-on,
70820         configure.ac): Likewise.
70821         * modules/unictype/property-bidi-whitespace (Depends-on,
70822         configure.ac): Likewise.
70823         * modules/unictype/property-combining (Depends-on, configure.ac):
70824         Likewise.
70825         * modules/unictype/property-composite (Depends-on, configure.ac):
70826         Likewise.
70827         * modules/unictype/property-currency-symbol (Depends-on,
70828         configure.ac): Likewise.
70829         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70830         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70831         Likewise.
70832         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70833         configure.ac): Likewise.
70834         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70835         Likewise.
70836         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70837         Likewise.
70838         * modules/unictype/property-extender (Depends-on, configure.ac):
70839         Likewise.
70840         * modules/unictype/property-format-control (Depends-on, configure.ac):
70841         Likewise.
70842         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70843         Likewise.
70844         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70845         Likewise.
70846         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70847         Likewise.
70848         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70849         Likewise.
70850         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70851         Likewise.
70852         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70853         Likewise.
70854         * modules/unictype/property-id-start (Depends-on, configure.ac):
70855         Likewise.
70856         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70857         Likewise.
70858         * modules/unictype/property-ids-binary-operator (Depends-on,
70859         configure.ac): Likewise.
70860         * modules/unictype/property-ids-trinary-operator (Depends-on,
70861         configure.ac): Likewise.
70862         * modules/unictype/property-ignorable-control (Depends-on,
70863         configure.ac): Likewise.
70864         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70865         Likewise.
70866         * modules/unictype/property-join-control (Depends-on, configure.ac):
70867         Likewise.
70868         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70869         Likewise.
70870         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70871         Likewise.
70872         * modules/unictype/property-logical-order-exception (Depends-on,
70873         configure.ac): Likewise.
70874         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70875         Likewise.
70876         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70877         * modules/unictype/property-non-break (Depends-on, configure.ac):
70878         Likewise.
70879         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70880         Likewise.
70881         * modules/unictype/property-numeric (Depends-on, configure.ac):
70882         Likewise.
70883         * modules/unictype/property-other-alphabetic (Depends-on,
70884         configure.ac): Likewise.
70885         * modules/unictype/property-other-default-ignorable-code-point
70886         (Depends-on, configure.ac): Likewise.
70887         * modules/unictype/property-other-grapheme-extend (Depends-on,
70888         configure.ac): Likewise.
70889         * modules/unictype/property-other-id-continue (Depends-on,
70890         configure.ac): Likewise.
70891         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70892         Likewise.
70893         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70894         Likewise.
70895         * modules/unictype/property-other-math (Depends-on, configure.ac):
70896         Likewise.
70897         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70898         Likewise.
70899         * modules/unictype/property-paired-punctuation (Depends-on,
70900         configure.ac): Likewise.
70901         * modules/unictype/property-paragraph-separator (Depends-on,
70902         configure.ac): Likewise.
70903         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70904         Likewise.
70905         * modules/unictype/property-pattern-white-space (Depends-on,
70906         configure.ac): Likewise.
70907         * modules/unictype/property-private-use (Depends-on, configure.ac):
70908         Likewise.
70909         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70910         Likewise.
70911         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70912         Likewise.
70913         * modules/unictype/property-radical (Depends-on, configure.ac):
70914         Likewise.
70915         * modules/unictype/property-sentence-terminal (Depends-on,
70916         configure.ac): Likewise.
70917         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70918         Likewise.
70919         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70920         * modules/unictype/property-terminal-punctuation (Depends-on,
70921         configure.ac): Likewise.
70922         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70923         Likewise.
70924         * modules/unictype/property-unassigned-code-value (Depends-on,
70925         configure.ac): Likewise.
70926         * modules/unictype/property-unified-ideograph (Depends-on,
70927         configure.ac): Likewise.
70928         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70929         Likewise.
70930         * modules/unictype/property-variation-selector (Depends-on,
70931         configure.ac): Likewise.
70932         * modules/unictype/property-white-space (Depends-on, configure.ac):
70933         Likewise.
70934         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70935         Likewise.
70936         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70937         Likewise.
70938         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70939         Likewise.
70940         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70941         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70942         Likewise.
70944 2009-12-31  Bruno Haible  <bruno@clisp.org>
70946         Remove unnecessary AC_C_INLINE invocation.
70947         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70948         since 2009-08-21.
70950 2009-12-31  Jim Meyering  <meyering@redhat.com>
70952         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70953         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70954         With this change, we can all remove the gpg_key_ID = ... definition
70955         from our respective cfg.mk files.
70957         maint.mk: create announcement template in ~/, not in /tmp
70958         * top/maint.mk (emit_upload_commands): Adjust.
70959         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70960         Remove temporary file, .ci-msg.
70962 2009-12-31  Eric Blake  <ebb9@byu.net>
70964         link-warning: always build headers with link warnings
70965         * modules/arpa_inet (Makefile.am): Always build replacement
70966         header.
70967         * modules/ctype (Makefile.am): Likewise.
70968         * modules/dirent (Makefile.am): Likewise.
70969         * modules/inttypes (Makefile.am): Likewise.
70970         * modules/langinfo (Makefile.am): Likewise.
70971         * modules/locale (Makefile.am): Likewise.
70972         * modules/spawn (Makefile.am): Likewise.
70973         * modules/sys_file (Makefile.am): Likewise.
70974         * modules/sys_ioctl (Makefile.am): Likewise.
70975         * modules/sys_select (Makefile.am): Likewise.
70976         * modules/sys_socket (Makefile.am): Likewise.
70977         * modules/sys_times (Makefile.am): Likewise.
70978         * modules/sys_utsname (Makefile.am): Likewise.
70979         * modules/sys_wait (Makefile.am): Likewise.
70980         * modules/wchar (Makefile.am): Likewise.
70981         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70982         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70983         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70984         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70985         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70986         Likewise.
70987         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70988         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70989         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70990         Likewise.
70991         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70992         Likewise.
70993         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70994         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70995         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70997         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70998         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70999         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71000         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
71001         (gl_WCHAR_H_DEFAULTS): Likewise.
71003 2009-12-31  Eric Blake  <ebb9@byu.net>
71005         signal, spawn: use link warnings
71006         * lib/signal.in.h (sigset_t): Make unconditional.
71007         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
71008         (sigpending, sigprocmask, sigaction): Add link warnings.
71009         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
71010         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
71011         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
71012         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
71013         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
71014         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
71015         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
71016         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
71017         (posix_spawn_file_actions_destroy)
71018         (posix_spawn_file_actions_addopen)
71019         (posix_spawn_file_actions_addclose)
71020         (posix_spawn_file_actions_adddup2): Likewise.
71021         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
71022         * tests/test-signal.c (main): Enhance test.
71024         spawn: improve wrapper support
71025         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
71026         (gl_SPAWN_H_DEFAULTS): New defaults.
71027         * modules/spawn (Makefile.am): Substitute them.
71028         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
71029         Only declare if missing or broken.
71031         sys_times, sys_utsname: use include_next
71032         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
71033         header.
71034         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
71035         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71036         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71037         * modules/sys_times (Depends-on): Add include_next.
71038         (Makefile.am): Substitute additional values.
71039         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71040         * lib/sys_times.in.h (includes): Include native header, if
71041         available.
71042         * lib/sys_utsname.in.h (includes): Likewise.
71043         * tests/test-sys_times.c (main): Enhance test.
71045         fdutimensat: revert prior patch
71046         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
71047         utimens.h.
71048         Reported by Bruno Haible.
71050 2009-12-30  Eric Blake  <ebb9@byu.net>
71052         sys_wait: drop link-warning dependency
71053         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
71054         link-warning efforts.
71055         * lib/sys_wait.in.h: Likewise.
71057         fdutimensat: remove bogus dependency
71058         * modules/fdutimensat (Depends-on): Drop inline.
71060         unistd: fix typo
71061         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
71063 2009-12-30  Bruno Haible  <bruno@clisp.org>
71065         Fix compilation error with Solaris cc.
71066         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
71067         * lib/unicase/u16-is-invariant.c: Likewise.
71068         * lib/unicase/u32-is-invariant.c: Likewise.
71069         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71071 2009-12-30  Bruno Haible  <bruno@clisp.org>
71073         Fix test crash.
71074         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
71075         locales.
71076         Reported by Simon Josefsson <simon@josefsson.org>.
71078 2009-12-30  Bruno Haible  <bruno@clisp.org>
71080         Fix compilation error on most platforms.
71081         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
71082         Reported by Simon Josefsson <simon@josefsson.org>
71083         and Nelson H. F. Beebe <beebe@math.utah.edu>.
71085 2009-12-30  Eric Blake  <ebb9@byu.net>
71087         futimens, utimensat: work around ntfs-3g bug
71088         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
71089         a ctime bug is present, and expand workaround to cover ntfs-3g.
71090         * lib/utimens.c (fdutimens, lutimens): Likewise.
71091         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
71092         (validate_timespec): Adjust return value.
71093         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
71094         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71095         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
71097 2009-12-29  Eric Blake  <ebb9@byu.net>
71099         link-warning: make usage consistent
71100         * modules/ctype (Depends-on): Add link-warning.
71101         (Makefile.am): Update rules accordingly.
71102         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71103         * modules/locale (Depends-on, Makefile.am): Likewise.
71104         * modules/sys_file (Makefile.am): Likewise.
71105         * modules/getopt-posix (Makefile.am): Delete unused link warning
71106         efforts.
71107         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
71108         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
71109         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
71110         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
71112         stdio: remove unused variables
71113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
71114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
71115         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
71117         tests: test more substitute headers
71118         * modules/ctype-tests: New file.
71119         * modules/dirent-tests: Likewise.
71120         * modules/spawn-tests: Likewise.
71121         * modules/sys_file-tests: Likewise.
71122         * modules/sys_ioctl-tests: Likewise.
71123         * modules/sys_wait-tests: Likewise.
71124         * tests/test-ctype.c: Likewise.
71125         * tests/test-dirent.c: Likewise.
71126         * tests/test-spawn.c: Likewise.
71127         * tests/test-sys_file.c: Likewise.
71128         * tests/test-sys_ioctl.c: Likewise.
71129         * tests/test-sys_wait.c: Likewise.
71130         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
71131         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
71132         whether or not flock is in use.
71134         tests: remove License section from module
71135         * modules/arpa_inet-tests: Remove unneeded section.
71136         * modules/byteswap-tests: Likewise.
71137         * modules/ceilf-tests: Likewise.
71138         * modules/ceill-tests: Likewise.
71139         * modules/crypto/des-tests: Likewise.
71140         * modules/crypto/gc-arcfour-tests: Likewise.
71141         * modules/crypto/gc-arctwo-tests: Likewise.
71142         * modules/crypto/gc-des-tests: Likewise.
71143         * modules/crypto/gc-hmac-md5-tests: Likewise.
71144         * modules/crypto/gc-hmac-sha1-tests: Likewise.
71145         * modules/crypto/gc-md2-tests: Likewise.
71146         * modules/crypto/gc-md4-tests: Likewise.
71147         * modules/crypto/gc-md5-tests: Likewise.
71148         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
71149         * modules/crypto/gc-rijndael-tests: Likewise.
71150         * modules/crypto/gc-sha1-tests: Likewise.
71151         * modules/crypto/gc-tests: Likewise.
71152         * modules/crypto/md2-tests: Likewise.
71153         * modules/crypto/md4-tests: Likewise.
71154         * modules/fcntl-h-tests: Likewise.
71155         * modules/floorf-tests: Likewise.
71156         * modules/floorl-tests: Likewise.
71157         * modules/frexp-nolibm-tests: Likewise.
71158         * modules/frexp-tests: Likewise.
71159         * modules/frexpl-nolibm-tests: Likewise.
71160         * modules/frexpl-tests: Likewise.
71161         * modules/getaddrinfo-tests: Likewise.
71162         * modules/inttypes-tests: Likewise.
71163         * modules/isfinite-tests: Likewise.
71164         * modules/isinf-tests: Likewise.
71165         * modules/ldexpl-tests: Likewise.
71166         * modules/locale-tests: Likewise.
71167         * modules/math-tests: Likewise.
71168         * modules/netdb-tests: Likewise.
71169         * modules/netinet_in-tests: Likewise.
71170         * modules/printf-frexp-tests: Likewise.
71171         * modules/printf-frexpl-tests: Likewise.
71172         * modules/priv-set-tests: Likewise.
71173         * modules/random_r-tests: Likewise.
71174         * modules/round-tests: Likewise.
71175         * modules/roundf-tests: Likewise.
71176         * modules/roundl-tests: Likewise.
71177         * modules/search-tests: Likewise.
71178         * modules/select-tests: Likewise.
71179         * modules/signal-tests: Likewise.
71180         * modules/stdbool-tests: Likewise.
71181         * modules/stddef-tests: Likewise.
71182         * modules/stdint-tests: Likewise.
71183         * modules/stdio-tests: Likewise.
71184         * modules/stdlib-tests: Likewise.
71185         * modules/string-tests: Likewise.
71186         * modules/strings-tests: Likewise.
71187         * modules/sys_select-tests: Likewise.
71188         * modules/sys_socket-tests: Likewise.
71189         * modules/sys_stat-tests: Likewise.
71190         * modules/sys_time-tests: Likewise.
71191         * modules/sys_utsname-tests: Likewise.
71192         * modules/sysexits-tests: Likewise.
71193         * modules/time-tests: Likewise.
71194         * modules/trunc-tests: Likewise.
71195         * modules/truncf-tests: Likewise.
71196         * modules/truncl-tests: Likewise.
71197         * modules/tsearch-tests: Likewise.
71198         * modules/unistd-tests: Likewise.
71199         * modules/wchar-tests: Likewise.
71200         * modules/wctype-tests: Likewise.
71202         tests: fix license on several tests
71203         * tests/test-des.c: Update to GPLv3+.
71204         * tests/test-flock.c: Likewise.
71205         * tests/test-fsync.c: Likewise.
71206         * tests/test-futimens.h: Likewise.
71207         * tests/test-gc-arcfour.c: Likewise.
71208         * tests/test-gc-arctwo.c: Likewise.
71209         * tests/test-gc-des.c: Likewise.
71210         * tests/test-gc-hmac-md5.c: Likewise.
71211         * tests/test-gc-hmac-sha1.c: Likewise.
71212         * tests/test-gc-md2.c: Likewise.
71213         * tests/test-gc-md4.c: Likewise.
71214         * tests/test-gc-md5.c: Likewise.
71215         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71216         * tests/test-gc-rijndael.c: Likewise.
71217         * tests/test-gc-sha1.c: Likewise.
71218         * tests/test-gc.c: Likewise.
71219         * tests/test-getcwd.c: Likewise.
71220         * tests/test-link.c: Likewise.
71221         * tests/test-link.h: Likewise.
71222         * tests/test-lutimens.h: Likewise.
71223         * tests/test-md2.c: Likewise.
71224         * tests/test-md4.c: Likewise.
71225         * tests/test-mkdir.h: Likewise.
71226         * tests/test-rename.c: Likewise.
71227         * tests/test-rename.h: Likewise.
71228         * tests/test-safe-alloc.c: Likewise.
71229         * tests/test-utimens-common.h: Likewise.
71230         * tests/test-utimens.h: Likewise.
71232         maint: sync license texts
71233         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
71234         * doc/gpl-3.0.texi: Revert copyright year update.
71235         * doc/lgpl-3.0.texi: Likewise.
71237 2009-12-29  Jim Meyering  <meyering@redhat.com>
71239         update nearly all FSF copyright year lists to include 2009
71240         The files named by the following are exempted:
71241             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
71242               test -f "$dst" && { echo "$dst"; continue; }
71243               test -d "$dst" || continue
71244               echo "$dst"/$(basename "$src")
71245             done > exempt
71246             git ls-files tests/unictype >> exempt
71247         In the remaining files, convert to all-interval notation if
71248         - there is already at least one year interval like 2000-2003
71249         - the file is maintained by me
71250         - the file is in lib/uni*/, where that style already prevails
71251         Otherwise, use update-copyright's default.
71253 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71254         and Eric Blake  <ebb9@byu.net>
71256         tests: don't require debug system() to pass
71257         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
71258         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71259         * tests/test-unlink.h (test_unlink_func): Likewise.
71260         * tests/test-fstatat.c (main): ...into callers.
71261         * tests/test-lstat.c (main): Likewise.
71262         * tests/test-rmdir.c (main): Likewise.
71263         * tests/test-unlink.c (main): Likewise.
71264         * tests/test-unlinkat.c (main): Likewise.
71265         * tests/test-areadlink-with-size.c (main): Don't require a
71266         debug-only system call to pass, aiding cross-testing to mingw.
71267         * tests/test-areadlink.c (main): Likewise.
71268         * tests/test-areadlinkat-with-size.c (main): Likewise.
71269         * tests/test-areadlinkat.c (main): Likewise.
71270         * tests/test-canonicalize-lgpl.c (main): Likewise.
71271         * tests/test-canonicalize.c (main): Likewise.
71272         * tests/test-chown.c (main): Likewise.
71273         * tests/test-fchownat.c (main): Likewise.
71274         * tests/test-lchown.c (main): Likewise.
71275         * tests/test-fdutimensat.c (main): Likewise.
71276         * tests/test-futimens.c (main): Likewise.
71277         * tests/test-link.c (main): Likewise.
71278         * tests/test-linkat.c (main): Likewise.
71279         * tests/test-mkdir.c (main): Likewise.
71280         * tests/test-mkdirat.c (main): Likewise.
71281         * tests/test-mkfifo.c (main): Likewise.
71282         * tests/test-mkfifoat.c (main): Likewise.
71283         * tests/test-mknod.c (main): Likewise.
71284         * tests/test-readlink.c (main): Likewise.
71285         * tests/test-remove.c (main): Likewise.
71286         * tests/test-rename.c (main): Likewise.
71287         * tests/test-renameat.c (main): Likewise.
71288         * tests/test-symlink.c (main): Likewise.
71289         * tests/test-symlinkat.c (main): Likewise.
71290         * tests/test-utimens.c (main): Likewise.
71291         * tests/test-utimensat.c (main): Likewise.
71293 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71295         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
71296         on $(UNUSED_PARAMETER_H) to avoid build failure.
71298 2009-12-28  Jim Meyering  <meyering@redhat.com>
71300         update-copyright: you may specify a max. line length other than 72
71301         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71303         maint: use consistent FSF copyright line syntax
71304         * lib/posixtm.c: Add missing comma in FSF copyright line.
71305         * lib/posixtm.h: Likewise.
71306         * lib/getugroups.c: Add missing ", Inc.".
71308         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
71309         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
71310         FSF copyright line.  Remove trailing blanks.
71312 2009-12-28  Eric Blake  <ebb9@byu.net>
71314         test-dup2: reduce dependencies
71315         * modules/cloexec (Configure.ac): Set witness.
71316         * modules/dup2-tests (Depends-on): Drop cloexec.
71317         * tests/test-dup2.c (main): Skip portion of test if cloexec module
71318         not present.
71319         Suggested by Bruno Haible.
71321 2009-12-26  Bruno Haible  <bruno@clisp.org>
71323         Remove an unneeded dependency.
71324         * modules/fseterr (Depends-on): Remove dup2.
71326 2009-12-26  Eric Blake  <ebb9@byu.net>
71328         tests: use macros.h in more places
71329         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
71330         (ASSERT_STREAM): Provide default of stderr.
71331         * tests/test-dirent-safer.c: Include macros.h, using alternate
71332         stream for assertions.
71333         * tests/test-dup-safer.c: Likewise.
71334         * tests/test-freopen-safer.c: Likewise.
71335         * tests/test-getopt.c: Likewise.
71336         * tests/test-openat-safer.c: Likewise.
71337         * tests/test-pipe.c: Likewise.
71338         * tests/test-popen-safer.c: Likewise.
71339         * modules/dirent-safer-tests (Files): Include macros.h.
71340         * modules/unistd-safer-tests (Files): Likewise.
71341         * modules/freopen-safer-tests (Files): Likewise.
71342         * modules/getopt-posix-tests (Files): Likewise.
71343         * modules/openat-safer-tests (Files): Likewise.
71344         * modules/pipe-tests (Files): Likewise.
71346 2009-12-26  Bruno Haible  <bruno@clisp.org>
71348         javacomp-script: Portability fix.
71349         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
71350         that it also works on Solaris.
71352 2009-12-26  Bruno Haible  <bruno@clisp.org>
71354         localename: Fix storage allocation of gl_locale_name_thread's result.
71355         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
71356         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
71357         all platforms that have 'uselocale'.
71358         (gl_locale_name_thread_unsafe): New function, extracted from
71359         gl_locale_name_thread.
71360         (gl_locale_name_thread): Call struniq on all platforms that have
71361         'uselocale'.
71362         * tests/test-localename.c (test_locale_name_thread): Check that the
71363         resulting strings are permanently allocated.
71364         * modules/localename-tests (Depends-on): Add strdup.
71366 2009-12-26  Bruno Haible  <bruno@clisp.org>
71368         * tests/test-localename.c (categories): Fill in the strings.
71370 2009-12-26  Jim Meyering  <meyering@redhat.com>
71372         isdir: complete the removal of m4/isdir.m4
71373         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
71375         isdir: clean up, since at least grep still uses it
71376         * lib/isdir.c: Include "isdir.h".
71377         (S_ISDIR): Remove now-unneeded definition.
71378         * modules/isdir (Files): Add lib/isdir.h.
71379         * lib/isdir.h: New file, with declaration.
71380         * m4/isdir.m4: Remove file -- unneeded.
71382 2009-12-25  Bruno Haible  <bruno@clisp.org>
71384         selinux-h: Make generated .h files standalone.
71385         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
71386         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
71387         * lib/se-selinux.in.h: Likewise.
71388         * modules/selinux-h (Depends-on): Add unused-parameter.
71389         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
71390         selinux/selinux.h and selinux/context.h.
71391         Suggested by Eric Blake.
71393 2009-12-25  Bruno Haible  <bruno@clisp.org>
71395         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
71396         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
71397         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
71398         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
71399         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
71401 2009-12-24  Bruno Haible  <bruno@clisp.org>
71403         openat: Fix warning.
71404         * lib/openat-proc.c: Include <unistd.h>.
71406 2009-12-24  Bruno Haible  <bruno@clisp.org>
71408         New module 'unused-parameter'.
71409         * build-aux/unused-parameter.h: New file, extracted from earlier
71410         gnulib-common.m4.
71411         * modules/unused-parameter: New file.
71412         * lib/unistr.h: Include unused-parameter.h.
71413         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
71414         _GL_UNUSED.
71415         * modules/unistr/base (Depends-on): Add unused-parameter.
71417 2009-12-24  Bruno Haible  <bruno@clisp.org>
71419         Add missing dependencies to 'extensions' module.
71420         * m4/extensions.m4: Add comment.
71421         * modules/accept4 (Depends-on): Add extensions.
71422         * modules/dup3 (Depends-on): Likewise.
71423         * modules/fcntl (Depends-on): Likewise.
71424         * modules/futimens (Depends-on): Likewise.
71425         * modules/mknod (Depends-on): Likewise.
71426         * modules/pipe2 (Depends-on): Likewise.
71427         * modules/stat-time (Depends-on): Likewise.
71428         * modules/strcasestr-simple (Depends-on): Likewise.
71429         * modules/strsignal (Depends-on): Likewise.
71430         * modules/utimensat (Depends-on): Likewise.
71431         * modules/localcharset (Depends-on): Likewise. Needed because of
71432         gl_FCNTL_O_FLAGS.
71433         * modules/wcrtomb (Depends-on): Likewise. Needed because of
71434         AC_TYPE_MBSTATE_T.
71435         * modules/wcsnrtombs (Depends-on): Likewise.
71436         * modules/wcsrtombs (Depends-on): Likewise.
71438 2009-12-24  Bruno Haible  <bruno@clisp.org>
71440         binary-io: Avoid gcc warning due to SET_BINARY.
71441         * lib/binary-io.h (SET_BINARY): Cast the result to void.
71442         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
71444 2009-12-24  Bruno Haible  <bruno@clisp.org>
71446         Avoid future namespace pollution on glibc systems.
71447         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
71448         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
71449         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
71450         glibc systems.
71452 2009-12-24  Bruno Haible  <bruno@clisp.org>
71454         Refactor common macros used in tests.
71455         * tests/macros.h: New file.
71456         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
71457         and/or <stdlib.h>, if appropriate.
71458         (ASSERT, SIZEOF): Remove macros.
71459         * tests/test-areadlink-with-size.c: Likewise.
71460         * tests/test-areadlinkat.c: Likewise.
71461         * tests/test-areadlinkat-with-size.c: Likewise.
71462         * tests/test-argmatch.c: Likewise.
71463         * tests/test-argv-iter.c: Likewise.
71464         * tests/test-array-mergesort.c: Likewise.
71465         * tests/test-array_list.c: Likewise.
71466         * tests/test-array_oset.c: Likewise.
71467         * tests/test-avltree_list.c: Likewise.
71468         * tests/test-avltree_oset.c: Likewise.
71469         * tests/test-avltreehash_list.c: Likewise.
71470         * tests/test-base64.c: Likewise.
71471         * tests/test-binary-io.c: Likewise.
71472         * tests/test-bitrotate.c: Likewise.
71473         * tests/test-btowc.c: Likewise.
71474         * tests/test-byteswap.c: Likewise.
71475         * tests/test-c-ctype.c: Likewise.
71476         * tests/test-c-stack.c: Likewise.
71477         * tests/test-c-strcasecmp.c: Likewise.
71478         * tests/test-c-strcasestr.c: Likewise.
71479         * tests/test-c-strncasecmp.c: Likewise.
71480         * tests/test-c-strstr.c: Likewise.
71481         * tests/test-canonicalize-lgpl.c: Likewise.
71482         * tests/test-canonicalize.c: Likewise.
71483         * tests/test-carray_list.c: Likewise.
71484         * tests/test-ceilf1.c: Likewise.
71485         * tests/test-ceilf2.c: Likewise.
71486         * tests/test-ceill.c: Likewise.
71487         * tests/test-chown.c: Likewise.
71488         * tests/test-cloexec.c: Likewise.
71489         * tests/test-copy-acl.c: Likewise.
71490         * tests/test-copy-file.c: Likewise.
71491         * tests/test-count-one-bits.c: Likewise.
71492         * tests/test-dprintf-posix.c: Likewise.
71493         * tests/test-dup2.c: Likewise.
71494         * tests/test-dup3.c: Likewise.
71495         * tests/test-duplocale.c: Likewise.
71496         * tests/test-fbufmode.c: Likewise.
71497         * tests/test-fchdir.c: Likewise.
71498         * tests/test-fchownat.c: Likewise.
71499         * tests/test-fcntl-safer.c: Likewise.
71500         * tests/test-fcntl.c: Likewise.
71501         * tests/test-fdopendir.c: Likewise.
71502         * tests/test-fdutimensat.c: Likewise.
71503         * tests/test-fflush2.c: Likewise.
71504         * tests/test-file-has-acl.c: Likewise.
71505         * tests/test-filevercmp.c: Likewise.
71506         * tests/test-flock.c: Likewise.
71507         * tests/test-floorf1.c: Likewise.
71508         * tests/test-floorf2.c: Likewise.
71509         * tests/test-floorl.c: Likewise.
71510         * tests/test-fnmatch.c: Likewise.
71511         * tests/test-fopen.h: Likewise.
71512         * tests/test-fpending.c: Likewise.
71513         * tests/test-fprintf-posix.c: Likewise.
71514         * tests/test-fpurge.c: Likewise.
71515         * tests/test-freadable.c: Likewise.
71516         * tests/test-freadahead.c: Likewise.
71517         * tests/test-freading.c: Likewise.
71518         * tests/test-freadptr.c: Likewise.
71519         * tests/test-freadptr2.c: Likewise.
71520         * tests/test-freadseek.c: Likewise.
71521         * tests/test-freopen.c: Likewise.
71522         * tests/test-frexp.c: Likewise.
71523         * tests/test-frexpl.c: Likewise.
71524         * tests/test-fseek.c: Likewise.
71525         * tests/test-fseeko.c: Likewise.
71526         * tests/test-fstatat.c: Likewise.
71527         * tests/test-fstrcmp.c: Likewise.
71528         * tests/test-fsync.c: Likewise.
71529         * tests/test-ftell.c: Likewise.
71530         * tests/test-ftello.c: Likewise.
71531         * tests/test-func.c: Likewise.
71532         * tests/test-futimens.c: Likewise.
71533         * tests/test-fwritable.c: Likewise.
71534         * tests/test-fwriting.c: Likewise.
71535         * tests/test-getcwd.c: Likewise.
71536         * tests/test-getdate.c: Likewise.
71537         * tests/test-getdelim.c: Likewise.
71538         * tests/test-getdtablesize.c: Likewise.
71539         * tests/test-getgroups.c: Likewise.
71540         * tests/test-getline.c: Likewise.
71541         * tests/test-getndelim2.c: Likewise.
71542         * tests/test-glob.c: Likewise.
71543         * tests/test-hash.c: Likewise.
71544         * tests/test-i-ring.c: Likewise.
71545         * tests/test-iconv-utf.c: Likewise.
71546         * tests/test-iconv.c: Likewise.
71547         * tests/test-idpriv-drop.c: Likewise.
71548         * tests/test-idpriv-droptemp.c: Likewise.
71549         * tests/test-inet_ntop.c: Likewise.
71550         * tests/test-inet_pton.c: Likewise.
71551         * tests/test-isblank.c: Likewise.
71552         * tests/test-isfinite.c: Likewise.
71553         * tests/test-isinf.c: Likewise.
71554         * tests/test-isnan.c: Likewise.
71555         * tests/test-isnand.h: Likewise.
71556         * tests/test-isnanf.h: Likewise.
71557         * tests/test-isnanl.h: Likewise.
71558         * tests/test-lchown.c: Likewise.
71559         * tests/test-ldexpl.c: Likewise.
71560         * tests/test-link.c: Likewise.
71561         * tests/test-linkat.c: Likewise.
71562         * tests/test-linked_list.c: Likewise.
71563         * tests/test-linkedhash_list.c: Likewise.
71564         * tests/test-localename.c: Likewise.
71565         * tests/test-lseek.c: Likewise.
71566         * tests/test-lstat.c: Likewise.
71567         * tests/test-mbmemcasecmp.c: Likewise.
71568         * tests/test-mbmemcasecoll.c: Likewise.
71569         * tests/test-mbrtowc.c: Likewise.
71570         * tests/test-mbscasecmp.c: Likewise.
71571         * tests/test-mbscasestr1.c: Likewise.
71572         * tests/test-mbscasestr2.c: Likewise.
71573         * tests/test-mbscasestr3.c: Likewise.
71574         * tests/test-mbscasestr4.c: Likewise.
71575         * tests/test-mbschr.c: Likewise.
71576         * tests/test-mbscspn.c: Likewise.
71577         * tests/test-mbsinit.c: Likewise.
71578         * tests/test-mbsncasecmp.c: Likewise.
71579         * tests/test-mbsnrtowcs.c: Likewise.
71580         * tests/test-mbspbrk.c: Likewise.
71581         * tests/test-mbspcasecmp.c: Likewise.
71582         * tests/test-mbsrchr.c: Likewise.
71583         * tests/test-mbsrtowcs.c: Likewise.
71584         * tests/test-mbsspn.c: Likewise.
71585         * tests/test-mbsstr1.c: Likewise.
71586         * tests/test-mbsstr2.c: Likewise.
71587         * tests/test-mbsstr3.c: Likewise.
71588         * tests/test-memchr.c: Likewise.
71589         * tests/test-memchr2.c: Likewise.
71590         * tests/test-memcmp.c: Likewise.
71591         * tests/test-memmem.c: Likewise.
71592         * tests/test-memrchr.c: Likewise.
71593         * tests/test-mkdir.c: Likewise.
71594         * tests/test-mkdirat.c: Likewise.
71595         * tests/test-mkfifo.c: Likewise.
71596         * tests/test-mkfifoat.c: Likewise.
71597         * tests/test-mknod.c: Likewise.
71598         * tests/test-nanosleep.c: Likewise.
71599         * tests/test-nl_langinfo.c: Likewise.
71600         * tests/test-obstack-printf.c: Likewise.
71601         * tests/test-open.c: Likewise.
71602         * tests/test-openat.c: Likewise.
71603         * tests/test-pipe-filter-gi1.c: Likewise.
71604         * tests/test-pipe-filter-gi2-main.c: Likewise.
71605         * tests/test-pipe-filter-ii1.c: Likewise.
71606         * tests/test-pipe-filter-ii2-main.c: Likewise.
71607         * tests/test-pipe2.c: Likewise.
71608         * tests/test-popen.h: Likewise.
71609         * tests/test-posixtm.c: Likewise.
71610         * tests/test-pread.c: Likewise.
71611         * tests/test-printf-frexp.c: Likewise.
71612         * tests/test-printf-frexpl.c: Likewise.
71613         * tests/test-printf-posix.c: Likewise.
71614         * tests/test-priv-set.c: Likewise.
71615         * tests/test-quotearg.c: Likewise.
71616         * tests/test-random_r.c: Likewise.
71617         * tests/test-rawmemchr.c: Likewise.
71618         * tests/test-rbtree_list.c: Likewise.
71619         * tests/test-rbtree_oset.c: Likewise.
71620         * tests/test-rbtreehash_list.c: Likewise.
71621         * tests/test-readlink.c: Likewise.
71622         * tests/test-remove.c: Likewise.
71623         * tests/test-rename.c: Likewise.
71624         * tests/test-renameat.c: Likewise.
71625         * tests/test-rmdir.c: Likewise.
71626         * tests/test-round1.c: Likewise.
71627         * tests/test-roundf1.c: Likewise.
71628         * tests/test-roundl.c: Likewise.
71629         * tests/test-safe-alloc.c: Likewise.
71630         * tests/test-sameacls.c: Likewise.
71631         * tests/test-set-mode-acl.c: Likewise.
71632         * tests/test-setenv.c: Likewise.
71633         * tests/test-sigaction.c: Likewise.
71634         * tests/test-signbit.c: Likewise.
71635         * tests/test-sleep.c: Likewise.
71636         * tests/test-snprintf-posix.c: Likewise.
71637         * tests/test-snprintf.c: Likewise.
71638         * tests/test-sprintf-posix.c: Likewise.
71639         * tests/test-stat-time.c: Likewise.
71640         * tests/test-stat.c: Likewise.
71641         * tests/test-strcasestr.c: Likewise.
71642         * tests/test-strchrnul.c: Likewise.
71643         * tests/test-strerror.c: Likewise.
71644         * tests/test-striconv.c: Likewise.
71645         * tests/test-striconveh.c: Likewise.
71646         * tests/test-striconveha.c: Likewise.
71647         * tests/test-strsignal.c: Likewise.
71648         * tests/test-strstr.c: Likewise.
71649         * tests/test-strtod.c: Likewise.
71650         * tests/test-strverscmp.c: Likewise.
71651         * tests/test-symlink.c: Likewise.
71652         * tests/test-symlinkat.c: Likewise.
71653         * tests/test-trunc1.c: Likewise.
71654         * tests/test-trunc2.c: Likewise.
71655         * tests/test-truncf1.c: Likewise.
71656         * tests/test-truncf2.c: Likewise.
71657         * tests/test-truncl.c: Likewise.
71658         * tests/test-uname.c: Likewise.
71659         * tests/test-unlink.c: Likewise.
71660         * tests/test-unlinkat.c: Likewise.
71661         * tests/test-unsetenv.c: Likewise.
71662         * tests/test-usleep.c: Likewise.
71663         * tests/test-utimens.c: Likewise.
71664         * tests/test-utimensat.c: Likewise.
71665         * tests/test-vasnprintf-posix.c: Likewise.
71666         * tests/test-vasnprintf-posix2.c: Likewise.
71667         * tests/test-vasnprintf.c: Likewise.
71668         * tests/test-vasprintf-posix.c: Likewise.
71669         * tests/test-vasprintf.c: Likewise.
71670         * tests/test-vdprintf-posix.c: Likewise.
71671         * tests/test-vfprintf-posix.c: Likewise.
71672         * tests/test-vprintf-posix.c: Likewise.
71673         * tests/test-vsnprintf-posix.c: Likewise.
71674         * tests/test-vsnprintf.c: Likewise.
71675         * tests/test-vsprintf-posix.c: Likewise.
71676         * tests/test-wcrtomb.c: Likewise.
71677         * tests/test-wcsnrtombs.c: Likewise.
71678         * tests/test-wcsrtombs.c: Likewise.
71679         * tests/test-wctype.c: Likewise.
71680         * tests/test-wcwidth.c: Likewise.
71681         * tests/test-xfprintf-posix.c: Likewise.
71682         * tests/test-xmemdup0.c: Likewise.
71683         * tests/test-xprintf-posix.c: Likewise.
71684         * tests/test-xvasprintf.c: Likewise.
71685         * tests/unicase/test-locale-language.c: Likewise.
71686         * tests/unicase/test-mapping-part1.h: Likewise.
71687         * tests/unicase/test-predicate-part1.h: Likewise.
71688         * tests/unicase/test-u8-casecmp.c: Likewise.
71689         * tests/unicase/test-u8-casecoll.c: Likewise.
71690         * tests/unicase/test-u8-casefold.c: Likewise.
71691         * tests/unicase/test-u8-is-cased.c: Likewise.
71692         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71693         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71694         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71695         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71696         * tests/unicase/test-u8-tolower.c: Likewise.
71697         * tests/unicase/test-u8-totitle.c: Likewise.
71698         * tests/unicase/test-u8-toupper.c: Likewise.
71699         * tests/unicase/test-u16-casecmp.c: Likewise.
71700         * tests/unicase/test-u16-casecoll.c: Likewise.
71701         * tests/unicase/test-u16-casefold.c: Likewise.
71702         * tests/unicase/test-u16-is-cased.c: Likewise.
71703         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71704         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71705         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71706         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71707         * tests/unicase/test-u16-tolower.c: Likewise.
71708         * tests/unicase/test-u16-totitle.c: Likewise.
71709         * tests/unicase/test-u16-toupper.c: Likewise.
71710         * tests/unicase/test-u32-casecmp.c: Likewise.
71711         * tests/unicase/test-u32-casecoll.c: Likewise.
71712         * tests/unicase/test-u32-casefold.c: Likewise.
71713         * tests/unicase/test-u32-is-cased.c: Likewise.
71714         * tests/unicase/test-u32-is-casefolded.c: Likewise.
71715         * tests/unicase/test-u32-is-lowercase.c: Likewise.
71716         * tests/unicase/test-u32-is-titlecase.c: Likewise.
71717         * tests/unicase/test-u32-is-uppercase.c: Likewise.
71718         * tests/unicase/test-u32-tolower.c: Likewise.
71719         * tests/unicase/test-u32-totitle.c: Likewise.
71720         * tests/unicase/test-u32-toupper.c: Likewise.
71721         * tests/unicase/test-ulc-casecmp.c: Likewise.
71722         * tests/unicase/test-ulc-casecoll.c: Likewise.
71723         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
71724         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
71725         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
71726         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
71727         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
71728         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
71729         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
71730         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
71731         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
71732         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
71733         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
71734         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
71735         * tests/unictype/test-bidi_byname.c: Likewise.
71736         * tests/unictype/test-bidi_name.c: Likewise.
71737         * tests/unictype/test-bidi_of.c: Likewise.
71738         * tests/unictype/test-bidi_test.c: Likewise.
71739         * tests/unictype/test-block_list.c: Likewise.
71740         * tests/unictype/test-block_of.c: Likewise.
71741         * tests/unictype/test-block_test.c: Likewise.
71742         * tests/unictype/test-categ_and.c: Likewise.
71743         * tests/unictype/test-categ_and_not.c: Likewise.
71744         * tests/unictype/test-categ_byname.c: Likewise.
71745         * tests/unictype/test-categ_name.c: Likewise.
71746         * tests/unictype/test-categ_none.c: Likewise.
71747         * tests/unictype/test-categ_of.c: Likewise.
71748         * tests/unictype/test-categ_or.c: Likewise.
71749         * tests/unictype/test-categ_test_withtable.c: Likewise.
71750         * tests/unictype/test-combining.c: Likewise.
71751         * tests/unictype/test-decdigit.c: Likewise.
71752         * tests/unictype/test-digit.c: Likewise.
71753         * tests/unictype/test-mirror.c: Likewise.
71754         * tests/unictype/test-numeric.c: Likewise.
71755         * tests/unictype/test-pr_byname.c: Likewise.
71756         * tests/unictype/test-pr_test.c: Likewise.
71757         * tests/unictype/test-predicate-part1.h: Likewise.
71758         * tests/unictype/test-scripts.c: Likewise.
71759         * tests/unictype/test-sy_c_ident.c: Likewise.
71760         * tests/unictype/test-sy_java_ident.c: Likewise.
71761         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
71762         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
71763         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
71764         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
71765         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
71766         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
71767         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
71768         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
71769         * tests/uninorm/test-canonical-decomposition.c: Likewise.
71770         * tests/uninorm/test-compat-decomposition.c: Likewise.
71771         * tests/uninorm/test-composition.c: Likewise.
71772         * tests/uninorm/test-decomposing-form.c: Likewise.
71773         * tests/uninorm/test-decomposition.c: Likewise.
71774         * tests/uninorm/test-u8-nfc.c: Likewise.
71775         * tests/uninorm/test-u8-nfd.c: Likewise.
71776         * tests/uninorm/test-u8-nfkc.c: Likewise.
71777         * tests/uninorm/test-u8-nfkd.c: Likewise.
71778         * tests/uninorm/test-u8-normcmp.c: Likewise.
71779         * tests/uninorm/test-u8-normcoll.c: Likewise.
71780         * tests/uninorm/test-u16-nfc.c: Likewise.
71781         * tests/uninorm/test-u16-nfd.c: Likewise.
71782         * tests/uninorm/test-u16-nfkc.c: Likewise.
71783         * tests/uninorm/test-u16-nfkd.c: Likewise.
71784         * tests/uninorm/test-u16-normcmp.c: Likewise.
71785         * tests/uninorm/test-u16-normcoll.c: Likewise.
71786         * tests/uninorm/test-u32-nfc.c: Likewise.
71787         * tests/uninorm/test-u32-nfd.c: Likewise.
71788         * tests/uninorm/test-u32-nfkc.c: Likewise.
71789         * tests/uninorm/test-u32-nfkd.c: Likewise.
71790         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71791         * tests/uninorm/test-u32-normcmp.c: Likewise.
71792         * tests/uninorm/test-u32-normcoll.c: Likewise.
71793         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
71794         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
71795         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
71796         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
71797         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
71798         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
71799         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
71800         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
71801         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
71802         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
71803         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
71804         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
71805         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71806         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71807         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71808         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71809         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71810         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71811         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71812         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71813         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71814         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71815         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71816         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71817         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71818         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71819         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71820         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71821         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71822         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71823         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71824         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71825         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71826         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71827         * tests/uniwidth/test-u8-width.c: Likewise.
71828         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71829         * tests/uniwidth/test-u16-width.c: Likewise.
71830         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71831         * tests/uniwidth/test-u32-width.c: Likewise.
71832         * tests/uniwidth/test-uc_width.c: Likewise.
71833         * tests/uniwidth/test-uc_width2.c: Likewise.
71834         * modules/acl-tests (Files): Add tests/macros.h.
71835         * modules/areadlink-tests (Files): Likewise.
71836         * modules/areadlink-with-size-tests (Files): Likewise.
71837         * modules/areadlinkat-tests (Files): Likewise.
71838         * modules/areadlinkat-with-size-tests (Files): Likewise.
71839         * modules/argmatch-tests (Files): Likewise.
71840         * modules/argv-iter-tests (Files): Likewise.
71841         * modules/array-list-tests (Files): Likewise.
71842         * modules/array-mergesort-tests (Files): Likewise.
71843         * modules/array-oset-tests (Files): Likewise.
71844         * modules/avltree-list-tests (Files): Likewise.
71845         * modules/avltree-oset-tests (Files): Likewise.
71846         * modules/avltreehash-list-tests (Files): Likewise.
71847         * modules/base64-tests (Files): Likewise.
71848         * modules/binary-io-tests (Files): Likewise.
71849         * modules/bitrotate-tests (Files): Likewise.
71850         * modules/btowc-tests (Files): Likewise.
71851         * modules/byteswap-tests (Files): Likewise.
71852         * modules/c-ctype-tests (Files): Likewise.
71853         * modules/c-stack-tests (Files): Likewise.
71854         * modules/c-strcase-tests (Files): Likewise.
71855         * modules/c-strcasestr-tests (Files): Likewise.
71856         * modules/c-strstr-tests (Files): Likewise.
71857         * modules/canonicalize-lgpl-tests (Files): Likewise.
71858         * modules/canonicalize-tests (Files): Likewise.
71859         * modules/carray-list-tests (Files): Likewise.
71860         * modules/ceilf-tests (Files): Likewise.
71861         * modules/ceill-tests (Files): Likewise.
71862         * modules/chown-tests (Files): Likewise.
71863         * modules/cloexec-tests (Files): Likewise.
71864         * modules/copy-file-tests (Files): Likewise.
71865         * modules/count-one-bits-tests (Files): Likewise.
71866         * modules/dprintf-posix-tests (Files): Likewise.
71867         * modules/dup2-tests (Files): Likewise.
71868         * modules/dup3-tests (Files): Likewise.
71869         * modules/duplocale-tests (Files): Likewise.
71870         * modules/fbufmode-tests (Files): Likewise.
71871         * modules/fchdir-tests (Files): Likewise.
71872         * modules/fcntl-safer-tests (Files): Likewise.
71873         * modules/fcntl-tests (Files): Likewise.
71874         * modules/fdopendir-tests (Files): Likewise.
71875         * modules/fdutimensat-tests (Files): Likewise.
71876         * modules/fflush-tests (Files): Likewise.
71877         * modules/filevercmp-tests (Files): Likewise.
71878         * modules/flock-tests (Files): Likewise.
71879         * modules/floorf-tests (Files): Likewise.
71880         * modules/floorl-tests (Files): Likewise.
71881         * modules/fnmatch-tests (Files): Likewise.
71882         * modules/fopen-safer-tests (Files): Likewise.
71883         * modules/fopen-tests (Files): Likewise.
71884         * modules/fpending-tests (Files): Likewise.
71885         * modules/fprintf-posix-tests (Files): Likewise.
71886         * modules/fpurge-tests (Files): Likewise.
71887         * modules/freadable-tests (Files): Likewise.
71888         * modules/freadahead-tests (Files): Likewise.
71889         * modules/freading-tests (Files): Likewise.
71890         * modules/freadptr-tests (Files): Likewise.
71891         * modules/freadseek-tests (Files): Likewise.
71892         * modules/freopen-tests (Files): Likewise.
71893         * modules/frexp-nolibm-tests (Files): Likewise.
71894         * modules/frexp-tests (Files): Likewise.
71895         * modules/frexpl-nolibm-tests (Files): Likewise.
71896         * modules/frexpl-tests (Files): Likewise.
71897         * modules/fseek-tests (Files): Likewise.
71898         * modules/fseeko-tests (Files): Likewise.
71899         * modules/fstrcmp-tests (Files): Likewise.
71900         * modules/fsync-tests (Files): Likewise.
71901         * modules/ftell-tests (Files): Likewise.
71902         * modules/ftello-tests (Files): Likewise.
71903         * modules/func-tests (Files): Likewise.
71904         * modules/futimens-tests (Files): Likewise.
71905         * modules/fwritable-tests (Files): Likewise.
71906         * modules/fwriting-tests (Files): Likewise.
71907         * modules/getcwd-tests (Files): Likewise.
71908         * modules/getdate-tests (Files): Likewise.
71909         * modules/getdelim-tests (Files): Likewise.
71910         * modules/getdtablesize-tests (Files): Likewise.
71911         * modules/getgroups-tests (Files): Likewise.
71912         * modules/getline-tests (Files): Likewise.
71913         * modules/getndelim2-tests (Files): Likewise.
71914         * modules/glob-tests (Files): Likewise.
71915         * modules/hash-tests (Files): Likewise.
71916         * modules/i-ring-tests (Files): Likewise.
71917         * modules/iconv-tests (Files): Likewise.
71918         * modules/iconv_open-utf-tests (Files): Likewise.
71919         * modules/idpriv-drop-tests (Files): Likewise.
71920         * modules/idpriv-droptemp-tests (Files): Likewise.
71921         * modules/inet_ntop-tests (Files): Likewise.
71922         * modules/inet_pton-tests (Files): Likewise.
71923         * modules/isblank-tests (Files): Likewise.
71924         * modules/isfinite-tests (Files): Likewise.
71925         * modules/isinf-tests (Files): Likewise.
71926         * modules/isnan-tests (Files): Likewise.
71927         * modules/isnand-nolibm-tests (Files): Likewise.
71928         * modules/isnand-tests (Files): Likewise.
71929         * modules/isnanf-nolibm-tests (Files): Likewise.
71930         * modules/isnanf-tests (Files): Likewise.
71931         * modules/isnanl-nolibm-tests (Files): Likewise.
71932         * modules/isnanl-tests (Files): Likewise.
71933         * modules/lchown-tests (Files): Likewise.
71934         * modules/ldexpl-tests (Files): Likewise.
71935         * modules/link-tests (Files): Likewise.
71936         * modules/linkat-tests (Files): Likewise.
71937         * modules/linked-list-tests (Files): Likewise.
71938         * modules/linkedhash-list-tests (Files): Likewise.
71939         * modules/localename-tests (Files): Likewise.
71940         * modules/lseek-tests (Files): Likewise.
71941         * modules/lstat-tests (Files): Likewise.
71942         * modules/mbmemcasecmp-tests (Files): Likewise.
71943         * modules/mbmemcasecoll-tests (Files): Likewise.
71944         * modules/mbrtowc-tests (Files): Likewise.
71945         * modules/mbscasecmp-tests (Files): Likewise.
71946         * modules/mbscasestr-tests (Files): Likewise.
71947         * modules/mbschr-tests (Files): Likewise.
71948         * modules/mbscspn-tests (Files): Likewise.
71949         * modules/mbsinit-tests (Files): Likewise.
71950         * modules/mbsncasecmp-tests (Files): Likewise.
71951         * modules/mbsnrtowcs-tests (Files): Likewise.
71952         * modules/mbspbrk-tests (Files): Likewise.
71953         * modules/mbspcasecmp-tests (Files): Likewise.
71954         * modules/mbsrchr-tests (Files): Likewise.
71955         * modules/mbsrtowcs-tests (Files): Likewise.
71956         * modules/mbsspn-tests (Files): Likewise.
71957         * modules/mbsstr-tests (Files): Likewise.
71958         * modules/memchr-tests (Files): Likewise.
71959         * modules/memchr2-tests (Files): Likewise.
71960         * modules/memcmp-tests (Files): Likewise.
71961         * modules/memmem-tests (Files): Likewise.
71962         * modules/memrchr-tests (Files): Likewise.
71963         * modules/mkdir-tests (Files): Likewise.
71964         * modules/mkfifo-tests (Files): Likewise.
71965         * modules/mkfifoat-tests (Files): Likewise.
71966         * modules/mknod-tests (Files): Likewise.
71967         * modules/nanosleep-tests (Files): Likewise.
71968         * modules/nl_langinfo-tests (Files): Likewise.
71969         * modules/obstack-printf-tests (Files): Likewise.
71970         * modules/open-tests (Files): Likewise.
71971         * modules/openat-tests (Files): Likewise.
71972         * modules/pipe-filter-gi-tests (Files): Likewise.
71973         * modules/pipe-filter-ii-tests (Files): Likewise.
71974         * modules/pipe2-tests (Files): Likewise.
71975         * modules/popen-safer-tests (Files): Likewise.
71976         * modules/popen-tests (Files): Likewise.
71977         * modules/posixtm-tests (Files): Likewise.
71978         * modules/pread-tests (Files): Likewise.
71979         * modules/printf-frexp-tests (Files): Likewise.
71980         * modules/printf-frexpl-tests (Files): Likewise.
71981         * modules/printf-posix-tests (Files): Likewise.
71982         * modules/priv-set-tests (Files): Likewise.
71983         * modules/quotearg-tests (Files): Likewise.
71984         * modules/random_r-tests (Files): Likewise.
71985         * modules/rawmemchr-tests (Files): Likewise.
71986         * modules/rbtree-list-tests (Files): Likewise.
71987         * modules/rbtree-oset-tests (Files): Likewise.
71988         * modules/rbtreehash-list-tests (Files): Likewise.
71989         * modules/readlink-tests (Files): Likewise.
71990         * modules/remove-tests (Files): Likewise.
71991         * modules/rename-tests (Files): Likewise.
71992         * modules/renameat-tests (Files): Likewise.
71993         * modules/rmdir-tests (Files): Likewise.
71994         * modules/round-tests (Files): Likewise.
71995         * modules/roundf-tests (Files): Likewise.
71996         * modules/roundl-tests (Files): Likewise.
71997         * modules/safe-alloc-tests (Files): Likewise.
71998         * modules/setenv-tests (Files): Likewise.
71999         * modules/sigaction-tests (Files): Likewise.
72000         * modules/signbit-tests (Files): Likewise.
72001         * modules/sleep-tests (Files): Likewise.
72002         * modules/snprintf-posix-tests (Files): Likewise.
72003         * modules/snprintf-tests (Files): Likewise.
72004         * modules/sprintf-posix-tests (Files): Likewise.
72005         * modules/stat-tests (Files): Likewise.
72006         * modules/stat-time-tests (Files): Likewise.
72007         * modules/strcasestr-tests (Files): Likewise.
72008         * modules/strchrnul-tests (Files): Likewise.
72009         * modules/strerror-tests (Files): Likewise.
72010         * modules/striconv-tests (Files): Likewise.
72011         * modules/striconveh-tests (Files): Likewise.
72012         * modules/striconveha-tests (Files): Likewise.
72013         * modules/strsignal-tests (Files): Likewise.
72014         * modules/strstr-tests (Files): Likewise.
72015         * modules/strtod-tests (Files): Likewise.
72016         * modules/strverscmp-tests (Files): Likewise.
72017         * modules/symlink-tests (Files): Likewise.
72018         * modules/symlinkat-tests (Files): Likewise.
72019         * modules/trunc-tests (Files): Likewise.
72020         * modules/truncf-tests (Files): Likewise.
72021         * modules/truncl-tests (Files): Likewise.
72022         * modules/uname-tests (Files): Likewise.
72023         * modules/unicase/cased-tests (Files): Likewise.
72024         * modules/unicase/ignorable-tests (Files): Likewise.
72025         * modules/unicase/locale-language-tests (Files): Likewise.
72026         * modules/unicase/tolower-tests (Files): Likewise.
72027         * modules/unicase/totitle-tests (Files): Likewise.
72028         * modules/unicase/toupper-tests (Files): Likewise.
72029         * modules/unicase/u8-casecmp-tests (Files): Likewise.
72030         * modules/unicase/u8-casecoll-tests (Files): Likewise.
72031         * modules/unicase/u8-casefold-tests (Files): Likewise.
72032         * modules/unicase/u8-is-cased-tests (Files): Likewise.
72033         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
72034         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
72035         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
72036         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
72037         * modules/unicase/u8-tolower-tests (Files): Likewise.
72038         * modules/unicase/u8-totitle-tests (Files): Likewise.
72039         * modules/unicase/u8-toupper-tests (Files): Likewise.
72040         * modules/unicase/u16-casecmp-tests (Files): Likewise.
72041         * modules/unicase/u16-casecoll-tests (Files): Likewise.
72042         * modules/unicase/u16-casefold-tests (Files): Likewise.
72043         * modules/unicase/u16-is-cased-tests (Files): Likewise.
72044         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
72045         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
72046         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
72047         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
72048         * modules/unicase/u16-tolower-tests (Files): Likewise.
72049         * modules/unicase/u16-totitle-tests (Files): Likewise.
72050         * modules/unicase/u16-toupper-tests (Files): Likewise.
72051         * modules/unicase/u32-casecmp-tests (Files): Likewise.
72052         * modules/unicase/u32-casecoll-tests (Files): Likewise.
72053         * modules/unicase/u32-casefold-tests (Files): Likewise.
72054         * modules/unicase/u32-is-cased-tests (Files): Likewise.
72055         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
72056         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
72057         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
72058         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
72059         * modules/unicase/u32-tolower-tests (Files): Likewise.
72060         * modules/unicase/u32-totitle-tests (Files): Likewise.
72061         * modules/unicase/u32-toupper-tests (Files): Likewise.
72062         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
72063         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
72064         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
72065         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
72066         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
72067         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
72068         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
72069         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
72070         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
72071         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
72072         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
72073         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
72074         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
72075         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
72076         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
72077         * modules/unictype/bidicategory-name-tests (Files): Likewise.
72078         * modules/unictype/bidicategory-of-tests (Files): Likewise.
72079         * modules/unictype/bidicategory-test-tests (Files): Likewise.
72080         * modules/unictype/block-list-tests (Files): Likewise.
72081         * modules/unictype/block-of-tests (Files): Likewise.
72082         * modules/unictype/block-test-tests (Files): Likewise.
72083         * modules/unictype/category-C-tests (Files): Likewise.
72084         * modules/unictype/category-Cc-tests (Files): Likewise.
72085         * modules/unictype/category-Cf-tests (Files): Likewise.
72086         * modules/unictype/category-Cn-tests (Files): Likewise.
72087         * modules/unictype/category-Co-tests (Files): Likewise.
72088         * modules/unictype/category-Cs-tests (Files): Likewise.
72089         * modules/unictype/category-L-tests (Files): Likewise.
72090         * modules/unictype/category-Ll-tests (Files): Likewise.
72091         * modules/unictype/category-Lm-tests (Files): Likewise.
72092         * modules/unictype/category-Lo-tests (Files): Likewise.
72093         * modules/unictype/category-Lt-tests (Files): Likewise.
72094         * modules/unictype/category-Lu-tests (Files): Likewise.
72095         * modules/unictype/category-M-tests (Files): Likewise.
72096         * modules/unictype/category-Mc-tests (Files): Likewise.
72097         * modules/unictype/category-Me-tests (Files): Likewise.
72098         * modules/unictype/category-Mn-tests (Files): Likewise.
72099         * modules/unictype/category-N-tests (Files): Likewise.
72100         * modules/unictype/category-Nd-tests (Files): Likewise.
72101         * modules/unictype/category-Nl-tests (Files): Likewise.
72102         * modules/unictype/category-No-tests (Files): Likewise.
72103         * modules/unictype/category-P-tests (Files): Likewise.
72104         * modules/unictype/category-Pc-tests (Files): Likewise.
72105         * modules/unictype/category-Pd-tests (Files): Likewise.
72106         * modules/unictype/category-Pe-tests (Files): Likewise.
72107         * modules/unictype/category-Pf-tests (Files): Likewise.
72108         * modules/unictype/category-Pi-tests (Files): Likewise.
72109         * modules/unictype/category-Po-tests (Files): Likewise.
72110         * modules/unictype/category-Ps-tests (Files): Likewise.
72111         * modules/unictype/category-S-tests (Files): Likewise.
72112         * modules/unictype/category-Sc-tests (Files): Likewise.
72113         * modules/unictype/category-Sk-tests (Files): Likewise.
72114         * modules/unictype/category-Sm-tests (Files): Likewise.
72115         * modules/unictype/category-So-tests (Files): Likewise.
72116         * modules/unictype/category-Z-tests (Files): Likewise.
72117         * modules/unictype/category-Zl-tests (Files): Likewise.
72118         * modules/unictype/category-Zp-tests (Files): Likewise.
72119         * modules/unictype/category-Zs-tests (Files): Likewise.
72120         * modules/unictype/category-and-not-tests (Files): Likewise.
72121         * modules/unictype/category-and-tests (Files): Likewise.
72122         * modules/unictype/category-byname-tests (Files): Likewise.
72123         * modules/unictype/category-name-tests (Files): Likewise.
72124         * modules/unictype/category-none-tests (Files): Likewise.
72125         * modules/unictype/category-of-tests (Files): Likewise.
72126         * modules/unictype/category-or-tests (Files): Likewise.
72127         * modules/unictype/category-test-withtable-tests (Files): Likewise.
72128         * modules/unictype/combining-class-tests (Files): Likewise.
72129         * modules/unictype/ctype-alnum-tests (Files): Likewise.
72130         * modules/unictype/ctype-alpha-tests (Files): Likewise.
72131         * modules/unictype/ctype-blank-tests (Files): Likewise.
72132         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
72133         * modules/unictype/ctype-digit-tests (Files): Likewise.
72134         * modules/unictype/ctype-graph-tests (Files): Likewise.
72135         * modules/unictype/ctype-lower-tests (Files): Likewise.
72136         * modules/unictype/ctype-print-tests (Files): Likewise.
72137         * modules/unictype/ctype-punct-tests (Files): Likewise.
72138         * modules/unictype/ctype-space-tests (Files): Likewise.
72139         * modules/unictype/ctype-upper-tests (Files): Likewise.
72140         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
72141         * modules/unictype/decimal-digit-tests (Files): Likewise.
72142         * modules/unictype/digit-tests (Files): Likewise.
72143         * modules/unictype/mirror-tests (Files): Likewise.
72144         * modules/unictype/numeric-tests (Files): Likewise.
72145         * modules/unictype/property-alphabetic-tests (Files): Likewise.
72146         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
72147         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
72148         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
72149         Likewise.
72150         * modules/unictype/property-bidi-block-separator-tests (Files):
72151         Likewise.
72152         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
72153         Likewise.
72154         * modules/unictype/property-bidi-common-separator-tests (Files):
72155         Likewise.
72156         * modules/unictype/property-bidi-control-tests (Files): Likewise.
72157         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
72158         Likewise.
72159         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
72160         Likewise.
72161         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
72162         Likewise.
72163         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
72164         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
72165         Likewise.
72166         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
72167         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
72168         Likewise.
72169         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
72170         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
72171         * modules/unictype/property-bidi-segment-separator-tests (Files):
72172         Likewise.
72173         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
72174         * modules/unictype/property-byname-tests (Files): Likewise.
72175         * modules/unictype/property-combining-tests (Files): Likewise.
72176         * modules/unictype/property-composite-tests (Files): Likewise.
72177         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
72178         * modules/unictype/property-dash-tests (Files): Likewise.
72179         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
72180         * modules/unictype/property-default-ignorable-code-point-tests (Files):
72181         Likewise.
72182         * modules/unictype/property-deprecated-tests (Files): Likewise.
72183         * modules/unictype/property-diacritic-tests (Files): Likewise.
72184         * modules/unictype/property-extender-tests (Files): Likewise.
72185         * modules/unictype/property-format-control-tests (Files): Likewise.
72186         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
72187         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
72188         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
72189         * modules/unictype/property-hex-digit-tests (Files): Likewise.
72190         * modules/unictype/property-hyphen-tests (Files): Likewise.
72191         * modules/unictype/property-id-continue-tests (Files): Likewise.
72192         * modules/unictype/property-id-start-tests (Files): Likewise.
72193         * modules/unictype/property-ideographic-tests (Files): Likewise.
72194         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
72195         * modules/unictype/property-ids-trinary-operator-tests (Files):
72196         Likewise.
72197         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
72198         * modules/unictype/property-iso-control-tests (Files): Likewise.
72199         * modules/unictype/property-join-control-tests (Files): Likewise.
72200         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
72201         * modules/unictype/property-line-separator-tests (Files): Likewise.
72202         * modules/unictype/property-logical-order-exception-tests (Files):
72203         Likewise.
72204         * modules/unictype/property-lowercase-tests (Files): Likewise.
72205         * modules/unictype/property-math-tests (Files): Likewise.
72206         * modules/unictype/property-non-break-tests (Files): Likewise.
72207         * modules/unictype/property-not-a-character-tests (Files): Likewise.
72208         * modules/unictype/property-numeric-tests (Files): Likewise.
72209         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
72210         * modules/unictype/property-other-default-ignorable-code-point-tests
72211         (Files): Likewise.
72212         * modules/unictype/property-other-grapheme-extend-tests (Files):
72213         Likewise.
72214         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
72215         * modules/unictype/property-other-id-start-tests (Files): Likewise.
72216         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
72217         * modules/unictype/property-other-math-tests (Files): Likewise.
72218         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
72219         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
72220         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
72221         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
72222         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
72223         * modules/unictype/property-private-use-tests (Files): Likewise.
72224         * modules/unictype/property-punctuation-tests (Files): Likewise.
72225         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
72226         * modules/unictype/property-radical-tests (Files): Likewise.
72227         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
72228         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
72229         * modules/unictype/property-space-tests (Files): Likewise.
72230         * modules/unictype/property-terminal-punctuation-tests (Files):
72231         Likewise.
72232         * modules/unictype/property-test-tests (Files): Likewise.
72233         * modules/unictype/property-titlecase-tests (Files): Likewise.
72234         * modules/unictype/property-unassigned-code-value-tests (Files):
72235         Likewise.
72236         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
72237         * modules/unictype/property-uppercase-tests (Files): Likewise.
72238         * modules/unictype/property-variation-selector-tests (Files): Likewise.
72239         * modules/unictype/property-white-space-tests (Files): Likewise.
72240         * modules/unictype/property-xid-continue-tests (Files): Likewise.
72241         * modules/unictype/property-xid-start-tests (Files): Likewise.
72242         * modules/unictype/property-zero-width-tests (Files): Likewise.
72243         * modules/unictype/scripts-tests (Files): Likewise.
72244         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
72245         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
72246         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
72247         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
72248         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
72249         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
72250         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
72251         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
72252         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
72253         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
72254         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
72255         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
72256         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
72257         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
72258         * modules/uninorm/composition-tests (Files): Likewise.
72259         * modules/uninorm/decomposing-form-tests (Files): Likewise.
72260         * modules/uninorm/decomposition-tests (Files): Likewise.
72261         * modules/uninorm/filter-tests (Files): Likewise.
72262         * modules/uninorm/nfc-tests (Files): Likewise.
72263         * modules/uninorm/nfd-tests (Files): Likewise.
72264         * modules/uninorm/nfkc-tests (Files): Likewise.
72265         * modules/uninorm/nfkd-tests (Files): Likewise.
72266         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
72267         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
72268         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
72269         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
72270         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
72271         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
72272         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
72273         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72274         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
72275         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
72276         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
72277         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
72278         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72279         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
72280         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
72281         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
72282         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
72283         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72284         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
72285         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
72286         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
72287         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
72288         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72289         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
72290         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
72291         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
72292         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
72293         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
72294         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
72295         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
72296         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
72297         * modules/uniwidth/u8-width-tests (Files): Likewise.
72298         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
72299         * modules/uniwidth/u16-width-tests (Files): Likewise.
72300         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
72301         * modules/uniwidth/u32-width-tests (Files): Likewise.
72302         * modules/uniwidth/width-tests (Files): Likewise.
72303         * modules/unlink-tests (Files): Likewise.
72304         * modules/unsetenv-tests (Files): Likewise.
72305         * modules/usleep-tests (Files): Likewise.
72306         * modules/utimens-tests (Files): Likewise.
72307         * modules/utimensat-tests (Files): Likewise.
72308         * modules/vasnprintf-posix-tests (Files): Likewise.
72309         * modules/vasnprintf-tests (Files): Likewise.
72310         * modules/vasprintf-posix-tests (Files): Likewise.
72311         * modules/vasprintf-tests (Files): Likewise.
72312         * modules/vdprintf-posix-tests (Files): Likewise.
72313         * modules/vfprintf-posix-tests (Files): Likewise.
72314         * modules/vprintf-posix-tests (Files): Likewise.
72315         * modules/vsnprintf-posix-tests (Files): Likewise.
72316         * modules/vsnprintf-tests (Files): Likewise.
72317         * modules/vsprintf-posix-tests (Files): Likewise.
72318         * modules/wcrtomb-tests (Files): Likewise.
72319         * modules/wcsnrtombs-tests (Files): Likewise.
72320         * modules/wcsrtombs-tests (Files): Likewise.
72321         * modules/wctype-tests (Files): Likewise.
72322         * modules/wcwidth-tests (Files): Likewise.
72323         * modules/xmemdup0-tests (Files): Likewise.
72324         * modules/xprintf-posix-tests (Files): Likewise.
72325         * modules/xvasprintf-tests (Files): Likewise.
72327 2009-12-24  Eric Blake  <ebb9@byu.net>
72329         test-nanosleep: fix typo
72330         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
72331         patch.
72332         Reported by Bruno Haible.
72334 2009-12-24  Bruno Haible  <bruno@clisp.org>
72336         Reduce namespace pollution on glibc systems.
72337         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
72338         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
72339         systems.
72340         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
72341         <getopt.h> on glibc systems.
72342         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
72343         systems.
72344         * lib/fcntl.c: Include <unistd.h> here instead.
72346 2009-12-24  Bruno Haible  <bruno@clisp.org>
72348         * lib/stdlib.in.h (includes): Fix typo in today's commit.
72350 2009-12-24  Eric Blake  <ebb9@byu.net>
72352         tests: add signature checks
72353         * tests/signature.h (SIGNATURE_CHECK): New file.
72354         * modules/atexit-tests (Files): Use it.
72355         * modules/btowc-tests (Files): Likewise.
72356         * modules/canonicalize-lgpl-tests (Files): Likewise.
72357         * modules/ceilf-tests (Files): Likewise.
72358         * modules/ceill-tests (Files): Likewise.
72359         * modules/chown-tests (Files): Likewise.
72360         * modules/dprintf-posix-tests (Files): Likewise.
72361         * modules/dup2-tests (Files): Likewise.
72362         * modules/dup3-tests (Files): Likewise.
72363         * modules/duplocale-tests (Files): Likewise.
72364         * modules/fchdir-tests (Files): Likewise.
72365         * modules/fcntl-tests (Files): Likewise.
72366         * modules/fdopendir-tests (Files): Likewise.
72367         * modules/fflush-tests (Files): Likewise.
72368         * modules/flock-tests (Files): Likewise.
72369         * modules/floorf-tests (Files): Likewise.
72370         * modules/floorl-tests (Files): Likewise.
72371         * modules/fnmatch-tests (Files): Likewise.
72372         * modules/fopen-tests (Files): Likewise.
72373         * modules/fprintf-posix-tests (Files): Likewise.
72374         * modules/freopen-tests (Files): Likewise.
72375         * modules/frexp-nolibm-tests (Files): Likewise.
72376         * modules/frexp-tests (Files): Likewise.
72377         * modules/frexpl-nolibm-tests (Files): Likewise.
72378         * modules/frexpl-tests (Files): Likewise.
72379         * modules/fseek-tests (Files): Likewise.
72380         * modules/fseeko-tests (Files): Likewise.
72381         * modules/fsync-tests (Files): Likewise.
72382         * modules/ftell-tests (Files): Likewise.
72383         * modules/ftello-tests (Files): Likewise.
72384         * modules/futimens-tests (Files): Likewise.
72385         * modules/getaddrinfo-tests (Files): Likewise.
72386         * modules/getcwd-tests (Files): Likewise.
72387         * modules/getdelim-tests (Files): Likewise.
72388         * modules/getdtablesize-tests (Files): Likewise.
72389         * modules/getgroups-tests (Files): Likewise.
72390         * modules/gethostname-tests (Files): Likewise.
72391         * modules/getline-tests (Files): Likewise.
72392         * modules/getopt-posix-tests (Files): Likewise.
72393         * modules/gettimeofday-tests (Files): Likewise.
72394         * modules/glob-tests (Files): Likewise.
72395         * modules/iconv-tests (Files): Likewise.
72396         * modules/inet_ntop-tests (Files): Likewise.
72397         * modules/inet_pton-tests (Files): Likewise.
72398         * modules/isblank-tests (Files): Likewise.
72399         * modules/lchown-tests (Files): Likewise.
72400         * modules/ldexpl-tests (Files): Likewise.
72401         * modules/link-tests (Files): Likewise.
72402         * modules/linkat-tests (Files): Likewise.
72403         * modules/lseek-tests (Files): Likewise.
72404         * modules/lstat-tests (Files): Likewise.
72405         * modules/mbrtowc-tests (Files): Likewise.
72406         * modules/mbsinit-tests (Files): Likewise.
72407         * modules/mbsnrtowcs-tests (Files): Likewise.
72408         * modules/mbsrtowcs-tests (Files): Likewise.
72409         * modules/memchr-tests (Files): Likewise.
72410         * modules/memcmp-tests (Files): Likewise.
72411         * modules/memmem-tests (Files): Likewise.
72412         * modules/memrchr-tests (Files): Likewise.
72413         * modules/mkdir-tests (Files): Likewise.
72414         * modules/mkfifo-tests (Files): Likewise.
72415         * modules/mkfifoat-tests (Files): Likewise.
72416         * modules/mknod-tests (Files): Likewise.
72417         * modules/nanosleep-tests (Files): Likewise.
72418         * modules/nl_langinfo-tests (Files): Likewise.
72419         * modules/obstack-printf-tests (Files): Likewise.
72420         * modules/open-tests (Files): Likewise.
72421         * modules/openat-tests (Files): Likewise.
72422         * modules/perror-tests (Files): Likewise.
72423         * modules/pipe2-tests (Files): Likewise.
72424         * modules/poll-tests (Files): Likewise.
72425         * modules/popen-tests (Files): Likewise.
72426         * modules/posix_spawn-tests (Files): Likewise.
72427         * modules/posix_spawnp-tests (Files): Likewise.
72428         * modules/pread-tests (Files): Likewise.
72429         * modules/printf-posix-tests (Files): Likewise.
72430         * modules/pty-tests (Files): Likewise.
72431         * modules/random_r-tests (Files): Likewise.
72432         * modules/rawmemchr-tests (Files): Likewise.
72433         * modules/readlink-tests (Files): Likewise.
72434         * modules/remove-tests (Files): Likewise.
72435         * modules/rename-tests (Files): Likewise.
72436         * modules/renameat-tests (Files): Likewise.
72437         * modules/rmdir-tests (Files): Likewise.
72438         * modules/round-tests (Files): Likewise.
72439         * modules/roundf-tests (Files): Likewise.
72440         * modules/roundl-tests (Files): Likewise.
72441         * modules/select-tests (Files): Likewise.
72442         * modules/setenv-tests (Files): Likewise.
72443         * modules/sigaction-tests (Files): Likewise.
72444         * modules/sleep-tests (Files): Likewise.
72445         * modules/snprintf-posix-tests (Files): Likewise.
72446         * modules/snprintf-tests (Files): Likewise.
72447         * modules/sprintf-posix-tests (Files): Likewise.
72448         * modules/stat-tests (Files): Likewise.
72449         * modules/strcasestr-tests (Files): Likewise.
72450         * modules/strchrnul-tests (Files): Likewise.
72451         * modules/strerror-tests (Files): Likewise.
72452         * modules/strsignal-tests (Files): Likewise.
72453         * modules/strstr-tests (Files): Likewise.
72454         * modules/strtod-tests (Files): Likewise.
72455         * modules/strverscmp-tests (Files): Likewise.
72456         * modules/symlink-tests (Files): Likewise.
72457         * modules/symlinkat-tests (Files): Likewise.
72458         * modules/times-tests (Files): Likewise.
72459         * modules/trunc-tests (Files): Likewise.
72460         * modules/truncf-tests (Files): Likewise.
72461         * modules/truncl-tests (Files): Likewise.
72462         * modules/tsearch-tests (Files): Likewise.
72463         * modules/uname-tests (Files): Likewise.
72464         * modules/unlink-tests (Files): Likewise.
72465         * modules/unsetenv-tests (Files): Likewise.
72466         * modules/usleep-tests (Files): Likewise.
72467         * modules/utimensat-tests (Files): Likewise.
72468         * modules/vasprintf-tests (Files): Likewise.
72469         * modules/vdprintf-posix-tests (Files): Likewise.
72470         * modules/vfprintf-posix-tests (Files): Likewise.
72471         * modules/vprintf-posix-tests (Files): Likewise.
72472         * modules/vsnprintf-posix-tests (Files): Likewise.
72473         * modules/vsnprintf-tests (Files): Likewise.
72474         * modules/vsprintf-posix-tests (Files): Likewise.
72475         * modules/wcrtomb-tests (Files): Likewise.
72476         * modules/wcsnrtombs-tests (Files): Likewise.
72477         * modules/wcsrtombs-tests (Files): Likewise.
72478         * modules/wcwidth-tests (Files): Likewise.
72479         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
72480         * tests/test-isinf.c (isinf): Likewise.
72481         * tests/test-isnan.c (isnan): Likewise.
72482         * tests/test-signbit.c (signbit): Likewise.
72483         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
72484         declaration, either as macro or with correct signature.
72485         (select): Ensure function under test is declared with correct
72486         signature in correct header.
72487         * tests/test-atexit.c (atexit): Likewise.
72488         * tests/test-btowc.c (btowc): Likewise.
72489         * tests/test-canonicalize-lgpl.c (realpath)
72490         (canonicalize_file_name): Likewise.
72491         * tests/test-ceilf1.c (ceilf): Likewise.
72492         * tests/test-ceill.c (ceill): Likewise.
72493         * tests/test-chown.c (chown): Likewise.
72494         * tests/test-dprintf-posix.c (dprintf): Likewise.
72495         * tests/test-dup2.c (dup2): Likewise.
72496         * tests/test-dup3.c (dup3): Likewise.
72497         * tests/test-duplocale.c (duplocale): Likewise.
72498         * tests/test-fchdir.c (fchdir): Likewise.
72499         * tests/test-fchownat.c (fchownat): Likewise.
72500         * tests/test-fcntl.c (fcntl): Likewise.
72501         * tests/test-fdopendir.c (fdopendir): Likewise.
72502         * tests/test-fflush.c (fflush): Likewise.
72503         * tests/test-flock.c (flock): Likewise.
72504         * tests/test-floorf1.c (floorf): Likewise.
72505         * tests/test-floorl.c (floorl): Likewise.
72506         * tests/test-fnmatch.c (fnmatch): Likewise.
72507         * tests/test-fopen.c (fopen): Likewise.
72508         * tests/test-fprintf-posix.c (fprintf): Likewise.
72509         * tests/test-freopen.c (freopen): Likewise.
72510         * tests/test-frexp.c (frexp): Likewise.
72511         * tests/test-frexpl.c (frexpl): Likewise.
72512         * tests/test-fseek.c (fseek): Likewise.
72513         * tests/test-fseeko.c (fseeko): Likewise.
72514         * tests/test-fstatat.c (fstatat): Likewise.
72515         * tests/test-fsync.c (fsync): Likewise.
72516         * tests/test-ftell.c (ftell): Likewise.
72517         * tests/test-ftello.c (ftello): Likewise.
72518         * tests/test-futimens.c (futimens): Likewise.
72519         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
72520         (gai_strerror): Likewise.
72521         * tests/test-getcwd.c (getcwd): Likewise.
72522         * tests/test-getdelim.c (getdelim): Likewise.
72523         * tests/test-getdtablesize.c (getdtablesize): Likewise.
72524         * tests/test-getgroups.c (getgroups): Likewise.
72525         * tests/test-gethostname.c (gethostname): Likewise.
72526         * tests/test-getline.c (getline): Likewise.
72527         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
72528         Likewise.
72529         * tests/test-gettimeofday.c (gettimeofday): Likewise.
72530         * tests/test-glob.c (glob, globfree): Likewise.
72531         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
72532         * tests/test-inet_ntop.c (inet_ntop): Likewise.
72533         * tests/test-inet_pton.c (inet_pton): Likewise.
72534         * tests/test-isblank.c (isblank): Likewise.
72535         * tests/test-lchown.c (lchown): Likewise.
72536         * tests/test-ldexpl.c (ldexpl): Likewise.
72537         * tests/test-link.c (link): Likewise.
72538         * tests/test-linkat.c (linkat): Likewise.
72539         * tests/test-lseek.c (lseek): Likewise.
72540         * tests/test-lstat.c (lstat): Likewise.
72541         * tests/test-mbrtowc.c (mbrtowc): Likewise.
72542         * tests/test-mbsinit.c (mbsinit): Likewise.
72543         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
72544         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
72545         * tests/test-memchr.c (memchr): Likewise.
72546         * tests/test-memcmp.c (memcmp): Likewise.
72547         * tests/test-memmem.c (memmem): Likewise.
72548         * tests/test-memrchr.c (memrchr): Likewise.
72549         * tests/test-mkdir.c (mkdir): Likewise.
72550         * tests/test-mkdirat.c (mkdirat): Likewise.
72551         * tests/test-mkfifo.c (mkfifo): Likewise.
72552         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
72553         * tests/test-mknod.c (mknod): Likewise.
72554         * tests/test-nanosleep.c (nanosleep): Likewise.
72555         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
72556         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
72557         Likewise.
72558         * tests/test-open.c (open): Likewise.
72559         * tests/test-openat.c (openat): Likewise.
72560         * tests/test-perror.c (perror): Likewise.
72561         * tests/test-pipe2.c (pipe2): Likewise.
72562         * tests/test-poll.c (poll): Likewise.
72563         * tests/test-popen.c (popen, pclose): Likewise.
72564         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
72565         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
72566         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
72567         (posix_spawn_file_actions_destroy)
72568         (posix_spawn_file_actions_addclose)
72569         (posix_spawn_file_actions_addopen)
72570         (posix_spawn_file_actions_adddup2): Likewise.
72571         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
72572         * tests/test-pread.c (pread): Likewise.
72573         * tests/test-printf-posix.c (printf): Likewise.
72574         * tests/test-pty.c (openpty, forkpty): Likewise.
72575         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
72576         (random_r): Likewise.
72577         * tests/test-rawmemchr.c (rawmemchr): Likewise.
72578         * tests/test-readlink.c (readlink): Likewise.
72579         * tests/test-remove.c (remove): Likewise.
72580         * tests/test-rename.c (rename): Likewise.
72581         * tests/test-renameat.c (renameat): Likewise.
72582         * tests/test-rmdir.c (rmdir): Likewise.
72583         * tests/test-round1.c (round): Likewise.
72584         * tests/test-roundf1.c (roundf): Likewise.
72585         * tests/test-roundl.c (roundl): Likewise.
72586         * tests/test-setenv.c (setenv): Likewise.
72587         * tests/test-sigaction.c (sigaction): Likewise.
72588         * tests/test-sleep.c (sleep): Likewise.
72589         * tests/test-snprintf.c (snprintf): Likewise.
72590         * tests/test-sprintf-posix.c (sprintf): Likewise.
72591         * tests/test-stat.c (stat): Likewise.
72592         * tests/test-stpncpy.c (stpncpy): Likewise.
72593         * tests/test-strcasestr.c (strcasestr): Likewise.
72594         * tests/test-strchrnul.c (strchrnul): Likewise.
72595         * tests/test-strerror.c (strerror): Likewise.
72596         * tests/test-strsignal.c (strsignal): Likewise.
72597         * tests/test-strstr.c (strstr): Likewise.
72598         * tests/test-strtod.c (strtod): Likewise.
72599         * tests/test-strverscmp.c (strverscmp): Likewise.
72600         * tests/test-symlink.c (symlink): Likewise.
72601         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
72602         * tests/test-times.c (times): Likewise.
72603         * tests/test-trunc1.c (trunc): Likewise.
72604         * tests/test-truncf1.c (truncf): Likewise.
72605         * tests/test-truncl.c (truncl): Likewise.
72606         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
72607         Likewise.
72608         * tests/test-uname.c (uname): Likewise.
72609         * tests/test-unlink.c (unlink): Likewise.
72610         * tests/test-unlinkat.c (unlinkat): Likewise.
72611         * tests/test-unsetenv.c (unsetenv): Likewise.
72612         * tests/test-usleep.c (usleep): Likewise.
72613         * tests/test-utimensat.c (utimensat): Likewise.
72614         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
72615         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
72616         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
72617         * tests/test-vprintf-posix.c (vprintf): Likewise.
72618         * tests/test-vsnprintf.c (vsnprintf): Likewise.
72619         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
72620         * tests/test-wcrtomb.c (wcrtomb): Likewise.
72621         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
72622         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
72623         * tests/test-wcwidth.c (wcwidth): Likewise.
72625         build: pull in conditional headers during GNULIB_POSIXCHECK
72626         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
72627         definitions from any conditionally-included headers.
72628         * lib/stdlib.in.h (includes): Likewise.
72629         * lib/unistd.in.h (includes): Likewise.
72631 2009-12-24  Bruno Haible  <bruno@clisp.org>
72633         * tests/test-argv-iter.c: Include header file being tested immediately
72634         after config.h.
72635         * tests/test-base64.c: Likewise.
72636         * tests/test-flock.c: Likewise.
72637         * tests/test-fsync.c: Likewise.
72638         * tests/test-getdate.c: Likewise.
72639         * tests/test-getndelim2.c: Likewise.
72640         * tests/test-isfinite.c: Likewise.
72641         * tests/test-isinf.c: Likewise.
72642         * tests/test-strerror.c: Likewise.
72643         * tests/test-strsignal.c: Likewise.
72645 2009-12-23  Eric Blake  <ebb9@byu.net>
72647         unistd: work around cygwin bug
72648         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
72649         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
72650         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72652 2009-12-23  Bruno Haible  <bruno@clisp.org>
72654         localename: More tests.
72655         * tests/test-localename.c (SIZEOF): New macro.
72656         (categories): New variable.
72657         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
72658         test_locale_name_default): Add test w.r.t. thread locale.
72659         (test_locale_name_thread): New function.
72660         (main): Invoke it.
72662         localename: Make aware of thread locale.
72663         * lib/localename.h (gl_locale_name_thread): New declaration.
72664         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
72665         behaviour with respect to thread locale.
72666         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72667         <langinfo.h>, glthread/lock.h.
72668         (SIZE_BITS): New macro.
72669         (string_hash): New function.
72670         (struct hash_node): New type.
72671         (HASH_TABLE_SIZE): New macro.
72672         (struniq_hash_table, struniq_lock): New variables.
72673         (struniq): New function.
72674         (gl_locale_name_thread): New function.
72675         (gl_locale_name): Invoke it.
72676         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72677         * modules/localename (Depends-on): Add lock.
72678         Reported by Mike Gran <spk121@yahoo.com>.
72680 2009-12-23  Eric Blake  <ebb9@byu.net>
72682         va-args: new module
72683         * modules/va-args: New file.
72684         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72685         * MODULES.html.sh (Core language properties): Mention it.
72687         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72688         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72689         named alias for __attribute__((__unused__)).
72690         * lib/chown.c: Update client.
72691         * lib/fchmodat.c: Likewise.
72692         * lib/fts.c: Likewise.
72693         * lib/getdate.y: Likewise.
72694         * lib/getgroups.c: Likewise.
72695         * lib/getopt.c: Likewise.
72696         * lib/getugroups.c: Likewise.
72697         * lib/mkdir.c: Likewise.
72698         * lib/mkfifo.c: Likewise.
72699         * lib/mkfifoat.c: Likewise.
72700         * lib/mknod.c: Likewise.
72701         * lib/mknodat.c: Likewise.
72702         * lib/readlink.c: Likewise.
72703         * lib/se-context.in.h: Likewise.
72704         * lib/se-selinux.in.h: Likewise.
72705         * lib/sockets.c: Likewise.
72706         * lib/symlink.c: Likewise.
72707         * lib/symlinkat.c: Likewise.
72708         * lib/unicodeio.c: Likewise.
72709         * lib/unistr.h: Likewise.
72710         * tests/test-areadlink.c: Likewise.
72711         * tests/test-areadlinkat.c: Likewise.
72712         * tests/test-filenamecat.c: Likewise.
72713         * tests/test-fseeko.c: Likewise.
72714         * tests/test-ftello.c: Likewise.
72715         * tests/test-getdate.c: Likewise.
72716         * tests/test-getgroups.c: Likewise.
72717         * tests/test-gethostname.c: Likewise.
72718         * tests/test-quotearg.c: Likewise.
72719         * tests/test-version-etc.c: Likewise.
72720         * tests/test-xalloc-die.c: Likewise.
72721         * tests/test-xfprintf-posix.c: Likewise.
72722         * tests/test-xprintf-posix.c: Likewise.
72723         * tests/test-xvasprintf.c: Likewise.
72725         tests: avoid compiler warnings
72726         * tests/test-fcntl.c (main): Delete unused parameters.
72727         * tests/test-freopen-safer.c (main): Likewise.
72728         * tests/test-xalloc-die.c (main): Mark unused parameters.
72729         * tests/test-fseeko.c (main): Likewise.
72730         * tests/test-ftello.c (main): Likewise.
72731         * tests/test-nanosleep.c (main): Avoid declaration warning.
72732         * tests/test-sleep.c (main): Likewise.
72733         * tests/test-unsetenv.c (main): Silence warning about string
72734         literal.
72735         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
72737 2009-12-23  Bruno Haible  <bruno@clisp.org>
72739         * tests/test-localename.c (test_locale_name): New function, extracted
72740         from main. Also test mixed situations.
72741         (test_locale_name_posix, test_locale_name_environ,
72742         test_locale_name_default): New functions.
72743         (main): Invoke them all.
72744         * modules/localename-tests (configure.ac): Test for newlocale.
72746 2009-12-23  Bruno Haible  <bruno@clisp.org>
72748         unistd: Ensure getcwd gets declared before being overridden.
72749         * lib/unistd.in.h: Conditionally include <io.h>.
72751 2009-12-22  Bruno Haible  <bruno@clisp.org>
72753         wchar: Diagnose broken combination of glibc and gcc versions and flags.
72754         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
72755         (gl_WCHAR_H): Invoke it.
72756         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
72757         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
72758         Reported by Karl Berry <karl@freefriends.org>.
72760 2009-12-22  Eric Blake  <ebb9@byu.net>
72762         math, unistd: avoid redundant includes
72763         * lib/math.in.h (isnan): No need to re-include <math.h>.
72764         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
72766         getsubopt: work around cygwin bug
72767         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
72768         avoid conflicting with system getsubopt.
72769         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
72770         bug.
72772         getopt: synchronize from glibc
72773         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
72774         parameter order.  Adjust all callers.
72775         (_getopt_internal_r, main): Adjust quoting in error messages.
72776         Drop considerations for outdated POSIX 1003.2 error message.
72777         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
72778         callers.
72779         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
72781         test-getopt: test stderr behavior
72782         * modules/getopt-posix-tests (Depends-on): Add dup2.
72783         * tests/test-getopt.c (ASSERT): Avoid stderr.
72784         (main): Move stderr to a temporary file.
72785         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
72786         Instead, add parameter to inform caller if output occurred.
72787         (test_getopt): Adjust all existing tests to expect silence, and
72788         add new tests of leading ":".
72789         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72790         glibc shortcomings with leading "-:" or "+:" in optstring.
72791         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72792         Likewise.
72793         * doc/posix-functions/getopt.texi (getopt): Likewise.
72795         test-getopt: enhance test
72796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
72797         supports optind=0.
72798         * tests/test-getopt.c (OPTIND_MIN): Move...
72799         * tests/test-getopt.h (OPTIND_MIN): ...here.
72800         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
72801         Require that optind=0 works, since modern BSD supports it in
72802         addition to optreset, and since coreutils expects it.
72803         (test_getopt_long_only): New test.
72804         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72805         glibc shortcomings with 'W;', and enforcement of optind=0.
72806         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72807         Likewise.
72809 2009-12-21  Bruno Haible  <bruno@clisp.org>
72811         localename: Improvements for MacOS X and Cygwin.
72812         * lib/localename.h (gl_locale_name_environ): New declaration.
72813         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72814         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72815         (gl_locale_name_posix): Invoke it.
72816         (gl_locale_name_default): Add comments. Use Windows native API also on
72817         Cygwin.
72819 2009-12-21  Bruno Haible  <bruno@clisp.org>
72821         Update list of Win32 locale ids.
72822         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72823         (LANG_SAMI): Renamed from LANG_SAAMI.
72824         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72825         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72826         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72827         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72828         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72829         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72830         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72831         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72832         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72833         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72834         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72835         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72836         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72837         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72838         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72839         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72840         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72841         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72842         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72843         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72844         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72845         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72846         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72847         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72848         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72849         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72850         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72851         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72852         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72853         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72854         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72855         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72856         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72857         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72858         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72859         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72860         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72861         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72862         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72863         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72864         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72865         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72866         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72867         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72868         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72869         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72870         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72871         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72872         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72873         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72874         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72875         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72876         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72877         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72878         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72879         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72880         Add more languages and countries for Sami, Sorbian. Add more countries
72881         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72882         for Pashto. Change country for Syriac, Tswana.
72884 2009-12-21  Eric Blake  <ebb9@byu.net>
72886         test-utimens: avoid spurious failure
72887         * tests/test-chown.h (nap): Factor...
72888         * tests/nap.h: ...into new file.
72889         * tests/test-lchown.h (nap): Avoid duplication.
72890         * tests/test-utimens-common.h (nap): Use shared implementation,
72891         necessary on file systems with 1-second resolution.
72892         * modules/chown-tests (Files): Include new file.
72893         * modules/fdutimensat-tests (Files): Likewise.
72894         * modules/futimens-tests (Files): Likewise.
72895         * modules/lchown-tests (Files): Likewise.
72896         * modules/openat-tests (Files): Likewise.
72897         * modules/utimens-tests (Files): Likewise.
72898         * modules/utimensat-tests (Files): Likewise.
72900 2009-12-19  Eric Blake  <ebb9@byu.net>
72902         futimens, utimensat: work around Linux bug
72903         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72904         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72905         * lib/utimensat.c (rpl_utimensat): Work around it.
72906         * lib/futimens.c (rpl_futimens): Adjust comment.
72908         utimens: work around Linux ctime bug
72909         * lib/utimens.c (detect_ctime_bug): New helper function.
72910         (update_timespec): Differentiate between workaround needed for
72911         this bug vs. what is needed for systems that lack utimensat.
72912         (fdutimens, lutimens): Work around bug.
72914         utimens: check for ctime update
72915         * tests/test-utimens-common.h (check_ctime): Define.
72916         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72917         * tests/test-futimens.h (test_futimens): Likewise.
72918         * tests/test-lutimens.h (test_lutimens): Likewise.
72919         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72920         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72922 2009-12-19  Bruno Haible  <bruno@clisp.org>
72924         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72925         * tests/test-dprintf-posix2.sh: New file.
72926         * tests/test-dprintf-posix2.c: New file.
72927         * modules/dprintf-posix-tests (Files): Add them.
72928         (configure.ac): Check for getrlimit and setrlimit.
72929         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72931 2009-12-19  Bruno Haible  <bruno@clisp.org>
72933         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72934         * tests/test-fprintf-posix3.sh: New file.
72935         * tests/test-fprintf-posix3.c: New file.
72936         * modules/fprintf-posix-tests (Files): Add them.
72937         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72939 2009-12-19  Eric Blake  <ebb9@byu.net>
72941         dirfd: fix prototype
72942         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72943         * lib/dirfd.c (dirfd): Likewise.
72945         canonicalize: reduce memory usage
72946         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72947         allocation to size.
72948         Reported by Solar Designer <solar@openwall.com>.
72950 2009-12-19  Bruno Haible  <bruno@clisp.org>
72952         New module attribute 'Applicability'.
72953         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72954         * gnulib-tool: New option --extract-applicability.
72955         (func_usage): Document it.
72956         (sed_extract_prog): Recognize it.
72957         (func_get_applicability): New function.
72958         (func_import): Generalize handling of 'link-warning' module.
72959         * modules/link-warning (Applicability): New section.
72960         * modules/arg-nonnull (Applicability): New section.
72961         Repoted by Simon Josefsson <simon@josefsson.org>.
72963 2009-12-19  Bruno Haible  <bruno@clisp.org>
72965         fflush: tweak
72966         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72967         * lib/fseeko.c (rpl_fseeko): Likewise.
72969 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72971         * lib/gl_list.h: Fix typo in comment.
72973 2009-12-16  Eric Blake  <ebb9@byu.net>
72975         fcntl: use to simplify other modules
72976         * modules/cloexec (Depends-on): Add fcntl.
72977         * modules/fchdir (Depends-on): Likewise.
72978         * modules/fd-safer-flag (Depends-on): Likewise.
72979         * modules/unistd-safer (Depends-on): Likewise.
72980         * modules/dup3 (configure.ac): Set module indicator.
72981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72982         missing.
72983         * lib/fchdir.c (_gl_register_dup): Fix comment.
72984         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72985         * lib/dup-safer.c (dup_safer): Likewise.
72986         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72987         * lib/dup3.c (dup3): Likewise.
72988         * tests/test-fchdir.c (main): Enhance test.
72989         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72991         fcntl: port portions of fcntl to mingw
72992         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72993         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72994         replacement for mingw.
72995         * modules/fcntl (Description): Update.
72996         (Depends-on): Add dup2.
72997         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72998         * modules/fcntl-h (Makefile.am): Substitute it.
72999         * lib/fcntl.in.h (fcntl): Update declaration.
73000         (F_DUPFD, F_GETFD): New macros, when needed.
73001         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73002         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
73003         * tests/test-fcntl.c (check_flags, main): Enhance test for items
73004         we now guarantee.
73006         fcntl: work around cygwin bug in F_DUPFD
73007         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
73008         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
73009         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
73010         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
73011         * doc/posix-functions/fcntl.texi (fcntl): Document it.
73013         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
73014         * modules/fcntl (Files): List new files.
73015         (configure.ac): Run a test.
73016         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
73017         * lib/fcntl.c (rpl_fcntl): Likewise.
73018         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
73019         (gl_FCNTL_H): Always replace fcntl.h.
73020         * modules/fcntl-h (Makefile.am): Substitute witnesses.
73021         * lib/fcntl.in.h (fcntl): Declare replacement.
73022         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
73023         needed, plus a witness.
73024         * doc/posix-functions/fcntl.texi (fcntl): Document this.
73025         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
73026         * tests/test-fcntl.c: New file.
73027         * modules/fcntl-tests: Likewise.
73029         binary-io: avoid potential compilation warning
73030         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
73031         directives.
73033         fflush: avoid compilation error on NetBSD
73034         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
73035         between off_t and fpos_t, since the latter is sometimes a struct.
73036         * lib/fseeko.c (rpl_fseeko): Likewise.
73037         Reported by Alexander Nasonov <alnsn@yandex.ru>.
73039 2009-12-15  Eric Blake  <ebb9@byu.net>
73041         fcntl-h, stdio, sys_ioctl: fix declarations
73042         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
73043         function must not take arguments.
73044         * lib/sys_ioctl.in.h (ioctl): Likewise.
73045         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
73046         (open): Add a link warning.
73048 2009-12-15  Jim Meyering  <meyering@redhat.com>
73050         areadlink, areadlink-with-size: relax license to LGPLv2+
73051         * modules/areadlink (License): Relax to LGPLv2+.
73052         * modules/areadlink-with-size (License): Likewise.
73054 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
73055             Bruno Haible  <bruno@clisp.org>
73057         *printf: Fix memory leak.
73058         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
73059         * lib/vfprintf.c (vfprintf): Likewise.
73060         * lib/dprintf.c (dprintf): Likewise.
73061         * lib/vdprintf.c (vdprintf): Likewise.
73063 2009-12-14  Eric Blake  <ebb9@byu.net>
73065         accept4: adjust module dependencies
73066         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
73068         utimens: one more try at avoiding compiler warning
73069         * lib/utimens.c (lutimens): Lower scope of result.
73071 2009-12-13  Bruno Haible  <bruno@clisp.org>
73073         Move the malloc checking from module 'list' to new module 'xlist'.
73074         * modules/xlist: New file.
73075         * lib/gl_xlist.h: New file.
73076         * lib/gl_xlist.c: New file.
73077         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
73078         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
73079         gl_list_add_last, gl_list_add_before, gl_list_add_after,
73080         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
73081         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
73082         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
73083         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
73084         gl_sortedlist_nx_add): New declarations.
73085         (struct gl_list_implementation): Rename and change methods accordingly.
73086         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
73087         (gl_list_nx_create): Renamed from gl_list_create.
73088         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73089         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73090         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73091         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73092         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73093         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73094         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73095         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73096         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
73097         gl_list_create_empty.
73098         (gl_list_nx_create): Renamed from gl_list_create.
73099         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73100         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73101         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73102         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73103         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73104         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73105         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73106         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73107         * lib/gl_array_list.c: Don't include xalloc.h.
73108         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
73109         NULL upon out-of-memory.
73110         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
73111         out-of-memory.
73112         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
73113         Change return type to 'int'.
73114         (gl_array_nx_set_at): Renamed from gl_array_set_at.
73115         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73116         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
73117         upon out-of-memory.
73118         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
73119         upon out-of-memory.
73120         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
73121         upon out-of-memory.
73122         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
73123         upon out-of-memory.
73124         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
73125         out-of-memory.
73126         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
73127         Update.
73128         (gl_array_list_implementation): Update.
73129         * lib/gl_carray_list.c: Don't include xalloc.h.
73130         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
73131         Return NULL upon out-of-memory.
73132         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
73133         out-of-memory.
73134         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
73135         Change return type to 'int'.
73136         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
73137         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73138         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
73139         upon out-of-memory.
73140         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
73141         upon out-of-memory.
73142         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
73143         out-of-memory.
73144         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
73145         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
73146         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
73147         Update.
73148         (gl_carray_list_implementation): Update.
73149         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
73150         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
73151         gl_linked_create_empty. Return NULL upon out-of-memory.
73152         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
73153         out-of-memory.
73154         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
73155         Change return type to 'int'. Return -1 upon out-of-memory.
73156         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
73157         out-of-memory.
73158         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
73159         upon out-of-memory.
73160         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
73161         upon out-of-memory.
73162         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
73163         NULL upon out-of-memory.
73164         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
73165         upon out-of-memory.
73166         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
73167         out-of-memory.
73168         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
73169         Update.
73170         * lib/gl_linked_list.c: Don't include xalloc.h.
73171         (gl_linked_list_implementation): Update.
73172         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
73173         (add_to_bucket): Change return type to 'int'.
73174         (gl_linkedhash_list_implementation): Update.
73175         * lib/gl_anytree_list1.h (free_subtree): New function.
73176         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
73177         gl_tree_create_empty. Return NULL upon out-of-memory.
73178         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
73179         Change return type to 'int'. Return -1 upon out-of-memory.
73180         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
73181         out-of-memory.
73182         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
73183         (gl_tree_remove_node): New function, moved here from
73184         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
73185         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
73186         Update.
73187         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
73188         malloc, not xmalloc. Return NULL upon out-of-memory.
73189         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73190         out-of-memory.
73191         (gl_tree_remove_node_from_tree): New function, extracted from
73192         gl_tree_remove_node.
73193         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73194         upon out-of-memory.
73195         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73196         out-of-memory.
73197         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73198         upon out-of-memory.
73199         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73200         upon out-of-memory.
73201         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73202         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
73203         not xmalloc. Return NULL upon out-of-memory.
73204         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73205         out-of-memory.
73206         (gl_tree_remove_node_from_tree): New function, extracted from
73207         gl_tree_remove_node.
73208         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73209         upon out-of-memory.
73210         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73211         out-of-memory.
73212         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73213         upon out-of-memory.
73214         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73215         upon out-of-memory.
73216         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73217         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
73218         gl_anytree_list1.h before gl_anyavltree_list2.h.
73219         (gl_avltree_list_implementation): Update.
73220         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
73221         gl_anytree_list1.h before gl_anyavltree_list2.h.
73222         (gl_rbtree_list_implementation): Update.
73223         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
73224         Change return type to 'int'. Return -1 upon out-of-memory. Use
73225         __builtin_expect.
73226         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
73227         (gl_avltreehash_list_implementation): Update.
73228         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
73229         (gl_rbtreehash_list_implementation): Update.
73230         * modules/array-list (Depends-on): Remove xalloc.
73231         * modules/carray-list (Depends-on): Likewise.
73232         * modules/linked-list (Depends-on): Likewise.
73233         * modules/linkedhash-list (Depends-on): Likewise.
73234         * modules/avltree-list (Depends-on): Likewise.
73235         * modules/rbtree-list (Depends-on): Likewise.
73236         * modules/avltreehash-list (Depends-on): Likewise.
73237         * modules/rbtreehash-list (Depends-on): Likewise.
73239         * modules/xsublist: New file.
73240         * lib/gl_xsublist.h: New file.
73241         * lib/gl_xsublist.c: New file.
73242         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
73243         (gl_sublist_nx_create): New declaration.
73244         * lib/gl_sublist.c: Don't include xalloc.h.
73245         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
73246         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
73247         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
73248         Change return type to 'int'. Return -1 upon out-of-memory.
73249         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
73250         upon out-of-memory.
73251         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
73252         NULL upon out-of-memory.
73253         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
73254         upon out-of-memory.
73255         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
73256         NULL upon out-of-memory.
73257         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
73258         NULL upon out-of-memory.
73259         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
73260         upon out-of-memory.
73261         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
73262         (gl_sublist_list_implementation): Update.
73263         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
73264         upon out-of-memory.
73265         * modules/sublist (Depends-on): Remove xalloc.
73267         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
73268         * tests/test-carray_list.c: Likewise.
73269         * tests/test-linked_list.c: Likewise.
73270         * tests/test-linkedhash_list.c: Likewise.
73271         * tests/test-avltree_list.c: Likewise.
73272         * tests/test-rbtree_list.c: Likewise.
73273         * tests/test-avltreehash_list.c: Likewise.
73274         * tests/test-rbtreehash_list.c: Likewise.
73275         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
73276         * modules/carray-list-tests (Makefile.am): Likewise.
73277         * modules/linked-list-tests (Makefile.am): Likewise.
73278         * modules/linkedhash-list-tests (Makefile.am): Likewise.
73279         * modules/avltree-list-tests (Makefile.am): Likewise.
73280         * modules/rbtree-list-tests (Makefile.am): Likewise.
73281         * modules/avltreehash-list-tests (Makefile.am): Likewise.
73282         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
73284         * NEWS: Mention the changes.
73286         * lib/clean-temp.c: Include gl_xlist.h.
73287         * modules/clean-temp (Depends-on): Add xlist.
73289         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
73290         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
73292         * tests/test-array_oset.c: Include gl_xlist.h.
73293         * modules/array-oset-tests (Depends-on): Add xlist.
73295         Reported by José E. Marchesi <jemarch@gnu.org>.
73297 2009-12-13  Bruno Haible  <bruno@clisp.org>
73299         Move the malloc checking from module 'oset' to new module 'xoset'.
73300         * modules/xoset: New file.
73301         * lib/gl_xoset.h: New file.
73302         * lib/gl_xoset.c: New file.
73303         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
73304         declarations.
73305         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
73306         (struct gl_oset_implementation): Rename and change methods accordingly.
73307         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
73308         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73309         'int'. Mark as __warn_unused_result__.
73310         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
73311         gl_oset_create_empty.
73312         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73313         'int'.
73314         * lib/gl_array_oset.c: Don't include xalloc.h.
73315         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
73316         malloc, not xmalloc.
73317         (grow): Change return type to 'int'. Don't call xalloc_die.
73318         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
73319         to 'int'.
73320         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
73321         'int'.
73322         (gl_array_oset_implementation): Update.
73323         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
73324         gl_tree_create_empty.
73325         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
73326         'int'.
73327         * lib/gl_avltree_oset.c: Don't include xalloc.h.
73328         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73329         xmalloc.
73330         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73331         not xmalloc.
73332         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73333         xmalloc.
73334         (gl_avltree_oset_implementation): Update.
73335         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
73336         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73337         xmalloc.
73338         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73339         not xmalloc.
73340         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73341         xmalloc.
73342         (gl_rbtree_oset_implementation): Update.
73343         * modules/array-oset (Depends-on): Remove xalloc.
73344         * modules/avltree-oset (Depends-on): Likewise.
73345         * modules/rbtree-oset (Depends-on): Likewise.
73346         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
73347         * tests/test-avltree_oset.c: Likewise.
73348         * tests/test-rbtree_oset.c: Likewise.
73349         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73350         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
73351         * modules/rbtree-oset-tests (Makefile.am): Likewise.
73352         * NEWS: Mention the change.
73354 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
73356         maint.mk: allow a project to override release-prep commands
73357         * top/maint.mk (alpha, beta, stable): Move release-preparatory
73358         commands into a new rule.
73359         (release-prep): New rule.
73360         (release-prep-hook): New overridable variable.
73362 2009-12-13  Bruno Haible  <bruno@clisp.org>
73364         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
73366 2009-12-13  Jim Meyering  <meyering@redhat.com>
73368         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
73369         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
73371 2009-12-12  Bruno Haible  <bruno@clisp.org>
73373         duplocale: Tweak.
73374         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
73376 2009-12-12  Karl Berry  <karl@gnu.org>
73378         * config/srclist.txt (strtoll.c): tab changes, no more sync.
73380 2009-12-12  Bruno Haible  <bruno@clisp.org>
73382         * m4/po.m4: Undo incorrect untabification.
73384 2009-12-12  Bruno Haible  <bruno@clisp.org>
73386         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
73387         * modules/c-strtod (Depends-on): Add locale.
73388         * modules/c-strtold (Depends-on): Likewise.
73390 2009-12-12  Bruno Haible  <bruno@clisp.org>
73392         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
73394 2009-12-11  Eric Blake  <ebb9@byu.net>
73396         setenv: relax requirement in light of POSIX ruling
73397         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
73398         not NULL.
73399         * tests/test-setenv.c (main): Relax test.
73400         * tests/test-unsetenv.c (main): Likewise.
73401         * doc/posix-functions/setenv.texi (setenv): Document this.
73402         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73404 2009-12-11  Bruno Haible  <bruno@clisp.org>
73406         New module 'fd-safer-flag'.
73407         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
73408         * lib/dup-safer.c (dup_safer_flag): Remove function.
73409         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
73410         * lib/fd-safer.c (fd_safer_flag): Remove function.
73411         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
73412         * modules/cloexec (configure.ac): Drop indicator macro.
73413         * modules/fd-safer-flag: New file.
73414         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
73415         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
73416         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
73418 2009-12-11  Bruno Haible  <bruno@clisp.org>
73420         Tests for module 'nl_langinfo'.
73421         * modules/nl_langinfo-tests: New file.
73422         * tests/test-nl_langinfo.sh: New file.
73423         * tests/test-nl_langinfo.c: New file.
73425         New module 'nl_langinfo'.
73426         * lib/nl_langinfo.c: New file.
73427         * m4/nl_langinfo.m4: New file.
73428         * modules/nl_langinfo: New file.
73429         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
73431 2009-12-11  Bruno Haible  <bruno@clisp.org>
73433         Tests for module 'langinfo'.
73434         * modules/langinfo-tests: New file.
73435         * tests/test-langinfo.c: New file.
73437         New module 'langinfo'.
73438         * lib/langinfo.in.h: New file.
73439         * m4/langinfo_h.m4: New file.
73440         * modules/langinfo: New file.
73441         * doc/posix-headers/langinfo.texi: Mention the new module.
73443 2009-12-11  Bruno Haible  <bruno@clisp.org>
73445         * lib/config.charset: Untabify.
73447 2009-12-11  Bruno Haible  <bruno@clisp.org>
73449         * modules/unistd-safer (configure.ac): Drop indicator macro.
73451 2009-12-11  Bruno Haible  <bruno@clisp.org>
73453         Move pipe2-safer code to its own file.
73454         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
73455         * lib/pipe-safer.c (pipe2_safer): Remove function.
73456         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
73457         (Makefile.am): Add it to lib_SOURCES.
73459 2009-12-10  Bruno Haible  <bruno@clisp.org>
73461         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
73463 2009-12-10  Bruno Haible  <bruno@clisp.org>
73465         Declare which arguments expect non-NULL values, for GCC and clang.
73466         * build-aux/arg-nonnull.h: New file.
73467         * modules/arg-nonnull: New file.
73468         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
73469         (inet_ntop, inet_pton): Use it.
73470         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
73471         (closedir, dirfd, opendir, scandir, alphasort): Use it.
73472         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
73473         (open, openat): Use it.
73474         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
73475         (fnmatch): Use it.
73476         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
73477         (getopt, getopt_long, getopt_long_only): Use it.
73478         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
73479         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
73480         Use it.
73481         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
73482         (iconv_open): Use it.
73483         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
73484         (strtoimax, strtoumax): Use it.
73485         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
73486         (duplocale): Use it.
73487         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
73488         (frexp, frexpl): Use it.
73489         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
73490         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
73491         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
73492         (tsearch, tfind, tdelete, twalk): Use it.
73493         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
73494         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
73495         sigpending): Use it.
73496         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
73497         (posix_spawn, posix_spawnp, posix_spawnattr_init,
73498         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
73499         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
73500         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
73501         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
73502         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
73503         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
73504         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
73505         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
73506         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
73507         Use it.
73508         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
73509         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
73510         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
73511         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
73512         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
73513         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
73514         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
73515         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
73516         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
73517         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
73518         strtoull, unsetenv): Use it.
73519         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
73520         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
73521         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
73522         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
73523         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
73524         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
73525         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
73526         (strcasecmp, strncasecmp): Use it.
73527         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
73528         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
73529         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
73530         rpl_setsockopt): Use it.
73531         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
73532         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
73533         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
73534         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
73535         (gettimeofday): Use it.
73536         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
73537         (times): Use it.
73538         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
73539         (uname): Use it.
73540         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
73541         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
73542         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
73543         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
73544         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
73545         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
73546         unlinkat, write): Use it.
73547         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
73548         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
73549         * lib/argv-iter.h: Include arg-nonnull.h.
73550         (_ATTRIBUTE_NONNULL_): Remove macro.
73551         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
73552         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
73553         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
73554         optimization.
73555         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
73556         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
73557         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
73558         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
73559         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
73560         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
73561         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
73562         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
73563         * modules/arpa_inet (Depends-on): Add arg-nonnull.
73564         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
73565         * modules/dirent (Depends-on): Add arg-nonnull.
73566         (Makefile.am): Insert arg-nonnull.h into dirent.h.
73567         * modules/fcntl-h (Depends-on): Add arg-nonnull.
73568         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
73569         * modules/fnmatch (Depends-on): Add arg-nonnull.
73570         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
73571         * modules/getopt-posix (Depends-on): Add arg-nonnull.
73572         (Makefile.am): Insert arg-nonnull.h into getopt.h.
73573         * modules/glob (Depends-on): Add arg-nonnull.
73574         (Makefile.am): Insert arg-nonnull.h into glob.h.
73575         * modules/iconv_open (Depends-on): Add arg-nonnull.
73576         (Makefile.am): Insert arg-nonnull.h into iconv.h.
73577         * modules/inttypes (Depends-on): Add arg-nonnull.
73578         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
73579         * modules/locale (Depends-on): Add arg-nonnull.
73580         (Makefile.am): Insert arg-nonnull.h into locale.h.
73581         * modules/math (Depends-on): Add arg-nonnull.
73582         (Makefile.am): Insert arg-nonnull.h into math.h.
73583         * modules/netdb (Depends-on): Add arg-nonnull.
73584         (Makefile.am): Insert arg-nonnull.h into netdb.h.
73585         * modules/search (Depends-on): Add arg-nonnull.
73586         (Makefile.am): Insert arg-nonnull.h into search.h.
73587         * modules/signal (Depends-on): Add arg-nonnull.
73588         (Makefile.am): Insert arg-nonnull.h into signal.h.
73589         * modules/spawn (Depends-on): Add arg-nonnull.
73590         (Makefile.am): Insert arg-nonnull.h into spawn.h.
73591         * modules/stdio (Depends-on): Add arg-nonnull.
73592         (Makefile.am): Insert arg-nonnull.h into stdio.h.
73593         * modules/stdlib (Depends-on): Add arg-nonnull.
73594         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
73595         * modules/string (Depends-on): Add arg-nonnull.
73596         (Makefile.am): Insert arg-nonnull.h into string.h.
73597         * modules/strings (Depends-on): Add arg-nonnull.
73598         (Makefile.am): Insert arg-nonnull.h into strings.h.
73599         * modules/sys_socket (Depends-on): Add arg-nonnull.
73600         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
73601         * modules/sys_stat (Depends-on): Add arg-nonnull.
73602         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
73603         * modules/sys_time (Depends-on): Add arg-nonnull.
73604         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
73605         * modules/sys_times (Depends-on): Add arg-nonnull.
73606         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
73607         * modules/sys_utsname (Depends-on): Add arg-nonnull.
73608         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
73609         * modules/time (Depends-on): Add arg-nonnull.
73610         (Makefile.am): Insert arg-nonnull.h into time.h.
73611         * modules/unistd (Depends-on): Add arg-nonnull.
73612         (Makefile.am): Insert arg-nonnull.h into unistd.h.
73613         * modules/wchar (Depends-on): Add arg-nonnull.
73614         (Makefile.am): Insert arg-nonnull.h into wchar.h.
73615         * modules/argv-iter (Depends-on): Add arg-nonnull.
73616         * tests/test-canonicalize.c (null_ptr): New function.
73617         (main): Use it.
73618         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
73619         (main): Use it.
73620         * tests/test-memmem.c (null_ptr): New function.
73621         (main): Use it.
73622         Reported by Jim Meyering.
73624 2009-12-10  Bruno Haible  <bruno@clisp.org>
73626         Use spaces for indentation, not tabs.
73627         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
73628         * m4/*.m4: Untabify.
73629         * build-aux/*.h: Untabify.
73630         * tests/**/*.[hc]: Untabify.
73631         * README: New section "Indent with spaces, not TABs", based on
73632         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
73633         * NEWS: Mention the change.
73635 2009-12-10  Bruno Haible  <bruno@clisp.org>
73637         pty test: Fix link error.
73638         * modules/pty-tests (Makefile.am): Add the default LDADD value to
73639         test_pty_LDADD.
73641 2009-12-07  Simon Josefsson  <simon@josefsson.org>
73643         * modules/pty: New file.
73644         * modules/pty-tests: New file.
73645         * m4/pty.m4: New file.
73646         * tests/test-pty.c: New file.
73647         * doc/glibc-headers/pty.texi: Modified.
73648         * doc/glibc-functions/forkpty.texi: Modified.
73649         * doc/glibc-functions/openpty.texi: Modified.
73651 2009-12-10  Bruno Haible  <bruno@clisp.org>
73653         Avoid syntax error in C++ mode.
73654         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
73656 2009-12-10  Bruno Haible  <bruno@clisp.org>
73658         Use sed with option -e.
73659         * gnulib-tool (func_version, func_emit_copyright_notice,
73660         func_emit_initmacro_end, func_import, func_create_testdir): Pass
73661         option -e to sed.
73662         * modules/link-warning (Makefile.am): Likewise.
73664 2009-12-10  Jim Meyering  <meyering@redhat.com>
73666         mgetgroups: do not write bytes beyond end of malloc'd buffer
73667         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73668         username, we call getgroups with a one-element-shorter buffer,
73669         but still told it the length was original, max_n_groups.
73671 2009-12-09  Eric Blake  <ebb9@byu.net>
73673         cloexec: relax license
73674         * modules/cloexec (Maintainer): Add myself.
73675         (License): Use LGPL, not GPL.
73677         link-warning: optimize generation
73678         * modules/link-warning (Makefile.am): Reduce process usage.
73680 2009-12-09  Bruno Haible  <bruno@clisp.org>
73682         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73683         workaround was added on 2009-11-17.
73685 2009-12-09  Jim Meyering  <meyering@redhat.com>
73686             Bruno Haible  <bruno@clisp.org>
73688         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73689         * modules/link-warning (Makefile.am): Make the comment-removing sed
73690         command more robust in the face of bootstrap-prepended comment lines.
73692 2009-12-09  Bruno Haible  <bruno@clisp.org>
73694         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73695         most one group.
73697 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73698             Bruno Haible  <bruno@clisp.org>
73700         * build-aux/link-warning.h: Add copyright notice.
73701         * modules/link-warning (Makefile.am): Generate link-warning.h from
73702         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73703         * NEWS: Mention change in link-warning module.
73704         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73705         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73706         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73707         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
73708         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
73709         * modules/math (Makefile.am): Add dependency to math.h.
73710         * modules/search (Makefile.am): Add dependency to search.h.
73711         * modules/signal (Makefile.am): Add dependency to signal.h.
73712         * modules/spawn (Makefile.am): Add dependency to spawn.h.
73713         * modules/stdio (Makefile.am): Add dependency to stdio.h.
73714         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
73715         * modules/string (Makefile.am): Add dependency to string.h.
73716         * modules/strings (Makefile.am): Add dependency to strings.h.
73717         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
73718         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
73719         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
73720         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
73721         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
73722         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
73723         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
73724         * modules/unistd (Makefile.am): Add dependency to unistd.h.
73725         * modules/wchar (Makefile.am): Add dependency to wchar.h.
73727 2009-12-09  Bruno Haible  <bruno@clisp.org>
73729         fchdir: Optimize away rpl_fstat when possible.
73730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
73731         REPLACE_OPEN_DIRECTORY.
73732         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
73734 2009-12-09  Bruno Haible  <bruno@clisp.org>
73736         * lib/fchdir.c: Update comment.
73738 2009-12-09  Bruno Haible  <bruno@clisp.org>
73740         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
73742 2009-12-08  Eric Blake  <ebb9@byu.net>
73744         fchdir: avoid memory leak on re-registration.
73745         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
73747 2009-12-08  Jim Meyering  <meyering@redhat.com>
73749         init.sh: avoid Solaris 10 /bin/sh portability problem
73750         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
73751         sourced script:
73752           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
73753           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
73754           bar
73755         tests/init.sh relied on that, accepting a --set-path=DIR argument,
73756         and two tests used that idiom.
73757         * tests/init.sh: Update suggested usage comments.
73758         (path_prepend_): New function, to be used in place
73759         of the --src-path=DIR option.
73760         (setup_): Move PATH-prepending code into path_prepend_.
73761         * tests/test-pread.sh: Adapt to new usage.
73762         * tests/test-xalloc-die.sh: Likewise.
73764 2009-12-08  Simon Josefsson  <simon@josefsson.org>
73766         * doc/gnulib.texi (Glibc pty.h): Add.
73767         * doc/glibc-functions/forkpty.texi: Add.
73768         * doc/glibc-functions/openpty.texi: Add.
73769         Suggested by Bruno Haible.
73771 2009-12-08  Eric Blake  <ebb9@byu.net>
73773         fchdir: fix logic bugs
73774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
73775         * tests/test-fchdir.c (main): Enhance test.
73776         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
73777         is in use.
73779         dup2: fix logic bugs
73780         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
73781         REPLACE_DUP2 to decide when rpl_dup2 is needed.
73782         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
73783         exists.
73784         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
73786 2009-12-07  Eric Blake  <ebb9@byu.net>
73788         unlink: fix m4 detection
73789         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
73791         unistd-safer: add unit test
73792         * modules/unistd-safer-tests: New file.
73793         * tests/test-dup-safer.c: Likewise.
73794         * tests/test-cloexec.c (setmode): Avoid compiler warning.
73795         * tests/test-dup2.c (setmode): Likewise.
73796         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
73798         cloexec: preserve text vs. binary across dup_cloexec
73799         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
73800         mode.
73801         * modules/dup2-tests (Depends-on): Add binary-io.
73802         * modules/cloexec-tests (Depends-on): Likewise.
73803         * tests/test-dup2.c (setmode, is_mode): New helpers.
73804         (main): Add tests that translation mode is preserved.
73805         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73806         Reported by Bruno Haible.
73808         mgetgroups: reduce duplicate listings
73809         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73810         resulting array.
73811         * tests/test-chown.h (test_chown): Simplify client.
73812         * tests/test-lchown.h (test_lchown): Likewise.
73814 2009-12-06  Bruno Haible  <bruno@clisp.org>
73816         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73817         value.
73819 2009-12-06  Bruno Haible  <bruno@clisp.org>
73821         * lib/progname.c: Include stdio.h, stdlib.h.
73822         (set_program_name): Reject a NULL argument.
73824 2009-12-05  Eric Blake  <ebb9@byu.net>
73826         pipe2-safer: new module
73827         * modules/pipe2-safer: New file.
73828         * lib/unistd-safer.h (pipe2_safer): New prototype.
73829         * lib/unistd--.h (pipe2): New wrapper.
73830         * lib/pipe-safer.c (pipe2_safer): New function.
73831         * modules/pipe (Depends-on): Add pipe2-safer.
73832         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73834         stdlib-safer: preserve cloexec flag for mkostemp[s]
73835         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73836         fd_safer_flag.
73838         unistd-safer: allow preservation of cloexec status via flag
73839         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73840         prototypes.
73841         * lib/dup-safer.c (dup_safer_flag): New function.
73842         * lib/fd-safer.c (fd_safer_flag): Likewise.
73843         * modules/cloexec (configure.ac): Set witness.
73845         test-dup2: enhance test
73846         * modules/dup2-tests (Depends-on): Add cloexec.
73847         * tests/test-dup2.c (main): Enhance test.
73849         cloexec: add dup_cloexec
73850         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73851         header and comments.
73852         * lib/cloexec.c (set_cloexec_flag): Add comments.
73853         (dup_cloexec): New function, with mingw implementation borrowed
73854         from...
73855         * lib/w32spawn.h (dup_noinherit): ...here.
73856         * modules/execute (Depends-on): Add cloexec.
73857         * modules/pipe (Depends-on): Likewise.
73858         * modules/cloexec (Depends-on): Add dup2.
73859         * modules/cloexec-tests (Files): New file.
73860         * tests/test-cloexec.c: Likewise.
73862         test-xalloc-die: fix test for mingw
73863         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73864         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73865         directory and .exe suffix off argv[0] output.
73867         test-fseeko: fix test for mingw
73868         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73869         than undefining fseek, so test will pass on mingw.
73871 2009-12-05  Bruno Haible  <bruno@clisp.org>
73873         * lib/progname.h (set_program_name): Clarify specification.
73874         * lib/progname.c (set_program_name): Likewise.
73875         Reported by Jim Meyering.
73877 2009-12-05  Jim Meyering  <meyering@redhat.com>
73879         maint.mk: backslash-escape parens in default regexp
73880         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73881         backslash-escape the literal parentheses.
73883         maint.mk: news-date-check: use grep -E
73884         * top/maint.mk (today): Define a Make variable, not a...
73885         (news-date-check): ...shell variable.
73886         (news-date-regexp): Use the Make variable.
73887         Use grep's -E option.  Change the failing diagnostic to mention
73888         the variable, $(news-date-regexp).
73890 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73892         maintainer-makefile: allow customization of NEWS entry format
73893         * top/maint.mk (news-date-regexp): New overridable variable.
73894         (news-date-check): Use it.
73896 2009-12-04  Eric Blake  <ebb9@byu.net>
73898         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73899         * lib/mgetgroups.h (xgetgroups): New prototype.
73900         * lib/mgetgroups.c (xgetgroups): New wrapper.
73901         (mgetgroups): Handle ENOSYS.
73902         * modules/mgetgroups (Depends-on): Add realloc.
73903         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73905         mgetgroups: avoid argument promotion issues with -1
73906         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73907         for invalid gid_t.
73908         * tests/test-chown.h (getegid, test_chown): Likewise.
73909         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73911 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73913         exclude: Fix header file problems.
73914         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73916 2009-12-01  Jim Meyering  <meyering@redhat.com>
73918         fts: fts_open: do not let an empty string cause immediate failure
73919         This is required in support of GNU rm, for which the command
73920         "rm A '' B" must process and remove both A and B, in spite of
73921         the empty string argument.
73922         * lib/fts.c (fts_open): Do not let the presence of an empty string
73923         cause fts_open to fail immediately.  Most fts-using tools must be
73924         able to process all arguments, in order, and can be expected to
73925         diagnose such arguments themselves.
73927 2009-11-30  Eric Blake  <ebb9@byu.net>
73929         utimens: fix compilation error
73930         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73931         Declare variable at right scope.
73933 2009-11-29  Jim Meyering  <meyering@redhat.com>
73935         bootstrap: handle perl-5.11's changed --version output
73936         * build-aux/bootstrap (get_version): Handle perl separately,
73937         since perl-5.11's --version output is different.
73939 2009-11-28  Jim Meyering  <meyering@redhat.com>
73941         userspec: depend on the inttostr module, too
73942         * modules/userspec (Depends-on): Add inttostr.
73944         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73945         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73946         number of MAXUID when it evaluates to (uid_t) -1.
73947         Likewise for group ID.  Reported by Matt McCutchen in
73948         <http://savannah.gnu.org/bugs/?28113>
73950         userspec: reformat to use spaces, not TABs
73951         * lib/userspec.c: Expand TABs to spaces.
73952         Add Emacs' "indent-tabs-mode: nil" hint.
73954 2009-11-27  Eric Blake  <ebb9@byu.net>
73956         getopt-gnu: flush out another BSD bug
73957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73958         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73959         flush out BSD bug.
73960         * tests/test-getopt.h (test_getopt): End lists with NULL.
73961         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73962         (test_getopt_long_posix): Enhance test.
73963         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73964         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73965         getopt-gnu.
73966         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73967         Likewise.
73969 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73971         * modules/idpriv-droptemp-tests (Notice): Fix text.
73973 2009-11-27  Jim Meyering  <meyering@redhat.com>
73975         test-xalloc-die: avoid spurious failure due to libtool argv difference
73976         In a libtool-enabled project, this test would fail due to a difference
73977         in the emitted program name, e.g.,
73978         -test-xalloc-die: memory exhausted
73979         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73980         Use program to avoid that.
73981         * modules/xalloc-die-tests (Depends-on): Add progname.
73982         * tests/test-xalloc-die.c: Include progname.h".
73983         (program_name): Remove decl.
73984         (main): Call set_program_name.
73985         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73987 2009-11-26  Richard Jones  <rjones@redhat.com>
73989         w32sock: leave win32 error in place.
73990         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73992 2009-11-26  Eric Blake  <ebb9@byu.net>
73994         init.sh: suggest to use skip_ and fail_ functions in comments
73995         * tests/init.sh: Add a sentence.
73997 2009-11-25  Bruno Haible  <bruno@clisp.org>
73999         init.sh: add documentation in comments
74000         * tests/init.sh: Add some developer and user documentation.
74002 2009-11-26  Jim Meyering  <meyering@redhat.com>
74004         init.sh: accommodate even those who specify bogus srcdir manually
74005         * tests/init.sh: Normally, srcdir is guaranteed by automake and
74006         configure-time tests to be sanitized, so that there is no need to
74007         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
74008         (with no double quotes) suffices.  However, since tests may be
74009         invoked manually, and since you may explicitly set srcdir to the
74010         name of a directory containing spaces, do quote its uses here.
74011         * tests/test-pread.sh: Likewise.
74012         Suggested by Bruno Haible.
74014         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
74015         * tests/test-pread.sh: Write no data into the pipe, because
74016         test-pread actually reads none.  This avoids a diagnostic,
74017         "bash: echo: write error: Broken pipe", that arises in the unusual
74018         event something is ignoring SIGPIPE, and might be interpreted
74019         as some sort of failure.  Reported by Bruno Haible.
74021 2009-11-25  Jim Meyering  <meyering@redhat.com>
74023         test-pread: cover failure with ESPIPE and EINVAL
74024         * tests/test-pread.c (main): Test for failure, too.
74025         * tests/test-pread.sh: Invoke with stdin on a pipe.
74026         Suggested by Eric Blake.
74028         pread: improvement and fix
74029         * modules/pread (Depends-on): Depend on lseek, for portability to
74030         e.g., mingw.  Suggested by Eric Blake.
74031         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
74033         unistd.in.h: correct declaration of pread
74034         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
74035         Reported by Richard W.M. Jones.
74037         test-pread.sh: distribute the test script
74038         * modules/pread-tests (Files): Include test-pread.sh.
74040         test-pread.sh: clean up
74041         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
74042         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
74043         That is unnecessary, since it's always ".".
74044         Suggestion from Eric Blake.
74046         test-pread.sh: make executable
74047         * tests/test-pread.sh: Set executable bit.
74048         Reported by Eric Blake.
74050         correct typo in test-pread.sh
74051         * tests/test-pread.sh: Add #! line.
74053         test pread
74054         * tests/test-pread.c: New file.
74055         * tests/test-pread.sh: Likewise.
74056         * modules/pread-tests: Likewise.
74058         pread: new module
74059         * modules/pread: New file.
74060         * lib/unistd.in.h (pread): Define/declare.
74061         * lib/pread.c (pread): New file.
74062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
74063         * modules/unistd (Makefile.am): Substitute witnesses.
74064         * doc/posix-functions/pread.texi (pread): Update.
74065         * MODULES.html.sh: Add pread.
74067 2009-11-25  Jim Meyering  <meyering@redhat.com>
74069         tests/init.sh: new file to be used via most *.sh tests
74070         * tests/init.sh: New file.
74072 2009-11-25  Eric Blake  <ebb9@byu.net>
74074         utimens: work around older Linux failure with symlinks
74075         * lib/utimens.c (lutimensat_works_really): New variable.
74076         (fdutimens, lutimens): Use it to manage kernels that support
74077         nanosecond times on files, but not on symlinks.
74078         Reported by Ondřej Vašík.
74080         utimes: fix configure grammar
74081         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
74083 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
74085         regex: Fix fastmap for multibyte character ranges.
74086         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
74087         characters when a multibyte character range is included.
74089 2009-11-22  Andy Wingo  <wingo@pobox.com>
74091         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
74092         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
74094 2009-11-24  Bruno Haible  <bruno@clisp.org>
74096         doc: Most *_l functions exist in MacOS X 10.5.
74097         * doc/posix-functions/duplocale.texi: Update platforms list.
74098         * doc/posix-functions/freelocale.texi: Likewise.
74099         * doc/posix-functions/newlocale.texi: Likewise.
74100         * doc/posix-functions/uselocale.texi: Likewise.
74101         * doc/posix-functions/isalnum_l.texi: Likewise.
74102         * doc/posix-functions/isalpha_l.texi: Likewise.
74103         * doc/posix-functions/isblank_l.texi: Likewise.
74104         * doc/posix-functions/iscntrl_l.texi: Likewise.
74105         * doc/posix-functions/isdigit_l.texi: Likewise.
74106         * doc/posix-functions/isgraph_l.texi: Likewise.
74107         * doc/posix-functions/islower_l.texi: Likewise.
74108         * doc/posix-functions/isprint_l.texi: Likewise.
74109         * doc/posix-functions/ispunct_l.texi: Likewise.
74110         * doc/posix-functions/isspace_l.texi: Likewise.
74111         * doc/posix-functions/isupper_l.texi: Likewise.
74112         * doc/posix-functions/iswalnum_l.texi: Likewise.
74113         * doc/posix-functions/iswalpha_l.texi: Likewise.
74114         * doc/posix-functions/iswblank_l.texi: Likewise.
74115         * doc/posix-functions/iswcntrl_l.texi: Likewise.
74116         * doc/posix-functions/iswctype_l.texi: Likewise.
74117         * doc/posix-functions/iswdigit_l.texi: Likewise.
74118         * doc/posix-functions/iswgraph_l.texi: Likewise.
74119         * doc/posix-functions/iswlower_l.texi: Likewise.
74120         * doc/posix-functions/iswprint_l.texi: Likewise.
74121         * doc/posix-functions/iswpunct_l.texi: Likewise.
74122         * doc/posix-functions/iswspace_l.texi: Likewise.
74123         * doc/posix-functions/iswupper_l.texi: Likewise.
74124         * doc/posix-functions/iswxdigit_l.texi: Likewise.
74125         * doc/posix-functions/isxdigit_l.texi: Likewise.
74126         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
74127         * doc/posix-functions/strcasecmp_l.texi: Likewise.
74128         * doc/posix-functions/strcoll_l.texi: Likewise.
74129         * doc/posix-functions/strfmon_l.texi: Likewise.
74130         * doc/posix-functions/strftime_l.texi: Likewise.
74131         * doc/posix-functions/strncasecmp_l.texi: Likewise.
74132         * doc/posix-functions/strxfrm_l.texi: Likewise.
74133         * doc/posix-functions/tolower_l.texi: Likewise.
74134         * doc/posix-functions/toupper_l.texi: Likewise.
74135         * doc/posix-functions/towctrans_l.texi: Likewise.
74136         * doc/posix-functions/towlower_l.texi: Likewise.
74137         * doc/posix-functions/towupper_l.texi: Likewise.
74138         * doc/posix-functions/wcscoll_l.texi: Likewise.
74139         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
74140         * doc/posix-functions/wctrans_l.texi: Likewise.
74141         * doc/posix-functions/wctype_l.texi: Likewise.
74142         * doc/glibc-functions/strptime_l.texi: Likewise.
74143         * doc/glibc-functions/strtod_l.texi: Likewise.
74144         * doc/glibc-functions/strtof_l.texi: Likewise.
74145         * doc/glibc-functions/strtol_l.texi: Likewise.
74146         * doc/glibc-functions/strtold_l.texi: Likewise.
74147         * doc/glibc-functions/strtoll_l.texi: Likewise.
74148         * doc/glibc-functions/strtoul_l.texi: Likewise.
74149         * doc/glibc-functions/strtoull_l.texi: Likewise.
74150         * doc/glibc-functions/wcsftime_l.texi: Likewise.
74151         * doc/glibc-functions/wcstod_l.texi: Likewise.
74152         * doc/glibc-functions/wcstof_l.texi: Likewise.
74153         * doc/glibc-functions/wcstol_l.texi: Likewise.
74154         * doc/glibc-functions/wcstold_l.texi: Likewise.
74155         * doc/glibc-functions/wcstoll_l.texi: Likewise.
74156         * doc/glibc-functions/wcstoul_l.texi: Likewise.
74157         * doc/glibc-functions/wcstoull_l.texi: Likewise.
74159 2009-11-24  Bruno Haible  <bruno@clisp.org>
74161         duplocale: Fix logic bug.
74162         * lib/duplocale.c: Don't include <langinfo.h>.
74163         (_NL_LOCALE_NAME): Remove macro.
74164         (rpl_duplocale): Use setlocale instead of nl_langinfo.
74165         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
74167 2009-11-23  Jim Meyering  <meyering@redhat.com>
74169         test-update-copyright: don't hard-code /usr/bin/perl
74170         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
74171         perl to print the current year.  Gilles Espinasse reported that
74172         the replaced use of perl was hard-coded as /usr/bin/perl.
74174 2009-11-23  Bruno Haible  <bruno@clisp.org>
74176         duplocale: Add support for glibc 2.3.x.
74177         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
74179 2009-11-22  Bruno Haible  <bruno@clisp.org>
74181         vasnprintf: Tiny optimization.
74182         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
74183         MacOS X.
74185 2009-11-22  Bruno Haible  <bruno@clisp.org>
74187         Tests for module 'duplocale'.
74188         * modules/duplocale-tests: New file.
74189         * tests/test-duplocale.c: New file.
74191         New module 'duplocale'.
74192         * m4/duplocale.m4: New file.
74193         * lib/locale.in.h (duplocale): New declaration.
74194         * lib/duplocale.c: New file.
74195         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
74196         gl_LOCALE_H_DEFAULTS): New macros.
74197         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
74198         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
74199         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
74200         REPLACE_DUPLOCALE.
74201         * modules/duplocale: New file.
74202         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
74204 2009-11-22  Bruno Haible  <bruno@clisp.org>
74206         * modules/locale-tests (configure.ac): Test for newlocale function.
74207         * tests/test-locale.c: When the system has extended locale functions,
74208         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
74210         locale: Make locale_t available when possible.
74211         * lib/locale.in.h: Include <xlocale.h> when it exists.
74212         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
74213         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
74214         * modules/locale (Depends-on): Add extensions.
74215         (Makefile.am): Also substitute HAVE_XLOCALE_H.
74216         * doc/posix-headers/locale.texi: Document the problem with locale_t.
74218 2009-11-22  Bruno Haible  <bruno@clisp.org>
74220         Add comments.
74221         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
74222         invocation.
74223         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
74224         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
74225         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
74227 2009-11-22  Bruno Haible  <bruno@clisp.org>
74229         error: account for the possibility of freopen (stdout).
74230         * lib/error.c: Include <unistd.h>.
74231         (flush_stdout): New function, extracted from error and error_at_line.
74232         Determine stdout's fd dynamically.
74233         (error, error_at_line): Invoke flush_stdout.
74234         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
74235         * modules/error (Depends-on): Add unistd.
74237 2009-11-22  Bruno Haible  <bruno@clisp.org>
74239         diffseq: Add comment.
74240         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
74242 2009-11-22  Jim Meyering  <meyering@redhat.com>
74244         c-stack: avoid defining an unused static function
74245         * lib/c-stack.c (find_stack_direction): Do not define this function
74246         when it will not be used.
74248         diffseq: avoid spurious gcc warnings
74249         * lib/diffseq.h (IF_LINT2): Define.
74250         (compareseq): Use it to initialize two members of "part".
74251         This avoids two used-uninitialized warnings.
74253 2009-11-21  Jim Meyering  <meyering@redhat.com>
74255         c-stack: avoid "ignoring return value of `write'" warning
74256         * lib/c-stack.c: Include "ignore-value.h".
74257         (die): Explicitly ignore each write return value.
74258         * modules/c-stack (Depends-on): Add ignore-value.
74260 2009-11-21  Bruno Haible  <bruno@clisp.org>
74262         diffseq: reduce scope of variable 'best'.
74263         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
74264         variable, earlier used for two different purposes.
74266 2009-11-21  Jim Meyering  <meyering@redhat.com>
74268         diffseq: remove useless assignment to "best"
74269         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
74270         assignment.  At that point "best" is already guaranteed to be zero.
74272 2009-11-20  Eric Blake  <ebb9@byu.net>
74274         build: mention ftp redirector in release announcements
74275         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
74276         values that used to come from cfg.mk; mention FTP redirect URL.
74277         * build-aux/announce-gen: Mention the mirror list.
74278         Suggested by Karl Berry.
74280         nanosleep: improve port to mingw
74281         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
74282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
74283         LIB_NANOSLEEP, but only when needed.
74284         * modules/select (Link): Document LIBSOCKET.
74285         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
74286         enough.
74288         nanosleep: work around cygwin bug
74289         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
74290         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
74291         bug.
74292         (getnow): Delete, not needed.
74293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
74294         LIB_CLOCK_GETTIME.
74295         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
74296         clock-time, gettime.
74297         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
74298         bug.
74299         * modules/nanosleep-tests: New test.
74300         * tests/test-nanosleep.c: New file.
74302         sleep: work around cygwin bug
74303         * lib/sleep.c (rpl_sleep): Work around the bug.
74304         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
74305         (gl_PREREQ_SLEEP): Delete unused macro.
74306         * modules/sleep (Depends-on): Add verify.
74307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74308         * modules/unistd (Makefile.am): Substitute witness.
74309         * lib/unistd.in.h (sleep): Update prototype.
74310         * doc/posix-functions/sleep.texi (sleep): Document the bug.
74311         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
74312         * modules/sleep-tests (Depends-on): Check for alarm.
74314 2009-11-20  Jim Meyering  <meyering@redhat.com>
74316         maint.mk: improve sc_prohibit_magic_number_exit
74317         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
74318         so it does not match uses like System.exit(1).
74319         Add comments showing how to correct all offenders.
74321 2009-11-19  Eric Blake  <ebb9@byu.net>
74323         xalloc-die-tests: add missing library
74324         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
74326         test-xvasprintf: silence compiler warnings
74327         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
74328         empty string from gcc.
74330 2009-11-19  Jim Meyering  <meyering@redhat.com>
74332         xfreopen: new module, from coreutils
74333         * modules/xfreopen: New module.
74334         * lib/xfreopen.c: New file.
74335         * lib/xfreopen.h: New file.
74336         * MODULES.html.sh (File stream based Input/Output"): Add it.
74338 2009-11-19  Eric Blake  <ebb9@byu.net>
74340         manywarnings: depend on warnings
74341         * modules/manywarnings (Depends-on): Add warnings.
74343         build: avoid compiler warnings
74344         * lib/select.c (rpl_select): Delete unused variable.
74345         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
74347 2009-11-18  Eric Blake  <ebb9@byu.net>
74349         tests: avoid false negative with --with-packager
74350         * tests/test-version-etc.sh: Discard packager information.
74351         * tests/test-argp-version-etc-1.sh: Likewise.
74352         Reported by Mike Frysinger.
74354         utimens: fix regression on Solaris
74355         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
74356         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
74357         can only change fd timestamps via futimesat.  Instead, use an
74358         additional witness macro to avoid BSD bug.
74359         Reported by Jim Meyering.
74361 2009-11-17  Eric Blake  <ebb9@byu.net>
74363         usleep: use it to simplify tests
74364         * modules/stat-time-tests (Depends-on): Add usleep.
74365         (configure.ac): Drop usleep check.
74366         * modules/chown-tests (Depends-on, configure.ac): Likewise.
74367         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
74368         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
74369         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
74370         * modules/openat-tests (Depends-on, configure.ac): Likewise.
74371         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
74372         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
74373         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
74374         Likewise.
74375         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
74376         * tests/test-lchown.h (nap): Likewise.
74377         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
74378         * tests/test-stat-time.c (nap): Likewise.
74379         * tests/test-utimens-common.h (nap): Update comments.
74381         usleep: new module
74382         * modules/usleep: New file.
74383         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
74384         * lib/usleep.c (usleep): Likewise.
74385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
74386         * modules/unistd (Makefile.am): Substitute witnesses.
74387         * lib/unistd.in.h (usleep): Add declaration.
74388         * doc/pastposix-functions/usleep.texi (usleep): Document this.
74389         * MODULES.html.sh (Date and time): Likewise.
74390         * modules/usleep-tests (Depends-on): New test.
74391         * tests/test-usleep.c: New file.
74393         chown: work around OpenBSD bug
74394         * lib/chown.c (rpl_chown): Work around the bug.
74395         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
74396         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
74397         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
74398         * modules/chown (Depends-on): Add stdbool.
74399         * modules/lchown (Depends-on): Likewise.
74400         * doc/posix-functions/chown.texi (chown): Document the bug.
74401         * doc/posix-functions/lchown.texi (lchown): Likewise.
74402         * tests/test-lchown.h (test_chown): Relax test.
74404         mkstemp: avoid conflict with C++ keyword template
74405         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
74406         * lib/mkostemp.c (mkostemp): Likewise.
74407         * lib/mkostemps.c (mkostemps): Likewise.
74408         * lib/mkstemp.c (mkstemp): Likewise.
74409         * lib/mkstemps.c (mkstemps): Likewise.
74411         xalloc-die-tests: optimize
74412         * tests/test-xalloc-die.sh: Reduce number of processes.
74414 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74416         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
74417         patch from ludo@gnu.org (Ludovic Courtès).
74419 2009-11-17  Jim Meyering  <meyering@redhat.com>
74421         version-etc: use proper license string
74422         * modules/version-etc (License): Use LGPL, not LGPLv3+.
74423         * modules/version-etc-fsf: Likewise.
74425 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74427         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
74428         printed to stdout.  Deal with EOL differences.
74430 2009-11-17  Eric Blake  <ebb9@byu.net>
74432         unsetenv: work around Solaris bug
74433         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
74434         * lib/unsetenv.c (rpl_unsetenv): Work around it.
74435         Reported by Jim Meyering.
74437         vasnprintf: avoid compiler warnings
74438         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
74439         variables.
74440         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
74442 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74444         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
74445         settings since xalloc-die is no longer the self test,
74446         xalloc-die.sh is.
74448 2009-11-17  Jim Meyering  <meyering@redhat.com>
74450         test-xalloc-die.sh: make the code agree with the commit log
74451         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
74452         at the end, just in case you happen to have a test-xalloc-die
74453         program in some other PATH directory.
74455         test-xalloc-die.sh: fix a portability bug
74456         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
74457         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
74458         Otherwise, argv[0] (as often seen in diagnostics) would be too
74459         system-dependent, sometimes with, and sometimes without the leading "./".
74461         version-etc-fsf: relax license to LGPLv3+
74462         * modules/version-etc-fsf (License): Relax license.
74464 2009-11-16  Eric Blake  <ebb9@byu.net>
74466         xalloc-die-tests: avoid printing null pointer
74467         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
74468         shell script.
74469         * tests/test-xalloc-die.c (program_name): Declare.
74470         * tests/test-xalloc-die.sh (tmpfiles): New file.
74472         setenv, unsetenv: work around various bugs
74473         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
74474         (setenv) [HAVE_SETENV]: Work around bugs.
74475         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
74476         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
74477         for bugs.
74478         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
74479         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
74480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
74481         * modules/stdlib (Makefile.am): Update substitutions.
74482         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
74483         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
74484         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
74485         * modules/setenv-tests: New test.
74486         * modules/unsetenv-tests: Likewise.
74487         * tests/test-setenv.c: New file.
74488         * tests/test-unsetenv.c: Likewise.
74490 2009-11-16  Jim Meyering  <meyering@redhat.com>
74492         version-etc: relax license to LGPLv3+
74493         * modules/version-etc (License): Relax license.
74495         better AC_REQUIRE expanded-before-required-warning avoidance
74496         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
74497         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
74498         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
74499         which is no longer needed.
74501 2009-11-16  Eric Blake  <ebb9@byu.net>
74503         test-freading: clean up temporary file
74504         * tests/test-freading.c (main): Remove file on success, and use
74505         ASSERT more liberally.
74506         Reported by Jim Meyering.
74508 2009-11-16  Jim Meyering  <meyering@redhat.com>
74510         avoid new AC_REQUIRE expanded-before-required warnings
74511         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
74512         merely using it.
74513         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
74514         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
74516 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74518         * tests/test-xalloc-die.c: New file.
74519         * modules/xalloc-die-tests: New file.
74520         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
74521         XFAIL_TESTS so it can be appended by modules.
74523 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74525         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
74526         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
74528 2009-11-14  Eric Blake  <ebb9@byu.net>
74530         fnmatch: avoid compiler warning
74531         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
74532         to silence compiler warning about mismatch signedness in ?:.
74533         Reported by Robert Millan.
74535         intprops: add double-inclusion guard
74536         * lib/intprops.h: Allow idempotent includes.
74537         Suggested by Bruce Korb.
74539         openat: detect Solaris fchownat bug
74540         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
74541         penalizing glibc chownat when only lchownat is broken.
74542         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
74543         trailing slash bugs.
74544         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
74545         * modules/openat-tests (Files): Include more files.
74546         (Depends-on): Add mgetgroups, sleep, stat-time.
74547         (configure.ac): Add additional checks.
74548         (Makefile.am): Build new test.
74549         * tests/test-fchownat.c: New file.
74551         lchown: detect Solaris and FreeBSD bug
74552         * lib/lchown.c (rpl_lchown): Work around bug.
74553         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
74554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74555         * modules/unistd (Makefile.am): Populate it.
74556         * lib/unistd.in.h (lchown): Update declaration.
74557         * doc/posix-functions/lchown.texi (lchown): Document the bug.
74558         * modules/lchown-tests: New file.
74559         * tests/test-lchown.h (test_lchown): Likewise.
74560         * tests/test-lchown.c (main): Likewise.
74562         chown: detect Solaris and FreeBSD bug
74563         * lib/chown.c (rpl_chown): Work around bug.
74564         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
74565         (gl_PREREQ_CHOWN): Delete.
74566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74567         * modules/unistd (Makefile.am): Populate it.
74568         * lib/unistd.in.h (chown): Update declaration.
74569         * lib/lchown.c (chown): Update client.
74570         * modules/lchown (Depends-on): Add lstat.
74571         * doc/posix-functions/chown.texi (chown): Document the bug.
74572         * doc/posix-functions/getgroups.texi (getgroups): Document
74573         getgroups pitfall.
74574         * modules/chown-tests: New file.
74575         * tests/test-chown.h (test_chown): Likewise.
74576         * tests/test-chown.c (main): Likewise.
74578 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
74580         gnulib-tool: correctly detect absence of m4 directories
74581         * gnulib-tool: Avoid extra newline on data passed to wc -l.
74583 2009-11-14  Jim Meyering  <meyering@redhat.com>
74585         maint.mk: Prohibit inclusion of "xalloc.h" without use.
74586         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74588 2009-11-14  John W. Eaton  <jwe@gnu.org>
74590         strftime.h: wrap function declaration in extern "C" block
74591         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
74593 2009-11-13  Eric Blake  <ebb9@byu.net>
74595         getgroups: avoid compiler warning
74596         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
74598         getgroups: work around FreeBSD bug
74599         * lib/getgroups.c (rpl_getgroups): Work around the bug.
74600         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
74601         * doc/posix-functions/getgroups.texi (getgroups): Document it.
74602         * tests/test-getgroups.c (main): Fix buffer overrun.
74604         getgroups: avoid compilation failure
74605         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
74606         * modules/getgroups (Depends-on): Add stdint.
74608 2009-11-13  Jim Meyering  <meyering@redhat.com>
74610         test-getgroups: avoid compilation failure
74611         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
74613 2009-11-13  Eric Blake  <ebb9@byu.net>
74615         mgetgroups: new module, taken from coreutils
74616         * modules/mgetgroups: New file.
74617         * lib/mgetgroups.h: Likewise.
74618         * lib/mgetgroups.c (mgetgroups): Likewise.
74619         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
74620         * MODULES.html.sh (Users and groups): Mention it.
74622         getgroups: don't expose GETGROUPS_T to user
74623         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
74624         an element at a time if GETGROUPS_T is wrong size.
74625         * lib/getugroups.h (getugroups): Change signature.
74626         * lib/unistd.in.h (getgroups): Likewise.
74627         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
74628         signature needs fixing.
74629         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
74630         AC_TYPE_GETGROUPS.
74631         * modules/group-member (Depends-on): Add getgroups.
74632         * lib/group-member.c (group_info, get_group_info): Use gid_t.
74633         (group_member): Rely on getgroups replacement.
74634         * lib/getugroups.c (getugroups): Use gid_t.
74635         * tests/test-getgroups.c (main): Likewise.
74636         * NEWS: Mention the signature change.
74637         * doc/posix-functions/getgroups.texi (getgroups): Mention the
74638         problem with signature.
74639         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
74640         GETGROUPS_T is still useful for setgroups.
74642         getgroups, getugroups: provide stubs for mingw
74643         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
74644         * lib/getugroups.c (getugroups): Likewise.
74645         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
74646         function.  Modernize replacement scheme.
74647         (gl_PREREQ_GETGROUPS): Delete.
74648         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
74649         * modules/getgroups (configure.ac): Declare witness.
74650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74651         * modules/unistd (Depends-on): Substitute witness.
74652         * lib/unistd.in.h (getgroups): Declare replacement.
74654         getgroups: avoid calling exit
74655         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
74656         drop xalloc.
74657         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
74658         dependencies.
74659         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
74660         exiting, in the rare case of malloc failure.
74662         getgroups: fix logic error
74663         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
74664         has more than 20 groups.
74665         * modules/getgroups-tests: New test.
74666         * tests/test-getgroups.c: New file.
74668 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74670         * tests/test-base64.c: Improve.
74672 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74674         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74675         Blake <ebb9@byu.net>.
74677 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74679         * tests/test-xvasprintf.c: Add %s%s related checks.
74681 2009-11-12  Eric Blake  <ebb9@byu.net>
74683         version-etc: match standards.texi style
74684         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74685         and use <> only for URLs.
74687 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74689         fts: do not fail on a submount during traversal
74690         * lib/fts.c (fts_build): Read the stat info again after opening
74691         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74692         Original report at http://bugzilla.redhat.com/501848.
74694 2009-11-12  Jim Meyering  <meyering@redhat.com>
74696         bootstrap: sync from coreutils
74697         * build-aux/bootstrap (bootstrap_epilogue): New function.
74698         Use git_modules_config in one more place.  This make bootstrap's
74699         --gnulib-srcdir option more useful for testing.
74701         bootstrap: generalize autoheader check
74702         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74703         AC_CONFIG_HEADERS.
74705 2009-11-11  Eric Blake  <ebb9@byu.net>
74707         mkfifoat: use new modules for Solaris and BSD bugs
74708         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
74709         * lib/mkfifoat.c (mknodat): Split...
74710         * lib/mknodat.c (mknodat): ...into new file.
74711         * modules/mkfifoat (Files): Ship new file.
74712         (Depends-on): Add mkfifo, mknod.
74713         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
74714         (Depends-on): Add symlink.
74715         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
74716         redundant with test_mkfifo.h.
74717         (do_mkfifoat, do_mknodat): New helpers.
74719         mknod: new module
74720         * modules/mknod: New file.
74721         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
74722         * lib/mknod.c (mknod): Likewise.
74723         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74724         defaults.
74725         * modules/sys_stat (Makefile.am): Substitute them.
74726         * lib/sys_stat.in.h (mknod): Declare replacement.
74727         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74728         Document it.
74729         * doc/posix-functions/mknod.texi (mknod): Likewise.
74730         * modules/mknod-tests: New test.
74731         * tests/test-mknod.c: Likewise.
74733         mkfifo: new module
74734         * modules/mkfifo: New file.
74735         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
74736         * lib/mkfifo.c (mkfifo): Likewise.
74737         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74738         defaults.
74739         * modules/sys_stat (Makefile.am): Substitute them.
74740         * lib/sys_stat.in.h (mkfifo): Declare replacement.
74741         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74742         Document it.
74743         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
74744         * modules/mkfifo-tests: New test.
74745         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
74746         from test-mkfifoat.c.
74747         * tests/test-mkfifo.c: New file.
74749         readlink: detect FreeBSD bug
74750         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
74751         slash on symlink.
74752         * doc/posix-functions/readlink.texi (readlink): Document the bug.
74753         * tests/test-readlink.h (test_readlink): Enhance test.
74755         symlink: detect FreeBSD bug
74756         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
74757         slash on symlink.
74758         * doc/posix-functions/symlink.texi (symlink): Document the bug.
74759         * tests/test-symlink.h (test_symlink): Enhance test.
74761 2009-11-10  Eric Blake  <ebb9@byu.net>
74763         link: detect FreeBSD bug
74764         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
74765         symlink.
74766         * doc/posix-functions/link.texi (link): Document the bug.
74767         * tests/test-link.h (test_link): Enhance test.
74768         * tests/test-linkat.c (main): Update caller.
74770         unlink, remove: detect FreeBSD bug
74771         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
74772         slash on symlink.
74773         * doc/posix-functions/unlink.texi (unlink): Document the bug.
74774         * doc/posix-functions/remove.texi (remove): Likewise.
74775         * tests/test-unlink.h (test_unlink): Enhance test.
74776         * tests/test-remove.c (main): Likewise.
74778 2009-11-09  Eric Blake  <ebb9@byu.net>
74780         rename: detect FreeBSD bug
74781         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
74782         slash on symlink.
74783         * modules/renameat-tests (Depends-on): Add filenamecat.
74784         * tests/test-rename.h (test_rename): Allow one more errno.
74785         * tests/test-renameat.c (main): Likewise.
74786         * doc/posix-functions/rename.texi (rename): Document the bug.
74788         open: detect FreeBSD bug
74789         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
74790         symlink.
74791         * doc/posix-functions/open.texi (open): Document the bug.
74792         * doc/posix-functions/utimes.texi (utimes): Likewise.
74793         * tests/test-open.h (test_open): Add parameters, and test symlink
74794         handling.
74795         * tests/test-open.c (main): Adjust caller.
74796         * tests/test-fcntl-safer.c (main): Likewise.
74797         * modules/open-tests (Depends-on): Add stdbool, symlink.
74798         * modules/fcntl-safer-tests (Depends-on): Likewise.
74799         * tests/test-openat.c (main): Add test-open tests.
74801         stat: detect FreeBSD bug
74802         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
74803         symlink.
74804         * doc/posix-functions/stat.texi (stat): Document the bug.
74805         * tests/test-stat.h (test_stat_func): Add argument.
74806         * tests/test-stat.c (main): Adjust caller.
74807         * tests/test-fstatat.c (main): Likewise.
74808         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74809         Reported by Jim Meyering.
74811 2009-11-09  James Youngman  <jay@gnu.org>
74813         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74814         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74816 2009-11-08  Jim Meyering  <meyering@redhat.com>
74818         utimens: remove invalid futimesat call
74819         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74820         It used the file descriptor of the target file as the DIR_FD
74821         parameter and NULL as the file name.  That caused failure with
74822         errno == EFAULT on FreeBSD-8.0-rc2
74824 2009-11-07  Eric Blake  <ebb9@byu.net>
74826         fflush, freadseek: use fseeko, not fseek
74827         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74828         (clear_ungetc_buffer): Avoid potential problems on large files.
74829         * lib/freadseek.c (freadseek): Likewise.
74830         * modules/freadseek (Depends-on): Add fseeko.
74831         * modules/fseek (configure.ac): Set a witness.
74832         * tests/test-fflush.c (main): Use fseeko.
74833         * tests/test-fpurge.c (fseek): Disable link warning.
74834         * tests/test-freadable.c (fseek): Likewise.
74835         * tests/test-freading.c (fseek): Likewise.
74836         * tests/test-fseeko.c (fseek): Likewise.
74837         * tests/test-ftell.c (fseek): Likewise.
74838         * tests/test-ftello.c (fseek): Likewise.
74839         * tests/test-fwritable.c (fseek): Likewise.
74840         * tests/test-fwriting.c (fseek): Likewise.
74842 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74844         * modules/memchr (Depends-on): Drop getpagesize dependency.
74846 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74848         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74849         Reported by Ludovic Courtès.
74850         * build-aux/pmccabe2html: Improve example usage.
74851         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74853 2009-11-06  Jim Meyering  <meyering@redhat.com>
74855         do-release-commit-and-tag: New module.
74856         Automate the release-commit and tag process.
74857         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74858         * modules/do-release-commit-and-tag: New file.
74859         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74861 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74863         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74864         because test-select.c uses inet_pton.
74866 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74868         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74869         GETADDRINFO_LIB.  Bump serial number.
74870         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74871         Suggested by Eric Blake <ebb9@byu.net>.
74873 2009-11-05  Eric Blake  <ebb9@byu.net>
74875         strtod: detect darwin bug
74876         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74877         Reported by Leo Davis.
74879         freopen-safer: new module
74880         * modules/freopen-safer: New module.
74881         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74882         * lib/freopen-safer.c (freopen_safer): New file.
74883         * lib/stdio-safer.h (freopen_safer): New declaration.
74884         * lib/stdio--.h (freopen): New override.
74885         * MODULES.html.sh (File stream based Input/Output): Mention it.
74886         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74887         freopen-safer module.
74888         * doc/posix-functions/stderr.texi (stderr): Likewise.
74889         * doc/posix-functions/stdin.texi (stdin): Likewise.
74890         * doc/posix-functions/stdout.texi (stdout): Likewise.
74891         * modules/freopen-safer-tests: New test.
74892         * tests/test-reopen-safer.c: New file.
74894 2009-11-05  Jim Meyering  <meyering@redhat.com>
74896         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74897         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74899 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74901         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74903 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74905         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74907 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74909         Fix link error.
74910         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74911         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74913 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74915         * tests/test-func.c: Also test value of __func__.
74917 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74919         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74920         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74922 2009-11-05  Bruno Haible  <bruno@clisp.org>
74924         Fix link error.
74925         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74926         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74927         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74929 2009-11-05  Bruno Haible  <bruno@clisp.org>
74931         Tests for module 'inet_pton'.
74932         * modules/inet_pton-tests: New file.
74933         * tests/test-inet_pton.c: New file.
74935 2009-11-05  Bruno Haible  <bruno@clisp.org>
74937         Tests for module 'inet_ntop'.
74938         * modules/inet_ntop-tests: New file.
74939         * tests/test-inet_ntop.c: New file.
74941 2009-11-04  Eric Blake  <ebb9@byu.net>
74943         stdlib-safer: wrap all mkstemp variants
74944         * modules/mkostemp (configure.ac): Set witness.
74945         * modules/mkostemps (configure.ac): Likewise.
74946         * modules/mkstemps (configure.ac): Likewise.
74947         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74948         (mkstemps_safer): Wrap more functions.
74949         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74950         wrapping.
74951         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74952         (mkstemps_safer): Implement the wrappers.
74954         mkstemps, mkostemps: new modules
74955         * modules/mkostemps: New module.
74956         * modules/mkstemps: Likewise.
74957         * lib/mkostemps.c (mkostemps): New file.
74958         * lib/mkstemps.c (mkstemps): Likewise.
74959         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74960         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74962         * modules/stdlib (Makefile.am): Substitute them.
74963         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74964         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74965         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74966         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74967         * MODULES.html.sh (File system functions): Mention them.
74969         tempname: resync from glibc
74970         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74971         same values for __GT_FILE as glibc.  Abort even when assertions
74972         are disabled.
74973         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74974         match its value otherwise.  Allow idempotent inclusion.
74975         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74976         * lib/mkostemp.c (mkostemp): Likewise.
74977         * lib/mkstemp.c (mkstemp): Likewise.
74978         * lib/tmpfile.c (tmpfile): Likewise.
74979         * NEWS: Document this.
74981         utimens: fix use of futimens on older Linux
74982         * lib/utimens.c (fdutimens): Use updated, rather than original,
74983         timespec to avoid bug in older Linux kernel.
74984         Reported by Simon Josefsson.
74986 2009-11-04  Bruno Haible  <bruno@clisp.org>
74988         Make num_processors more flexible and consistent.
74989         * lib/nproc.h (enum nproc_query): New type.
74990         (num_processors): Add a 'query' argument.
74991         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74992         (num_processors): Add a 'query' argument. Test the value of the
74993         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74994         mingw, count the number of CPUs available for the current process.
74995         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74996         Check for sched_getaffinity and sched_getaffinity_np.
74997         * modules/nproc (Depends-on): Add c-ctype, extensions.
74998         * NEWS: Mention the change.
75000 2009-11-03  Bruno Haible  <bruno@clisp.org>
75002         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
75004 2009-11-03  Jim Meyering  <meyering@redhat.com>
75006         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
75007         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
75008         if it is defined.
75010 2009-11-02  Eric Blake  <ebb9@byu.net>
75012         mktime, timegm: share common declaration
75013         * lib/mktime-internal.h: New file.
75014         * lib/mktime.c: Use it rather than open-coding a declaration.
75015         * lib/timegm.c: Likewise.
75016         * modules/mktime (Files): Ship it.
75017         * modules/timegm (Files): Likewise.
75018         Suggested by Bruno Haible.
75020         test-update-copyright: update test to match script changes
75021         * tests/test-update-copyright.sh: Avoid hard-coding perl
75022         location.  Don't update *.bak created by earlier runs.
75024 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75025             Simon Josefsson  <simon@josefsson.org>
75026             Bruno Haible  <bruno@clisp.org>
75028         Fix link error on Solaris 8.
75029         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
75030         also in libnsl. Define also INET_PTON_LIB.
75031         * modules/inet_pton (Link): New section.
75033 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75034             Bruno Haible  <bruno@clisp.org>
75036         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
75037         * modules/inet_ntop (Link): New section.
75038         Reported by Boyan Kasarov <bkasarov@gmail.com>.
75040 2009-11-02  Eric Blake  <ebb9@byu.net>
75042         maint: avoid compiler warnings in m4 macros
75043         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
75044         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
75046 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75048         * m4/pmccabe2html.m4: Remove file.
75049         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
75050         function.  Change maintainer.
75051         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
75052         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
75053         Courtès).
75055 2009-10-31  Eric Blake  <ebb9@byu.net>
75057         fseeko: fix m4 regression
75058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
75059         regression from 2009-10-27.
75060         Reported by Ralf Wildenhues.
75062 2009-10-31  Jim Meyering  <meyering@redhat.com>
75064         inttostr: aesthetics and improved (compile-time) safety
75065         Define inttype_is_signed rather than inttype_is_unsigned,
75066         since the sole use is via "#if inttype_is_signed".
75067         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
75068         inttype_is_unsigned.
75069         * lib/offtostr.c (inttype_is_signed): Likewise.
75070         * lib/uinttostr.c (inttype_is_signed): Likewise.
75071         * lib/umaxtostr.c (inttype_is_signed): Likewise.
75072         * lib/inttostr.c (inttostr): Use verify to cross-check the
75073         inttype_is_signed value and the signedness of the actual type.
75074         * modules/inttostr (Depends-on): Add verify.
75076 2009-10-30  Eric Blake  <ebb9@byu.net>
75078         build: avoid compiler warnings
75079         * lib/fchmodat.c (lchmod): Mark unused variables.
75080         * lib/getopt.c (_getopt_initialize): Likewise.
75081         * lib/mktime.c (__mktime_internal): Provide prototype.
75082         * lib/inttostr.c (inttostr): Avoid compiler warning even with
75083         older gcc that do not understand #pragma GCC diagnostic.
75084         * lib/uinttostr.c (inttype_is_unsigned): Define.
75085         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
75087 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
75089         stat: fix compilation on AIX
75090         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
75091         only see struct stat64.
75093 2009-10-30  Eric Blake  <ebb9@byu.net>
75095         exclude: make more robust
75096         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
75097         rather than masking a coding bug.
75098         Suggested by Bruno Haible.
75100 2009-10-30  Jim Meyering  <meyering@redhat.com>
75102         perl scripts: remove #!/usr/bin/perl in favor of more portable...
75103         Rather than putting #!/usr/bin/perl on the first line,
75104         start with a variant of what's recommended by "man perlrun" that
75105         invokes the first "perl" program from your shell's search path.
75106         * build-aux/gitlog-to-changelog: Replace #!... as above.
75107         Add a "Local Variables" perl mode setting.
75108         Prompted by a patch from Ludovic Courtès.
75109         Improved by Eric Blake.
75110         * build-aux/useless-if-before-free: Likewise.
75111         * build-aux/announce-gen: Likewise.
75112         * build-aux/update-copyright: Likewise.
75114 2009-10-29  Eric Blake  <ebb9@byu.net>
75116         filenamecat-lgpl: adjust clients
75117         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
75118         filenamecat.
75119         * modules/renameat (Depends-on): Likewise.
75121         filenamecat: split into filenamecat-lgpl
75122         * modules/filenamecat-lgpl: New module.
75123         * modules/filenamecat (Files): Move library-safe files into
75124         filenamecat-lgpl.
75125         (Depends-on): Add filenamecat-lgpl.
75126         (configure.ac): Declare witness.
75127         * lib/filenamecat.h (file_name_concat): Only declare when using
75128         GPL module.
75129         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
75130         Move...
75131         * lib/filenamecat-lgpl.c: ...into new file.
75132         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
75133         (gl_FILE_NAME_CONCAT): Use it.
75134         * MODULES.html.sh (File system functions): Mention new module.
75136         argp: avoid memory leak
75137         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
75138         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
75139         base_name, since the latter malloc()s and can call exit().
75140         Leak introduced 2006-07-03.
75142         dirname-lgpl: adjust clients that don't need full dirname
75143         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
75144         * modules/filenamecat (Depends-on): Likewise.
75145         * modules/linkat (Depends-on): Likewise.
75146         * modules/mkancesdirs (Depends-on): Likewise.
75147         * modules/mkdir (Depends-on): Likewise.
75148         * modules/openat (Depends-on): Likewise.
75149         * modules/savewd (Depends-on): Likewise.
75150         * modules/rename (Depends-on): Likewise.
75151         (License): Relax license.
75152         * modules/mkdir-tests (Depends-on): Drop progname.
75153         (Makefile.am): Delete unneeded LDADD.
75154         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
75156         dirname: split into dirname-lgpl
75157         * modules/dirname-lgpl: New module.
75158         * modules/dirname (Files): Move library-safe files into
75159         dirname-lgpl.
75160         (Depends-on): Add dirname-lgpl.
75161         (configure.ac): Declare witness.
75162         * modules/double-slash-root (License): Relax license.
75163         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
75164         module.
75165         * lib/dirname.c (dir_len, mdir_name): Move...
75166         * lib/dirname-lgpl.c: ...into new file.
75167         * lib/basename.c (last_component, base_len): Move...
75168         * lib/basename-lgpl.c: ...into new file.
75169         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
75170         (gl_DIRNAME): Use it.
75171         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
75172         Mention new module.
75173         * modules/dirname-tests (Depends-on): Add progname.
75174         * tests/test-dirname.c (program_name): Delete.
75176         mkdir: make safe for libraries
75177         * modules/mkdir (Depends-on): Drop xalloc.
75178         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
75179         exit.
75181         tests: avoid some compiler warnings
75182         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
75183         literals.
75184         * tests/test-memchr.c (main): Avoid type mismatch.
75185         * tests/test-arpa_inet.c (main): Avoid unused parameters.
75186         * tests/test-base64.c (main): Likewise.
75187         * tests/test-getdelim.c (main): Likewise.
75188         * tests/test-gethostname.c (main): Likewise.
75189         * tests/test-getline.c (main): Likewise.
75190         * tests/test-netinet_in.c (main): Likewise.
75191         * tests/test-select.c (open_server_socket, main): Likewise.
75192         * tests/test-select-stdin.c (main): Likewise.
75193         * tests/test-sockets.c (main): Likewise.
75194         * tests/test-strsignal.c (main): Likewise.
75195         * tests/test-sys_select.c (main): Likewise.
75196         * tests/test-sys_socket.c (main): Likewise.
75197         * tests/test-u64.c (main): Likewise.
75198         * tests/test-xfprintf-posix.c (main): Likewise.
75199         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
75201         sockets: avoid compiler warning
75202         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
75204         maint: detect usage(1) and other suspicious exits
75205         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
75207 2009-10-29  Jim Meyering  <meyering@redhat.com>
75209         timespec: long-to-int truncation could make timespec_cmp malfunction
75210         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
75211         a multiple of 2^32 nanoseconds as no difference.
75213 2009-10-28  Jim Meyering  <meyering@redhat.com>
75215         fprintftime: wrap macro code argument in "do {...} while(0)"
75216         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
75217         cpy macro must be a statement that can be followed by a semicolon.
75218         Now that the else clause contains a comment and is hence longer
75219         than one line, I require curly braces.  That in turn requires
75220         that we wrap this code block in the standard do...while(0).
75222         fprintftime: remove stray semicolon from previous change
75223         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
75225         fprintftime: avoid a warning about ignored fwrite return value
75226         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
75227         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
75228         that is unsafe.
75229         * modules/fprintftime (Depends-on): Add ignore-value.
75231         exclude: avoid an unwarranted warning
75232         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
75234 2009-10-27  Eric Blake  <ebb9@byu.net>
75236         fseek: avoid compilation failure when fflush is replaced
75237         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
75238         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
75239         module is in use.
75240         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
75241         module is not in use; since REPLACE_FSEEK worked otherwise.
75242         (GNULIB_FTELLO): Likewise for ftell.
75243         Reported by Ian Beckwith and others.
75245 2009-10-27  Bruno Haible  <bruno@clisp.org>
75247         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
75248         Reported by Jim Meyering.
75250 2009-10-27  Jim Meyering  <jim@meyering.net>
75251             Bruno Haible  <bruno@clisp.org>
75253         Avoid warning despite dropping the return value of fwrite.
75254         * lib/unicodeio.c: Include ignore-value.h.
75255         (fwrite_success_callback): Explicitly ignore fwrite's return value.
75256         * modules/unicodeio (Depends-on): Add ignore-value.
75258 2009-10-26  Eric Blake  <ebb9@byu.net>
75260         areadlinkat: fix fallback path
75261         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
75262         pointer and zero.
75264 2009-10-22  Pádraig Brady  <P@draigBrady.com>
75266         Use a better IO block size for modern systems
75267         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
75268         * lib/md2.c: Likewise.
75269         * lib/md4.c: Likewise.
75270         * lib/md5.c: Likewise.
75271         * lib/sha1.c: Likewise.
75272         * lib/sha256.c: Likewise.
75273         * lib/sha512.c: Likewise.
75275 2009-10-22  Eric Blake  <ebb9@byu.net>
75277         tests: avoid several compiler warnings
75278         * tests/test-getcwd.c (main): Avoid buffer underflow.
75279         * tests/test-getdate.c (main): String literals are not safe with
75280         putenv, so use setenv.  Declare unused argument.
75281         * modules/getdate-tests (Depends-on): Add setenv.
75282         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
75283         problems with string literals in char *.
75284         * tests/test-hash.c (main): Avoid shadowing declaration.
75285         (insert_new): Treat string literals as char const *.
75286         * tests/test-getopt.h (test_getopt): Likewise.
75287         (getopt_loop): Alter types to minimize casting elsewhere.
75288         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
75289         (test_getopt_long_posix): Likewise.
75290         (do_getopt_long): Add wrapper to minimize casting.
75291         * tests/test-atexit.c (clear_temp_file): Use void.
75292         * tests/test-areadlink-with-size.c (main): Declare unused
75293         arguments.
75294         * tests/test-areadlink.c (main): Likewise.
75295         * tests/test-areadlinkat-with-size.c (main): Likewise.
75296         * tests/test-areadlinkat.c (main): Likewise.
75297         * tests/test-canonicalize-lgpl.c (main): Likewise.
75298         * tests/test-canonicalize.c (main): Likewise.
75299         * tests/test-dirent-safer.c (main): Likewise.
75300         * tests/test-dirname.c (main): Likewise.
75301         * tests/test-dup2.c (main): Likewise.
75302         * tests/test-fchdir.c (main): Likewise.
75303         * tests/test-fcntl-h.c (main): Likewise.
75304         * tests/test-fcntl-safer.c (main): Likewise.
75305         * tests/test-fdopendir.c (main): Likewise.
75306         * tests/test-fdutimensat.c (main): Likewise.
75307         * tests/test-fflush.c (main): Likewise.
75308         * tests/test-filenamecat.c (main): Likewise.
75309         * tests/test-filevercmp.c (main): Likewise.
75310         * tests/test-fopen-safer.c (main): Likewise.
75311         * tests/test-fopen.c (main): Likewise.
75312         * tests/test-fpending.c (main): Likewise.
75313         * tests/test-fpurge.c (main): Likewise.
75314         * tests/test-freading.c (main): Likewise.
75315         * tests/test-fstatat.c (main): Likewise.
75316         * tests/test-fsync.c (main): Likewise.
75317         * tests/test-futimens.c (main): Likewise.
75318         * tests/test-getndelim2.c (main): Likewise.
75319         * tests/test-gettimeofday.c (main): Likewise.
75320         * tests/test-getopt.c (main): Likewise.
75321         * tests/test-i-ring.c (main): Likewise.
75322         * tests/test-inttypes.c (main): Likewise.
75323         * tests/test-link.c (main): Likewise.
75324         * tests/test-lstat.c (main): Likewise.
75325         * tests/test-math.c (main): Likewise.
75326         * tests/test-md5.c (main): Likewise.
75327         * tests/test-memchr2.c (main): Likewise.
75328         * tests/test-memrchr.c (main): Likewise.
75329         * tests/test-mkdir.c (main): Likewise.
75330         * tests/test-mkdirat.c (main): Likewise.
75331         * tests/test-mkfifoat.c (main): Likewise.
75332         * tests/test-open.c (main): Likewise.
75333         * tests/test-openat-safer.c (main): Likewise.
75334         * tests/test-openat.c (main): Likewise.
75335         * tests/test-quotearg.c (main): Likewise.
75336         * tests/test-rawmemchr.c (main): Likewise.
75337         * tests/test-readlink.c (main): Likewise.
75338         * tests/test-remove.c (main): Likewise.
75339         * tests/test-rename.c (main): Likewise.
75340         * tests/test-renameat.c (main): Likewise.
75341         * tests/test-rmdir.c (main): Likewise.
75342         * tests/test-sha1.c (main): Likewise.
75343         * tests/test-signal.c (main): Likewise.
75344         * tests/test-sigaction.c (main): Likewise.
75345         * tests/test-stat.c (main): Likewise.
75346         * tests/test-stat-time.c (main): Likewise.
75347         * tests/test-stddef.c (main): Likewise.
75348         * tests/test-stdint.c (main): Likewise.
75349         * tests/test-stdio.c (main): Likewise.
75350         * tests/test-stdlib.c (main): Likewise.
75351         * tests/test-strchrnul.c (main): Likewise.
75352         * tests/test-strerror.c (main): Likewise.
75353         * tests/test-string.c (main): Likewise.
75354         * tests/test-strtod.c (main): Likewise.
75355         * tests/test-strverscmp.c (main): Likewise.
75356         * tests/test-symlink.c (main): Likewise.
75357         * tests/test-symlinkat.c (main): Likewise.
75358         * tests/test-sys_stat.c (main): Likewise.
75359         * tests/test-sys_time.c (main): Likewise.
75360         * tests/test-time.c (main): Likewise.
75361         * tests/test-unistd.c (main): Likewise.
75362         * tests/test-unlink.c (main): Likewise.
75363         * tests/test-unlinkat.c (main): Likewise.
75364         * tests/test-utimens.c (main): Likewise.
75365         * tests/test-utimensat.c (main): Likewise.
75366         * tests/test-version-etc.c (main): Likewise.
75367         * tests/test-wchar.c (main): Likewise.
75368         * tests/test-wctype.c (main): Likewise.
75369         * tests/test-xprintf-posix.c (main): Likewise.
75370         * tests/test-posixtm.c (main): Likewise.
75371         (STREQ): Delete unused macro.
75372         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
75373         shadowed variables.
75374         * tests/test-memchr.c (main): Likewise.
75376 2009-10-21  Eric Blake  <ebb9@byu.net>
75378         areadlinkat: avoid failure on older glibc
75379         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
75380         rather than mis-comparing 0 against FUNC_RESULT of char*.
75382 2009-10-21  Bruno Haible  <bruno@clisp.org>
75384         * modules/stpncpy (License): Relicense under LGPLv2+.
75385         Reported by David Lutterkort <lutter@redhat.com>.
75387 2009-10-20  Eric Blake  <ebb9@byu.net>
75389         utimensat: work around Solaris 9 bug
75390         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
75391         has trailing slash bugs.
75392         * tests/test-lutimens.h (test_lutimens): Enhance test.
75393         * tests/test-utimens.h (test_utimens): Likewise.
75394         * doc/posix-functions/utime.texi (utime): Enhance documentation.
75395         * doc/posix-functions/utimes.texi (utimes): Likewise.
75396         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75397         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
75398         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
75399         * doc/posix-functions/futimens.texi (futimens): Likewise.
75401         fdutimensat: new module
75402         * modules/fdutimensat: New file.
75403         * lib/fdutimensat.c (fdutimensat): Likewise.
75404         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
75405         * MODULES.html.sh (File system functions): Mention module.
75406         * modules/fdutimensat-tests: New test.
75407         * tests/test-fdutimensat.c: Likewise.
75409         doc: regenerate INSTALL
75410         * doc/INSTALL: Reflect recent autoconf update.
75411         * doc/INSTALL.ISO: Likewise.
75412         * doc/INSTALL.UTF-8: Likewise.
75414 2009-10-20  Pádraig Brady  <P@draigBrady.com>
75416         acl: warn if ACL support is not detected
75417         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
75419 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
75421         * lib/nproc.h: Add extern "C" block for C++.
75423 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
75424             Bruno Haible  <bruno@clisp.org>
75426         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
75427         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
75428         * doc/posix-functions/isalpha.texi: Likewise.
75429         * doc/posix-functions/isblank.texi: Likewise.
75430         * doc/posix-functions/iscntrl.texi: Likewise.
75431         * doc/posix-functions/isdigit.texi: Likewise.
75432         * doc/posix-functions/isgraph.texi: Likewise.
75433         * doc/posix-functions/islower.texi: Likewise.
75434         * doc/posix-functions/isprint.texi: Likewise.
75435         * doc/posix-functions/ispunct.texi: Likewise.
75436         * doc/posix-functions/isspace.texi: Likewise.
75437         * doc/posix-functions/isupper.texi: Likewise.
75438         * doc/posix-functions/isxdigit.texi: Likewise.
75440 2009-10-18  Bruno Haible  <bruno@clisp.org>
75442         Tests for module 'isblank'.
75443         * modules/isblank-tests: New file.
75444         * tests/test-isblank.c: New file.
75446         New module 'isblank'.
75447         * lib/isblank.c: New file.
75448         * m4/isblank.m4: New file.
75449         * modules/isblank: New file.
75450         * doc/posix-functions/isblank.texi: Mention the new module.
75452 2009-10-18  Bruno Haible  <bruno@clisp.org>
75454         New module 'ctype'.
75455         * lib/ctype.in.h: New file.
75456         * m4/ctype.m4: New file.
75457         * modules/ctype: New file.
75458         * doc/posix-headers/ctype.texi: Mention the new module.
75460 2009-10-18  Jim Meyering  <meyering@redhat.com>
75462         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
75463         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
75464         right after its initialization, rather than farther down.
75465         Keeping these in close proximity makes it easier to ensure
75466         that each such variable is initialized.  E.g.,
75468             LIB_CLOCK_GETTIME=
75469             AC_SUBST([LIB_CLOCK_GETTIME])
75471         This change also increments these serial numbers.
75472         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
75473         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75476 2009-10-18  Bruno Haible  <bruno@clisp.org>
75478         Don't let environment variables perturb build.
75479         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
75480         (gl_PREREQ_GETHRXTIME): ... not here.
75482 2009-10-18  Bruno Haible  <bruno@clisp.org>
75484         Avoid symlink attack in localcharset module.
75485         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
75486         (O_NOFOLLOW): Define fallback.
75487         (get_charset_aliases): Don't open the file if it is a symbolic link.
75488         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
75489         gl_FCNTL_H.
75490         (gl_FCNTL_H): Require it.
75491         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
75492         * modules/localcharset (Files): Add m4/fcntl_h.m4.
75493         Reported by Fergal Glynn <fglynn@veracode.com>.
75495 2009-10-18  Bruno Haible  <bruno@clisp.org>
75497         Implement nproc for mingw.
75498         * lib/nproc.c: Include <windows.h>
75499         (num_processors): On native Windows platforms, try GetSystemInfo.
75501 2009-10-18  Bruno Haible  <bruno@clisp.org>
75503         Implement nproc for IRIX.
75504         * lib/nproc.c: Include <sys/sysmp.h>.
75505         (num_processors): On IRIX systems, try sysmp.
75506         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
75508 2009-10-18  Bruno Haible  <bruno@clisp.org>
75510         Implement nproc for HP-UX.
75511         * lib/nproc.c: Include <sys/pstat.h>
75512         (num_processors): On HP-UX systems, try pstat_getdynamic.
75513         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
75514         pstat_getdynamic.
75516 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
75517             Bruno Haible  <bruno@clisp.org>
75519         Implement nproc for NetBSD, OpenBSD.
75520         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
75521         (ARRAY_SIZE): New macro.
75522         (num_processors): On BSD systems, try sysctl of HW_NCPU.
75523         * m4/nproc.m4: New file.
75524         * modules/nproc (Files): Add m4/nproc.m4.
75525         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
75526         (Makefile.am): Instead, augment lib_SOURCES.
75528 2009-10-18  Bruno Haible  <bruno@clisp.org>
75530         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
75531         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
75532         sys/param.h.
75534 2009-10-16  Eric Blake  <ebb9@byu.net>
75536         utimensat: new module
75537         * modules/utimensat: New file.
75538         * lib/utimensat.c (utimensat): Likewise.
75539         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75540         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
75541         so we can work around Linux bugs.
75542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75543         * modules/sys_stat (Makefile.am): Substitute them.
75544         * lib/sys_stat.in.h (utimensat): Declare it.
75545         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75546         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75547         * modules/utimensat-tests: New test.
75548         * tests/test-utimensat.c: Likewise.
75550         utimens: let lutimens work on non-symlinks
75551         * lib/utimens.c (lutimens): Fall back to utimens rather than
75552         failing with ENOSYS, when file is not a symlink.
75553         (utimens): Reduce redirection.
75554         * tests/test-lutimens.h (test_lutimens): Update test to cover
75555         non-symlinks.
75556         * tests/test-utimens.h (test_utimens): Update test to cover
75557         symlinks.
75558         * tests/test-utimens.c (main): Update caller.
75560         utimens: cache whether utimensat syscall works
75561         * lib/utimens.c (utimensat_works_really): New cache variable.
75562         (fdutimens, lutimens): Use it to avoid failing syscall.
75564         test-stat-time, test-utimens: improve portability
75565         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
75566         ext4 on alpha, and for cygwin.
75567         * tests/test-utimens-common.h: New file.
75568         (nap): Factor delays into single function.
75569         * tests/test-lutimens.h (test_lutimens): Use new header.
75570         * tests/test-futimens.h (test_futimens): Likewise.
75571         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
75572         timestamps to occur from same machine, as was done previously for
75573         test_utimens.
75574         * modules/utimens-tests (Files): Ship new file.
75575         * modules/futimens-tests (Files): Likewise.
75576         Reported in part by Jim Meyering.
75578         sys_stat: sort replacement declarations
75579         * lib/sys_stat.in.h: Sort declarations.
75580         * lib/futimens.c (futimens): Fix typo.
75582 2009-10-15  Jim Meyering  <meyering@redhat.com>
75584         don't let environment settings perturb build
75585         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
75586         could cause a configure-time and/or build-time malfunction.
75587         Typically, a configure-time function-in-library test is performed
75588         via code like this:
75590           LIB_VAR=
75591           AC_SUBST([LIB_VAR])
75592           prefix_saved_LIBS=$LIBS
75593             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
75594                        [test "$ac_cv_search_FUNC" = "none required" ||
75595                         LIB_VAR=$ac_cv_search_FUNC])
75596           LIBS=$prefix_saved_LIBS
75598         However, in each of the files affected by this change, the LIB_VAR=
75599         initialization was omitted.  Thus, when set in the environment, its
75600         value would propagate into generated Makefiles when FUNC is not found
75601         in LIB_NAME.
75602         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
75603         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75606 2009-10-14  Eric Blake  <ebb9@byu.net>
75608         fchdir: avoid infinite recursion in mingw
75609         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
75610         recursing.
75612         test-stat-time: port to mingw
75613         * tests/test-stat-time.c (force_unlink): Return a value.
75614         (test_ctime) [W32]: Fix compilation error.
75615         (nap): Don't call usleep with too large an argument.  Use
75616         force_unlink.
75617         * doc/pastposix-functions/usleep.texi (usleep): Document the
75618         portability issue.
75620 2009-10-13  Jim Meyering  <meyering@redhat.com>
75622         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
75623         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
75624         * modules/pipe-filter-ii: Likewise.
75625         * modules/sys_socket-tests: Likewise.
75626         * modules/tsearch-tests: Likewise.
75627         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
75628         (check): Depend on it.
75630 2009-10-12  Eric Blake  <ebb9@byu.net>
75632         utimens-tests: port to NFS file systems
75633         * tests/test-utimens.h (test_utimens): Refactor utimecmp
75634         comparisons to avoid spurious failures from timestamp drift
75635         between NFS machines.
75637 2009-10-12  Eric Blake  <ebb9@byu.net>
75639         stat-time-tests: minor cleanups
75640         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
75641         * tests/test-stat-time.c (nap): Separate assignment from call.
75642         Suggested by Paolo Bonzini and Bruno Haible.
75644         sys_stat: guarantee struct timespec
75645         * lib/sys_stat.in.h (includes): Always include <time.h>
75646         * modules/sys_stat (Depends-on): Add time.
75647         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
75648         mode_t permission values.
75649         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
75650         get at subsecond timestamps.
75652 2009-10-10  Eric Blake  <ebb9@byu.net>
75654         futimens: new module
75655         * modules/futimens: New file.
75656         * lib/futimens.c (futimens): Likewise.
75657         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
75658         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
75659         we can work around Linux bugs.
75660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75661         * modules/sys_stat (Makefile.am): Substitute them.
75662         * lib/sys_stat.in.h (futimens): Declare it.
75663         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75664         * doc/posix-functions/futimens.texi (futimens): Likewise.
75665         * modules/futimens-tests: New test.
75666         * tests/test-futimens.c: Likewise.
75668         utimens: introduce fdutimens
75669         * lib/utimens.h (fdutimens): New prototype.
75670         * lib/utimens.c (gl_futimens): Move guts...
75671         (fdutimens): ...to new interface.
75672         * tests/test-utimens.c (do_fdutimens): Use it.
75674         utimens: add UTIME_NOW and UTIME_OMIT support
75675         * lib/utimens.c (validate_timespec, update_timespec): New helper
75676         functions.
75677         (gl_futimens, lutimens): Use them.
75678         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75679         stdbool, sys_stat.
75680         (Link): Mention resulting library dependency.
75681         * modules/utimecmp (Link): Likewise.
75682         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75683         (Makefile.am): Pick up library dependency.
75684         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75685         definition.
75686         * tests/test-sys_stat.c: Test the definitions.
75687         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75688         * NEWS: Document library dependency.
75690         utimecmp: support symlink timestamps
75691         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75692         hashing when possible.  Use pathconf when available.
75693         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75694         * modules/utimecmp (Depends-on): Add lstat.
75696         utimens: add lutimens interface
75697         * lib/utimens.c (lutimens): New function.
75698         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75699         * lib/utimens.h (lutimens): Declare new interface.
75700         * tests/test-utimens.c (main): Enhance test.
75701         * tests/test-lutimens.h (test_lutimens): New file.
75702         * modules/utimens-tests (Files): Distribute it.
75703         (Depends-on): Add symlink.
75704         (configure.ac): Check for usleep.
75706         utimens: validate futimens usage
75707         * lib/utimens.c (gl_futimens): Require valid fd up front, using
75708         fewer syscalls on failure later on.  Avoid compiler warning on
75709         mingw.
75710         * modules/utimens (Depends-on): Add dup2.
75712         utimens: add test
75713         * modules/utimens-tests: New test.
75714         * tests/test-utimens.h: New file.
75715         * tests/test-futimens.h: Likewise.
75716         * tests/test-utimens.c: Likewise.
75718         doc: mention timestamp portability issues
75719         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
75720         instead.
75721         * doc/posix-functions/utime.texi (utime): Likewise.
75722         * doc/posix-functions/utimes.texi (utimes): Likewise.
75723         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
75724         instead.
75725         * doc/posix-functions/futimens.texi (futimens): Mention utimens
75726         module.
75727         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75728         Mention weakness with symlink timestamps.
75729         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
75730         to utimensat/futimens instead.
75731         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
75733         test-dup2: enhance test
75734         * tests/test-dup2.c (main): Also check AT_FDCWD.
75736         test-stat-time: avoid more spurious failures
75737         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
75738         xfs; and avoid race if the two timestamps cross quantization edge.
75740         relocatable: prefer 'file system' over 'filesystem'
75741         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
75742         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
75743         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
75744         * doc/relocatable.texi (Enabling Relocatability): Likewise.
75745         * lib/relocatable.c (compute_curr_prefix): Likewise.
75747 2009-10-10  Jim Meyering  <meyering@redhat.com>
75749         stat-time-tests: check for the usleep function
75750         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
75752 2009-10-10  Bruno Haible  <bruno@clisp.org>
75754         * modules/xnanosleep: Put the Link section after the Include section.
75756 2009-10-09  Eric Blake  <ebb9@byu.net>
75758         dup2: work around FreeBSD 6.1 bug
75759         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
75760         * doc/posix-functions/dup2.texi (dup2): Document it.
75761         Reported by Nelson H. F. Beebe and Jim Meyering.
75763         test-stat-time: port to buggy NFS clients
75764         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
75765         (test_ctime): Also skip test if mtime and ctime are skewed.
75767         maint: prefer 'file system' over 'filesystem'
75768         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75769         * doc/posix-functions/lstat.texi (lstat): Likewise.
75770         * lib/file-has-acl.c (file_has_acl): Likewise.
75771         * lib/fwriteerror.c [TEST]: Likewise.
75772         * tests/test-areadlink.h (test_areadlink): Likewise.
75773         * tests/test-areadlinkat-with-size.c (main): Likewise.
75774         * tests/test-areadlinkat.c (main): Likewise.
75775         * tests/test-canonicalize-lgpl.c (main): Likewise.
75776         * tests/test-canonicalize.c (main): Likewise.
75777         * tests/test-fstatat.c (main): Likewise.
75778         * tests/test-linkat.c (main): Likewise.
75779         * tests/test-lstat.h (test_lstat_func): Likewise.
75780         * tests/test-mkdir.h (test_mkdir): Likewise.
75781         * tests/test-readlink.h (test_readlink): Likewise.
75782         * tests/test-remove.c (main): Likewise.
75783         * tests/test-rename.h (test_rename): Likewise.
75784         * tests/test-renameat.c (main): Likewise.
75785         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75786         * tests/test-symlink.h (test_symlink): Likewise.
75787         * tests/test-symlinkat.c (main): Likewise.
75788         * tests/test-unlink.h (test_unlink_func): Likewise.
75789         * tests/test-unlinkat.c (main): Likewise.
75791         maint: make realtime library usage explicit
75792         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
75793         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
75794         * modules/settime (Link): Likewise.
75795         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
75797         test-stat-time: speed up execution
75798         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
75799         warning on mingw.
75800         (nap): New helper function.
75801         (prepare_test): Use it to reduce sleep time.
75802         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
75803         execution.
75804         * modules/stat-time-tests (configure.ac): Check for usleep.
75806 2009-10-09  Jim Meyering  <meyering@redhat.com>
75808         selinux-h: always use getfilecon wrappers
75809         * lib/getfilecon.c: New file.
75810         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75811         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75812         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75813         (fgetfilecon): Provide a stub.
75814         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75815         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75816         file unconditionally.
75817         When <selinux/selinux.h> is found, arrange to use wrappers.
75818         * modules/selinux-h (Files): Add getfilecon.c.
75819         (Makefile.am): Substitute include-next-related bits
75820         into the now-always-generated selinux/selinux.h file.
75821         * doc/glibc-functions/lgetfilecon.texi: New file.
75822         * doc/glibc-functions/fgetfilecon.texi: New file.
75823         * doc/glibc-functions/getfilecon.texi: New file.
75824         * doc/glibc-functions/getfilecon-desc.texi: New file.
75825         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75826         which to pull in the new files.
75827         * MODULES.html.sh (Misc): Add selinux-h.
75829 2009-10-08  Jim Meyering  <meyering@redhat.com>
75831         unistd: fix comment typo
75832         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75834 2009-10-08  Eric Blake  <ebb9@byu.net>
75836         areadlink: use SIZE_MAX consistently
75837         * modules/areadlink (Depends-on): Add stdint.
75838         * modules/areadlink-with-size (Depends-on): Likewise.
75839         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75840         gives NULL; drop sys/types, since unistd gives size_t; and add
75841         stdint for SIZE_MAX.
75842         (SIZE_MAX): Rely on headers.
75843         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75844         and add stdint.
75845         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75846         (SIZE_MAX): Likewise.
75847         (INITIAL_BUF_SIZE): Turn into enum.
75848         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75850 2009-10-08  Jim Meyering  <meyering@redhat.com>
75852         areadlinkat: avoid compilation failure
75853         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75854         Fix typo in comment.
75856 2009-10-07  Eric Blake  <ebb9@byu.net>
75858         areadlinkat-with-size: new module
75859         * modules/areadlinkat-with-size: New module.
75860         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75861         * lib/areadlink.h (areadlinkat): Declare it.
75862         * MODULES.html.sh (File system functions): Mention it.
75863         * modules/areadlinkat-with-size-tests: New test.
75864         * tests/test-areadlinkat-with-size.c: New file.
75866         xreadlinkat: new module
75867         * modules/xreadlinkat: New module.
75868         * lib/xreadlinkat.c (xreadlinkat): New file.
75869         * lib/xreadlink.h (xreadlinkat): Declare it.
75870         * MODULES.html.sh (File system functions): Mention it.
75872         areadlinkat: new module
75873         * lib/at-func.c (FUNC_FAIL): New define.
75874         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75875         * modules/areadlinkat: New module.
75876         * lib/linkat.c (areadlinkat): Move...
75877         * lib/areadlinkat.c (areadlinkat): ...to new file.
75878         * lib/areadlink.h (areadlinkat): Declare it.
75879         * modules/linkat (Depends-on): Add areadlinkat.
75880         * MODULES.html.sh (File system functions): Mention it.
75881         * modules/areadlinkat-tests: New test.
75882         * tests/test-areadlinkat.c: New file.
75884         areadlink, areadlink-with-size: add tests
75885         * modules/areadlink-tests: New test.
75886         * modules/areadlink-with-size-tests: Likewise.
75887         * tests/test-areadlink.h: New file.
75888         * tests/test-areadlink.c: Likewise.
75889         * tests/test-areadlink-with-size.c: Likewise.
75891         maint: minor cleanups
75892         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75893         _UNUSED_PARAMETER_ instead.
75894         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75895         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75896         * modules/linkat-tests (Files): Distribute test-link.h.
75898         openat, utimens: whitespace cleanup
75899         * lib/openat.c: Prefer space throughout, rather than mix of 8
75900         spaces vs. tabs.
75901         * lib/at-func.c: Likewise.
75902         * lib/utimens.c: Likewise.
75904         openat: avoid using wrong fd
75905         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75906         working directory chooses same fd.
75907         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75909         mkdir, mkdirat: fix cygwin 1.5.x bug
75910         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75911         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75912         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75913         bug.
75914         (gl_PREREQ_MKDIR): Delete unused macro.
75915         * modules/mkdir (Files): Track file rename.
75916         (configure.ac): Update macro name.
75917         * modules/openat (Depends-on): Add mkdir.
75918         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75920         mkdir, mkdirat: add tests
75921         * modules/mkdir-tests: New test.
75922         * tests/test-mkdir.h: New file.
75923         * tests/test-mkdir.c: Likewise.
75924         * tests/test-mkdirat.c: Likewise.
75925         * modules/openat-tests (Files): Add new files.
75926         (Makefile.am): Run new test.
75928 2009-10-06  Eric Blake  <ebb9@byu.net>
75930         doc: tweak *at function documentation
75931         * doc/posix-functions/faccessat.texi (faccessat): Mention
75932         known issue with replacement.
75933         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75934         * doc/posix-functions/linkat.texi (linkat): Likewise.
75935         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75936         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75937         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75938         * doc/posix-functions/renameat.texi (renameat): Likewise.
75939         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75941         openat: fix GNU/Hurd bug in unlinkat
75942         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75943         broken.
75944         * doc/posix-functions/unlink.texi (unlink): Document this.
75945         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75947         fdopendir: fix GNU/Hurd bug
75948         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75949         allowing non-directory fds.
75950         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75951         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75952         * modules/dirent (Makefile.am): Substitute it.
75953         * lib/dirent.in.h (fdopendir): Declare replacement.
75954         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75955         * tests/test-fdopendir.c (main): Test something other than
75956         /dev/null, since on Hurd that behaves like a directory.
75958         test-symlink: port to GNU/Hurd
75959         * tests/test-symlink.h (test_symlink): Relax expected errno.
75961         doc: tweak more cygwin information
75962         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75963         now compatible with glibc.
75964         * doc/posix-functions/getopt.texi (getopt): Likewise.
75966         getopt-gnu: add another test
75967         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75968         guarantee behavior relied on by m4.
75969         * tests/test-getopt.c (main): Use it.
75970         * modules/getopt-posix-tests (Depends-on): Add setenv.
75971         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75973         getopt: fix compilation on darwin
75974         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75975         include.
75976         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75977         Reported by Ludovic Courtès.
75979 2009-10-06  Bruno Haible  <bruno@clisp.org>
75981         * modules/size_max (Description): Discourage its use.
75982         Reported by Simon Josefsson.
75984 2009-10-06  Jim Meyering  <meyering@redhat.com>
75986         linkat: avoid compilation failure
75987         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75989 2009-10-05  Eric Blake  <ebb9@byu.net>
75991         linkat: support Linux 2.6.17
75992         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75993         linkat on Linux, but allow cache variable override.
75994         * lib/linkat.c (rpl_linkat): Define override.
75995         * modules/linkat (Depends-on): Add symlinkat.
75996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75997         * modules/unistd (Makefile.am): Substitute it.
75998         * lib/unistd.in.h (linkat): Declare replacement.
75999         Reported by Pádraig Brady.
76001         quotearg: port test to systems with C.UTF-8 locale
76002         * tests/test-quotearg.c (struct result_strings): Add another
76003         member, differentiating between C.ASCII and C.UTF-8 handling.
76004         (compare_strings): Add parameter.
76005         (main): Adjust all callers.
76007         getopt: avoid clash with FreeBSD _getopt_internal
76008         * lib/getopt.in.h (_getopt_internal): Override the name.
76009         * lib/getopt_int.h (includes): Pick up any overrides.
76010         Reported by Reuben Thomas.
76012         hash: allow C89 compilation
76013         * lib/hash.c (check_tuning): Move declaration before statement.
76014         Reported by Reuben Thomas.
76016 2009-10-05  Karl Berry  <karl@gnu.org>
76018         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
76020 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
76021             Bruno Haible  <bruno@clisp.org>
76023         * lib/uname.c (uname): Use a table-driven algorithm to compute
76024         Windows NT versions.
76026 2009-10-04  Bruno Haible  <bruno@clisp.org>
76028         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
76029         program_invocation_short_name.
76030         * modules/progname (configure.ac): Test for presence of
76031         program_invocation_short_name.
76032         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
76034 2009-10-04  Bruno Haible  <bruno@clisp.org>
76036         * lib/progname.c (set_program_name): Fix comment.
76037         Reported by Jim Meyering.
76039 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76040             Bruno Haible  <bruno@clisp.org>
76042         * lib/uname.c: Include <string.h>.
76043         (uname): Do only one call to GetVersionEx in the common case.
76045 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76046             Bruno Haible  <bruno@clisp.org>
76048         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
76049         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
76050         (uname): Add support for Windows CE and various non-x86 CPU types.
76052 2009-10-03  Bruno Haible  <bruno@clisp.org>
76054         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
76055         invocation to tests/configure.ac.
76056         Reported by Ian Beckwith <ianb@erislabs.net>.
76058 2009-10-02  Eric Blake  <ebb9@byu.net>
76060         fchdir: avoid compiler warning
76061         * lib/fchdir.c (canonicalize_file_name)
76062         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
76064         test-open: support mingw errno values
76065         * tests/test-open.h (test_open): Relax test.
76066         * tests/test-fopen.h (test_fopen): Likewise.
76067         * tests/test-openat-safer.c (main): Likewise.
76069         open: fix opening directory on mingw
76070         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
76072         test-open: on GNU/Hurd, /dev/null is a directory
76073         * tests/test-fopen.h (main): Rename...
76074         (test_fopen): ...to this.  Use a guaranteed non-directory when
76075         confirming open behavior on trailing slash.
76076         * tests/test-openat-safer.c (main): Likewise.
76077         * tests/test-open.h (main): Likewise....
76078         (test_open): ...to this.
76079         * tests/test-fopen.c (main): Adjust caller.
76080         * tests/test-fopen-safer.c (main): Likewise.
76081         * tests/test-open.c (main): Likewise.
76082         * tests/test-fcntl-safer.c (main): Likewise.
76083         Reported by Samuel Thibault.
76085         rename, fchdir: don't ignore chdir failure
76086         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
76087         * lib/rename.c (rpl_rename) [W32]: Likewise.
76088         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
76089         an empty destination directory if source cannot be renamed,
76090         although there is still possibility for failure.
76091         * doc/posix-functions/rename.texi (rename): Document the race.
76092         Reported by Jim Meyering.
76094         maint: cleanup whitespace in recent commits
76095         * lib/rename.c (rpl_rename): Remove tabs.
76096         * tests/test-link.h (test_link): Likewise.
76097         * lib/fchdir.c (get_name): Likewise.
76098         Reported by Jim Meyering.
76100 2009-10-02  Ben Pfaff  <blp@gnu.org>
76102         relocatable-prog-wrapper: Add missing dependency on
76103         double-slash-root.
76104         * modules/relocatable-prog-wrapper: Add dependency.
76105         Reported by Ian Beckwith <ianb@erislabs.net>.
76107 2009-10-02  Eric Blake  <ebb9@byu.net>
76109         renameat: fix Solaris bugs
76110         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
76111         needed fixing.
76112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
76113         * modules/stdio (Makefile.am): Substitute it.
76114         * lib/stdio.in.h (renameat): Declare replacement.
76115         * lib/renameat.c (rpl_renameat): Implement fix.
76117         renameat: new module
76118         * modules/renameat: New file.
76119         * lib/renameat.c (renameat): Likewise.
76120         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
76121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76122         * modules/stdio (Makefile.am): Substitute them.
76123         * lib/stdio.in.h (renameat): Declare it.
76124         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76125         * doc/posix-functions/renameat.texi (renameat): Likewise.
76126         * modules/renameat-tests: New test.
76127         * tests/test-renameat.c: Likewise.
76129         rename: fix mingw bugs
76130         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
76131         directory overwrite bugs.
76133         rename: fix another cygwin 1.5 bug
76134         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
76135         checks.
76136         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
76137         unnecessary cygwin workarounds.  Also work around bug with moving
76138         full directory onto an empty one.
76139         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
76141         rename-dest-slash: merge into rename module
76142         * modules/rename-dest-slash (Status): Mark obsolete.
76143         (Depends-on): Add rename.
76144         (Files): Let rename do it all.
76145         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
76146         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
76147         * m4/rename-dest-slash.m4: ...so this file can be deleted.
76148         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
76149         * lib/rename.c (rpl_rename): Update comments.
76151         rename: fix cygwin 1.5.x bugs
76152         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
76153         * lib/rename.c (rpl_rename): Work around them.
76154         * modules/rename (Depends-on): Add same-inode.
76156         rename: fix Solaris 10 bug
76157         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76158         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
76159         was the only bug.
76161         rename: fix Solaris 9 bug
76162         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
76163         on non-directory.  Avoid calling exit.
76164         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
76165         strdup.
76166         * modules/rename-tests (Depends-on): Drop lstat.
76167         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76168         (gl_PREREQ_RENAME): Delete unused macro.
76170         rename-dest-slash: fix NetBSD bug
76171         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
76172         links.
76173         * modules/rename-dest-slash (Depends-on): Add same-inode.
76175         rename-tests: new test, exposes several platform bugs
76176         * modules/rename-tests: New file.
76177         * tests/test-rename.h: Likewise.
76178         * tests/test-rename.c: Likewise.
76179         * doc/posix-functions/rename.texi (rename): Improve documentation,
76180         including bugs that will eventually be fixed in gnulib.
76182 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
76184         * lib/uname.c: Include <stdlib.h>
76185         (uname): Assume version info is available.
76187 2009-10-02  Jim Meyering  <meyering@redhat.com>
76189         gnu-web-doc-update: correct --help output
76190         * build-aux/gnu-web-doc-update: Make --help output relevant.
76192         gnu-web-doc-update: add standard options
76193         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
76195         gnu-web-doc-update: New module.
76196         Use this script to automatically update the on-line web documentation
76197         for your GNU project at http://www.gnu.org/software/$pkg/manual/
76198         * modules/gnu-web-doc-update: New file, from coreutils.
76199         * build-aux/gnu-web-doc-update: New script.
76201 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
76203         link: LoadLibrary is not needed.
76204         * lib/link.c: Use GetModuleHandle.
76206 2009-10-01  Eric Blake  <ebb9@byu.net>
76208         getopt: bump serial number
76209         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
76210         change.
76212         tests: tighten link, rmdir, and remove tests
76213         * tests/test-link.h (includes): No need to use <config.h> here.
76214         Clean up if directory hard link was created, otherwise test for
76215         trailing '.'.
76216         * tests/test-linkat.c (main): Simplify.
76217         * tests/test-remove.c (main): Enhance test for trailing '.'.
76218         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76220 2009-10-01  Jim Meyering  <meyering@redhat.com>
76222         maint.mk: requiring "make major" was annoying, for a "minor" release.
76223         What is intended is "stable", to contrast with alpha and beta,
76224         so require "make stable", not "make major".
76225         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
76226         (get_tool_versions): Likewise.
76227         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
76229 2009-09-30  Ben Pfaff  <blp@gnu.org>
76231         Fix broken build of replacement for Windows tmpfile().
76232         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
76233         flags argument added along with the 'mkostemp' module.
76235 2009-09-28  Bruno Haible  <bruno@clisp.org>
76237         Avoid identifier clash with POSIX function 'remove' defined as a macro.
76238         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
76239         to 'remove_elt'.
76240         (gl_list_remove): Update.
76241         * lib/gl_list.c (gl_list_remove): Update.
76242         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
76243         to 'remove_elt'.
76244         (gl_oset_remove): Update.
76245         * lib/gl_list.c (gl_oset_remove): Update.
76246         Reported by Eric Blake.
76248 2009-09-28  Eric Blake  <ebb9@byu.net>
76250         doc: mention yet more cygwin 1.7 status
76251         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
76252         cygwin.
76253         * doc/glibc-functions/execvpe.texi (execvpe): New file.
76254         * doc/gnulib.texi (Glibc unistd.h): Mention it.
76256         argp: fix test failure
76257         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
76258         that are not upper-case.  Pass correct range to tolower.
76260 2009-09-27  Jim Meyering  <meyering@redhat.com>
76262         test-yesno: work around sparc-dash here-document infelicity
76263         Without this change, the literal \177 byte in a here document
76264         would make dash 0.5.5.1-3 access uninitialized memory.
76265         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
76266         Instead, use a marker, "@", and filter through tr to create the desired
76267         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
76269 2009-09-27  Bruno Haible  <bruno@clisp.org>
76271         Disable untested support for new flavours of ACLs on AIX.
76272         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
76273         progress.
76274         * lib/set-mode-acl.c (qset_acl): Likewise.
76276 2008-12-07  Bruno Haible  <bruno@clisp.org>
76278         Add support for new flavours of ACLs on AIX. (Untested.)
76279         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
76280         (file_has_acl): Add support for newer AIX.
76281         * lib/set-mode-acl.c (qset_acl): Likewise.
76282         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
76283         Rainer Tammer <tammer@tammer.net>.
76285 2009-09-26  Eric Blake  <ebb9@byu.net>
76287         argp: fix compilation of getopt
76288         * lib/getopt.in.h (includes): Use different guard than glibc.
76289         Reported by Sergey Poznyakoff.
76291         doc: mention more cygwin 1.7 status
76292         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
76293         bug.
76294         * doc/posix-functions/execl.texi (execl): Likewise.
76295         * doc/posix-functions/execle.texi (execle): Likewise.
76296         * doc/posix-functions/execlp.texi (execlp): Likewise.
76297         * doc/posix-functions/execv.texi (execv): Likewise.
76298         * doc/posix-functions/execve.texi (execve): Likewise.
76299         * doc/posix-functions/execvp.texi (execvp): Likewise.
76300         * doc/glibc-functions/canonicalize_file_name.texi
76301         (canonicalize_file_name): Cygwin 1.7 now provides this.
76302         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
76303         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
76304         on AT_SYMLINK_NOFOLLOW.
76306 2009-09-24  Eric Blake  <ebb9@byu.net>
76308         test-linkat: make test more robust
76309         * tests/test-linkat.c (main): Avoid collision with EEXIST.
76311         getopt: fix inclusion guards for cygwin
76312         * modules/getopt-posix (Depends-on): Add include-next.
76313         (Makefile.am): Substitute more items in replacement header.
76314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
76315         <getopt.h>.
76316         * lib/getopt.in.h (includes): Use split inclusion guard, and
76317         prefer <getopt.h> over include <unistd.h> when one is present.
76318         (option): Also override name of 'struct option'.
76320         same-inode: revert prior change; it is not yet ready
76321         * NEWS: Undo mention of this change.
76322         * lib/same-inode.h (same-inode.h): Undo tri-state change.
76323         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76324         * lib/cycle-check.c (cycle_check): Likewise.
76325         * lib/same.c (same_name): Likewise.
76326         * lib/at-func2.c (at_func2): Likewise.
76328 2009-09-23  Eric Blake  <ebb9@byu.net>
76330         linkat: new module
76331         * modules/linkat: New file.
76332         * lib/at-func2.c (at_func2): Likewise.
76333         * lib/linkat.c (linkat): Likewise.
76334         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
76335         * lib/openat-priv.h (at_func2): Add declaration.
76336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76337         * modules/unistd (Makefile.am): Substitute them.
76338         * lib/unistd.in.h (linkat): Declare it.
76339         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76340         * doc/posix-functions/linkat.texi (linkat): Likewise.
76341         * doc/posix-functions/link.texi (link): Tweak wording.
76342         * tests/test-link.c (main): Move guts...
76343         * tests/test-link.h (test_link): ...into new file.
76344         * modules/linkat-tests: New test.
76345         * tests/test-linkat.c: Likewise.
76346         * modules/link-tests (Files): Ship new file.
76347         (Depends-on): Add stdbool.
76349         dirname: add library-safe mdir_name
76350         * lib/dirname.h (mdir_name): New prototype.
76351         * lib/dirname.c (dir_name): Move guts...
76352         (mdir_name): ...to new function that avoids xalloc_die.
76354         fchdir: another mingw fix
76355         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
76356         * lib/fchdir.c (get_name): New helper method; skips canonicalize
76357         on mingw (where it has not yet been ported), and make it optional
76358         elsewhere.
76359         (_gl_register_fd): Use it.
76361         same-inode: make SAME_INODE tri-state, to port to mingw
76362         * NEWS: Mention this change.
76363         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
76364         st_ino always being 0.
76365         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76366         * lib/cycle-check.c (cycle_check): Likewise.
76367         * lib/same.c (same_name): Likewise.
76369         lstat: avoid mingw compilation error
76370         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
76371         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
76372         lstat ourselves.
76373         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
76374         was adequate.
76375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
76376         the checks for lstat.
76377         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
76379         link: fix test failure on Solaris 9
76380         * lib/link.c (rpl_link): Don't assume link will catch bogus
76381         trailing slash on source.
76383         test-symlinkat: enhance test
76384         * tests/test-readlink.c (main): Move guts...
76385         * tests/test-readlink.h (test_readlink): ...into new file.
76386         * tests/test-symlink.c (main): Move guts...
76387         * tests/test-symlink.h (test_symlink): ...into new file.
76388         * tests/test-symlinkat.c (main): Use new files for further
76389         coverage.
76390         (do_symlink, do_readlink): New helper functions.
76391         * modules/symlink-tests (Files): Ship new file.
76392         (Depends-on): Add stdbool.
76393         * modules/readlink-tests (Files): Ship new file.
76394         (Depends-on): Add stdbool.
76395         * modules/symlinkat-tests (Files): Use new files.
76397 2009-09-23  Eric Blake  <ebb9@byu.net>
76399         readlink: document portability issue with symlink length
76400         * doc/posix-functions/lstat.texi (lstat): Mention that some file
76401         systems have bogus st_size on symlinks, and mention the
76402         areadlink-with-size module.
76403         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76404         * doc/posix-functions/readlink.texi (readlink): Mention the
76405         areadlink module, and ERANGE failure.
76406         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76407         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
76409         readlink: fix Solaris 9 bug with trailing slash
76410         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
76411         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
76412         * doc/posix-functions/readlink.texi (readlink): Document this.
76413         * modules/readlink-tests: New test.
76414         * tests/test-readlink.c: Likewise.
76416         readlink: fix cygwin 1.5.x bug with return type
76417         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
76418         * lib/unistd.in.h (readlink): Use ssize_t.
76419         * lib/readlink.c (readlink): Likewise.
76420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76421         * modules/unistd (Makefile.am): Substitute it.
76422         * lib/unistd.in.h (readlink): Declare replacement.
76423         * doc/posix-functions/readlink.texi (readlink): Document this.
76425         symlink: use throughout gnulib
76426         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
76427         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
76428         symlink is not used.
76429         * modules/symlinkat (Depends-on): Add symlink.
76430         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76431         * modules/canonicalize-tests (Depends-on): Likewise.
76432         * modules/lstat-tests (Depends-on): Likewise.
76433         * modules/openat-tests (Depends-on): Likewise.
76434         * modules/remove-tests (Depends-on): Likewise.
76435         * modules/rmdir-tests (Depends-on): Likewise.
76436         * modules/unlink-tests (Depends-on): Likewise.
76437         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
76438         * tests/test-canonicalize.c (symlink): Likewise.
76439         * tests/test-fstatat.c (symlink): Likewise.
76440         * tests/test-lstat.c (symlink): Likewise.
76441         * tests/test-remove.c (symlink): Likewise.
76442         * tests/test-rmdir.c (symlink): Likewise.
76443         * tests/test-unlink.c (symlink): Likewise.
76444         * tests/test-unlinkat.c (symlink): Likewise.
76446         symlink: new module, for Solaris 9 bug
76447         * modules/symlink: New file.
76448         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
76449         * lib/symlink.c: Likewise.
76450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76451         * modules/unistd (Makefile.am): Substitute them.
76452         * lib/unistd.in.h (symlink): Declare replacement.
76453         * MODULES.html.sh (File system functions): Mention it.
76454         * doc/posix-functions/symlink.texi (symlink): Likewise.
76455         * modules/symlink-tests: New test.
76456         * tests/test-symlink.c: Likewise.
76458 2009-09-23  Bruno Haible  <bruno@clisp.org>
76460         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
76461         when needed.
76462         Test case: gnulib-tool --import --with-tests atexit inttypes.
76463         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
76465 2009-09-23  Bruno Haible  <bruno@clisp.org>
76467         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
76468         subcommand, not in a subshell.
76470 2009-09-22  Eric Blake  <ebb9@byu.net>
76472         unistd: sort replacement declarations
76473         * lib/unistd.in.h: Sort declarations.
76475         open, openat: minor optimization
76476         * lib/open.c (open): If open succeeded, len is non-zero.
76477         * lib/openat.c (rpl_openat): Likewise.
76479         link-follow: ensure correct result
76480         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
76481         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
76482         distinguish between possible failures.
76484 2009-09-21  Eric Blake  <ebb9@byu.net>
76486         fts: avoid compiler warning
76487         * lib/fts.c (dirent_inode_sort_may_be_useful)
76488         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
76490 2009-09-19  Bruno Haible  <bruno@clisp.org>
76492         * lib/progreloc.c (canonicalize_file_name): New declaration.
76494 2009-09-19  Eric Blake  <ebb9@byu.net>
76496         link: fix quoting
76497         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
76499         openat: fix openat bugs on Solaris 9
76500         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
76501         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
76502         * modules/openat (Depends-on): Add open.
76503         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
76504         * modules/fcntl-h (Makefile.am): Substitute it.
76505         * lib/fcntl.in.h (openat): Declare replacement.
76506         * doc/posix-functions/openat.texi (openat): Document this.
76508         openat: move fstatat and unlinkat into correct files
76509         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
76510         compiled.
76511         * lib/openat.c (fstatat, unlinkat): Move...
76512         * lib/fstatat.c (fstatat): ...into correct files.
76513         * lib/unlinkat.c (unlinkat): Likewise.
76515         openat: fix unlinkat bugs on Solaris 9
76516         * lib/unlinkat.c (unlinkat): New file.
76517         * modules/openat (Depends-on): Add unlink.
76518         (Files): Distribute it.
76519         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
76520         trailing slash behavior is broken.
76521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76522         * modules/unistd (Makefile.am): Substitute it.
76523         * lib/unistd.in.h (unlinkat): Declare replacement.
76524         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
76526         openat: fix fstatat bugs on Solaris 9
76527         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
76528         stat.
76529         * doc/posix-functions/fstatat.texi (fstatat): Document this.
76531         test-unlinkat: enhance test, to expose Solaris 9 bug
76532         * tests/test-unlink.c (main): Factor guts...
76533         * tests/test-unlink.h (test_rmdir_func): ...into new file.
76534         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
76535         * tests/test-rmdir.c (main): Adjust caller.
76536         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
76537         (unlinker): New helper function.
76538         (rmdirat): Enhance check.
76539         * modules/rmdir-tests (Depends-on): Add stdbool.
76540         * modules/unlink-tests (Depends-on): Likewise.
76541         (Files): Add test-unlink.h.
76542         * modules/openat-tests (Files): Likewise.
76543         (Depends-on): Add unlinkdir.
76545         test-fstatat: new test, to expose Solaris 9 bugs
76546         * tests/test-stat.c (main): Factor guts...
76547         * tests/test-stat.h (test_stat_func): ...into new file.
76548         * tests/test-lstat.c (main): Factor guts...
76549         * tests/test-lstat.h (test_lstat_func): ...into new file.
76550         * tests/test-fstatat.c: New file.
76551         * modules/stat-tests (Files): Add test-stat.h.
76552         * modules/lstat-tests (Files): Add test-lstat.h.
76553         (Depends-on): Add stdbool.
76554         * modules/openat-tests (Depends-on): Add pathmax.
76555         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
76556         (Makefile.am): Run new test.
76558         remove: new module, for mingw and Solaris 9 bugs
76559         * modules/remove: New file.
76560         * lib/remove.c: Likewise.
76561         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
76562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76563         * modules/stdio (Makefile.am): Use them.
76564         * lib/stdio.in.h (remove): Declare replacement.
76565         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76566         * doc/posix-functions/remove.texi (remove): Likewise.
76567         * modules/remove-tests: New test.
76568         * tests/test-remove.c: Likewise.
76570         unlink: new module, for Solaris 9 bug
76571         * modules/unlink: New file.
76572         * lib/unlink.c: Likewise.
76573         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
76574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76575         * modules/unistd (Makefile.am): Use them.
76576         * lib/unistd.in.h (stat): Declare replacement.
76577         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76578         * doc/posix-functions/unlink.texi (unlink): Likewise.
76579         * modules/unlink-tests: New test.
76580         * tests/test-unlink.c: Likewise.
76582         lstat: fix Solaris 9 bug
76583         * lib/lstat.c (lstat): Also check for trailing slash on
76584         non-symlink, non-directories.  Use stat module to simplify logic.
76585         * doc/posix-functions/lstat.texi (lstat): Document it.
76586         * modules/lstat-tests (Depends-on): Add errno, same-inode.
76587         (configure.ac): Check for symlink.
76588         * tests/test-lstat.c (main): Add more tests.
76590         stat: add as dependency to other modules
76591         * modules/chown (Depends-on): Add stat.
76592         * modules/euidaccess (Depends-on): Likewise.
76593         * modules/fchdir (Depends-on): Likewise.
76594         * modules/isdir (Depends-on): Likewise.
76595         * modules/link (Depends-on): Likewise.
76596         * modules/lstat (Depends-on): Likewise.
76597         * modules/mkdir-p (Depends-on): Likewise.
76598         * modules/modechange (Depends-on): Likewise.
76599         * modules/open (Depends-on): Likewise.
76600         * modules/readlink (Depends-on): Likewise.
76601         * modules/same (Depends-on): Likewise.
76603         stat: fix Solaris 9 bug
76604         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
76605         slash.
76606         * lib/stat.c (rpl_stat): Work around it.
76607         * doc/posix-functions/stat.texi (stat): Update documentation.
76609         stat: new module, for mingw bug
76610         * modules/stat: New file.
76611         * lib/stat.c: Likewise.
76612         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
76613         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76614         * modules/sys_stat (Makefile.am): Use them.
76615         * lib/sys_stat.in.h (stat): Declare replacement.
76616         * lib/openat.c (fstatat): Deal with lstat and stat being function
76617         macros.
76618         * modules/openat (Depends-on): Add inline.
76619         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76620         * doc/posix-functions/stat.texi (stat): Likewise.
76621         * modules/stat-tests: New test.
76622         * tests/test-stat.c: Likewise.
76624 2009-09-19  Jim Meyering  <meyering@redhat.com>
76626         syntax-check: detect unnecessary inclusion of canonicalize.h
76627         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
76629 2009-09-19  Eric Blake  <ebb9@byu.net>
76631         canonicalize-lgpl: adjust clients to use correct header
76632         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76633         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
76634         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
76635         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
76636         * lib/progreloc.c (includes): Likewise.
76638 2009-09-19  Jim Meyering  <meyering@redhat.com>
76640         test-posixtm.c: correct a comment
76641         * tests/test-posixtm.c: Correct first-line comment.
76642         Spotted by Eric Blake.
76644 2009-09-16  Jim Meyering  <meyering@redhat.com>
76646         posixtm-tests: make T const-correct; add a test case
76647         * tests/test-posixtm.c (T): Declare const.
76648         Add a test for -(2^31+1).
76649         Remove useless can-succeed-only-in-2002 test.
76651         posixtm-tests: adjust the sole failing test
76652         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
76653         expected output matches what mktime now produces.  Cross-checked via
76654         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
76656         posixtm: move #ifdef'd tests into a new module
76657         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
76658         * tests/test-posixtm.c: ... this new file.
76659         * modules/posixtm-tests: New module.
76661 2009-09-19  Eric Blake  <ebb9@byu.net>
76663         openat: simplify use of at-func.c
76664         * lib/at-func.c (includes): Include prerequisites here, to
76665         simplify requirements on client files.
76666         * lib/openat-priv.h: Add double-inclusion guard.
76667         * lib/faccessat.c (includes): Simplify.
76668         * lib/fchmodat.c (includes): Likewise.
76669         * lib/fchownat.c (includes): Likewise.
76670         * lib/mkdirat.c (includes): Likewise.
76671         * lib/mkfifoat.c (includes): Likewise.
76672         * lib/symlinkat.c (includes): Likewise.
76674         openat: allow return of fd 0
76675         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76676         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76677         unistd-safer.
76678         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76679         <fcntl.h>; this module does not leak fds.
76680         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76681         must be allowed to return 0, leaving openat_safer to add the
76682         safety.
76683         (openat_permissive): Avoid writing to just-opened fd 2 if
76684         restoring the current directory fails.
76685         * lib/openat-die.c (openat_restore_fail): Add comment.
76686         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76687         (save_cwd): Guarantee safe fd, but without use of open_safer.
76688         * tests/test-openat.c: New test.
76689         * modules/openat-tests (Files, Makefile.am): Distribute and build
76690         new file.
76692         relocatable-prog-wrapper: fix build
76693         * modules/relocatable-prog-wrapper (Files): Update name of
76694         canonicalize m4 file, broken on 2009-09-17.
76695         Reported by emad hajjar <aleppos@hotmail.com>.
76697 2009-09-19  Bruno Haible  <bruno@clisp.org>
76699         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76700         * lib/safe-alloc.c: Likewise.
76701         Reported by Ian Beckwith <ianb@erislabs.net>.
76703 2009-09-18  Bruno Haible  <bruno@clisp.org>
76705         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76706         Reported by <erobles@sensacd.com.mx>.
76708 2009-09-17  Eric Blake  <ebb9@byu.net>
76710         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
76711         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
76712         slashes when checking if last component is missing.
76713         * tests/test-canonicalize.c (main): Test this.
76715         canonicalize, canonicalize-lgpl: honor // if distinct from /
76716         * modules/canonicalize (Files): Add double-slash-root.m4.
76717         * modules/canonicalize-lgpl (Files): Likewise.
76718         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76719         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
76720         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
76721         fallback definition.
76722         (canonicalize_filename_mode): Use it to protect //.
76723         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
76724         (__realpath): Likewise.
76725         * tests/test-canonicalize.c (main): Test this.
76726         * tests/test-canonicalize-lgpl.c (main): Likewise.
76727         * modules/canonicalize-tests (Depends-on): Add same-inode.
76728         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76730         canonicalize-lgpl: fix glibc bug with trailing slash
76731         * m4/canonicalize-lgpl.m4: Move contents...
76732         * m4/canonicalize.m4: ...here.
76733         (gl_CANONICALIZE_LGPL): Factor realpath check...
76734         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
76735         glibc 2.3.5 bug, fixed 2005-04-27.
76736         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
76737         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
76738         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
76739         * modules/canonicalize-lgpl (Files): Manage file rename.
76740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76741         * modules/stdlib (Makefile.am): Substitute witness.
76742         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
76743         is needed.
76744         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
76745         replacement is required.
76746         * lib/canonicalize.c (canonicalize_file_name): Likewise.
76747         * doc/glibc-functions/canonicalize_file_name.texi
76748         (canonicalize_file_name): Document this.
76749         * doc/posix-functions/realpath.texi (realpath): Likewise.
76751         canonicalize-lgpl: reject non-directory with trailing slash
76752         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
76753         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
76754         catches failures in glibc 2.3.5.
76755         * tests/test-canonicalize.c (main): Likewise.
76757         canonicalize-lgpl: use native realpath if it works
76758         * lib/canonicalize-lgpl.c (realpath): Guard with
76759         FUNC_REALPATH_WORKS.
76760         * lib/stdlib.in.h (realpath): Make declaration optional based on
76761         HAVE_REALPATH.
76762         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
76763         native realpath works.
76764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76765         * modules/stdlib (Makefile.am): Substitute witness.
76767         canonicalize, canonicalize-lgpl: use <stdlib.h>
76768         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
76769         (Include): Mention <stdlib.h>.
76770         (configure.ac): Mention functions we provide.
76771         * modules/canonicalize (configure.ac): Likewise.
76772         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
76773         realpath if canonicalize_file_name is missing.
76774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
76775         * modules/stdlib (Makefile.am): Substitute witnesses.
76776         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
76777         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
76778         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
76779         * NEWS: Document this.
76780         * doc/glibc-functions/canonicalize_file_name.texi
76781         (canonicalize_file_name): Likewise.
76782         * doc/posix-functions/realpath.texi (realpath): Likewise.
76783         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
76785         test-canonicalize: consolidate into single C program
76786         * tests/test-canonicalize.sh: Delete; move setup into...
76787         * tests/test-canonicalize.c (main): ...the program, making it
76788         easier to run in debugger.  Add some tests.
76789         * modules/canonicalize-tests (Files): Remove unused file.
76790         (Depends-on): Add progname.
76791         (configure.ac, Makefile.am): Simplify.
76793         test-canonicalize-lgpl: consolidate into single C program
76794         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
76795         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
76796         easier to run in debugger.  Add some tests.
76797         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
76798         (configure.ac, Makefile.am): Simplify.
76800         canonicalize: avoid resolvepath
76801         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
76802         unnecessary checks.
76803         * lib/canonicalize.c (includes): Simplify.
76804         (canonicalize_file_name): Drop resolvepath implementation.
76805         * modules/canonicalize (Depends-on): Drop filenamecat.
76807         canonicalize: don't lose errno
76808         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76809         over calls to free.
76811         canonicalize: simplify errno handling
76812         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76813         assignment.
76815         canonicalize, canonicalize-lgpl: update module dependencies
76816         * modules/canonicalize (Depends-on): Add extensions, lstat,
76817         pathmax, stdlib.
76818         (Files): Drop pathmax.h.
76819         (configure.ac): Adjust macro name.
76820         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76821         lstat, stdlib, sys_stat.
76822         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76823         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76824         extensions.
76825         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76826         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76827         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76828         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76829         declaration, if available.
76830         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76831         we can rely on the readlink module.
76832         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76833         (includes): Use <unistd.h> unconditionally.
76835 2009-09-17  Eric Blake  <ebb9@byu.net>
76837         maint: make Include sections of modules consistent
76838         * modules/alloca: Use only header name; no need to list #include.
76839         * modules/alloca-opt: Likewise.
76840         * modules/arpa_inet: Likewise.
76841         * modules/canon-host: Likewise.
76842         * modules/configmake: Likewise.
76843         * modules/dirent: Likewise.
76844         * modules/eealloc: Likewise.
76845         * modules/environ: Likewise.
76846         * modules/fchdir: Likewise.
76847         * modules/fcntl: Likewise.
76848         * modules/fcntl-h: Likewise.
76849         * modules/gethrxtime: Likewise.
76850         * modules/gettime: Likewise.
76851         * modules/ignore-value: Likewise.
76852         * modules/inet_ntop: Likewise.
76853         * modules/inet_pton: Likewise.
76854         * modules/inttypes: Likewise.
76855         * modules/isnand-nolibm: Likewise.
76856         * modules/isnanf-nolibm: Likewise.
76857         * modules/mbchar: Likewise.
76858         * modules/mbfile: Likewise.
76859         * modules/mbiter: Likewise.
76860         * modules/mbuiter: Likewise.
76861         * modules/netdb: Likewise.
76862         * modules/netinet_in: Likewise.
76863         * modules/nproc: Likewise.
76864         * modules/pagealign_alloc: Likewise.
76865         * modules/poll: Likewise.
76866         * modules/printf-frexp: Likewise.
76867         * modules/pthread: Likewise.
76868         * modules/putenv: Likewise.
76869         * modules/random_r: Likewise.
76870         * modules/relocatable-prog: Likewise.
76871         * modules/search: Likewise.
76872         * modules/select: Likewise.
76873         * modules/selinux-h: Likewise.
76874         * modules/settime: Likewise.
76875         * modules/signal: Likewise.
76876         * modules/size_max: Likewise.
76877         * modules/socklen: Likewise.
76878         * modules/ssize_t: Likewise.
76879         * modules/stdarg: Likewise.
76880         * modules/stdbool: Likewise.
76881         * modules/stddef: Likewise.
76882         * modules/stdint: Likewise.
76883         * modules/stdio: Likewise.
76884         * modules/stdlib: Likewise.
76885         * modules/string: Likewise.
76886         * modules/strings: Likewise.
76887         * modules/sys_file: Likewise.
76888         * modules/sys_ioctl: Likewise.
76889         * modules/sys_select: Likewise.
76890         * modules/sys_socket: Likewise.
76891         * modules/sys_stat: Likewise.
76892         * modules/sys_time: Likewise.
76893         * modules/sys_times: Likewise.
76894         * modules/sys_utsname: Likewise.
76895         * modules/sys_wait: Likewise.
76896         * modules/sysexits: Likewise.
76897         * modules/time: Likewise.
76898         * modules/times: Likewise.
76899         * modules/tmpfile: Likewise.
76900         * modules/trim: Likewise.
76901         * modules/unistd: Likewise.
76902         * modules/wchar: Likewise.
76903         * modules/wctype: Likewise.
76905 2009-09-17  Bruno Haible  <bruno@clisp.org>
76907         Make getdate.y compile on QNX and NetBSD 5 / i386.
76908         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76909         TIME_T_FITS_IN_LONG_INT.
76910         * lib/getdate.y (long_time_t): New type.
76911         (relative_time): Change type of 'seconds' field to long_time_t.
76912         (get_date): Update types of local variables. Check against overflow
76913         during conversion from long_time_t to time_t.
76914         Reported by Matt Kraai <kraai@ftbfs.org>
76915         and Hasso Tepper <hasso@netbsd.org>.
76917 2009-09-17  Bruno Haible  <bruno@clisp.org>
76919         * modules/COPYING: Update copyright years.
76920         * modules/README: Likeiwse.
76921         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76922         Reported by Ian Beckwith <ianb@erislabs.net>.
76924 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76926         * users.txt: Update references for gnuit package.
76928 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76930         * m4/getdelim.m4: Fix typo in copyright line.
76932 2009-09-17  Bruno Haible  <bruno@clisp.org>
76934         * lib/atoll.c: Use the standard header with GPL copyright.
76935         * lib/argz.in.h: Likewise.
76936         * lib/glob.c: Likewise.
76937         * lib/glob-libc.h: Likewise.
76938         * lib/random_r.c: Likewise.
76939         * lib/siglist.h: Likewise.
76940         * lib/strsignal.c: Likewise.
76941         Reported by Ian Beckwith <ianb@erislabs.net>.
76943 2009-09-17  Eric Blake  <ebb9@byu.net>
76945         rmdir: ensure correct dependency order
76946         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76948 2009-09-17  Bruno Haible  <bruno@clisp.org>
76950         Disable assertion that fails on NetBSD 5 / i386.
76951         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76952         Reported by Sam Steingold <sds@gnu.org>
76953         and Hasso Tepper <hasso@netbsd.org>.
76955 2009-09-16  Eric Blake  <ebb9@byu.net>
76957         unlinkdir: port to mingw
76958         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76959         on which no one can unlink a directory.
76961         stdlib: sort witness names
76962         * modules/stdlib (Makefile.am): Sort replacements.
76963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76964         * lib/stdlib.in.h: Likewise.
76966         parse-duration-tests: avoid link failure
76967         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76968         LIBINTL.
76969         Reported by Tom G. Christensen.
76971         openat-tests: ensure unlinkat behaves like rmdir
76972         * tests/test-rmdir.c (main): Factor guts...
76973         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76974         * modules/rmdir-tests (Files): Ship new file.
76975         * modules/openat-tests: New test.
76976         * tests/test-unlinkat.c: Likewise.
76978         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76979         * modules/rmdir-errno (Status, Notice): Now obsolete.
76981         rmdir: work around cygwin 1.5.x and mingw bugs
76982         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76983         * lib/rmdir.c (rmdir): Work around it.
76984         * modules/rmdir (Status, Notice): No longer obsolete.
76985         (Files): Add dos.m4.
76986         (Depends-on): Add unistd.
76987         (configure.ac): Set witnesses.
76988         (License): Relax to LGPLv2+.
76989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76990         * modules/unistd (Makefile.am): Substitute witnesses.
76991         * lib/unistd.in.h (rmdir): Declare replacement.
76992         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76993         * modules/rmdir-tests: New tests.
76994         * tests/test-rmdir.c: Likewise.
76996 2009-09-15  Eric Blake  <ebb9@byu.net>
76998         fchdir: improve use of replacement functions
76999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
77000         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
77001         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
77002         REPLACE_CLOSEDIR.
77003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
77004         * modules/sys_stat (Makefile.am): Substitute correct witness.
77005         * modules/dirent (Makefile.am): Likewise.
77006         * modules/unistd (Makefile.am): Likewise.
77007         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
77008         * lib/unistd.in.h (dup): Likewise.
77009         * lib/sys_stat.in.h (fstat): Likewise.
77011         maint: ignore gnulib-tool temp files
77012         * .gitignore: Ignore files created during gnulib-tool --test.
77014 2009-09-13  Jim Meyering  <meyering@redhat.com>
77016         posixtm: don't reject a time that specify "60" as the number of seconds
77017         * lib/posixtm.c (posixtime): The code to reject invalid dates
77018         would also reject a time specified with the .60 suffix.
77019         But POSIX allows that, in order to accommodate leap seconds.
77020         So don't reject it.
77021         (main): Adjust tests accordingly.
77022         * modules/posixtm (Depends-on): Add stpcpy.
77024 2009-09-11  Jim Meyering  <meyering@redhat.com>
77026         announce-gen: include [$release_type] in emitted Subject:
77027         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
77028         e.g., [stable] in the emitted Subject: line.
77030 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77032         Remove obsolete macros from several modules.
77033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
77034         obsolete Autoconf macros with their modern counterparts.
77035         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
77036         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
77037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
77038         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77039         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
77040         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77042         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
77043         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
77044         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
77045         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
77046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
77047         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
77048         * m4/sockets.m4 (gl_SOCKETS): Likewise.
77049         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
77050         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
77051         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
77052         * m4/time_r.m4 (gl_TIME_R): Likewise.
77053         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
77054         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
77055         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
77057         Fix copyright header in build-aux scripts.
77058         * build-aux/git-version-gen: Fix copyright header to match GPLv3
77059         recommendation.
77060         * build-aux/ncftpput-ftp: Likewise.
77061         * build-aux/update-copyright: Likewise.
77063 2009-09-09  Eric Blake  <ebb9@byu.net>
77065         test-link: allow Linux choice of errno
77066         * tests/test-link.c (main): Relax test for alternate error.
77068         strndup: fix improper m4 caching
77069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
77070         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
77071         (gl_PREREQ_STRNDUP): Delete.
77072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
77073         * modules/string (Makefile.am): Substitute it.
77074         * lib/string.in.h (strndup): Modernize prototype.
77076         getcwd: port to mingw
77077         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
77078         different from the POSIX assumptions made throughout the getcwd
77079         module; fortunately, the mingw getcwd does not need replacement.
77080         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
77081         * modules/getcwd-tests: New test.
77082         * tests/test-getcwd.c: Likewise.
77084         link: fix platform bugs
77085         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
77086         * lib/link.c (link): Work around them.  Fix related mingw bug.
77087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
77088         * modules/unistd (Makefile.am): Substitute it.
77089         * lib/unistd.in.h (link): Declare replacement.
77090         * doc/posix-functions/link.texi (link): Document this.
77091         * modules/link (Depends-on): Add strdup-posix, sys_stat.
77093         test-link: consolidate into single C program, test more cases
77094         * tests/test-link.sh: Delete.
77095         * tests/test-link.c: Test more error conditions.  Exposes bugs on
77096         at least Cygwin and Solaris.
77097         * modules/link-tests (Files): Remove unused file.
77098         (Depends-on): Add errno, sys_stat.
77099         (Makefile.am): Simplify.
77101 2009-09-08  Bruno Haible  <bruno@clisp.org>
77103         Work around towlower, towupper bug on mingw.
77104         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
77105         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
77106         * doc/posix-functions/towlower.texi: Mention the mingw bug.
77107         * doc/posix-functions/towupper.texi: Likewise.
77108         Reported by Eric Blake.
77110 2009-09-08  Jim Meyering  <meyering@redhat.com>
77112         build: don't try to run autoheader if we don't use it
77113         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
77114         is not used in configure.ac.
77116 2009-09-08  Eric Blake  <ebb9@byu.net>
77118         euidaccess: fix compilation error
77119         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
77121         rawmemchr: relax license
77122         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
77123         okay.
77124         Reported by Jim Meyering.
77126         mkfifoat: new module
77127         * modules/mkfifoat: New file.
77128         * lib/mkfifoat.c: Likewise.
77129         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
77130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77131         * modules/sys_stat (Makefile.am): Use them.
77132         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
77133         * MODULES.html.sh (File system functions): Mention module.
77134         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77135         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77136         * modules/mkfifoat-tests: New test.
77137         * tests/test-mkfifoat.c: Likewise.
77139         strchrnul: relax license
77140         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
77141         okay.
77142         Reported by Jim Meyering.
77144 2009-09-08  Eric Blake  <ebb9@byu.net>
77146         fstatat: fix compilation on Solaris
77147         * lib/fstatat.c (includes): Add fcntl.h.
77148         Reported by Pádraig Brady.
77150 2009-09-07  Eric Blake  <ebb9@byu.net>
77152         rename: modernize replacement
77153         * modules/rename (Depends-on): Add stdio.
77154         (configure.ac): Declare witness.
77155         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
77156         stdio take care of replacement.
77157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77158         * modules/stdio (Makefile.am): Substitute them.
77159         * lib/stdio.in.h (rename): Declare replacement.
77160         * lib/rename.c (includes): Allow cross-compilation to non-windows
77161         machines.
77162         * doc/posix-functions/rename.texi (rename): Improve
77163         documentation.
77165         stdio: sort witness names
77166         * modules/stdio (Makefile.am): Sort replacements.
77167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77168         * lib/stdio.in.h: Likewise.
77170         getcwd: minor cleanups
77171         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
77172         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
77174         openat: provide more convenience names
77175         * modules/faccessat (configure.ac): Add C witness.
77176         * lib/unistd.in.h (readlinkat): Fix typo.
77177         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
77178         convenience wrappers.
77179         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
77180         wrappers in syntax checks.
77182 2009-09-06  Eric Blake  <ebb9@byu.net>
77184         doc: fix comments in recent patches
77185         * lib/faccessat.c: Mention correct function.
77186         * lib/fchmodat.c: Likewise.
77187         * lib/fchownat.c: Likewise.
77188         * lib/symlinkat.c: Likewise.
77189         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
77190         constants.
77192         faccessat, symlinkat: continue cleanup of previous patch
77193         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
77194         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77195         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
77196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
77197         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
77198         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
77199         set.
77201 2009-09-06  Bruno Haible  <bruno@clisp.org>
77203         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
77204         (fstatat): Declare if GNULIB_FSTATAT is set.
77205         (mkdirat): Declare if GNULIB_MKDIRAT is set.
77206         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
77207         (unlinkat): Declare if GNULIB_UNLINKAT is set.
77208         * modules/fcntl-h (Files): Remove m4/openat.m4.
77209         * modules/sys_stat (Files): Remove m4/openat.m4.
77210         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
77211         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
77212         * modules/unistd (Files): Remove m4/openat.m4.
77213         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
77214         GNULIB_OPENAT.
77215         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
77216         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
77217         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
77218         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
77219         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
77220         gl_OPENAT_DEFAULTS.
77221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
77222         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
77223         Don't require gl_OPENAT_DEFAULTS.
77224         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
77225         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
77226         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
77227         (gl_OPENAT_DEFAULTS): Remove macro.
77229 2009-09-06  Bruno Haible  <bruno@clisp.org>
77231         * modules/openat (configure.ac): Remove unneeded witness.
77233 2009-09-06  Bruno Haible  <bruno@clisp.org>
77235         Set errno to ENOSYS when a function is entirely unsupported.
77236         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
77237         EOPNOTSUPP.
77238         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77239         * modules/chown (Depends-on): Remove errno.
77241 2009-09-06  Bruno Haible  <bruno@clisp.org>
77243         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
77245 2009-09-06  Bruno Haible  <bruno@clisp.org>
77247         * lib/sys_stat.in.h: Fix preprocessor command indentation.
77249 2009-09-06  Ben Pfaff  <blp@gnu.org>
77250             Bruno Haible  <bruno@clisp.org>
77252         Work around a glibc bug in strtok_r.
77253         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
77254         Undefine if UNDEFINE_STRTOK_R is set.
77255         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
77256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77257         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
77258         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
77259         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
77260         UNDEFINE_STRTOK_R.
77261         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
77263 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
77265         exclude: minor fix
77266         * lib/exclude.c: Include wctype.h
77268 2009-09-06  Akim Demaille  <demaille@gostai.com>
77270         bootstrap: improve error message
77271         * build-aux/bootstrap (find_tool): Upon failure, report the list
77272         of candidates.
77273         Honor the initial value of the envvar.
77275 2009-09-05  Eric Blake  <ebb9@byu.net>
77277         symlinkat: new module
77278         * modules/symlinkat: New file.
77279         * lib/symlinkat.c: Likewise.
77280         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
77281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77282         * modules/unistd (Makefile.am): Use them.
77283         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
77284         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
77285         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
77286         * MODULES.html.sh (File system functions): Mention module.
77287         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77288         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77289         * modules/symlinkat-tests: New test.
77290         * tests/test-symlinkat.c: Likewise.
77292         test-openat-safer: add more checks
77293         * tests/test-openat-safer.c (main): Check more code paths.
77295 2009-09-05  Jim Meyering  <meyering@redhat.com>
77297         syntax-check: detect unnecessary inclusion of openat.h
77298         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
77300 2009-09-05  Bruno Haible  <bruno@clisp.org>
77302         Support towlower, towupper.
77303         * doc/posix-functions/towlower.texi: Mention module wctype.
77304         * doc/posix-functions/towupper.texi: Likewise.
77305         * lib/wctype.in.h (towlower, towupper): New functions.
77306         * tests/test-wctype.c: Include stdio.h, stdlib.h.
77307         (ASSERT): New macro.
77308         (e): New variable.
77309         (main): Test also towlower, towupper. Test WEOF argument.
77310         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77312 2009-09-05  Bruno Haible  <bruno@clisp.org>
77314         Fix conversion behaviour when the input is invalid.
77315         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
77316         mark occurring in first pass of indirect conversion.
77317         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
77318         input.
77319         Found by clang's static analyzer.
77321 2009-09-05  Bruno Haible  <bruno@clisp.org>
77323         * tests/test-striconveh.c (main): Test indirect conversion on platforms
77324         where direct conversion is possible.
77326 2009-09-04  Eric Blake  <ebb9@byu.net>
77328         openat: fail with ENOENT on empty name
77329         * lib/openat-proc.c (openat_proc_name): Special-case the empty
77330         buffer.
77332         link-follow: fix logic bug in prior patch
77333         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
77334         reversed sense of yes and no in prior patch.  Avoid confusing
77335         compilation failure with desired semantics.
77337         link-follow: accommodate mingw and cross-compilation
77338         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
77339         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
77340         cross-compilation results to -1, to make linkat easier to
77341         implement when cross-compiling.  Trivially support mingw.
77342         * modules/link-follow (configure.ac): Call new name.
77343         * NEWS: Mention this.
77345 2009-09-03  Eric Blake  <ebb9@byu.net>
77347         faccessat: compile replacement
77348         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
77349         needed.
77351         fts: fix compilation error
77352         * lib/fts.c (includes): Re-add "openat.h", for
77353         openat_needs_fchdir.
77355         faccessat: new module
77356         * modules/faccessat: New file.
77357         * lib/faccessat.c: Likewise.
77358         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77360         * modules/unistd (Makefile.am): Use it.
77361         * lib/unistd.in.h (faccessat): Declare it.
77362         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
77363         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
77364         * MODULES.html.sh (File system functions): Mention it.
77365         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
77366         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77368         euidaccess: prefer POSIX over non-standard implementation
77369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
77370         * lib/euidaccess.c (euidaccess): Use it if available.
77372         openat: make template easier to use
77373         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
77374         AT_FUNC_F2 to be undefined.
77375         (VALIDATE_FLAG): New macro; use it to reject bad flags.
77376         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
77377         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
77378         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
77379         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
77380         Likewise.
77381         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
77382         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
77383         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
77384         Likewise.
77386         openat: declare in POSIX headers
77387         * NEWS: Mention this.
77388         * modules/openat (configure.ac): Declare witnesses.
77389         (Depends-on): Add fcntl-h, sys_stat, unistd.
77390         (Include): Mention correct headers.
77391         * modules/fcntl-h (Depends-on): Add link-warning.
77392         (Files): Add openat.m4.
77393         (Makefile.am): Substitute witnesses.
77394         * modules/sys_stat (Files, Makefile.am): Likewise.
77395         * modules/unistd (Files, Makefile.am): Likewise.
77396         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
77397         (gl_OPENAT_DEFAULTS): New macro.
77398         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
77399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
77400         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
77401         (SYS_STAT_H): Remove unused variable.
77402         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
77403         * lib/fcntl--.h (includes): Remove unneeded header.
77404         * lib/openat-safer.c (includes): Likewise.
77405         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
77406         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
77407         appropriate headers.
77408         (__OPENAT_PREFIX): Delete.
77409         * lib/fcntl.in.h (openat): Provide declaration.
77410         (AT_FDCWD): Fix Solaris bug.
77411         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
77412         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
77413         * lib/fchmodat.c (includes):  Adjust to find declaration.
77414         * lib/fchownat.c (includes): Likewise.
77415         * lib/mkdirat.c (includes): Likewise.
77416         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
77417         still visible.
77419 2009-09-02  Eric Blake  <ebb9@byu.net>
77421         errno: use consistently
77422         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
77423         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
77424         * lib/canonicalize.c (ELOOP): Likewise.
77425         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
77426         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
77427         * lib/lchown.c (EOPNOTSUPP): Likewise.
77428         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
77429         * lib/savewd.c (ESTALE): Likewise.
77430         * lib/settime.c (ENOSYS): Likewise.
77431         * lib/utimens.c (ENOSYS): Likewise.
77432         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
77433         * lib/chdir-safer.c (ELOOP): Likewise.
77434         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
77435         * modules/c-stack (Depends-on): Add errno.
77436         * modules/canonicalize (Depends-on): Likewise.
77437         * modules/chdir-safer (Depends-on): Likewise.
77438         * modules/fdopendir (Depends-on): Likewise.
77439         * modules/inet_ntop (Depends-on): Likewise.
77440         * modules/inet_pton (Depends-on): Likewise.
77441         * modules/lchown (Depends-on): Likewise.
77442         * modules/openat (Depends-on): Likewise.
77443         * modules/savewd (Depends-on): Likewise.
77444         * modules/settime (Depends-on): Likewise.
77445         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
77447         fts: avoid leaking fds
77448         * modules/fts (Depends-on): Add cloexec.
77449         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
77450         flag.
77452         fts: make directory fds more robust
77453         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
77454         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
77456         backupfile, chdir-long, fts, savedir: make safer
77457         * lib/backupfile.c (includes): Use "dirent--.h", since
77458         numbered_backup can write to stderr during readdir.
77459         * lib/savedir.c (includes): Likewise.
77460         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
77461         emulation can write to stderr on failure.
77462         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
77463         * lib/getcwd.c: Document why opendir_safer is unused.
77464         * lib/glob.c: Likewise.
77465         * lib/scandir.c: Likewise.
77466         * lib/openat-proc.c: Likewise, for open_safer.
77467         * modules/backupfile (Depends-on): Add dirent-safer.
77468         * modules/savedir (Depends-on): Likewise.
77469         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
77470         * modules/chdir-long (Depends-on): Add openat-safer.
77472         openat-safer: new module
77473         * modules/openat-safer: New file.
77474         * lib/openat-safer.c: Likewise.
77475         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
77476         * lib/fcntl-safer.h (openat_safer): Declare.
77477         * lib/fcntl--.h (openat): Override.
77478         * MODULES.html.sh (File descriptor based I/O): Mention it.
77479         * lib/openat.h: Add double-inclusion guards.
77480         * lib/openat.c (includes): Only include "fcntl-safer.h", not
77481         "fcntl--.h", so we can implement openat.
77482         * modules/openat-safer-tests: New test.
77483         * tests/test-openat-safer.c: New file.
77485         dirent-safer: new module
77486         * modules/dirent-safer: New file.
77487         * lib/dirent--.h: Likewise.
77488         * lib/dirent-safer.h: Likewise.
77489         * lib/opendir-safer.c: Likewise.
77490         * m4/dirent-safer.m4: Likewise.
77491         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
77492         * modules/dirent-safer-tests: New test.
77493         * tests/test-dirent-safer.c: New file.
77494         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
77496         fdopendir: optimize on mingw
77497         * lib/unistd.in.h (_gl_directory_name): New prototype.
77498         * lib/fchdir.c (_gl_directory_name): Implement it.
77499         (fchdir): Use it to simplify implementation.
77500         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
77501         fchdir, when available, to avoid calling [f]chdir().
77503         fdopendir: split into its own module
77504         * lib/openat.c (fdopendir): Move...
77505         * lib/fdopendir.c: ...into new file.
77506         * modules/fdopendir: New module.
77507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
77508         * modules/openat (Depends-on): Add fdopendir.
77509         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
77510         fdopendir here.
77511         * modules/savedir (Depends-on): Only need fdopendir, not full
77512         openat.
77513         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
77514         * lib/openat.h (fdopendir): Drop prototype.
77515         * lib/dirent.in.h (fdopendir): Provide prototype.
77516         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
77517         * modules/dirent (Makefile.am): Substitute them.
77518         * MODULES.html.sh (File system functions): Mention it.
77519         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
77520         * modules/fdopendir-tests: New file.
77521         * tests/test-fdopendir.c: Likewise.
77523         fchdir: use more consistent macro convention
77524         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
77525         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
77526         REPLACE_FCHDIR, rather than relying on config.h macros.
77527         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
77528         inside a single make-time REPLACE_FCHDIR block, rather than using
77529         the config.h FCHDIR_REPLACEMENT.
77530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
77531         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
77532         Manage fstat replacement.
77533         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
77534         REPLACE_FCHDIR.
77535         * modules/sys_stat (Files): Add m4/unistd_h.m4.
77536         (Makefile.am): Substitute REPLACE_FCHDIR.
77537         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
77538         FCHDIR_REPLACEMENT.
77539         * lib/dup-safer.c (dup_safer): Likewise.
77540         * lib/dup2.c (rpl_dup2): Likewise.
77541         * lib/dup3.c (rpl_dup3): Likewise.
77542         * lib/open.c (rpl_open): Likewise.
77544         fchdir: simplify error handling, and support dup3
77545         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
77546         stdbool, malloc-posix, realloc-posix.
77547         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
77548         (ensure_dirs_slot): Return false on allocation failure.
77549         (rpl_dup2): Delete.
77550         (_gl_register_dup): New function.
77551         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
77552         (_gl_register_fd): Close fd on allocation failure.
77553         * lib/fcntl.in.h (_gl_register_fd): Update signature.
77554         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
77555         prototype.
77556         (rpl_dup2_fchdir): Delete prototype.
77557         * lib/open.c (open): Update caller.
77558         * lib/dup2.c (dup2): Track fchdir metadata.
77559         * lib/dup3.c (dup3): Likewise.
77560         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
77561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
77563 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77565         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
77566         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
77567         don't pass arguments to AC_OUTPUT.
77569 2009-09-02  Bruno Haible  <bruno@clisp.org>
77571         * modules/mkdtemp (License): Relicense under LGPLv2+.
77572         Reported by Paolo Bonzini.
77574 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77576         Replace uses of obsolete autoconf macros in Jim's modules.
77577         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
77578         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
77579         can evoke a warning from autoconf when run with -Wobsolete
77580         enabled.  They were declared obsolete for good reasons (see
77581         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
77582         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
77583         should not continue using the deprecated macros.
77584         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
77585         obsolete Autoconf macros with modern counterparts.
77586         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77587         * m4/dos.m4 (gl_AC_DOS): Likewise.
77588         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
77589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
77590         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
77591         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
77592         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
77593         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
77594         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
77595         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
77596         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77597         Likewise.
77598         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
77599         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77600         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
77601         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
77602         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
77603         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77605 2009-09-01  Eric Blake  <ebb9@byu.net>
77607         fchdir: fix off-by-one bug in previous patch
77608         * lib/fchdir.c (rpl_fstat): Use correct bounds.
77609         (_gl_unregister_fd): Delete useless if.
77611 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
77613         maint.mk: sort the list of syntax-check rules
77614         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
77615         easier to get a sense of progress when the rules are run sequentially
77616         and take a long time.
77618 2009-09-01  Simon Josefsson  <simon@josefsson.org>
77620         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
77621         * modules/netinet_in: Likewise.
77622         * modules/sys_file: Likewise.
77623         * modules/sys_ioctl: Likewise.
77624         * modules/sys_select: Likewise.
77625         * modules/sys_socket: Likewise.
77626         * modules/sys_stat: Likewise.
77627         * modules/sys_time: Likewise.
77628         * modules/sys_times: Likewise.
77629         * modules/sys_utsname: Likewise.
77630         * modules/sys_wait: Likewise.
77632 2009-09-01  Jim Meyering  <meyering@redhat.com>
77634         fts: help ensure that return values are not ignored
77635         * lib/fts_.h (__GNUC_PREREQ): Define.
77636         (__attribute_warn_unused_result__): Define.
77637         (fts_children, fts_close, fts_open, fts_read): Declare with
77638         __attribute_warn_unused_result__.
77640         fts: fts_close now fails also when closing a dir file descriptor fails
77641         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
77642         and propagate to caller, along with errno.
77644         announce-gen: correct formatting in --help output
77645         * build-aux/announce-gen (usage): Move the one-line description in
77646         --help output "up", to where it belongs, just after Usage:.
77648 2009-08-31  Eric Blake  <ebb9@byu.net>
77650         fchdir: port to mingw
77651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
77652         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
77653         opened, then use a substitute.
77654         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
77655         replacement.
77656         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
77657         (_gl_register_fd): No need to check stat if open already filters
77658         all directories.
77659         (fchdir): Fix error condition to match POSIX.
77660         * modules/fchdir (Depends-on): Add sys_stat.
77661         * doc/posix-functions/open.texi (open): Document the limitation.
77662         * modules/fchdir-tests: New file.
77663         * tests/test-fchdir.c: Likewise.
77665         canonicalize: allow cross-testing from cygwin to mingw
77666         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77667         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77668         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77669         Likewise.
77670         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77671         target does not support symlinks.
77672         * tests/test-canonicalize-lgpl.sh: Likewise.
77674         chown: avoid compilation warning on mingw
77675         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77676         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77677         mingw.
77678         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77679         * modules/chown (Depends-on): Add errno.
77681 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77683         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77684         command.
77686 2009-08-31  Jim Meyering  <meyering@redhat.com>
77688         canonicalize: remove useless initialization
77689         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77690         initialization of local, "end".
77692 2009-08-30  Bruno Haible  <bruno@clisp.org>
77694         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77695         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77696         ENOSYS.
77698 2009-08-30  Bruno Haible  <bruno@clisp.org>
77700         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77701         /usr/xpg4/bin/tr when it exists.
77702         * tests/test-pipe-filter-gi1.sh: Likewise.
77704 2009-08-30  Bruno Haible  <bruno@clisp.org>
77706         Work around deficient /usr/bin/id program on Solaris.
77707         * tests/test-file-has-acl.sh (ID): New variable.
77708         * tests/test-set-mode-acl.sh (ID): Likewise.
77709         * tests/test-copy-acl.sh (ID): Likewise.
77710         * tests/test-copy-file.sh (ID): Likewise.
77712 2009-08-30  Bruno Haible  <bruno@clisp.org>
77714         New module 'xstriconveh'.
77715         * lib/xstriconveh.h: New file.
77716         * lib/xstriconveh.c: New file.
77717         * modules/xstriconveh: New file.
77719 2009-08-30  Bruno Haible  <bruno@clisp.org>
77721         Make it easier to use mem_cd_iconveh.
77722         * lib/striconveh.h (iconveh_t): New type.
77723         (iconveh_open, iconveh_close): New declarations.
77724         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77725         with a single 'const iconveh_t *' argument.
77726         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
77727         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77728         with a single 'const iconveh_t *' argument.
77729         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
77730         * tests/test-striconveh.c (main): Update.
77731         * NEWS: Mention the change.
77733 2009-08-30  Bruno Haible  <bruno@clisp.org>
77735         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
77736         problem.
77738 2009-08-30  Bruno Haible  <bruno@clisp.org>
77740         Work around iconv_open problem on Solaris.
77741         * lib/iconv_open-solaris.gperf: New file.
77742         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
77743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
77744         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
77745         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
77746         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
77747         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
77749 2009-08-29  Jim Meyering  <meyering@redhat.com>
77751         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
77752         * top/maint.mk (cvs-check): Remove target; it was just an alias
77753         to the better-named vc-diff-check.
77754         (maintainer-distcheck): Remove rule.  It was used only from
77755         the (alpha/beta/major) target, and all of its commands but one
77756         were coreutils-specific.
77757         (vc-dist): Remove rule.
77758         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
77759         Run vc-diff-check, not vc-dist.
77760         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
77762 2009-08-27  Bruno Haible  <bruno@clisp.org>
77764         * tests/test-bitrotate.c (main): Remove test that uses a shift count
77765         of 0.
77767 2009-08-27  Bruno Haible  <bruno@clisp.org>
77769         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
77770         compilers.
77771         * doc/func.texi: Document the SunPRO C bug.
77773 2009-08-27  Bruno Haible  <bruno@clisp.org>
77775         Fix link error on Solaris.
77776         * tests/test-parse-duration.c (xstrdup): Remove function.
77778 2009-08-26  Pádraig Brady  <P@draigbrady.com>
77780         ignore-value: handle pointer types, too
77781         * lib/ignore-value.h (__attribute__): Remove definition.
77782         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
77783         of a more concise and more-often effective "(void) i" statement.
77784         (ignore_ptr): New function to suppress warnings from functions that
77785         return pointers, and to make it explicit that one function doesn't
77786         handle all cases.
77788 2009-08-25  Bruno Haible  <bruno@clisp.org>
77790         dup2: work around a Linux bug.
77791         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
77792         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
77793         * doc/posix-functions/dup2.texi: Mention the Linux bug.
77794         Reported by Simon Josefsson.
77796 2009-08-25  Jim Meyering  <meyering@redhat.com>
77798         libguestfs uses gnulib
77799         * users.txt: Add libguestfs.
77801 2009-08-24  Eric Blake  <ebb9@byu.net>
77803         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
77804         * lib/pipe2.c (includes): Add binary-io.h.
77805         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77807 2009-08-24  Bruno Haible  <bruno@clisp.org>
77809         Tolerate declared but missing accept4 syscall.
77810         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77811         available.
77812         * lib/sys_socket.in.h (accept4): If the function is already present,
77813         override it.
77814         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77815         * modules/accept4 (Makefile.am): Compile accept4.c always.
77816         Reported by Paolo Bonzini and Eric Blake.
77818 2009-08-23  Bruno Haible  <bruno@clisp.org>
77820         New module 'accept4'.
77821         * lib/sys_socket.in.h (accept4): New declaration.
77822         * lib/accept4.c: New file.
77823         * m4/accept4.m4: New file.
77824         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77825         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77826         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77827         HAVE_ACCEPT4.
77828         * modules/accept4: New file.
77829         * doc/glibc-functions/accept4.texi: Mention the new module.
77831 2009-08-24  Jim Meyering  <meyering@redhat.com>
77833         progname: also set global program_invocation_name, when possible
77834         Before this change, a libtool-enabled program that calls glibc's
77835         error function would report the program name as
77836         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77837         * modules/progname (configure.ac): Check for a declaration of
77838         program_invocation_name.
77839         * lib/progname.c:  Include <errno.h>.
77840         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77841         Set program_invocation_name.
77843 2009-08-23  Bruno Haible  <bruno@clisp.org>
77845         * lib/dup3.c: Include <string.h>.
77847 2009-08-23  Bruno Haible  <bruno@clisp.org>
77849         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77850         * lib/pipe2.c (pipe2): Likewise.
77851         Suggested by Eric Blake.
77853 2009-08-23  Bruno Haible  <bruno@clisp.org>
77855         Tolerate declared but missing dup3 syscall.
77856         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77857         * lib/unistd.in.h (dup3): If the function is already present,
77858         override it.
77859         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77860         * modules/dup3 (Makefile.am): Compile dup3.c always.
77861         Reported by Paolo Bonzini.
77863 2009-08-23  Bruno Haible  <bruno@clisp.org>
77865         Tolerate declared but missing pipe2 syscall.
77866         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77867         available.
77868         * lib/unistd.in.h (pipe2): If the function is already present,
77869         override it.
77870         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77871         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77872         Reported by Paolo Bonzini.
77874 2009-08-23  Bruno Haible  <bruno@clisp.org>
77876         * lib/pipe2.c (pipe2): Move #ifs inside function.
77878 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77880         quotearg: document limitations of quote_these_too
77881         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77882         those limitations are created.
77883         * lib/quotearg.h (set_char_quoting): Document that digits and
77884         letters that are special after backslash are not permitted.
77885         (quotearg_char): Cross-reference set_char_quoting documentation.
77887 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77889         quotearg: implement custom_quoting_style
77890         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77891         right_quote fields.
77892         (set_custom_quoting): New public function.
77893         (quotearg_buffer_restyled): Add left_quote and right_quote
77894         arguments, handle them very much like locale quoting, and update
77895         all uses.
77896         (quotearg_n_custom): New public function.
77897         (quotearg_n_custom_mem): New public function.
77898         (quotearg_custom): New public function.
77899         (quotearg_custom_mem): New public function.
77900         * lib/quotearg.h: Prototype and document new public functions.
77901         (enum quoting_style): For escape_quoting_style and
77902         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77903         ignored even though they're otherwise like c_quoting_style.
77904         Add custom_quoting_style member and document with comparison to
77905         clocale_quoting_style.
77906         * tests/test-quotearg.c (custom_quotes): New array.
77907         (custom_results): New array.
77908         (main): Extend to test custom quoting.
77910 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77912         quotearg: fix right quote escaping when it's in quote_these_too
77913         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77914         quote, be sure to prepend only one backslash.
77915         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77916         (main): Test it.
77918 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77920         quotearg-tests: test escaping of embedded locale quotes
77921         * tests/test-quotearg.c (struct result_strings): Add member for
77922         new input.
77923         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77924         (inputs): Add new input.
77925         (results_g): Add expected results.
77926         (flag_results): Likewise.
77927         (locale_results): Likewise.
77928         (compare_strings): Check those.
77930 2009-08-23  Bruno Haible  <bruno@clisp.org>
77932         Tests for module 'dup3'.
77933         * modules/dup3-tests: New file.
77934         * tests/test-dup3.c: New file.
77936         New module 'dup3'.
77937         * lib/unistd.in.h (dup3): New declaration.
77938         * lib/dup3.c: New file.
77939         * m4/dup3.m4: New file.
77940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77941         HAVE_DUP3.
77942         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77943         * modules/dup3: New file.
77944         * doc/glibc-functions/dup3.texi: Mention the new module.
77946 2009-08-23  Bruno Haible  <bruno@clisp.org>
77948         Tweak the dup2 test.
77949         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77950         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77951         the test file is still empty. Fix argument order of lseek.
77953 2009-08-23  Bruno Haible  <bruno@clisp.org>
77955         Avoid test link errors when the modules getopt-gnu, gettext are used.
77956         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77959 2009-08-23  Bruno Haible  <bruno@clisp.org>
77961         Fix getdtablesize() on mingw.
77962         * lib/getdtablesize.c (getdtablesize): Implement differently.
77963         * lib/unistd.in.h (getdtablesize): Improve comment.
77965 2009-08-23  Bruno Haible  <bruno@clisp.org>
77967         New module 'mkostemp'.
77968         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77969         * lib/stdlib.in.h (mksotemp): New declaration.
77970         * lib/mkostemp.c: New file, from glibc with modifications.
77971         * lib/tempname.h (GT_FILE): Remove outdated comment.
77972         (gen_tempname): Add flags argument.
77973         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77974         (__GT_FILE): Map to 1.
77975         (small_open, large_open): Remove macros.
77976         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77977         * lib/mkstemp.c (mkstemp): Update.
77978         * lib/mkdtemp.c (mkdtemp): Likewise.
77979         * m4/mkostemp.m4: New file.
77980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77981         HAVE_MKOSTEMP.
77982         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77983         HAVE_MKOSTEMP.
77984         * modules/mkostemp: New file, based on modules/mkstemp.
77985         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77986         * NEWS: Mention the change.
77988 2009-08-23  Bruno Haible  <bruno@clisp.org>
77990         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77991         Reported by Eric Blake.
77993 2009-08-23  Bruno Haible  <bruno@clisp.org>
77995         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77996         Reported by Eric Blake.
77998 2009-08-23  Bruno Haible  <bruno@clisp.org>
78000         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
78001         * modules/pipe2 (Depends-on): Likewise.
78003 2009-08-23  Eric Blake  <ebb9@byu.net>
78005         fcntl-h: add O_TTY_INIT support
78006         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
78007         * tests/test-fcntl-h.c (o): Test it.
78008         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78010         fcntl-h: rename from fcntl, in preparation for fcntl(2)
78011         * modules/fcntl: Move <fcntl.h> header replacement...
78012         * modules/fcntl-h: ...to new name, so as not to collide with
78013         like-named function.
78014         * tests/test-fcntl.c: Rename...
78015         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
78016         * modules/fcntl-tests: Rename...
78017         * modules/fcntl-h-tests: ...to this.  Update test file name.
78018         * modules/chdir-long (Depends-on): Update clients.
78019         * modules/chdir-safer (Depends-on): Likewise.
78020         * modules/fcntl-safer (Depends-on): Likewise.
78021         * modules/fts (Depends-on): Likewise.
78022         * modules/mkancesdirs (Depends-on): Likewise.
78023         * modules/mkdir-p (Depends-on): Likewise.
78024         * modules/open (Depends-on): Likewise.
78025         * modules/savewd (Depends-on): Likewise.
78026         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
78027         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78029 2009-08-22  Bruno Haible  <bruno@clisp.org>
78031         * modules/binary-io (License): Relicense under LGPL.
78032         * modules/pipe2 (License): Likewise.
78034 2009-08-22  Bruno Haible  <bruno@clisp.org>
78036         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
78037         return value.
78038         * lib/pipe-filter-gi.c (filter_init): Likewise.
78039         Reported by Eric Blake.
78041 2009-08-22  Bruno Haible  <bruno@clisp.org>
78043         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
78044         * modules/pipe (Depends-on): Add pipe2.
78046 2009-08-22  Bruno Haible  <bruno@clisp.org>
78048         Tests for module 'pipe2'.
78049         * modules/pipe2-tests: New file.
78050         * tests/test-pipe2.c: New file.
78052         New module 'pipe2'.
78053         * lib/unistd.in.h (pipe2): New declaration.
78054         * lib/pipe2.c: New file.
78055         * m4/pipe2.m4: New file.
78056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
78057         HAVE_PIPE2.
78058         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
78059         * modules/pipe2: New file.
78060         * doc/glibc-functions/pipe2.texi: Mention the new module.
78062 2009-08-22  Bruno Haible  <bruno@clisp.org>
78064         Reference some new glibc functions.
78065         * doc/glibc-functions/accept4.texi: New file.
78066         * doc/glibc-functions/dup3.texi: New file.
78067         * doc/glibc-functions/mkostemp.texi: New file.
78068         * doc/glibc-functions/pipe2.texi: New file.
78069         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
78070         (Glibc sys/socket.h): Refer to accept4.
78071         (Glibc unistd.h): Refer to dup3, pipe2.
78072         Reported by Eric Blake.
78074 2009-08-22  Jim Meyering  <meyering@redhat.com>
78075             Bruno Haible  <bruno@clisp.org>
78077         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
78078         This makes it so packages using automake-1.11's silent-rules option
78079         can print e.g., a single "GEN    configmake.h" line, rather than
78080         the 30+ statements that perform the job.  If you want to see the
78081         actual commands, you can still run "make V=1".
78082         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
78083         so that make output is abbreviated when those variables are defined
78084         appropriately.
78085         * modules/argz: Likewise.
78086         * modules/arpa_inet: Likewise.
78087         * modules/byteswap: Likewise.
78088         * modules/configmake: Likewise.
78089         * modules/dirent: Likewise.
78090         * modules/errno: Likewise.
78091         * modules/fcntl: Likewise.
78092         * modules/float: Likewise.
78093         * modules/fnmatch: Likewise.
78094         * modules/getopt-posix: Likewise.
78095         * modules/glob: Likewise.
78096         * modules/iconv_open: Likewise.
78097         * modules/inttypes: Likewise.
78098         * modules/localcharset: Likewise.
78099         * modules/locale: Likewise.
78100         * modules/math: Likewise.
78101         * modules/netdb: Likewise.
78102         * modules/netinet_in: Likewise.
78103         * modules/poll: Likewise.
78104         * modules/posix_spawnp-tests: Likewise.
78105         * modules/sched: Likewise.
78106         * modules/search: Likewise.
78107         * modules/selinux-h: Likewise.
78108         * modules/signal: Likewise.
78109         * modules/spawn: Likewise.
78110         * modules/stdarg: Likewise.
78111         * modules/stdbool: Likewise.
78112         * modules/stddef: Likewise.
78113         * modules/stdint: Likewise.
78114         * modules/stdio: Likewise.
78115         * modules/stdlib: Likewise.
78116         * modules/string: Likewise.
78117         * modules/strings: Likewise.
78118         * modules/sys_file: Likewise.
78119         * modules/sys_ioctl: Likewise.
78120         * modules/sys_select: Likewise.
78121         * modules/sys_socket: Likewise.
78122         * modules/sys_stat: Likewise.
78123         * modules/sys_time: Likewise.
78124         * modules/sys_times: Likewise.
78125         * modules/sys_utsname: Likewise.
78126         * modules/sys_wait: Likewise.
78127         * modules/sysexits: Likewise.
78128         * modules/time: Likewise.
78129         * modules/unistd: Likewise.
78130         * modules/wchar: Likewise.
78131         * modules/wctype: Likewise.
78133 2009-08-22  Jim Meyering  <meyering@redhat.com>
78135         announce-gen: detect write failure
78136         * build-aux/announce-gen: Add Coda at end.
78137         Remove equivalent-but-more-verbose block at top.
78139 2009-08-19  Akim Demaille  <demaille@gostai.com>
78141         bootstrap: --help to stdout.
78142         * bootstrap (usage): Don't send --help to stderr.
78143         Use a here doc instead of a long string.
78145 2009-08-21  Eric Blake  <ebb9@byu.net>
78147         test-popen-safer: split from test-popen
78148         * tests/test-popen.c (main): Move...
78149         * tests/test-popen.h: ...into new file.
78150         * tests/test-popen-safer2.c: New file.
78151         * modules/popen-tests (Files): Add test-popen.h.
78152         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
78153         Suggested by Bruno Haible.
78155         test-fcntl-safer: split from test-open
78156         * tests/test-open.c (main): Move...
78157         * tests/test-open.h: ...into new file.
78158         * tests/test-fcntl-safer.c: New file.
78159         * modules/open-tests (Files): Add test-open.h.
78160         * modules/fcntl-safer-tests: New file.
78161         Suggested by Bruno Haible.
78163         test-fopen-safer: split from test-fopen
78164         * tests/test-fopen.c (main): Move...
78165         * tests/test-fopen.h: ...into new file.
78166         * tests/test-fopen-safer.c: New file.
78167         * modules/fopen-tests (Files): Add test-fopen.h.
78168         * modules/fopen-safer-tests: New file.
78169         Suggested by Bruno Haible.
78171 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78173         popen-safer: test O_CLOEXEC at run-time.
78174         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
78176 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78178         fcntl: move more flags to the header
78179         * lib/cloexec.c: Do not define FD_CLOEXEC here.
78180         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
78181         * lib/fcntl.in.h: Do both things here.
78183 2009-08-21  Jim Meyering  <meyering@redhat.com>
78185         consistently remove $@-t before redirecting to it
78186         * modules/argz: Remove $@-t and $@ before redirecting to the former.
78187         * modules/alloca-opt: Likewise.
78188         * modules/byteswap: Likewise.
78189         * modules/fnmatch: Likewise.
78190         * modules/getopt-posix: Likewise.
78191         * modules/glob: Likewise.
78192         * modules/poll: Likewise.
78193         * modules/posix_spawnp-tests: Likewise.
78194         * modules/sys_socket: Likewise.
78195         * modules/sysexits: Likewise.
78197 2009-08-21  Eric Blake  <ebb9@byu.net>
78199         popen: simplify access to original popen
78200         * lib/popen.c (rpl_popen): No need to worry about popen being a
78201         macro.
78202         Reported by Bruno Haible.
78204 2009-08-20  Eric Blake  <ebb9@byu.net>
78206         build: avoid some compiler warnings
78207         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
78208         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
78209         type.
78210         (new_exclude_segment, excluded_file_pattern_p)
78211         (excluded_file_name_p): Reduce scope.
78212         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
78213         old-style declaration.
78215 2009-08-20  Simon Josefsson  <simon@josefsson.org>
78217         * tests/test-exclude1.sh: Handle Windows EOL.
78218         * tests/test-exclude2.sh: Likewise.
78219         * tests/test-exclude3.sh: Likewise.
78220         * tests/test-exclude4.sh: Likewise.
78221         * tests/test-exclude5.sh: Likewise.
78222         * tests/test-exclude6.sh: Likewise.
78223         * tests/test-exclude7.sh: Likewise.
78225 2009-08-19  Akim Demaille  <demaille@gostai.com>
78227         bootstrap: find sha1sum when named gsha1sum.
78228         * bootstrap (find_tool): New.
78229         ($SHA1SUM): New.
78230         Use it.
78232 2009-08-20  Jim Meyering  <meyering@redhat.com>
78234         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
78235         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
78236         expression that converts "." in a file name to "\." in the resulting
78237         regexp.  Start with a dummy statement, so that prior shell variable
78238         definitions are expanded portably.  Reported by Simon Josefsson.
78240 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
78242         Fix polling for writeability of a screen buffer.
78243         * lib/poll.c: Distinguish input and screen buffers for the
78244         Win32 implementation.
78245         * lib/select.c: Likewise.
78247 2009-08-19  Eric Blake  <ebb9@byu.net>
78249         popen-safer: prevent popen from clobbering std descriptors
78250         * modules/popen-safer: New file.
78251         * lib/popen-safer.c: Likewise.
78252         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
78253         * lib/stdio--.h (popen): Provide override.
78254         * lib/stdio-safer.h (popen_safer): Provide declaration.
78255         * tests/test-popen.c (includes): Partially test this.
78256         * modules/popen-safer-tests: New file, for more tests.
78257         * tests/test-popen-safer.c: Likewise.
78258         * MODULES.html.sh (file stream based Input/Output): Mention it.
78260         tests: test some of the *-safer modules
78261         * modules/fopen-safer (Depends-on): Add fopen.
78262         * modules/fcntl-safer (Depends-on): Add fcntl.
78263         * modules/stdlib-safer (Depends-on): Add stdlib.
78264         (configure.ac): Set indicator.
78265         * modules/unistd-safer (configure.ac): Likewise.
78266         * modules/tmpfile-safer (configure.ac): Likewise.
78267         (Depends-on): Add tmpfile.
78268         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
78269         active.
78270         * tests/test-fopen.c (includes): Test safer versions when they are
78271         in use.
78272         * tests/test-open.c (includes): Likewise.
78274         popen: fix cygwin 1.5 bug when stdin closed
78275         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
78276         * modules/popen: New file.
78277         * modules/popen-tests: Likewise.
78278         * tests/test-popen.c: Likewise.
78279         * m4/popen.m4: Likewise.
78280         * lib/popen.c: Likewise.
78281         * lib/stdio.in.h (popen): New declaration.
78282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
78283         * modules/stdio (Makefile.am): Likewise.
78284         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
78286 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
78288         maint.mk: give full control over update-copyright exclusions
78289         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
78290         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
78291         (update-copyright): Don't force inclusion of top-level
78292         ChangeLog.  Don't force exclusion of all COPYING files, but make
78293         them the default exclusion instead.
78295 2009-08-16  Bruno Haible  <bruno@clisp.org>
78297         Fix test failures on Solaris 10.
78298         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
78299         tests when Solaris iconv() is used.
78300         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
78301         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
78302         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
78303         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
78304         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
78306 2009-08-16  Bruno Haible  <bruno@clisp.org>
78308         Fix test failures on Solaris 10.
78309         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
78310         'tr' program and pass it as first argument.
78311         * tests/test-pipe-filter-gi1.sh: Likewise.
78312         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
78313         program as first argument.
78314         * tests/test-pipe-filter-gi1.c (main): Likewise.
78316 2009-08-16  Eric Blake  <ebb9@byu.net>
78318         fpurge: fix previous commits
78319         * modules/fpurge (Makefile.am): Make replacement conditional,
78320         partially reverting 2007-04-29 change; missed in previous
78321         attempt.
78322         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
78323         is missing.
78325 2009-08-16  Bruno Haible  <bruno@clisp.org>
78327         Clarify fpurge's effect on the file position.
78328         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
78329         * tests/test-fpurge.c (main): Make a second pass for checking the file
78330         position.
78332 2009-08-16  Bruno Haible  <bruno@clisp.org>
78334         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
78335         declaration of fpurge is missing.
78336         * tests/test-fpurge.c (main): Check that the file has not more contents
78337         than expected. Close the file before removing it.
78339 2009-08-15  Eric Blake  <ebb9@byu.net>
78341         fpurge: don't wrap working cygwin implementation
78342         * lib/fpurge.c (fpurge): Fix comment typo.
78343         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
78344         1.7 to avoid replacement.
78345         * tests/test-fpurge.c (main): Enhance test.
78347 2009-08-15  Eric Blake  <ebb9@byu.net>
78348         and Jim Meyering  <meyering@redhat.com>
78350         test-update-copyright: skip if perl is insufficient
78351         * tests/test-update-copyright.sh: Failure to run maintainer tool
78352         should not cause testsuite failure on cygwin 1.5.
78354 2009-08-14  Eric Blake  <ebb9@byu.net>
78356         doc: mention more functions added in cygwin 1.7.0
78357         * doc/posix-headers/limits.texi (limits.h): Update for recent
78358         cygwin additions.
78359         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
78360         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
78361         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
78362         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
78363         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
78365 2009-08-14  Eric Blake  <ebb9@byu.net>
78367         maint.mk: simplify update-copyright rule
78368         * top/maint.mk (update-copyright-local): Delete, and document how
78369         to do it in cfg.mk instead.
78370         (update-copyright-exclude-regexp): Delete, and document how to do
78371         it in .x-update-copyright instead.
78372         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
78373         exclude ChangeLog.
78375 2009-08-14  Bruno Haible  <bruno@clisp.org>
78377         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
78379 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78381         maint.mk: support update-copyright-env
78382         * top/maint.mk (update-copyright-env): Define place-holder.
78383         (update-copyright): Expand $(update-copyright-env) before
78384         invoking update-copyright.
78386 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78388         update-copyright: implement forced reformatting
78389         * build-aux/update-copyright: Implement and document
78390         UPDATE_COPYRIGHT_FORCE.
78391         * tests/test-update-copyright.sh: Test it.
78393 2009-08-14  Eric Blake  <ebb9@byu.net>
78394         and Bruno Haible  <bruno@clisp.org>
78396         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
78397         * tests/test-locale.c: Revert previous patch related to NULL.
78398         * tests/test-stdio.c: Likewise.
78399         * tests/test-stdlib.c: Likewise.
78400         * tests/test-string.c: Likewise.
78401         * tests/test-unistd.c: Likewise.
78402         * modules/time-tests (Depends-on): Add verify.
78403         * modules/wchar-tests (Depends-on): Likewise.
78404         * tests/test-time.c: Test for NULL compliance.
78405         * tests/test-wchar.c: Likewise.
78406         * modules/locale (Depends-on): Add stddef.
78407         * modules/stdio (Depends-on): Likewise.
78408         * modules/stdlib (Depends-on): Likewise.
78409         * modules/string (Depends-on): Likewise.
78410         * modules/time (Depends-on): Likewise.
78411         * modules/unistd (Depends-on): Likewise.
78412         * modules/wchar (Depends-on): Likewise.
78413         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
78414         * lib/stdlib.in.h (includes): Likewise.
78415         * lib/string.in.h (includes): Likewise.
78416         * lib/time.in.h (includes): Likewise.
78417         * lib/unistd.in.h (includes): Likewise.
78418         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
78419         replaced.
78420         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78421         * m4/stddef_h.m4: New file.
78422         * modules/stddef: Likewise.
78423         * lib/stddef.in.h: Likewise.
78424         * modules/stddef-tests: Likewise.
78425         * tests/test-stddef.c: Likewise.
78426         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
78427         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
78428         * doc/posix-headers/locale.texi (locale.h): Likewise.
78429         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
78430         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
78431         * doc/posix-headers/string.texi (string.h): Likewise.
78432         * doc/posix-headers/time.texi (time.h): Likewise.
78433         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
78434         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
78436 2009-08-14  Eric Blake  <ebb9@byu.net>
78438         doc: improve git diff of texinfo files
78439         * .gitattributes: Add rule for *.texi files, with hint on how to
78440         use it.
78441         Copied from m4, and based on a report by Bruno Haible.
78443 2009-08-14  Bruno Haible  <bruno@clisp.org>
78445         Disable multithread support by default on Cygwin 1.5.x for real.
78446         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
78448 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78450         update-copyright: much ado about intervals
78451         * build-aux/update-copyright: Implement and document
78452         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
78453         of copyright year intervals.
78454         Also, document UPDATE_COPYRIGHT_YEAR.
78455         * tests/test-update-copyright.sh: Test it.
78457         update-copyright: convert 2-digit to 4-digit years
78458         * build-aux/update-copyright: Implement and document.
78459         * tests/test-update-copyright.sh: Update.
78461 2009-08-14  Jim Meyering  <meyering@redhat.com>
78463         test-exclude: avoid coreutils "make check" failure
78464         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
78465         just as in test-argmatch.c.
78467 2009-08-13  Eric Blake  <ebb9@byu.net>
78469         test-dup2: fix bad assumption
78470         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
78471         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
78473         test-version-etc: fix CRLF portability issue
78474         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
78475         recognize \r.
78476         * tests/test-argp-version-etc-1.sh: Likewise.
78478         getopt: update client modules
78479         * modules/argp (Depends-on): Use getopt-gnu.
78480         * modules/git-merge-changelog (Depends-on): Likewise.
78481         * modules/long-options (Depends-on): Likewise.
78482         * modules/xstrtol (Depends-on): Likewise.
78484 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78486         * tests/test-version-etc.sh: Don't fail on different
78487         project/version.  Don't fail on CRLF differences.  Rewrite to use
78488         multiple -e instead of multiple sed forks, suggested by Eric Blake
78489         <ebb9@byu.net>.
78490         * tests/test-argp-version-etc-1.sh: Likewise.
78492 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78494         * tests/test-version-etc.sh: Don't fail on different
78495         project/version.
78497 2009-08-12  Bruno Haible  <bruno@clisp.org>
78499         Tests for modules 'getopt-posix', 'getopt-gnu'.
78500         * modules/getopt-posix-tests: New file.
78501         * tests/test-getopt.c: New file.
78502         * tests/test-getopt.h: New file.
78503         * tests/test-getopt_long.h: New file.
78505         New modules 'getopt-posix', 'getopt-gnu'.
78506         * modules/getopt-gnu: New file, renamed from modules/getopt.
78507         * modules/getopt-posix: New file.
78508         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
78509         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
78510         (gl_GETOPT): Remove macro.
78511         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
78512         Disable the test against BSD systems that declare optreset. Test
78513         against mingw bug. Test against lack of support of optional arguments
78514         on many platforms.
78515         * doc/glibc-headers/getopt.texi: Update module name and list of
78516         relevant platforms.
78517         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
78518         'getopt-gnu' and more portability problems.
78519         * NEWS: Mention the changes.
78521 2009-08-12  Bruno Haible  <bruno@clisp.org>
78523         Ensure that optarg etc. get declared by <unistd.h>.
78524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
78525         AC_USE_SYSTEM_EXTENSIONS.
78526         * modules/getopt (Depends-on): Add 'extensions'.
78528 2009-08-12  Bruno Haible  <bruno@clisp.org>
78530         Avoid test link errors.
78531         * modules/pipe-filter-ii-tests (Makefile.am): Define
78532         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
78533         * modules/pipe-filter-gi-tests (Makefile.am): Define
78534         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
78535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78537 2009-08-12  Bruno Haible  <bruno@clisp.org>
78539         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
78540         gl_GETOPT_SUBSTITUTE before.
78541         (gl_GETOPT): Use it.
78542         * m4/argp.m4 (gl_ARGP): Update.
78543         Reported by Sergey Poznyakoff.
78545         * m4/getopt.m4: Reorder macros.
78546         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
78547         (gl_GETOPT_SUBSTITUTE): Remove macro.
78549 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78551         Minor improvement in gitlog-to-changelog
78553         * build-aux/gitlog-to-changelog: New option `--format' makes
78554         output format string configurable.
78556 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78558         Optimize exclude: use hash tables for non-wildcard patterns.
78560         * lib/exclude.c: Include hash.h and mbuiter.h
78561         (struct exclude_pattern, exclude_segment): New data types.
78562         (struct exclude): Rewrite.
78563         (fnmatch_pattern_has_wildcards): New function.
78564         (new_exclude_segment, free_exclude_segment): New functions.
78565         (excluded_file_pattern_p, excluded_file_name_p): New functions.
78566         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
78567         * lib/exclude.h (is_fnmatch_pattern): New prototype.
78568         * modules/exclude: Depend on hash and mbuiter.
78570         * modules/exclude-tests: New file.
78571         * tests/test-exclude.c: New file.
78572         * tests/test-exclude1.sh: New file.
78573         * tests/test-exclude2.sh: New file.
78574         * tests/test-exclude3.sh: New file.
78575         * tests/test-exclude4.sh: New file.
78576         * tests/test-exclude5.sh: New file.
78577         * tests/test-exclude6.sh: New file.
78578         * tests/test-exclude7.sh: New file.
78580 2009-08-12  Bruno Haible  <bruno@clisp.org>
78582         Ensure that getopt() gets declared by <unistd.h>.
78583         * lib/unistd.in.h: Conditionally include getopt.h.
78584         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
78585         Set GNULIB_UNISTD_H_GETOPT.
78586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78587         GNULIB_UNISTD_H_GETOPT.
78588         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
78590 2009-08-12  Bruno Haible  <bruno@clisp.org>
78592         Clarify logic.
78593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
78594         gl_replace_getopt instead of GETOPT_H.
78596 2009-08-12  Bruno Haible  <bruno@clisp.org>
78598         * m4/getopt.m4: Add comments.
78600 2009-08-12  Bruno Haible  <bruno@clisp.org>
78602         Disable multithread support by default on Cygwin 1.5.x.
78603         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
78604         set gl_use_threads=no if not specified otherwise.
78606 2009-08-11  Bruno Haible  <bruno@clisp.org>
78608         Avoid compilation error on NetBSD 5.0.
78609         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
78610         * tests/test-stdio.c: Likewise.
78611         * tests/test-stdlib.c: Likewise.
78612         * tests/test-string.c: Likewise.
78613         * tests/test-unistd.c: Likewise.
78614         Reported by Greg Troxel <gdt@ir.bbn.com>
78615         at <https://savannah.gnu.org/support/?106973>.
78617 2009-08-11  Bruno Haible  <bruno@clisp.org>
78619         * modules/dup2-tests (Depends-on): Remove close.
78621         Undo 2009-07-19 commit.
78622         * modules/acl-tests (Depends-on): Remove close.
78623         * modules/binary-io-tests (Depends-on): Likewise.
78624         * modules/closein-tests (Depends-on): Likewise.
78625         * modules/flock-tests (Depends-on): Likewise.
78626         * modules/fsync-tests (Depends-on): Likewise.
78627         * modules/lseek-tests (Depends-on): Likewise.
78628         * modules/pipe-tests (Depends-on): Likewise.
78629         * modules/posix_spawn-tests (Depends-on): Likewise.
78630         * modules/posix_spawnp-tests (Depends-on): Likewise.
78631         * modules/stat-time-tests (Depends-on): Likewise.
78632         * modules/yesno-tests (Depends-on): Likewise.
78634 2009-08-10  Bruno Haible  <bruno@clisp.org>
78636         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
78638 2009-08-10  Bruno Haible  <bruno@clisp.org>
78640         Fix a gcc warning.
78641         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
78643 2009-08-10  Bruno Haible  <bruno@clisp.org>
78645         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
78646         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
78647         not only the first time.
78648         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
78649         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
78650         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
78651         is 1, not only the first time.
78653 2009-08-10  Bruno Haible  <bruno@clisp.org>
78655         Make it possible to use module 'gethostname' without module 'close'.
78656         * lib/unistd.in.h (close): Evoke a link error only if
78657         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78659         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78660         * modules/unistd (Makefile.am): Substitute
78661         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78662         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
78663         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78664         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
78665         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78666         * modules/sys_ioctl (Makefile.am): Substitute
78667         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78668         * modules/socket (configure.ac): On native Windows, set
78669         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78670         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78671         Reported by Sam Steingold <sds@gnu.org>.
78673 2009-08-10  Bruno Haible  <bruno@clisp.org>
78675         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78676         * modules/ioctl (configure.ac): Likewise.
78678 2009-08-10  Bruno Haible  <bruno@clisp.org>
78680         Avoid collision between gnulib wrapper and libintl wrapper.
78681         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78682         already defined in intl/printf.c.
78683         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78684         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78686 2009-08-09  Bruno Haible  <bruno@clisp.org>
78688         Make <sys/select.h> really self-contained, also on Solaris 10.
78689         * lib/sys_select.in.h: Include <string.h>.
78690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78691         Solaris 10 problem.
78692         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78693         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78694         Reported by Jim Meyering.
78696 2009-08-09  Bruno Haible  <bruno@clisp.org>
78698         Avoid warnings from 'aclocal' that are due to a use of macro name
78699         AM_XGETTEXT_OPTION that is not defined in automake.
78700         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78701         automake.
78702         * modules/error (configure.ac): Likewise.
78703         * modules/propername (configure.ac): Likewise.
78704         * modules/vasprintf (configure.ac): Likewise.
78705         * modules/verror (configure.ac): Likewise.
78706         * modules/xprintf (configure.ac): Likewise.
78707         * modules/xvasprintf (configure.ac): Likewise.
78709 2009-08-08  Bruno Haible  <bruno@clisp.org>
78711         Avoid compilation error in C++ mode.
78712         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
78713         Reported by Sam Steingold <sds@gnu.org>.
78715 2009-08-08  Bruno Haible  <bruno@clisp.org>
78717         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
78718         for the various Unix platforms.
78719         * doc/posix-headers/limits.texi: Update platforms list regarding
78720         HOST_NAME_MAX.
78721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78723 2009-08-07  Jim Meyering  <meyering@redhat.com>
78725         selinux-at: fix typo in a comment
78726         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
78727         Spotted by Paolo Bonzini.
78729         selinux-at: remove redundant m4 code, add documentation
78730         * modules/selinux-at (configure.ac): Remove redundant code.
78731         LIB_SELINUX is already set via the dependent module, selinux-h.
78732         (Include): Add quotes around selinux-at.h.
78733         * lib/selinux-at.h: Add documentation.
78734         Reported by Bruno Haible in
78735         http://marc.info/?l=gnulib-bug&m=124958988300749
78737 2009-08-07  Bruno Haible  <bruno@clisp.org>
78739         Avoid link error on MacOS X 10.3 and 10.4.
78740         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
78741         on non-ELF systems.
78742         * lib/argp-pv.c (argp_program_version): Likewise.
78743         Reported by Simon Josefsson.
78745 2009-08-07  Simon Josefsson  <simon@josefsson.org>
78747         * tests/test-version-etc.sh: Use $EXEEXT.
78749 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
78751         update-copyright: update documentation to point to maint.mk
78752         * build-aux/update-copyright: Here.
78754 2009-08-06  Jim Meyering  <meyering@redhat.com>
78756         maint.mk: support update-copyright-local
78757         * top/maint.mk (update-copyright-local): Define place-holder.
78758         (update-copyright): Depend on $(update-copyright-local).
78760 2009-08-06  Jim Meyering  <meyering@redhat.com>
78762         selinux-at: new module
78763         Initially written for coreutils, this module will soon be
78764         used by findutils, too.
78765         * MODULES.html.sh [Misc]: Add selinux-at.
78766         * lib/selinux-at.h: New file, from coreutils.
78767         * lib/selinux-at.c: Likewise.
78768         * modules/selinux-at: Likewise.
78769         (License): Change from LGPL to GPL, since it depends
78770         on the GPL'd openat module.
78772         doc: update README
78773         * README: Remove references to cogito.
78774         Remove cvs-repo-updating instructions from 2007.
78775         Don't imply that CVS is better if you have limited disk space.
78777 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78779         update-copyright: support C-style comments
78780         * build-aux/update-copyright: Implement and document.
78781         * tests/test-update-copyright.sh: Test.
78783 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78785         update-copyright: support omitted "(C)"
78786         * build-aux/update-copyright: Implement and document.  Also,
78787         allow variable whitespace before "(C)".
78788         * tests/test-update-copyright.sh: Test.
78790 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78792         update-copyright: don't trip on non-FSF copyright statements
78793         * build-aux/update-copyright: Fix so that the first correctly
78794         formatted FSF copyright statement is recognized no matter what
78795         appears before it.  Update documentation.
78796         * tests/test-update-copyright.sh: Test that.
78798 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78800         update-copyright: clean up code a little
78801         * build-aux/update-copyright: Append "_re" to the name of any
78802         variable holding a regular expression.
78803         Replace "old" and "new" with "stmt" in variable names.
78804         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
78805         handled correctly.
78806         Format code more consistently.
78808 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78810         update-copyright-tests: improve portability
78811         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78812         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78814 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78816         update-copyright: support @copyright{} and &copy;
78817         * build-aux/update-copyright: Implement and document.
78818         * tests/test-update-copyright.sh: Test.
78820 2009-08-04  Jim Meyering  <meyering@redhat.com>
78822         update-copyright-tests: correctly test EOL=\r\n handling
78823         * tests/test-update-copyright.sh: Put \r at the end of some lines
78824         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78826         maint.mk: make update-copyright exclusion list more configurable
78827         * top/maint.mk (update-copyright): Default to excluding COPYING,
78828         but allow an override, in case someone does want to update that file.
78830         maint.mk: don't update copyright date in COPYING
78831         * top/maint.mk (update-copyright): Exclude COPYING.
78833         maint.mk: add a copyright-updating rule
78834         * top/maint.mk (update-copyright): New rule.
78835         Derived from coreutils/Makefile.am.
78837         update-copyright: rename some variables
78838         * build-aux/update-copyright: Rename a few variables for clarity.
78839         Tweak syntax.  List Joel E. Denny as coauthor.
78841 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78843         update-copyright: fix bug for 2-digit last year and add tests
78844         * build-aux/update-copyright: Fix bug.
78845         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78846         specified.
78847         * modules/update-copyright-tests: New
78848         * tests/test-update-copyright.sh: New.
78850 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78852         update-copyright: handle leading tabs in line prefix
78853         * build-aux/update-copyright: Count leading tabs as 8 spaces
78854         when computing margin.  This helps with the formatting of
78855         ChangeLogs, for example.
78856         Fix documentation a little.
78858 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78860         update-copyright: support EOL=\r\n
78861         * build-aux/update-copyright: Implement that.
78863 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78865         update-copyright: automatically format copyright statements
78866         * build-aux/update-copyright: Implement that.
78867         Also, be a little more predictable and safer by always failing
78868         when the full copyright format is not perfectly recognized as an
78869         unbroken whole.  Discussed at
78870         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78871         Rewrite documentation.
78873 2009-08-03  Bruno Haible  <bruno@clisp.org>
78875         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78877 2009-08-02  Bruno Haible  <bruno@clisp.org>
78879         Tests for module 'uname'.
78880         * modules/uname-tests: New file.
78881         * tests/test-uname.c: New file.
78883         New module 'uname'.
78884         * lib/uname.c: New file.
78885         * m4/uname.m4: New file.
78886         * modules/uname: New file.
78887         * doc/posix-functions/uname.texi: Mention the new module.
78889 2009-08-02  Bruno Haible  <bruno@clisp.org>
78891         Tests for module 'sys_utsname'.
78892         * modules/sys_utsname-tests: New file.
78893         * tests/test-sys_utsname.c: New file.
78895         New module 'sys_utsname'.
78896         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78897         * m4/sys_utsname_h.m4: New file.
78898         * modules/sys_utsname: New file.
78899         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78901 2009-08-02  Bruno Haible  <bruno@clisp.org>
78903         Implicitly initialize the sockets library.
78904         * lib/gethostname.c: Include sockets.h.
78905         (rpl_gethostname): Invoke gl_sockets_startup.
78906         * lib/socket.c: Include sockets.h.
78907         (rpl_socket): Invoke gl_sockets_startup.
78908         * modules/gethostname (Depends-on): Add sockets.
78909         * modules/socket (Depends-on): Likewise.
78910         * tests/test-poll.c: Don't include sockets.h.
78911         (main): Don't invoke gl_sockets_startup.
78912         * tests/test-select.c: Don't include sockets.h.
78913         (main): Don't invoke gl_sockets_startup.
78915 2009-08-02  Bruno Haible  <bruno@clisp.org>
78917         Allow multiple calls to gl_sockets_startup.
78918         * lib/sockets.c (initialized_sockets_version): New variable.
78919         (gl_sockets_startup): Do nothing if already called for this or a higher
78920         version.
78921         (gl_sockets_cleanup): Reset initialized_sockets_version.
78923 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78925         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78926         different project/version.
78928 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78929             Bruno Haible  <bruno@clisp.org>
78931         Tests for module 'pipe-filter-gi'.
78932         * modules/pipe-filter-gi-tests: New file.
78933         * tests/test-pipe-filter-gi1.sh: New file.
78934         * tests/test-pipe-filter-gi1.c: New file.
78935         * tests/test-pipe-filter-gi2.sh: New file.
78936         * tests/test-pipe-filter-gi2-main.c: New file.
78937         * tests/test-pipe-filter-gi2-child.c: New file.
78939         New module 'pipe-filter-gi'.
78940         * lib/pipe-filter-gi.c: New file.
78941         * modules/pipe-filter-gi: New file.
78943 2009-08-02  Bruno Haible  <bruno@clisp.org>
78944             Paolo Bonzini  <bonzini@gnu.org>
78946         Tests for module 'pipe-filter-ii'.
78947         * modules/pipe-filter-ii-tests: New file.
78948         * tests/test-pipe-filter-ii1.sh: New file.
78949         * tests/test-pipe-filter-ii1.c: New file.
78950         * tests/test-pipe-filter-ii2.sh: New file.
78951         * tests/test-pipe-filter-ii2-main.c: New file.
78952         * tests/test-pipe-filter-ii2-child.c: New file.
78954         New module 'pipe-filter-ii'.
78955         * lib/pipe-filter.h: New file.
78956         * lib/pipe-filter-ii.c: New file.
78957         * lib/pipe-filter-aux.h: New file.
78958         * modules/pipe-filter-ii: New file.
78960 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78962         * lib/gc-libgcrypt.c: Change copyright to FSF.
78963         * lib/gc-gnulib.c: Likewise.
78965 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78967         * lib/gethostname.c: Include limits.h.
78969 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78970             Bruno Haible  <bruno@clisp.org>
78972         Ensure HOST_NAME_MAX as part of the gethostname module.
78973         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78974         define also HOST_NAME_MAX.
78975         * tests/test-gethostname.c: Include <limits.h>.
78976         (main): Check also HOST_NAME_MAX.
78977         * doc/posix-headers/limits.texi: Document the mingw problem.
78979 2009-08-02  Bruno Haible  <bruno@clisp.org>
78981         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78982         Add comments.
78984 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78986         * lib/gethostname.c: Add Windows wrapper.
78987         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78988         * modules/gethostname: Depend on sys_socket & errno, for also
78989         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78990         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78992 2009-07-31  Jim Meyering  <meyering@redhat.com>
78994         getloadavg: fix symbol name in comment
78995         * lib/getloadavg.c: Correct a typo I introduced when adding
78996         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78997         Matt Kraai spotted the problem.
78999 2009-07-29  Matt Kraai  <mkraai@beckman.com>
79001         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
79002         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
79003         code also if ! defined N_NAME_POINTER.
79004         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
79005         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
79006         but the n_name member is a 12-byte array.
79008 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
79010         update-copyright: generalize comment handling
79011         * build-aux/update-copyright: Handle copyright statements
79012         within more comment styles.
79013         Document usage.
79014         Report any file with an external copyright holder or parse failure.
79016 2009-07-29  Jim Meyering  <meyering@redhat.com>
79018         mktime: correct setting of REPLACE_MKTIME
79019         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
79021         update-copyright: new module
79022         * modules/update-copyright: New file.
79023         * build-aux/update-copyright: New file.
79024         * MODULES.html.sh (maint+release support): Add update-copyright.
79026 2009-07-27  Bruno Haible  <bruno@clisp.org>
79028         Fix compilation error when <ctime> is used and mktime is replaced.
79029         * lib/time.in.h (mktime): New declaration.
79030         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
79031         REPLACE_MKTIME instead of defining mktime in config.h.
79032         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
79033         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
79034         Reported by Ross McFarland <rwmcfa1@neces.com>.
79036 2009-07-27  Bruno Haible  <bruno@clisp.org>
79038         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
79039         Reported by Matt Kraai <mkraai@beckman.com>.
79041 2009-07-25  Jim Meyering  <meyering@redhat.com>
79043         maint.mk: avoid warnings about missing files
79044         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
79045         diagnostic when .prev-version does not exist.
79046         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
79047         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
79048         nonexistent cfg.mk.
79049         Suggestions from Simon Josefsson.
79051 2009-07-25  Bruno Haible  <bruno@clisp.org>
79053         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
79054         defined as macros. Needed on QNX 6.4.1.
79055         Reported by Matt Kraai <mkraai@beckman.com>.
79057 2009-07-23  Jim Meyering  <meyering@redhat.com>
79059         maint.mk: invoke "make dist" with a working value of XZ_OPT
79060         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
79062 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
79064         Make fseeko.c compile on QNX.
79065         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
79067 2009-07-22  Peter Simons  <simons@cryp.to>
79069         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
79070         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
79071         * lib/md4.h: Likewise.
79072         * lib/md5.h: Likewise.
79073         * lib/sha1.h: Likewise.
79074         * lib/sha256.h: Likewise.
79075         * lib/sha512.h: Likewise.
79077         tests-sha1: don't assign literal string to 'char *' variable
79078         * tests/test-sha1.c (main): Declare locals with "const" to match
79079         attributes of the right hand side.
79081 2009-07-21  Eric Blake  <ebb9@byu.net>
79083         dup2: fix more mingw problems
79084         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
79085         fd to itself.
79086         * doc/posix-functions/dup2.texi (dup2): Document the bug.
79087         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
79088         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
79089         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
79090         care of mingw bugs.
79092 2009-07-21  Jim Meyering  <meyering@redhat.com>
79094         vc-list-files: avoid failure when /bin/sh is dash
79095         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
79096         On some Debian based systems, /bin/sh is a symlink to dash, and running
79097         this command would omit the "/" following each 'tests' prefix:
79098           dash -x build-aux/vc-list-files -C . tests
79099         That is because bash and dash work differently:
79100           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
79101           bash ok
79102           dash odd
79104 2009-07-21  Eric Blake  <ebb9@byu.net>
79106         dup2-tests: test previous patch
79107         * modules/dup2-tests: New file.
79108         * tests/test-dup2.c: Likewise.
79109         * tests/test-open.c (main): Avoid unspecified behavior.
79110         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
79111         test.
79113         dup2: work around mingw and cygwin 1.5 bug
79114         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
79115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79116         * modules/unistd (Makefile.am): Substitute it.
79117         * lib/unistd.in.h (dup2): Declare the replacement.
79118         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
79119         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
79120         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
79121         * modules/execute (Depends-on): Add dup2.
79122         * modules/fseterr (Depends-on): Likewise.
79123         * modules/pipe (Depends-on): Likewise.
79124         * modules/posix_spawn-internal (Depends-on): Likewise.
79126 2009-07-21  Bruno Haible  <bruno@clisp.org>
79128         * modules/.gitattributes: New file.
79130 2009-07-20  Bruno Haible  <bruno@clisp.org>
79132         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
79133         (main): Use it.
79135 2009-07-20  Eric Blake  <ebb9@byu.net>
79137         test-pipe: make a bit more robust.
79138         * tests/test-pipe.c (myerr): Allow error messages regardless of
79139         what we do to stderr.
79140         (test_pipe): Rearrange to avoid deadlock.
79141         (child_main): Try a larger read, to ensure we avoided deadlock.
79142         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
79143         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
79144         if misused.
79146 2009-07-19  Jim Meyering  <meyering@redhat.com>
79148         fts: avoid false-positive cycle-detection
79149         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
79150         for each new command line argument.
79152 2009-07-19  Bruno Haible  <bruno@clisp.org>
79154         Fix build error on mingw with the modules sys_select and unistd.
79155         * modules/acl-tests (Depends-on): Add close.
79156         * modules/binary-io-tests (Depends-on): Likewise.
79157         * modules/closein-tests (Depends-on): Likewise.
79158         * modules/flock-tests (Depends-on): Likewise.
79159         * modules/fsync-tests (Depends-on): Likewise.
79160         * modules/lseek-tests (Depends-on): Likewise.
79161         * modules/pipe-tests (Depends-on): Likewise.
79162         * modules/posix_spawn-tests (Depends-on): Likewise.
79163         * modules/posix_spawnp-tests (Depends-on): Likewise.
79164         * modules/stat-time-tests (Depends-on): Likewise.
79165         * modules/yesno-tests (Depends-on): Likewise.
79167 2009-07-19  Bruno Haible  <bruno@clisp.org>
79169         Unify conditionals.
79170         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
79171         macros, not at the compiler macros.
79172         * lib/pipe.c: Likewise.
79173         * lib/execute.c: Likewise.
79174         * lib/spawni.c: Likewise.
79176 2009-07-19  Bruno Haible  <bruno@clisp.org>
79178         Fix handling of closed stdin/stdout/stderr on mingw.
79179         * lib/w32spawn.h: Include unistd.h.
79180         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
79181         file descriptor with O_NOINHERIT flag.
79182         (fd_safer_noinherit): New function, based on fd-safer.c.
79183         (dup_safer_noinherit): New function, based on dup-safer.c.
79184         (undup_safer_noinherit): New function.
79185         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
79186         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
79187         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
79188         instead of fd_safer.
79189         * tests/test-pipe.c: Include <windows.h>.
79190         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
79191         result.
79193         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
79194         from main.
79195         (test_pipe): Pass an extra argument for disambiguation.
79196         (main): Invoke parent_main or child_main.
79198         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
79199         consistently.
79201 2009-07-18  Eric Blake  <ebb9@byu.net>
79203         test-pipe: fix mingw build
79204         * tests/test-pipe.c (main): Avoid fcntl on mingw.
79206 2009-07-18  Bruno Haible  <bruno@clisp.org>
79208         * modules/pipe-tests (Makefile.am): Fix typo.
79210 2009-07-18  Eric Blake  <ebb9@byu.net>
79212         error: fix mingw build
79213         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
79214         Reported by Bruno Haible.
79216         error: avoid undefined use of stdout
79217         * lib/error.c (error, error_at_line): Check that fd 1 is open
79218         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
79219         is handling faults and the close_stdout module wants to report the
79220         detection of closed stdout as an error.
79222 2009-07-17  Eric Blake  <ebb9@byu.net>
79224         pipe: be robust in face of closed fds
79225         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
79226         should cause child to misbehave.
79227         * modules/pipe-tests: New module.
79228         * tests/test-pipe.c: New file.
79229         * tests/test-pipe.sh: New file.
79230         Reported by Akim Demaille.
79232 2009-07-14  Bruno Haible  <bruno@clisp.org>
79234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
79235         Reported by anonymous kc.
79237 2009-07-07  Jim Meyering  <meyering@redhat.com>
79239         maint.mk: don't look for translatable strings in *.m4 or *.mk
79240         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
79241         when searching for translatable strings.
79243 2009-07-05  Jim Meyering  <meyering@redhat.com>
79245         remove superfluous parentheses in STREQ definition
79246         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
79247         * lib/getugroups.c (STREQ): Likewise.
79248         * lib/fnmatch.c (STREQ): Likewise.
79249         Spotted by Bruno Haible.
79251 2009-07-04  Jim Meyering  <meyering@redhat.com>
79253         argv-iter: new module
79254         * MODULES.html.sh: Add argv-iter.
79255         * lib/argv-iter.c, lib/argv-iter.h: New files.
79256         * modules/argv-iter: New file.
79257         * modules/argv-iter-tests: New file.
79258         * tests/test-argv-iter.c: Test it.
79260 2009-07-04  Bruno Haible  <bruno@clisp.org>
79262         Fix assertion.
79263         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
79264         contains more exact copies of a given entry than file2, leave the extra
79265         copies unpaired rather than aborting.
79266         Reported by Eric Blake.
79268 2009-07-02  Bruno Haible  <bruno@clisp.org>
79270         Speedup git-merge-changelog for git cherry-pick.
79271         * lib/git-merge-changelog.c (struct entries_mapping): New type.
79272         (entries_mapping_get): New function, extracted from compute_mapping.
79273         (entries_mapping_reverse_get): New function.
79274         (compute_mapping): Add a 'full' argument. Return the result in a
79275         'struct entries_mapping'.
79276         (main): Update. Access the mappings through entries_mapping_get.
79277         Reported by Eric Blake.
79279 2009-07-02  Bruno Haible  <bruno@clisp.org>
79281         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
79282         best_i.
79284 2009-07-02  Bruno Haible  <bruno@clisp.org>
79286         Speed up approximate search for matching ChangeLog entries.
79287         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
79288         argument. Call fstrcmp_bounded instead of fstrcmp.
79289         (compute_mapping, try_split_merged_entry, main): Update callers.
79291 2009-07-02  Bruno Haible  <bruno@clisp.org>
79293         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
79295 2009-06-30  Bruno Haible  <bruno@clisp.org>
79297         Reduce the number of uc_is_cased calls.
79298         * lib/unicase.h (casing_suffix_context_t): Add
79299         'first_char_except_ignorable' field.
79300         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
79301         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
79302         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
79303         Update initializer.
79304         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
79305         case-ignorable characters.
79306         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
79307         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
79308         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
79309         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
79310         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
79312 2009-06-30  Bruno Haible  <bruno@clisp.org>
79314         Tests for module 'unicase/ignorable'.
79315         * modules/unicase/ignorable-tests: New file.
79316         * tests/unicase/test-ignorable.c: New file, generated by
79317         gen-uni-tables.
79319         Tests for module 'unicase/cased'.
79320         * modules/unicase/cased-tests: New file.
79321         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
79322         * tests/unicase/test-predicate-part1.h: New file, derived from
79323         tests/unictype/test-predicate-part1.h.
79324         * tests/unicase/test-predicate-part2.h: New file, same as
79325         tests/unictype/test-predicate-part2.h.
79327         Fix evaluation of "Before C" condition of FINAL_SIGMA.
79328         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
79329         (output_casing_properties): New function.
79330         (main): Call it.
79331         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
79332         * lib/unicase/cased.c: Include unictype/bitmap.h.
79333         (uc_is_cased): Define through a bitmap lookup.
79334         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
79335         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
79336         (uc_is_case_ignorable): Define through a bitmap lookup.
79337         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
79338         lib/unictype/bitmap.h.
79339         (Depends-on): Add inline. Clean up.
79340         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
79341         lib/unictype/bitmap.h.
79342         (Depends-on): Add inline. Clean up.
79343         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
79344         recognition.
79345         * tests/unicase/test-u16-tolower.c (main): Likewise.
79346         * tests/unicase/test-u32-tolower.c (main): Likewise.
79348 2009-06-30  Bruno Haible  <bruno@clisp.org>
79350         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
79351         * lib/unicase/u16-casemap.c: Likewise.
79352         * lib/unicase/u32-casemap.c: Likewise.
79354 2009-06-29  Bruno Haible  <bruno@clisp.org>
79356         Define u32_casefold as a wrapper around u32_ct_casefold.
79357         * lib/unicase/u32-casefold.c: Update.
79358         * modules/unicase/u32-casefold (Depends-on): Add
79359         unicase/u32-ct-casefold, unicase/empty-prefix-context,
79360         unicase/empty-suffix-context. Clean up.
79362         Define u16_casefold as a wrapper around u16_ct_casefold.
79363         * lib/unicase/u16-casefold.c: Update.
79364         * modules/unicase/u16-casefold (Depends-on): Add
79365         unicase/u16-ct-casefold, unicase/empty-prefix-context,
79366         unicase/empty-suffix-context. Clean up.
79368         Define u8_casefold as a wrapper around u8_ct_casefold.
79369         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
79370         * lib/unicase/u8-casefold.c: Update.
79371         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
79372         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79374         Define u32_totitle as a wrapper around u32_ct_totitle.
79375         * lib/unicase/u32-totitle.c: Update.
79376         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
79377         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79379         Define u16_totitle as a wrapper around u16_ct_totitle.
79380         * lib/unicase/u16-totitle.c: Update.
79381         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
79382         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79384         Define u8_totitle as a wrapper around u8_ct_totitle.
79385         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
79386         functions.
79387         (FUNC): Delegate to U_CT_TOTITLE.
79388         * lib/unicase/u8-totitle.c: Update.
79389         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
79390         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79392         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
79393         invocation.
79394         * modules/unicase/u32-tolower (Depends-on): Add
79395         unicase/empty-prefix-context, unicase/empty-suffix-context.
79397         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
79398         invocation.
79399         * modules/unicase/u16-tolower (Depends-on): Add
79400         unicase/empty-prefix-context, unicase/empty-suffix-context.
79402         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
79403         * modules/unicase/u8-tolower (Depends-on): Add
79404         unicase/empty-prefix-context, unicase/empty-suffix-context.
79406         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
79407         invocation.
79408         * modules/unicase/u32-toupper (Depends-on): Add
79409         unicase/empty-prefix-context, unicase/empty-suffix-context.
79411         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
79412         invocation.
79413         * modules/unicase/u16-toupper (Depends-on): Add
79414         unicase/empty-prefix-context, unicase/empty-suffix-context.
79416         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
79417         * modules/unicase/u8-toupper (Depends-on): Add
79418         unicase/empty-prefix-context, unicase/empty-suffix-context.
79420         New module 'unicase/u32-ct-casefold'.
79421         * lib/unicase/u32-ct-casefold.c: New file.
79422         * modules/unicase/u32-ct-casefold: New file.
79424         New module 'unicase/u16-ct-casefold'.
79425         * lib/unicase/u16-ct-casefold.c: New file.
79426         * modules/unicase/u16-ct-casefold: New file.
79428         New module 'unicase/u8-ct-casefold'.
79429         * lib/unicase/u8-ct-casefold.c: New file.
79430         * lib/unicase/u-ct-casefold.h: New file, derived from
79431         lib/unicase/u-casefold.h.
79432         * modules/unicase/u8-ct-casefold: New file.
79434         New module 'unicase/u32-ct-totitle'.
79435         * lib/unicase/u32-ct-totitle.c: New file.
79436         * modules/unicase/u32-ct-totitle: New file.
79438         New module 'unicase/u16-ct-totitle'.
79439         * lib/unicase/u16-ct-totitle.c: New file.
79440         * modules/unicase/u16-ct-totitle: New file.
79442         New module 'unicase/u8-ct-totitle'.
79443         * lib/unicase/u8-ct-totitle.c: New file.
79444         * lib/unicase/u-ct-totitle.h: New file, derived from
79445         lib/unicase/u-totitle.h.
79446         * modules/unicase/u8-ct-totitle: New file.
79448         New module 'unicase/u32-ct-tolower'.
79449         * lib/unicase/u32-ct-tolower.c: New file.
79450         * modules/unicase/u32-ct-tolower: New file.
79452         New module 'unicase/u16-ct-tolower'.
79453         * lib/unicase/u16-ct-tolower.c: New file.
79454         * modules/unicase/u16-ct-tolower: New file.
79456         New module 'unicase/u8-ct-tolower'.
79457         * lib/unicase/u8-ct-tolower.c: New file.
79458         * modules/unicase/u8-ct-tolower: New file.
79460         New module 'unicase/u32-ct-toupper'.
79461         * lib/unicase/u32-ct-toupper.c: New file.
79462         * modules/unicase/u32-ct-toupper: New file.
79464         New module 'unicase/u16-ct-toupper'.
79465         * lib/unicase/u16-ct-toupper.c: New file.
79466         * modules/unicase/u16-ct-toupper: New file.
79468         New module 'unicase/u8-ct-toupper'.
79469         * lib/unicase/u8-ct-toupper.c: New file.
79470         * modules/unicase/u8-ct-toupper: New file.
79472         Add context arguments to u*_casemap functions.
79473         * lib/unicase/unicasemap.h: Include unicase.h.
79474         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
79475         suffix_context arguments.
79476         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
79477         functions.
79478         (FUNC): Add prefix_context and suffix_context arguments. Use
79479         uc_is_cased and uc_is_case_ignorable.
79480         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
79481         * lib/unicase/u16-casemap.c: Likewise.
79482         * lib/unicase/u32-casemap.c: Likewise.
79483         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
79484         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79485         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
79486         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79487         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
79488         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79490         New module 'unicase/u32-suffix-context'.
79491         * lib/unicase/u32-suffix-context.c: New file.
79492         * modules/unicase/u32-suffix-context: New file.
79494         New module 'unicase/u16-suffix-context'.
79495         * lib/unicase/u16-suffix-context.c: New file.
79496         * modules/unicase/u16-suffix-context: New file.
79498         New module 'unicase/u8-suffix-context'.
79499         * lib/unicase/u8-suffix-context.c: New file.
79500         * lib/unicase/u-suffix-context.h: New file.
79501         * modules/unicase/u8-suffix-context: New file.
79503         New module 'unicase/empty-suffix-context'.
79504         * lib/unicase/empty-suffix-context.c: New file.
79505         * modules/unicase/empty-suffix-context: New file.
79507         New module 'unicase/u32-prefix-context'.
79508         * lib/unicase/u32-prefix-context.c: New file.
79509         * modules/unicase/u32-prefix-context: New file.
79511         New module 'unicase/u16-prefix-context'.
79512         * lib/unicase/u16-prefix-context.c: New file.
79513         * modules/unicase/u16-prefix-context: New file.
79515         New module 'unicase/u8-prefix-context'.
79516         * lib/unicase/u8-prefix-context.c: New file.
79517         * lib/unicase/u-prefix-context.h: New file.
79518         * lib/unicase/context.h: New file.
79519         * modules/unicase/u8-prefix-context: New file.
79521         New module 'unicase/empty-prefix-context'.
79522         * lib/unicase/empty-prefix-context.c: New file.
79523         * modules/unicase/empty-prefix-context: New file.
79525         New module 'unicase/ignorable'.
79526         * lib/unicase/ignorable.c: New file.
79527         * modules/unicase/ignorable: New file.
79529         New module 'unicase/cased'.
79530         * lib/unicase/caseprop.h: New file.
79531         * lib/unicase/cased.c: New file.
79532         * modules/unicase/cased: New file.
79534         New functions for case mapping of substrings.
79535         * lib/unicase.h (casing_prefix_context_t): New type.
79536         (unicase_empty_prefix_context): New variable.
79537         (u8_casing_prefix_context, u16_casing_prefix_context,
79538         u32_casing_prefix_context, u8_casing_prefixes_context,
79539         u16_casing_prefixes_context, u32_casing_prefixes_context): New
79540         declarations.
79541         (casing_suffix_context_t): New type.
79542         (unicase_empty_suffix_context): New variable.
79543         (u8_casing_suffix_context, u16_casing_suffix_context,
79544         u32_casing_suffix_context, u8_casing_suffixes_context,
79545         u16_casing_suffixes_context, u32_casing_suffixes_context,
79546         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
79547         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
79548         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
79549         declarations.
79551 2009-06-28  Jim Meyering  <meyering@redhat.com>
79553         boostrap: indent only with spaces
79554         * build-aux/bootstrap: Indent only with spaces, never TABs.
79556         bootstrap: split long lines
79557         * build-aux/bootstrap: Keep line length < 80.
79559         bootstrap: sync from coreutils
79560         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
79561         just as autoreconf does.  Verify a list of prerequisite
79562         package-name,version-number pairs if defined in bootstrap.conf.
79563         Refer to README-prereq, if prerequisites are not satisfied.
79565 2009-06-27  Eric Blake  <ebb9@byu.net>
79567         tests: add test for bogus NULL definition
79568         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
79569         * tests/test-stdlib.c: Likewise.
79570         * tests/test-string.c: Likewise.
79571         * tests/test-locale.c: Likewise.
79572         * tests/test-unistd.c: Likewise.
79573         * modules/stdio-tests (Depends-on): Add verify.
79574         * modules/stdlib-tests (Depends-on): Likewise.
79575         * modules/string-tests (Depends-on): Likewise.
79576         * modules/locale-tests (Depends-on): Likewise.
79577         * modules/unistd-tests (Depends-on): Likewise.
79579 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
79581         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
79582         self-explaining comment.
79583         * m4/selinux-selinux-h: Update serial.
79584         (gl_LIBSELINUX): New macro, adding a warning for missing development
79585         packages to code extracted from...
79586         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
79587         Add warning for missing development packages here, too.
79589 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
79591         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
79593 2009-06-25  Eric Blake  <ebb9@byu.net>
79595         version-etc: fix regression
79596         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
79597         gcc.
79598         (version_etc): Use it, to catch bugs with trailing NULL.
79599         * lib/version-etc.c (version_etc_arn): Delete unused argument.
79600         (version_etc_va): Fix logic bug.
79601         * modules/version-etc-tests: Add test.
79602         * tests/test-version-etc.c: New file.
79603         * tests/test-version-etc.sh: Likewise.
79605 2009-06-25  Sam Steingold  <sds@gnu.org>
79607         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
79608         mbtowc declaration.
79610 2009-06-25  Eric Blake  <ebb9@byu.net>
79612         fpurge: migrate into <stdio.h>
79613         * lib/fpurge.h: Delete...
79614         * lib/stdio.in.h (fpurge): ...and declare here, instead.
79615         * lib/fpurge.c (fpurge): Change declaring header.
79616         * modules/fpurge (Files): Drop deleted file.
79617         (Depends-on): Add stdio.
79618         (configure.ac): Set witness.
79619         * modules/stdio (Makefile.am): Support fpurge macros.
79620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
79622         * lib/fflush.c: Update client.
79623         * tests/test-fpurge.c: Likewise.
79624         * NEWS: Mention the change.
79626 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79628         * lib/argp-version-etc.c (program_authors): Add const
79629         qualifier.
79630         * lib/version-etc.c: Fix typos in the comments.
79631         * modules/argp-version-etc: Depends on version-etc.
79633 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79635         argp-version-etc: new module.
79637         * lib/argp-version-etc.c: New file.
79638         * lib/argp-version-etc.h: New file.
79639         * modules/argp-version-etc: New file.
79640         * modules/argp-version-etc-tests: New file.
79641         * tests/test-argp-version-etc.c: New test.
79642         * tests/test-argp-version-etc-1.sh: New test.
79644 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79646         Provide additional interfaces and documentation for version-etc
79647         module.
79649         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
79650         interfaces.
79651         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
79652         prototypes.
79654 2009-06-24  Bruno Haible  <bruno@clisp.org>
79656         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
79657         HAVE_LIB${NAME} macro.
79658         Reported by Sam Steingold <sds@gnu.org>.
79660 2009-06-23  Simon Josefsson  <simon@josefsson.org>
79662         * modules/hash-tests (test_hash_LDADD): Link to libintl when
79663         needed.
79665 2009-06-21  Bruno Haible  <bruno@clisp.org>
79667         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79668         work.
79669         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79670         together with LIB${NAME}, LTLIB${NAME}.
79671         Reported by Sam Steingold <sds@gnu.org>.
79673 2009-06-20  Jim Meyering  <meyering@redhat.com>
79675         tests: make sc_require_test_exit_idiom more generic
79676         * top/maint.mk (Exit_witness_file): New overridable variable.
79677         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79678         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79680 2009-06-19  Jim Meyering  <meyering@redhat.com>
79682         hash: reverse order of src/dst parameters in an internal interface
79683         * lib/hash.c (transfer_entries): Reverse order of parameters to
79684         put DST before SRC.  Adjust callers.
79686         tests: test-hash: avoid wholesale duplication
79687         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79688         Instead, use a loop and add a single conditional.
79690         tests: test-hash: allow seed selection via a command line argument
79691         * tests/test-hash.c (get_seed): New function.
79692         (main): Use it.
79694 2009-06-19  Eric Blake  <ebb9@byu.net>
79696         hash: avoid memory leak on allocation failure
79697         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79698         failure.  Factor repeated algorithm...
79699         (transfer_entries): ...into new helper routine.
79700         (hash_delete): React to hash_rehash return value.
79702         hash: reduce memory pressure in hash_rehash no-op case
79703         * lib/hash.c (next_prime): Avoid overflow.
79704         (hash_initialize): Factor bucket size computation...
79705         (compute_bucket_size): ...into new helper function.
79706         (hash_rehash): Use new function and open coding to reduce memory
79707         pressure, and avoid a memory leak in USE_OBSTACK code.
79708         Reported by Jim Meyering.
79710 2009-06-18  Eric Blake  <ebb9@byu.net>
79712         hash: make rotation more obvious
79713         * modules/hash (Depends-on): Add bitrotate and stdint.
79714         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
79715         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
79716         (SIZE_MAX): Rely on headers for definition.
79717         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
79718         (raw_hasher): Use rotr_sz.
79719         Suggested by Jim Meyering.
79721         hash: fix memory leak in last patch
79722         * lib/hash.c (hash_rehash): Avoid memory leak.
79724         hash: avoid no-op rehashing
79725         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
79727         hash: provide default callback functions
79728         * lib/hash.c (raw_hasher, raw_comparator): New functions.
79729         (hash_initialize): Use them as defaults.
79730         * tests/test-hash.c (main): Test this.
79732         hash: minor optimization
79733         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
79734         when possible.
79735         (hash_initialize): Document this promise.
79736         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
79737         * tests/test-hash.c (hash_compare_strings): Test this.
79739 2009-06-18  Bruno Haible  <bruno@clisp.org>
79741         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
79742         going to be replaced anyway.
79744 2009-06-18  Bruno Haible  <bruno@clisp.org>
79746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
79747         in one place.
79748         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
79749         be replaced anyway.
79751 2009-06-18  Eric Blake  <ebb9@byu.net>
79753         hash: check for resize before insertion
79754         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
79755         threshold before insertion, so that a pathological hash_rehash
79756         that fills every bucket can still trigger another rehash.
79758 2009-06-18  Jim Meyering  <meyering@redhat.com>
79760         hash-tests: add a loop around the small tests
79761         * tests/test-hash.c (main): Repeat small tests with selected
79762         small initial table sizes.
79764 2009-06-17  Eric Blake  <ebb9@byu.net>
79766         hash: minor cleanups
79767         * lib/hash.h (hash_entry): Make opaque, by moving...
79768         * lib/hash.c (hash_entry): ...here.
79769         (hash_insert): Clarify restrictions on what can be inserted.
79770         (hash_get_next): Clarify when it is safe to remove an element
79771         during traversal.
79772         (check_tuning): Skip verification when tuning is known safe.
79773         (hash_initialize): Clarify restrictions on tuning.
79775 2009-06-17  Jim Meyering  <jim@meyering.net>
79776         and Eric Blake  <ebb9@byu.net>
79778         hash-tests: new module
79779         * modules/hash-tests: New file.
79780         * tests/test-hash.c: New file.
79782 2009-06-17  Eric Blake  <ebb9@byu.net>
79784         strstr-simple: document new module
79785         * MODULES.html.sh: Document new module.
79787         strstr, strcasestr: replace on platforms with broken memchr
79788         * modules/strstr: Split into...
79789         * modules/strstr-simple: ...new module that does not care about
79790         performance, but does care about glibc bug.
79791         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
79792         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
79793         if platform memchr is broken, per Debian bug 521737.
79794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
79795         memchr.
79796         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
79797         * doc/posix-functions/strstr.texi (strstr): Document the fix.
79798         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
79799         * modules/mountlist (Depends-on): Add strstr-simple.
79800         * modules/gen-uni-tables (Depends-on): Likewise.
79801         * modules/argz (Depends-on): Add strstr.
79803 2009-06-17  Bruno Haible  <bruno@clisp.org>
79805         * modules/posix_spawn-internal (Depends-on): Add errno.
79807 2009-06-17  Bruno Haible  <bruno@clisp.org>
79809         Define missing ESTALE on Interix 3.5.
79810         * lib/errno.in.h (ESTALE): Assign a value if missing.
79811         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79812         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79813         missing.
79814         * doc/posix-headers/errno.texi: Mention the Interix bug.
79815         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79817 2009-06-15  Eric Blake  <ebb9@byu.net>
79819         memchr, memchr2: add valgrind exception
79820         * lib/memchr.valgrind: New file.
79821         * lib/memchr2.valgrind: New file.
79822         * modules/memchr (Files): Distribute valgrind file.
79823         * modules/memchr2 (Files): Likewise.
79825         docs: memchr is no longer obsolete
79826         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79827         * lib/string.in.h (memchr): Simplify logic.
79829 2009-06-14  Jim Meyering  <meyering@redhat.com>
79831         link-follow: fix the "checking..." message to not mention trailing slash
79832         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79833         never considered trailing slashes.
79835 2009-06-14  Bruno Haible  <bruno@clisp.org>
79837         * m4/memchr.m4: Mention also the bug on IA-64.
79838         * doc/posix-functions/memchr.texi: Likewise.
79840 2009-06-12  Eric Blake  <ebb9@byu.net>
79842         memchr: detect broken x86_64 and alpha implementations
79843         * modules/memchr-tests (Depends-on): Move mmap detection...
79844         * modules/memchr (Depends-on): ...here.
79845         (configure.ac): Set indicator.
79846         * lib/string.in.h (memchr): Declare replacement.
79847         * modules/string (Makefile.am): Trigger replacement.
79848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79849         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79850         bugs.
79851         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79852         * modules/getpagesize (License): Relax license.
79854 2009-06-11  Bruno Haible  <bruno@clisp.org>
79856         * lib/idpriv.h: Add more references.
79858 2009-06-08  Bruno Haible  <bruno@clisp.org>
79860         Tests for module 'idpriv-droptemp'.
79861         * modules/idpriv-droptemp-tests: New file.
79862         * tests/test-idpriv-droptemp.sh: New file.
79863         * tests/test-idpriv-droptemp.su.sh: New file.
79864         * tests/test-idpriv-droptemp.c: New file.
79866         New module 'idpriv-droptemp'.
79867         * lib/idpriv-droptemp.c: New file.
79868         * modules/idpriv-droptemp: New file.
79870 2009-06-08  Bruno Haible  <bruno@clisp.org>
79872         Tests for module 'idpriv-drop'.
79873         * modules/idpriv-drop-tests: New file.
79874         * tests/test-idpriv-drop.sh: New file.
79875         * tests/test-idpriv-drop.su.sh: New file.
79876         * tests/test-idpriv-drop.c: New file.
79878         New module 'idpriv-drop'.
79879         * lib/idpriv.h: New file.
79880         * lib-idpriv-drop.c: New file.
79881         * m4/idpriv.m4: New file.
79882         * modules/idpriv-drop: New file.
79884 2009-06-08  Bruno Haible  <bruno@clisp.org>
79886         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79887         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79888         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79889         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79890         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79891         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79892         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79894 2009-06-08  Eric Blake  <ebb9@byu.net>
79896         test-strstr: use memory fence, when possible
79897         * tests/test-strstr.c (main): Use memory fence, in order to be
79898         more likely to trigger Debian bug 521737.
79899         * modules/strstr-tests (Files): Pull in additional files.
79901         memchr: no longer obsolete, for wider field testing
79902         * modules/memchr (Status, Notice): Delete, this module is no
79903         longer obsolete.
79904         * modules/vasnprintf (Depends-on): Add memchr.
79906 2009-06-07  Jim Meyering  <meyering@redhat.com>
79908         hash: declare some functions with the warn_unused_result attribute
79909         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79911 2009-06-07  Bruno Haible  <bruno@clisp.org>
79913         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79914         Reported by Eric Blake.
79916 2009-06-06  Eric Blake  <ebb9@byu.net>
79918         test-alignof: fix typo with long double
79919         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79920         compiler error.
79922 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79924         Escape non-texinfo { and }s.
79925         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79926         markup error.
79928 2009-06-04  Jim Meyering  <meyering@redhat.com>
79930         gitlog-to-changelog: don't infloop on an empty commit log
79931         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79932         Reported by Boris Petersen <transacid@centerim.org>.
79934 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79936         version-etc: extend for packagers
79937         Add three new configure options, intended for packagers:
79938           --with-packager="packager name"
79939           --with-packager-version="packager-specific version"
79940           --with-packager-bug-reports="packager bug reporting"
79941         An example with coreutils:
79942           $ ./configure \
79943             --with-packager=Gentoo \
79944             --with-packager-bug-report=http://bugs.gentoo.org/ \
79945             --with-packager-version="patchset 1.6"
79946           $ ./src/ls --version | head -n2
79947           ls (GNU coreutils) 7.1-dirty
79948           Packaged by Gentoo (patchset 1.6)
79949         Note that the bug reporting info via --help doesn't show up because
79950         coreutils uses its own custom emit_bug_reporting_address() implementation
79951         in src/system.h.  If it didn't, it'd look like:
79952           $ ./src/ls --help | tail -n4
79953           Report bugs to <bug-coreutils@gnu.org>.
79954           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79955           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79956           General help using GNU software: <http://www.gnu.org/gethelp/>.
79957         * lib/version-etc.c: Print new information, if provided.
79958         * m4/version-etc.m4: New file.
79959         * modules/version-etc (Files): Add m4/version-etc.m4.
79960         (configure.ac): Add gl_VERSION_ETC.
79962 2009-05-31  Bruno Haible  <bruno@clisp.org>
79964         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79965         and 'int64_t'.
79966         * modules/alignof-tests (Dependencies): Add stdint.
79967         Reported by Eric Blake.
79969 2009-05-31  Bruno Haible  <bruno@clisp.org>
79971         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79972         restriction due to compiler bugs.
79973         Reported by Eric Blake.
79975 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79976             Bruno Haible  <bruno@clisp.org>
79978         Fix test-alignof failure.
79979         * lib/alignof.h (alignof_slot): New macro.
79980         (alignof_type): New macro, with the same semantics as the previous
79981         'alignof'.
79982         (alignof): Alias to alignof_slot.
79983         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79984         check that the results are usable as constant expressions.
79986 2009-05-31  Bruno Haible  <bruno@clisp.org>
79988         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79989         * tests/test-memchr.c (main): Check that memchr does not read past the
79990         first occurrence of the byte.
79991         * tests/test-strstr.c (main): Update comment.
79992         Suggested by Eric Blake.
79994 2009-05-30  Bruno Haible  <bruno@clisp.org>
79996         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79997         detail how to use dumpbin.
79998         Reported by David Byron <dbyron@dbyron.com>.
80000 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80002         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
80004 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80006         * m4/manywarnings.m4: Add GCC 4.4 warnings.
80008 2009-05-28  Bruno Haible  <bruno@clisp.org>
80010         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
80011         build-aux/ files.
80013 2009-05-28  Simon Josefsson  <simon@josefsson.org>
80015         * gnulib-tool (func_import): Transform license on build-aux/ files too.
80017 2009-05-27  Simon Josefsson  <simon@josefsson.org>
80019         * gnulib-tool (sed_transform_main_lib_file)
80020         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
80021         regexps.
80023 2009-05-26  Simon Josefsson  <simon@josefsson.org>
80025         * tests/test-strstr.c: Add another self-test.
80026         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
80027         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
80029 2009-05-23  Bruno Haible  <bruno@clisp.org>
80031         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
80032         change.
80034 2009-05-21  Bruno Haible  <bruno@clisp.org>
80036         Simplify use of mode_t varargs.
80037         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
80038         uses 'mode_t' or 'int'.
80039         * lib/openat.c (openat): Likewise.
80040         * lib/open-safer.c (open_safer): Likewise.
80041         * m4/mode_t.m4: New file.
80042         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
80043         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
80044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
80045         * modules/open (Files): Add m4/mode_t.m4.
80046         * modules/openat (Files): Likewise.
80047         * modules/fcntl-safer (Files): Likewise.
80048         Suggested by Eric Blake.
80050 2009-05-21  Pádraig Brady  <P@draigbrady.com>
80052         * doc/glibc-functions/fallocate.texi: New file.
80053         * doc/gnulib.texi: Include it.
80055 2009-05-21  Eric Blake  <ebb9@byu.net>
80056             Bruno Haible  <bruno@clisp.org>
80058         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
80059         invocations.
80060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80062 2009-05-21  Eric Blake  <ebb9@byu.net>
80063             Bruno Haible  <bruno@clisp.org>
80065         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
80066         include_next. Fix of 2008-11-20 commit.
80067         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
80068         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
80069         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
80070         NEXT_MATH_H.
80071         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
80072         instead of NEXT_MATH_H.
80074 2009-05-21  Bruno Haible  <bruno@clisp.org>
80076         Avoid redefinition warnings for SIZE_MAX.
80077         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
80078         Reported by Simon Josefsson.
80080 2009-05-21  Bruno Haible  <bruno@clisp.org>
80082         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
80083         AC_CACHE_VAL.
80085 2009-05-20  Bruno Haible  <bruno@clisp.org>
80087         Make zeroptr.h work on mingw.
80088         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
80089         mprotect.
80090         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
80091         * modules/memchr2-tests (configure.ac): Likewise.
80092         * modules/memcmp-tests (configure.ac): Likewise.
80093         * modules/memmem-tests (configure.ac): Likewise.
80094         * modules/memrchr-tests (configure.ac): Likewise.
80095         Reported by Simon Josefsson.
80097 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80099         * tests/test-glob.c: Include string.h for strcmp prototype.
80101 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80103         * modules/getdelim (Depends-on): Add explicit stdint, although it
80104         was implicitly already pulled in via realloc-posix.
80105         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
80107 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80109         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
80110         G. Christensen" <tgc@jupiterrise.com>.
80111         * m4/sys_socket_h.m4: Check for sa_family_t.
80112         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
80113         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
80114         * tests/test-sys_socket.c: Check that sa_family_t works.
80116 2009-05-18  Eric Blake  <ebb9@byu.net>
80118         maint.mk: allow gnulib_dir in VPATH build
80119         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
80121 2009-05-15  Jim Meyering  <meyering@redhat.com>
80123         maint.mk: Give gnulib_dir a default definition.
80124         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
80125         Thus, most packages no longer need to specify this variable in cfg.mk
80127 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
80129         rename.m4: fix typos that would make non-mingw cross-configure fail
80130         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
80132 2009-05-13  Eric Blake  <ebb9@byu.net>
80134         mmap-anon: avoid out-of-order autoconf expansion
80135         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
80136         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
80137         * modules/memchr-tests (Depends-on): Add extensions.
80138         * modules/memchr2-tests (Depends-on): Add extensions.
80139         * modules/memcmp-tests (Depends-on): Add extensions.
80140         * modules/memmem-tests (Depends-on): Add extensions.
80141         * modules/memrchr-tests (Depends-on): Add extensions.
80143 2009-05-13  Bruno Haible  <bruno@clisp.org>
80145         Make some tests ISO C 99 compliant.
80146         * tests/zerosize-ptr.h: New file.
80147         * tests/test-memchr.c: Include zerosize-ptr.h.
80148         (main): Use a zero-size object pointer instead of NULL.
80149         * tests/test-memchr2.c: Include zerosize-ptr.h.
80150         (main): Use a zero-size object pointer instead of NULL.
80151         * tests/test-memcmp.c: Include zerosize-ptr.h.
80152         (main): Use a zero-size object pointer instead of NULL.
80153         * tests/test-memmem.c: Include zerosize-ptr.h.
80154         (main): Use a zero-size object pointer instead of NULL.
80155         * tests/test-memrchr.c: Include zerosize-ptr.h.
80156         (main): Use a zero-size object pointer instead of NULL.
80157         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
80158         m4/mmap-anon.m4.
80159         (Depends-on): Add getpagesize.
80160         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80161         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
80162         m4/mmap-anon.m4.
80163         (Depends-on): Add getpagesize.
80164         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80165         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
80166         m4/mmap-anon.m4.
80167         (Depends-on): Add getpagesize.
80168         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80169         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
80170         m4/mmap-anon.m4.
80171         (Depends-on): Add getpagesize.
80172         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80173         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
80174         m4/mmap-anon.m4.
80175         (Depends-on): Add getpagesize.
80176         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80178 2009-05-12  Bruno Haible  <bruno@clisp.org>
80180         Tests for module 'alignof'.
80181         * modules/alignof-tests: New file.
80182         * tests/test-alignof.c: New file.
80184 2009-05-12  Bruno Haible  <bruno@clisp.org>
80186         Fix alignof macro.
80187         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
80188         vendor compilers that are always correct.
80190 2009-05-12  Bruno Haible  <bruno@clisp.org>
80192         Make the MAP_ANONYMOUS detection work on HP-UX 11.
80193         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
80194         not whether its fully works.
80196 2009-05-12  Bruno Haible  <bruno@clisp.org>
80198         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
80200 2009-05-12  Jim Meyering  <meyering@redhat.com>
80202         * top/maint.mk: Adjust backslash alignment.
80204 2009-05-11  Simon Josefsson  <simon@josefsson.org>
80206         * top/maint.mk: Make $(srcdir)/build-aux configurable.
80208 2009-05-11  Eric Blake  <ebb9@byu.net>
80210         argp: avoid undefined behavior
80211         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
80212         macros.
80214 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80216         * tests/test-vc-list-files-git.sh: Do git config of user.email and
80217         user.name to prevent git commit from complaining.
80219 2009-05-10  Bruno Haible  <bruno@clisp.org>
80221         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
80222         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
80223         it rewrites every file name only once.
80224         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
80226 2009-05-08  Bruno Haible  <bruno@clisp.org>
80228         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
80229         instead of 'max'.
80231 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80233         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
80234         sockaddr_storage test.
80236 2009-05-07  Simon Josefsson  <simon@josefsson.org>
80238         * modules/sys_socket (Makefile.am): Substitute
80239         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
80240         * m4/sys_socket_h.m4: Check for sockaddr_storage.
80241         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
80242         * tests/test-sys_socket.c: Check sockaddr_storage.
80244 2009-05-08  Bruno Haible  <bruno@clisp.org>
80246         New module 'alignof'.
80247         * lib/alignof.h: New file.
80248         * modules/alignof: New file.
80250 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80251             Bruno Haible  <bruno@clisp.org>
80253         Fix test-file-has-acl on FreeBSD.
80254         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
80255         mask is implicitly added.
80256         * tests/test-file-has-acl.c: Include <signal.h>.
80257         (main): Terminate the test after 5 seconds.
80258         * modules/acl-tests (configure.ac): Check for alarm function.
80260 2009-05-04  Bruno Haible  <bruno@clisp.org>
80262         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
80263         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
80264         * modules/errno (configure.ac): Drop AC_REQUIRE.
80265         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
80266         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
80268 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80270         * modules/glob-tests: New module.
80271         * tests/test-glob.c: Add.
80273 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80275         * modules/fnmatch-tests: New module.
80276         * tests/test-fnmatch.c: Add.
80278 2009-05-04  Eric Blake  <ebb9@byu.net>
80280         maint: make the new no-submodule-changes rule VPATH-safe
80281         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
80283 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80284             Bruno Haible  <bruno@clisp.org>
80286         acl: Fix infinite loop on FreeBSD.
80287         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
80288         of return value from acl_get_entry.
80289         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
80290         Likewise.
80292 2009-05-03  Bruno Haible  <bruno@clisp.org>
80294         * lib/acl-internal.h (acl_entries): Clarify return value.
80295         * lib/acl_entries.c (acl_entries): Likewise.
80297 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80299         Bug fix in acl module.
80300         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
80302 2009-05-03  Bruno Haible  <bruno@clisp.org>
80304         Create gperf-generated file in the source dir, not in the build dir.
80305         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
80306         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
80307         * modules/unicase/locale-language (unicase/locale-languages.h):
80308         Likewise.
80309         * modules/unicase/special-casing (unicase/special-casing-table.h):
80310         Likewise.
80311         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
80312         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
80313         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
80314         Reported by Ralf Wildenhues.
80316 2009-05-03  Bruno Haible  <bruno@clisp.org>
80318         * modules/fnmatch (Description, configure.ac): Taken from
80319         fnmatch-posix.
80320         * modules/fnmatch-posix: Turn into a symbolic reference to the
80321         'fnmatch' module, and deprecate.
80322         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
80324 2009-05-03  Bruno Haible  <bruno@clisp.org>
80326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
80327         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
80328         Reported by Ralf Wildenhues.
80330 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80332         * m4/fnmatch.m4: Fix fnmatch re-define.
80334 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80336         priv-set: new module and tests; adapt write-any-file
80337         * lib/priv-set.c: New file.
80338         * lib/priv-set.h: New file.
80339         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
80340         * lib/write-any-file.c: Simplify by using priv-set module.
80341         * m4/priv-set.m4: New file.
80342         * modules/priv-set: New file.
80343         * modules/unlinkdir: Add dependency on priv-set module.
80344         * modules/write-any-file: Likewise.
80346         Tests for module 'priv-set'.
80347         * modules/priv-set-tests: New file.
80348         * tests/test-priv-set.c: New file.
80350 2009-05-03  Jim Meyering  <meyering@redhat.com>
80351             Bruno Haible  <bruno@clisp.org>
80353         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
80354         use the converted UTF-8 variant of the name instead.
80356 2009-05-03  Jim Meyering  <meyering@redhat.com>
80358         tests: tighten some getdate tests
80359         * tests/test-getdate.c (main): Tighten tests: require equality,
80360         not just greater than.  Set TZ envvar to UTC0.
80362 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
80364         getdate: correctly interpret "next monday" when run on a Monday
80365         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
80366         that e.g., "next tues" (when run on a tuesday) results in a date
80367         that is one week in the future, and not today's date.
80368         I.e., add a week when the wday is the same as the current one.
80369         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
80370         and earlier by Martin Bernreuther and Jan Minář.
80371         * tests/test-getdate.c (main): Check that "next DAY" is always in
80372         the future and that "last DAY" is always in the past.
80374 2009-05-02  Jim Meyering  <meyering@redhat.com>
80376         build: ensure that a release build fails when a submodule is unclean
80377         * top/maint.mk (no-submodule-changes): New rule.
80378         (alpha beta major): Depend on it.
80380 2009-05-02  Bruno Haible  <bruno@clisp.org>
80382         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
80383         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
80384         shell variable gl_fnmatch_required to detect which variant is
80385         requested.
80386         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
80387         gl_FUNC_FNMATCH_POSIX.
80388         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
80389         exclude fnmatch-posix.
80391 2009-05-02  Bruno Haible  <bruno@clisp.org>
80393         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
80394         * modules/mbsrtowcs (License): Change to LGPLv2+.
80395         * modules/strnlen1 (License): Likewise.
80396         Reported by Simon Josefsson.
80398 2009-05-02  Bruno Haible  <bruno@clisp.org>
80400         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
80401         "cross".
80402         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
80403         gnulib-tool was called with option --source-base=lib.
80405 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80407         Use automake *-local hooks without commands, for extensibility.
80408         * modules/localcharset (Makefile.am): Rename install-exec-local
80409         rule to install-exec-localcharset, and make it a prerequisite of
80410         install-exec-local.  Likewise, rename the uninstall-local rule to
80411         uninstall-localcharset, and make it a prerequisite of the former.
80413 2009-05-01  Bruno Haible  <bruno@clisp.org>
80415         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
80416         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80417         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
80418         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
80419         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
80420         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80421         m4/locale-zh.m4, m4/codeset.m4.
80423         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80424         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
80425         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80426         m4/locale-zh.m4.
80428         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
80429         REPLACE_WCRTOMB if mbstate_t must be replaced.
80430         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
80431         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
80433 2009-05-01  Bruno Haible  <bruno@clisp.org>
80435         Avoid compiler warnings when redefining macros defined by <libintl.h>.
80436         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
80437         dngettext, dcngettext, textdomain, bindtextdomain,
80438         bind_textdomain_codeset): Undefine before redefining.
80440 2009-04-30  Bruno Haible  <bruno@clisp.org>
80442         Fix bug introduced on 2009-04-25.
80443         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
80444         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
80445         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
80446         is defined.
80447         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
80448         is defined.
80449         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
80450         is defined.
80451         Reported by Elbert_Pol <elbert.pol@gmail.com>.
80453 2009-04-28  Bruno Haible  <bruno@clisp.org>
80455         Comment tweaks.
80456         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
80457         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
80458         * lib/unicase.h (u*_casexfrm): Likewise.
80459         Reported by Paolo Bonzini.
80461 2009-04-28  Bruno Haible  <bruno@clisp.org>
80463         Fix a compilation error.
80464         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
80465         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80466         Reported by Jim Meyering.
80468 2009-04-27  Bruno Haible  <bruno@clisp.org>
80470         New module 'libunistring'.
80471         * modules/libunistring: New file.
80472         * m4/libunistring.m4: New file.
80473         * MODULES.html.sh (Unicode string functions): Add it.
80475 2009-04-27  Eric Blake  <ebb9@byu.net>
80477         maint.mk: allow package-specific header to provide <config.h>
80478         * top/maint.mk (sc_require_config_h): New variable.
80479         (sc_require_config_h, sc_require_config_h_first): Use it.
80481 2009-04-27  Simon Josefsson  <simon@josefsson.org>
80483         * top/maint.mk (sc_avoid_if_before_free): Except
80484         useless-if-before-free script.
80486 2009-04-27  Eric Blake  <ebb9@byu.net>
80488         maintainer-makefile: depend on all required helper scripts
80489         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
80490         useless-if-before-free.
80491         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
80492         version, rather than assuming gnulib checkout is available.
80493         Reported by Simen Josefsson.
80495 2009-04-26  Bruno Haible  <bruno@clisp.org>
80497         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
80498         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
80499         "../" or "..".
80501 2009-04-26  Bruno Haible  <bruno@clisp.org>
80503         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
80504         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
80505         AC_LIB_HAVE_LINKFLAGS.
80507 2009-04-26  Bruno Haible  <bruno@clisp.org>
80509         Simplify calling convention of u*_conv_from_encoding.
80510         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
80511         u32_conv_from_encoding): Expect a resultbuf argument and return the
80512         result directly as a pointer.
80513         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
80514         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
80515         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
80516         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
80517         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
80518         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80519         Update.
80520         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
80521         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
80522         * lib/vasnprintf.c (VASNPRINTF): Update.
80523         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
80524         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
80525         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
80526         * NEWS: Mention the change.
80528 2009-04-26  Bruno Haible  <bruno@clisp.org>
80530         Simplify calling convention of u*_conv_to_encoding.
80531         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80532         u32_conv_to_encoding): Expect a resultbuf argument and return the
80533         result directly as a pointer.
80534         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80535         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
80536         freeing scaled_offsets if mem_iconveha failed.
80537         * lib/unicase/u-casexfrm.h (FUNC): Update.
80538         * lib/uninorm/u-normxfrm.h (FUNC): Update.
80539         * lib/vasnprintf.c (VASNPRINTF): Update.
80540         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
80541         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
80542         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
80543         * NEWS: Mention the change.
80545 2009-04-26  Bruno Haible  <bruno@clisp.org>
80547         Avoid test failures on AIX and OSF/1.
80548         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
80549         malloc(0).
80550         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80551         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80552         Likewise.
80553         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
80554         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
80555         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
80556         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
80557         * doc/posix-functions/malloc.texi: Document the portability problem
80558         related to malloc(0).
80560 2009-04-26  Bruno Haible  <bruno@clisp.org>
80562         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
80563         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
80564         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
80566 2009-04-25  Bruno Haible  <bruno@clisp.org>
80568         Avoid link error when creating a namespace clean library.
80569         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
80570         as macro with arguments if already defined as an alias.
80571         * lib/signbitf.c (gl_signbitf): Don't undefine.
80572         * lib/signbitd.c (gl_signbitd): Don't undefine.
80573         * lib/signbitl.c (gl_signbitl): Don't undefine.
80575 2009-04-25  Jim Meyering  <meyering@redhat.com>
80577         vc-list-files: fix another quoting bug
80578         * build-aux/vc-list-files: Avoid sed backslash expansion
80579         of pathological directory names.
80581 2009-04-25  Eric Blake  <ebb9@byu.net>
80583         vc-list-files: fix shell quoting error
80584         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
80585         timestamp.
80587 2009-04-25  Jim Meyering  <meyering@redhat.com>
80589         vc-list-files: restore lost functionality with subdir argument
80590         * build-aux/vc-list-files: When given a non-"." sub-directory
80591         argument, substitute the $dir/ prefix back onto each resulting name.
80592         Otherwise, coreutils' root_tests check would fail.
80594 2009-04-24  Eric Blake  <ebb9@byu.net>
80596         vc-list-files: ignore git symlinks
80597         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
80598         than ls-files, to ignore git symlinks.
80600         maint.mk: import improvements from m4
80601         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
80602         (move_if_change): Delete unused macro.
80603         (news-date-check, vc-diff-check): Support VPATH builds.
80604         (announcement): Likewise.  Split --bootstrap-tools list...
80605         (boostrap-tools): ...into separate list, which can be overridden
80606         in cfg.mk.
80607         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
80608         requiring dependency on useless-if-before-free module.
80609         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
80610         Support VPATH builds.
80612 2009-04-24  Jim Meyering  <meyering@redhat.com>
80614         maint.mk: remove coreutils-specific rules and variables
80615         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
80616         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
80617         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
80619         maint.mk: remove obsolete rule
80620         * top/maint.mk (rel-check): Remove rule.
80621         (WGET, WGETFLAGS): Remove now-unused variables.
80623 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80625         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
80626         consistency.
80628         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
80629         '$(PATH_SEPARATOR)' instead of ':'.
80631 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80633         * lib/getopt1.c (main): Use 'const' for static array.
80635 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80637         * top/maint.mk: Sync with coreutils.
80638         * NEWS: Explain incompatibilities.
80640 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80641             Bruno Haible  <bruno@clisp.org>
80643         Fix cross-compilation results.
80644         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
80645         statement, as third argument of AC_TRY_RUN.
80646         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
80647         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
80648         Likewise.
80649         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
80650         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
80651         Likewise.
80652         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
80653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
80654         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
80656 2009-04-20  Bruno Haible  <bruno@clisp.org>
80658         Avoid test failure on mingw.
80659         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
80661 2009-04-20  Bruno Haible  <bruno@clisp.org>
80663         Avoid compilation error on mingw.
80664         * modules/localename-tests (Depends-on): Add locale.
80666 2009-04-19  Bruno Haible  <bruno@clisp.org>
80668         Support for building a shared library on Windows platforms.
80669         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80670         (main): Test the presence of UNINORM_NFC here.
80671         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80672         (main): Test the presence of UNINORM_NFD here.
80673         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80674         (main): Test the presence of UNINORM_NFKC here.
80675         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80676         (main): Test the presence of UNINORM_NFKD here.
80678 2009-04-19  Bruno Haible  <bruno@clisp.org>
80680         Avoid a compiler warning.
80681         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80682         Change type of variable 'sequence'.
80684 2009-04-19  Bruno Haible  <bruno@clisp.org>
80686         * modules/configmake (Makefile.am): When the contents of configmake.h
80687         does not change, arrange to preserve its modification time.
80689 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80691         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80692         gettext domain.
80694 2009-04-16  Jim Meyering  <meyering@redhat.com>
80696         useless-if-before-free: improve conversion code
80697         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80698         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80700 2009-04-14  Bruno Haible  <bruno@clisp.org>
80702         * modules/fcntl (Depends-on): Add extensions.
80703         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80705 2009-04-12  Ben Pfaff  <blp@gnu.org>
80707         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
80708         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
80710 2009-03-20  Ben Pfaff  <blp@gnu.org>
80712         Make rename replace existing destinations on Windows.
80713         * m4/rename.m4: Add test for Mingw.
80714         * lib/rename.c: Add rename replacement that uses MoveFileEx with
80715         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
80716         * doc/posix-functions/rename.texi: Document.
80718 2009-04-10  Bruno Haible  <bruno@clisp.org>
80720         New include file "iconveh.h".
80721         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
80722         * lib/striconveh.h: Include it.
80723         (enum iconv_ilseq_handler): Remove definition.
80724         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
80725         striconveh.h.
80726         * lib/striconveha.c: Include striconveh.h.
80727         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
80728         * modules/striconveh (Files): Add lib/iconveh.h.
80729         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
80730         lib/striconveh.h.
80732 2009-04-10  Bruno Haible  <bruno@clisp.org>
80734         * lib/uniconv.h: Update comment.
80736 2009-04-10  Bruno Haible  <bruno@clisp.org>
80738         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
80739         always.
80740         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80741         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80742         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80743         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
80744         "unistring-notinline.h", so that the function gets defined always.
80745         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80746         * lib/unistr/u8-uctomb.c: Likewise.
80747         * lib/unistr/u16-mbtouc.c: Likewise.
80748         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80749         * lib/unistr/u16-uctomb.c: Likewise.
80750         * lib/unistr/u32-mbtouc.c: Likewise.
80751         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80752         * lib/unistr/u32-uctomb.c: Likewise.
80754 2009-04-10  Bruno Haible  <bruno@clisp.org>
80756         Mark 'utime' obsolete.
80757         * modules/utime (Status, Notice): New sections.
80758         Suggested by Jim Meyering.
80760         Fix cross-compile guess for utime test.
80761         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
80762         autoconf.
80763         * doc/posix-functions/utime.texi: Give more precisions.
80764         Reported by Jan <ipif@ymail.com>.
80766 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
80768         filevercmp: correct today's change
80769         * lib/filevercmp.c: Also handle coreutils' test inputs.
80770         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
80772         Fix regression in 'filevercmp' module. Thanks Sven Joachim
80773         for reporting it.
80774         * lib/filevercmp.c: Special handle for "", "." and "..".
80775         * tests/test-filevercmp.c: Enlarge the set suite.
80777 2009-04-07  Jim Meyering  <meyering@redhat.com>
80779         useless-if-before-free: show how to remove braced useless free, too
80780         * build-aux/useless-if-before-free: still only in a comment, though.
80782 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
80784         maint.mk: import changes to syntax-check macros from coreutils
80785         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
80786         Use them in the relevant macros.
80788 2009-04-06  Bruno Haible  <bruno@clisp.org>
80790         Fix unportable use of bit-fields.
80791         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
80792         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
80793         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
80795 2009-04-06  Bruno Haible  <bruno@clisp.org>
80797         Avoid test failures on AIX and OSF/1.
80798         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
80799         that malloc(0) = NULL.
80800         * tests/unicase/test-u8-tolower.c (check): Likewise.
80801         * tests/unicase/test-u8-totitle.c (check): Likewise.
80802         * tests/unicase/test-u8-toupper.c (check): Likewise.
80803         * tests/unicase/test-u16-casefold.c (check): Likewise.
80804         * tests/unicase/test-u16-tolower.c (check): Likewise.
80805         * tests/unicase/test-u16-totitle.c (check): Likewise.
80806         * tests/unicase/test-u16-toupper.c (check): Likewise.
80807         * tests/unicase/test-u32-casefold.c (check): Likewise.
80808         * tests/unicase/test-u32-tolower.c (check): Likewise.
80809         * tests/unicase/test-u32-totitle.c (check): Likewise.
80810         * tests/unicase/test-u32-toupper.c (check): Likewise.
80811         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80812         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80813         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80814         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80815         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80816         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80817         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80818         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80819         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80820         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80821         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80822         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80824 2009-04-05  Bruno Haible  <bruno@clisp.org>
80826         Work around an autoconf limitation.
80827         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80828         comment line if it would be longer than 3 KB.
80830 2009-04-05  Bruno Haible  <bruno@clisp.org>
80832         Avoid test failure with libiconv-1.13.
80833         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80834         of the expected test results.
80836 2009-04-05  Bruno Haible  <bruno@clisp.org>
80838         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80839         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80840         that it should be installed.
80842 2009-04-05  Bruno Haible  <bruno@clisp.org>
80844         * gnulib-tool: New option --copy-file.
80845         (func_usage): Document it.
80846         (func_dest_tmpfilename): Moved out of func_import.
80847         (func_add_file, func_update_file): New functions, extracted from
80848         func_import.
80849         (func_import): Update.
80851 2009-04-05  Karl Berry  <karl@gnu.org>
80853         * README: prominently mention gnulib-tool.
80854         Rearrange sections so getting the code is near the top.
80856 2009-04-05  Bruno Haible  <bruno@clisp.org>
80858         * lib/unicase.h: Mention u*_cmp2.
80859         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80860         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80861         * lib/unicase/ulc-casecmp.c: Likewise.
80862         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80863         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80864         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80865         unistr/u8-cmp.
80866         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80867         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80868         unistr/u16-cmp.
80869         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80870         unistr/u32-cmp.
80872         * lib/uninorm.h: Mention u*_cmp2.
80873         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80874         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80875         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80876         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80877         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80878         unistr/u8-cmp.
80879         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80880         unistr/u16-cmp.
80881         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80882         unistr/u32-cmp.
80884         New module 'unistr/u32-cmp2'.
80885         * lib/unistr/u32-cmp2.c: New file.
80886         * modules/unistr/u32-cmp2: New file.
80888         New module 'unistr/u16-cmp2'.
80889         * lib/unistr/u16-cmp2.c: New file.
80890         * modules/unistr/u16-cmp2: New file.
80892         New module 'unistr/u8-cmp2'.
80893         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80894         * lib/unistr/u8-cmp2.c: New file.
80895         * lib/unistr/u-cmp2.h: New file.
80896         * modules/unistr/u8-cmp2: New file.
80898 2009-04-05  Bruno Haible  <bruno@clisp.org>
80900         * lib/unictype.h (uc_property_is_valid): New macro.
80901         * tests/unictype/test-pr_byname.c (main): Use it.
80903         * lib/unistr.h: Doc fixes.
80904         * lib/uniconv.h: Doc fixes.
80905         * lib/unictype.h: Doc fixes.
80907 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80909         Port coreutils 7.2 to Solaris 8.
80911         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80912         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80913         for Solaris 8.  This is a bit of a hack, as it means it's the
80914         caller's responsibility to add -lnsl if needed, but most likely it
80915         won't be needed since only getaddrinfo uses this and getaddrinfo
80916         isn't needed on Solaris 8.
80918         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80919         problem to Solaris 8 encountered with coreutils 7.2, which
80920         resulted in a message "fnmatch.c:292: warning: passing argument 4
80921         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80922         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80924 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80926         * m4/ld-version-script.m4: Add FIXME comment.
80928 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80930         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80931         SOVERSION variable.
80933 2009-04-02  Bruno Haible  <bruno@clisp.org>
80935         * Makefile (info, html, dvi, pdf): Combine the rules.
80936         Suggested by Jim Meyering.
80938 2009-04-01  Bruno Haible  <bruno@clisp.org>
80940         * Makefile (info, html, dvi, pdf): New targets.
80941         Reported by Reuben Thomas <rrt@sc3d.org>.
80943 2009-04-01  Bruno Haible  <bruno@clisp.org>
80945         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80946         can be put into PATH.
80947         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80949 2009-04-01  Bruno Haible  <bruno@clisp.org>
80951         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80953 2009-04-01  Bruno Haible  <bruno@clisp.org>
80955         Rename module 'visibility'.
80956         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80957         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80958         * doc/gnulib.texi: Update.
80959         * MODULES.html.sh (Misc): Update.
80960         * NEWS: Mention the change.
80962 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80964         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80965         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80966         Eric Blake <ebb9@byu.net> for review.
80967         * MODULES.html.sh: Add lib-msvc-compat.
80968         * doc/gnulib.texi: Link to new section.
80969         * m4/ld-output-def.m4: New file.
80970         * doc/ld-output-def.texi: New file.
80972 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80974         Rename ld-version-script to lib-symbol-versions.  Suggested by
80975         Bruno Haible <bruno@clisp.org>.
80976         * modules/ld-version-script: Renamed to lib-symbol-versions.
80977         * doc/ld-version-script.texi: Fix module name.
80978         * MODULES.html.sh: Add lib-symbol-versions.
80980 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80982         * modules/u64-tests: New file.
80983         * tests/test-u64.c: New file.
80985 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80987         * MODULES.html.sh: Mention u64.
80988         * modules/u64: New module.
80989         * modules/crypto/sha512: Depend on u64 module instead of providing
80990         u64.h.
80992 2009-03-27  Eric Blake  <ebb9@byu.net>
80994         test-strerror: make debugging EAI_SYSTEM easier
80995         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80996         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80997         failure was EAI_SYSTEM.
80999 2009-03-25  Bruno Haible  <bruno@clisp.org>
81001         Fix a problem with --enable-relocatable on Solaris 7.
81002         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
81003         since 2008-02-24.
81005 2009-03-25  Eric Blake  <ebb9@byu.net>
81007         test-sockets: avoid gcc warning
81008         * tests/test-sockets.c (main): Silence compiler warning.
81010 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81012         New modules nproc, pthread, contributed by Glen Lenker.
81014         * MODULES.html.sh: Add pthread, nproc.
81015         * lib/nproc.c: New file.
81016         * lib/nproc.h: New file.
81017         * lib/pthread.in.h: New file.
81018         * m4/pthread.m4: New file.
81019         * modules/nproc: New file.
81020         * modules/pthread: New file.
81022 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81024         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
81025         New variable.
81027 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
81029         filevercmp: handle simple~ and numbered.~3~ backup suffixes
81030         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
81031         * tests/test-filevercmp.c: Add tests for backup suffixes.
81033 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81035         * modules/stdlib (Depends-on): Add stdint, needed when defining
81036         struct random_data on, for example, HP-UX 10.20.  Reported by
81037         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81039 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81041         * lib/readline.c (readline): Call fflush on stdout after printing
81042         prompt.
81044 2009-03-20  Bruno Haible  <bruno@clisp.org>
81046         Remove dependency from 'close' module to -lws2_32 on native Windows.
81047         * lib/close-hook.h: New file.
81048         * lib/close-hook.c: New file.
81049         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
81050         w32sock.h.
81051         (_gl_close_fd_maybe_socket): Remove function.
81052         (rpl_close): Invoke execute_all_close_hooks instead of
81053         _gl_close_fd_maybe_socket.
81054         * lib/sockets.c: Include close-hook.h, w32sock.h.
81055         (close_fd_maybe_socket): New function, essentially from lib/close.c.
81056         (close_sockets_hook): New variable.
81057         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
81058         (gl_sockets_cleanup): Unregister it.
81059         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
81060         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
81061         * modules/close-hook: New file.
81062         * modules/close (Files): Remove lib/w32sock.h.
81063         (Depends-on): Add close-hook.
81064         (Link): Remove section.
81065         * modules/sockets (Files): Add lib/w32sock.h.
81066         (Depends-on): Add close-hook.
81067         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
81068         invocation.
81069         * NEWS: Mention that LIB_CLOSE is gone.
81071 2009-03-23  Eric Blake  <ebb9@byu.net>
81073         signal-tests: test previous patch
81074         * tests/test-signal.c: New file.
81075         * modules/signal-tests: Likewise.
81077         signal.h: always support 'volatile sig_atomic_t'
81078         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
81079         (gl_SIGNAL_H_DEFAULTS): Add a default.
81080         * modules/signal (Makefile.am): Substitute if needed.
81081         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
81082         users can blindly add volatile.
81083         * doc/posix-headers/signal.texi (signal.h): Document it.
81084         Reported by Matthew Woehlke.
81086 2009-03-23  Jim Meyering  <meyering@redhat.com>
81088         pathmax: PATH_MAX: use pathconf only when available
81089         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
81090         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
81091         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
81092         This avoids a link failure in a PSP cross-compilation environment
81093         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
81095         * lib/vasnprintf.c (divide): Fix typo in comment.
81097 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81099         * gnulib-tool (func_filter_filelist): Fix comment.
81101 2009-03-20  Bruno Haible  <bruno@clisp.org>
81103         Make sockets.h self-contained.
81104         * lib/sockets.c: Include sockets.h first.
81105         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
81107 2009-03-19  Eric Blake  <ebb9@byu.net>
81109         doc: mention more functions added in cygwin 1.7.0
81110         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
81111         addition.
81112         * doc/posix-functions/log2f.texi: Likewise.
81114 2009-03-19  Jim Meyering  <meyering@redhat.com>
81116         fsusage: avoid syntax error due to statement-before-declaration
81117         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
81118         after all declarations.  Reported by Matthew Woehlke in
81119         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
81121 2009-03-18  Eric Blake  <ebb9@byu.net>
81123         build-aux/compile: sync from automake
81124         * build-aux/compile: New file, from automake.
81125         * config/srclist.txt: Mention build-aux/compile.
81127 2009-03-17  Bruno Haible  <bruno@clisp.org>
81129         * lib/git-merge-changelog.c: Fix typo in comment.
81130         Reported by Reuben Thomas <rrt@sc3d.org>.
81132 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
81134         * m4/regex.m4: update and improve help for
81135         --without-included-regex.
81137 2009-03-17  Simon Josefsson  <simon@josefsson.org>
81139         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
81140         failure on missing include files.
81142 2009-03-17  Eric Blake  <ebb9@byu.net>
81144         doc: mention more functions added in cygwin 1.7.0
81145         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
81146         addition.
81147         * doc/posix-functions/fwscanf.texi: Likewise.
81148         * doc/posix-functions/swprintf.texi: Likewise.
81149         * doc/posix-functions/swscanf.texi: Likewise.
81150         * doc/posix-functions/vfwprintf.texi: Likewise.
81151         * doc/posix-functions/vfwscanf.texi: Likewise.
81152         * doc/posix-functions/vswprintf.texi: Likewise.
81153         * doc/posix-functions/vswscanf.texi: Likewise.
81154         * doc/posix-functions/vwprintf.texi: Likewise.
81155         * doc/posix-functions/vwscanf.texi: Likewise.
81156         * doc/posix-functions/wcscasecmp.texi: Likewise.
81157         * doc/posix-functions/wcsdup.texi: Likewise.
81158         * doc/posix-functions/wcsftime.texi: Likewise.
81159         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81160         * doc/posix-functions/wprintf.texi: Likewise.
81161         * doc/posix-functions/wscanf.texi: Likewise.
81162         * doc/glibc-functions/gethostbyname2.texi: Likewise.
81164 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81166         maint.mk: really add $(AM_MAKEFLAGS)
81167         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
81168         was inadvertently omitted in the last commit.
81169         Spotted by Bruno Haible.
81171         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
81172         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
81173         $(AM_MAKEFLAGS)' rather than plain `make'.
81175         gnulib-tool: execute $MAKE not make
81176         * gnulib-tool: Default $MAKE to 'make'.
81177         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
81178         than make.  Initialize $MAKE in the do-autobuild script.
81180         gnulib-tool: use $MAKE not make in generated files
81181         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
81182         make, in generated files.  Initialize $MAKE in the do-autobuild
81183         script.
81185         * top/GNUmakefile (_have-git-version-gen): Fix typo.
81187         GNUmakefile: disable parallelism only for multiple, recursive targets
81188         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
81189         additions in the Makefile.
81190         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
81191         by Automake.
81192         (.NOTPARALLEL): Only disable parallel builds if multiple targets
81193         are listed on the command line and at least one of them is
81194         listed in $(ALL_RECURSIVE_TARGETS).
81196 2009-03-14  Bruno Haible  <bruno@clisp.org>
81198         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
81199         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
81200         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
81201         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
81202         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
81203         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
81204         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
81205         unistr/u8-uctomb.
81206         * modules/unistr/u8-strchr (Depends-on): Likewise.
81207         * modules/unistr/u8-strrchr (Depends-on): Likewise.
81208         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
81209         unistr/u16-uctomb.
81210         * modules/unistr/u16-strchr (Depends-on): Likewise.
81211         * modules/unistr/u16-strrchr (Depends-on): Likewise.
81213 2009-03-12  Bruno Haible  <bruno@clisp.org>
81215         Work around select() bug on Interix 3.5.
81216         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
81217         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
81218         * m4/select.m4: New file.
81219         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
81220         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
81221         * modules/select (Files): Add m4/select.m4.
81222         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
81223         * modules/nanosleep (Depends-on): Add select.
81224         * modules/poll (Depends-on): Likewise.
81225         * doc/posix-functions/select.texi: Mention the Interix bug.
81226         Reported by Markus Duft <mduft@gentoo.org>.
81228         * lib/select.c: Renamed from lib/winsock-select.c.
81229         * modules/select (Files): Add lib/select.c, remove
81230         lib/winsock-select.c.
81231         (configure.ac): Update.
81233 2009-03-12  Jim Meyering  <meyering@redhat.com>
81235         avoid gcc warnings about unused macro definitions
81236         * lib/readtokens.c (STREQ): Remove unused definition.
81237         * lib/xmalloc.c (SIZE_MAX): Likewise.
81238         * lib/openat-die.c (N_): Likewise.
81239         * lib/mountlist.c (SIZE_MAX): Remove definition.
81240         Instead, include <stdint.h>.
81241         * lib/readutmp.c: Likewise.
81242         * modules/readutmp (Depends-on): Add stdint.
81243         * modules/mountlist (Depends-on): Add stdint.
81244         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
81246 2009-03-10  Bruno Haible  <bruno@clisp.org>
81248         Tests for module 'mbmemcasecoll'.
81249         * modules/mbmemcasecoll-tests: New file.
81250         * tests/test-mbmemcasecoll1.sh: New file.
81251         * tests/test-mbmemcasecoll2.sh: New file.
81252         * tests/test-mbmemcasecoll3.sh: New file.
81253         * tests/test-mbmemcasecoll.c: New file.
81255         New module 'mbmemcasecoll'.
81256         * lib/mbmemcasecoll.h: New file.
81257         * lib/mbmemcasecoll.c: New file.
81258         * modules/mbmemcasecoll: New file.
81260         * tests/test-mbmemcasecmp.h: New file, extracted from
81261         tests/test-mbmemcasecmp.c.
81262         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
81263         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
81264         (main): Update.
81265         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
81267 2009-03-09  Bruno Haible  <bruno@clisp.org>
81269         Tests for module 'mbmemcasecmp'.
81270         * modules/mbmemcasecmp-tests: New file.
81271         * tests/test-mbmemcasecmp1.sh: New file.
81272         * tests/test-mbmemcasecmp2.sh: New file.
81273         * tests/test-mbmemcasecmp3.sh: New file.
81274         * tests/test-mbmemcasecmp.c: New file.
81276         New module 'mbmemcasecmp'.
81277         * lib/mbmemcasecmp.h: New file.
81278         * lib/mbmemcasecmp.c: New file.
81279         * modules/mbmemcasecmp: New file.
81281 2009-03-09  Bruno Haible  <bruno@clisp.org>
81283         Tests for module 'unicase/ulc-casecoll'.
81284         * modules/unicase/ulc-casecoll-tests: New file.
81285         * tests/unicase/test-ulc-casecoll1.sh: New file.
81286         * tests/unicase/test-ulc-casecoll2.sh: New file.
81287         * tests/unicase/test-ulc-casecoll.c: New file.
81289         New module 'unicase/ulc-casecoll'.
81290         * lib/unicase.h (ulc_casecoll): New declaration.
81291         * lib/unicase/ulc-casecoll.c: New file.
81292         * modules/unicase/ulc-casecoll: New file.
81294         New module 'unicase/ulc-casexfrm'.
81295         * lib/unicase.h (ulc_casexfrm): New declaration.
81296         * lib/unicase/ulc-casexfrm.c: New file.
81297         * modules/unicase/ulc-casexfrm: New file.
81299 2009-03-09  Bruno Haible  <bruno@clisp.org>
81301         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
81302         invocations.
81304         * m4/mbscasecmp.m4: Remove file.
81305         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
81306         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
81308         * m4/mbscasestr.m4: Remove file.
81309         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
81310         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
81312         * m4/mbschr.m4: Remove file.
81313         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
81314         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
81316         * m4/mbscspn.m4: Remove file.
81317         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
81318         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
81320         * m4/mbslen.m4: Remove file.
81321         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
81322         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
81324         * m4/mbsncasecmp.m4: Remove file.
81325         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
81326         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
81328         * m4/mbsnlen.m4: Remove file.
81329         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
81330         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
81332         * m4/mbspbrk.m4: Remove file.
81333         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
81334         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
81336         * m4/mbspcasecmp.m4: Remove file.
81337         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
81338         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
81340         * m4/mbsrchr.m4: Remove file.
81341         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
81342         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
81344         * m4/mbssep.m4: Remove file.
81345         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
81346         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
81348         * m4/mbsspn.m4: Remove file.
81349         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
81350         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
81352         * m4/mbsstr.m4: Remove file.
81353         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
81354         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
81356         * m4/mbstok_r.m4: Remove file.
81357         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
81358         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
81360         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
81362         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
81363         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
81365         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
81367 2009-03-08  Bruno Haible  <bruno@clisp.org>
81369         Tests for module 'unicase/ulc-casecmp'.
81370         * modules/unicase/ulc-casecmp-tests: New file.
81371         * tests/unicase/test-ulc-casecmp1.sh: New file.
81372         * tests/unicase/test-ulc-casecmp2.sh: New file.
81373         * tests/unicase/test-ulc-casecmp.c: New file.
81375         New module 'unicase/ulc-casecmp'.
81376         * lib/unicase.h (ulc_casecmp): New declaration.
81377         * lib/unicase/ulc-casecmp.c: New file.
81378         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
81379         'const SRC_UNIT *'.
81380         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
81381         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
81382         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
81383         * modules/unicase/ulc-casecmp: New file.
81385         Tests for module 'unicase/u32-is-cased'.
81386         * modules/unicase/u32-is-cased-tests: New file.
81387         * tests/unicase/test-u32-is-cased.c: New file.
81389         Tests for module 'unicase/u16-is-cased'.
81390         * modules/unicase/u16-is-cased-tests: New file.
81391         * tests/unicase/test-u16-is-cased.c: New file.
81393         Tests for module 'unicase/u8-is-cased'.
81394         * modules/unicase/u8-is-cased-tests: New file.
81395         * tests/unicase/test-u8-is-cased.c: New file.
81396         * tests/unicase/test-is-cased.h: New file.
81398         New module 'unicase/u32-is-cased'.
81399         * lib/unicase/u32-is-cased.c: New file.
81400         * modules/unicase/u32-is-cased: New file.
81402         New module 'unicase/u16-is-cased'.
81403         * lib/unicase/u16-is-cased.c: New file.
81404         * modules/unicase/u16-is-cased: New file.
81406         New module 'unicase/u8-is-cased'.
81407         * lib/unicase/u8-is-cased.c: New file.
81408         * lib/unicase/u-is-cased.h: New file.
81409         * modules/unicase/u8-is-cased: New file.
81411         Tests for module 'unicase/u32-is-casefolded'.
81412         * modules/unicase/u32-is-casefolded-tests: New file.
81413         * tests/unicase/test-u32-is-casefolded.c: New file.
81415         Tests for module 'unicase/u16-is-casefolded'.
81416         * modules/unicase/u16-is-casefolded-tests: New file.
81417         * tests/unicase/test-u16-is-casefolded.c: New file.
81419         Tests for module 'unicase/u8-is-casefolded'.
81420         * modules/unicase/u8-is-casefolded-tests: New file.
81421         * tests/unicase/test-u8-is-casefolded.c: New file.
81422         * tests/unicase/test-is-casefolded.h: New file.
81424         New module 'unicase/u32-is-casefolded'.
81425         * lib/unicase/u32-is-casefolded.c: New file.
81426         * modules/unicase/u32-is-casefolded: New file.
81428         New module 'unicase/u16-is-casefolded'.
81429         * lib/unicase/u16-is-casefolded.c: New file.
81430         * modules/unicase/u16-is-casefolded: New file.
81432         New module 'unicase/u8-is-casefolded'.
81433         * lib/unicase/u8-is-casefolded.c: New file.
81434         * modules/unicase/u8-is-casefolded: New file.
81436         Tests for module 'unicase/u32-is-titlecase'.
81437         * modules/unicase/u32-is-titlecase-tests: New file.
81438         * tests/unicase/test-u32-is-titlecase.c: New file.
81440         Tests for module 'unicase/u16-is-titlecase'.
81441         * modules/unicase/u16-is-titlecase-tests: New file.
81442         * tests/unicase/test-u16-is-titlecase.c: New file.
81444         Tests for module 'unicase/u8-is-titlecase'.
81445         * modules/unicase/u8-is-titlecase-tests: New file.
81446         * tests/unicase/test-u8-is-titlecase.c: New file.
81447         * tests/unicase/test-is-titlecase.h: New file.
81449         New module 'unicase/u32-is-titlecase'.
81450         * lib/unicase/u32-is-titlecase.c: New file.
81451         * modules/unicase/u32-is-titlecase: New file.
81453         New module 'unicase/u16-is-titlecase'.
81454         * lib/unicase/u16-is-titlecase.c: New file.
81455         * modules/unicase/u16-is-titlecase: New file.
81457         New module 'unicase/u8-is-titlecase'.
81458         * lib/unicase/u8-is-titlecase.c: New file.
81459         * modules/unicase/u8-is-titlecase: New file.
81461         Tests for module 'unicase/u32-is-lowercase'.
81462         * modules/unicase/u32-is-lowercase-tests: New file.
81463         * tests/unicase/test-u32-is-lowercase.c: New file.
81465         Tests for module 'unicase/u16-is-lowercase'.
81466         * modules/unicase/u16-is-lowercase-tests: New file.
81467         * tests/unicase/test-u16-is-lowercase.c: New file.
81469         Tests for module 'unicase/u8-is-lowercase'.
81470         * modules/unicase/u8-is-lowercase-tests: New file.
81471         * tests/unicase/test-u8-is-lowercase.c: New file.
81472         * tests/unicase/test-is-lowercase.h: New file.
81474         New module 'unicase/u32-is-lowercase'.
81475         * lib/unicase/u32-is-lowercase.c: New file.
81476         * modules/unicase/u32-is-lowercase: New file.
81478         New module 'unicase/u16-is-lowercase'.
81479         * lib/unicase/u16-is-lowercase.c: New file.
81480         * modules/unicase/u16-is-lowercase: New file.
81482         New module 'unicase/u8-is-lowercase'.
81483         * lib/unicase/u8-is-lowercase.c: New file.
81484         * modules/unicase/u8-is-lowercase: New file.
81486         Tests for module 'unicase/u32-is-uppercase'.
81487         * modules/unicase/u32-is-uppercase-tests: New file.
81488         * tests/unicase/test-u32-is-uppercase.c: New file.
81490         Tests for module 'unicase/u16-is-uppercase'.
81491         * modules/unicase/u16-is-uppercase-tests: New file.
81492         * tests/unicase/test-u16-is-uppercase.c: New file.
81494         Tests for module 'unicase/u8-is-uppercase'.
81495         * modules/unicase/u8-is-uppercase-tests: New file.
81496         * tests/unicase/test-u8-is-uppercase.c: New file.
81497         * tests/unicase/test-is-uppercase.h: New file.
81499         New module 'unicase/u32-is-uppercase'.
81500         * lib/unicase/u32-is-uppercase.c: New file.
81501         * modules/unicase/u32-is-uppercase: New file.
81503         New module 'unicase/u16-is-uppercase'.
81504         * lib/unicase/u16-is-uppercase.c: New file.
81505         * modules/unicase/u16-is-uppercase: New file.
81507         New module 'unicase/u8-is-uppercase'.
81508         * lib/unicase/u8-is-uppercase.c: New file.
81509         * modules/unicase/u8-is-uppercase: New file.
81511         New module 'unicase/u32-is-invariant'.
81512         * lib/unicase/u32-is-invariant.c: New file.
81513         * modules/unicase/u32-is-invariant: New file.
81515         New module 'unicase/u16-is-invariant'.
81516         * lib/unicase/u16-is-invariant.c: New file.
81517         * modules/unicase/u16-is-invariant: New file.
81519         New module 'unicase/u8-is-invariant'.
81520         * lib/unicase/u8-is-invariant.c: New file.
81521         * lib/unicase/invariant.h: New file.
81522         * lib/unicase/u-is-invariant.h: New file.
81523         * modules/unicase/u8-is-invariant: New file.
81525         Tests for module 'unicase/u32-casecoll'.
81526         * modules/unicase/u32-casecoll-tests: New file.
81527         * tests/unicase/test-u32-casecoll.c: New file.
81529         Tests for module 'unicase/u16-casecoll'.
81530         * modules/unicase/u16-casecoll-tests: New file.
81531         * tests/unicase/test-u16-casecoll.c: New file.
81533         Tests for module 'unicase/u8-casecoll'.
81534         * modules/unicase/u8-casecoll-tests: New file.
81535         * tests/unicase/test-u8-casecoll.c: New file.
81537         New module 'unicase/u32-casecoll'.
81538         * lib/unicase/u32-casecoll.c: New file.
81539         * modules/unicase/u32-casecoll: New file.
81541         New module 'unicase/u16-casecoll'.
81542         * lib/unicase/u16-casecoll.c: New file.
81543         * modules/unicase/u16-casecoll: New file.
81545         New module 'unicase/u8-casecoll'.
81546         * lib/unicase/u8-casecoll.c: New file.
81547         * lib/unicase/u-casecoll.h: New file.
81548         * modules/unicase/u8-casecoll: New file.
81550         New module 'unicase/u32-casexfrm'.
81551         * lib/unicase/u32-casexfrm.c: New file.
81552         * modules/unicase/u32-casexfrm: New file.
81554         New module 'unicase/u16-casexfrm'.
81555         * lib/unicase/u16-casexfrm.c: New file.
81556         * modules/unicase/u16-casexfrm: New file.
81558         New module 'unicase/u8-casexfrm'.
81559         * lib/unicase/u8-casexfrm.c: New file.
81560         * lib/unicase/u-casexfrm.h: New file.
81561         * modules/unicase/u8-casexfrm: New file.
81563         Tests for module 'unicase/u32-casecmp'.
81564         * modules/unicase/u32-casecmp-tests: New file.
81565         * tests/unicase/test-u32-casecmp.c: New file.
81567         Tests for module 'unicase/u16-casecmp'.
81568         * modules/unicase/u16-casecmp-tests: New file.
81569         * tests/unicase/test-u16-casecmp.c: New file.
81571         Tests for module 'unicase/u8-casecmp'.
81572         * modules/unicase/u8-casecmp-tests: New file.
81573         * tests/unicase/test-u8-casecmp.c: New file.
81574         * tests/unicase/test-casecmp.h: New file.
81576         New module 'unicase/u32-casecmp'.
81577         * lib/unicase/u32-casecmp.c: New file.
81578         * modules/unicase/u32-casecmp: New file.
81580         New module 'unicase/u16-casecmp'.
81581         * lib/unicase/u16-casecmp.c: New file.
81582         * modules/unicase/u16-casecmp: New file.
81584         New module 'unicase/u8-casecmp'.
81585         * lib/unicase/u8-casecmp.c: New file.
81586         * lib/unicase/u-casecmp.h: New file.
81587         * modules/unicase/u8-casecmp: New file.
81589         Tests for module 'unicase/u32-casefold'.
81590         * modules/unicase/u32-casefold-tests: New file.
81591         * tests/unicase/test-u32-casefold.c: New file.
81593         Tests for module 'unicase/u16-casefold'.
81594         * modules/unicase/u16-casefold-tests: New file.
81595         * tests/unicase/test-u16-casefold.c: New file.
81597         Tests for module 'unicase/u8-casefold'.
81598         * modules/unicase/u8-casefold-tests: New file.
81599         * tests/unicase/test-u8-casefold.c: New file.
81601         New module 'unicase/u32-casefold'.
81602         * lib/unicase/u32-casefold.c: New file.
81603         * modules/unicase/u32-casefold: New file.
81605         New module 'unicase/u16-casefold'.
81606         * lib/unicase/u16-casefold.c: New file.
81607         * modules/unicase/u16-casefold: New file.
81609         New module 'unicase/u8-casefold'.
81610         * lib/unicase/u8-casefold.c: New file.
81611         * lib/unicase/u-casefold.h: New file.
81612         * modules/unicase/u8-casefold: New file.
81614         New module 'unicase/tocasefold'.
81615         * lib/unicase/casefold.h: New file.
81616         * lib/unicase/tocasefold.c: New file.
81617         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
81618         * modules/unicase/tocasefold: New file.
81620         Tests for module 'unicase/u32-totitle'.
81621         * modules/unicase/u32-totitle-tests: New file.
81622         * tests/unicase/test-u32-totitle.c: New file.
81624         Tests for module 'unicase/u16-totitle'.
81625         * modules/unicase/u16-totitle-tests: New file.
81626         * tests/unicase/test-u16-totitle.c: New file.
81628         Tests for module 'unicase/u8-totitle'.
81629         * modules/unicase/u8-totitle-tests: New file.
81630         * tests/unicase/test-u8-totitle.c: New file.
81632         New module 'unicase/u32-totitle'.
81633         * lib/unicase/u32-totitle.c: New file.
81634         * modules/unicase/u32-totitle: New file.
81636         New module 'unicase/u16-totitle'.
81637         * lib/unicase/u16-totitle.c: New file.
81638         * modules/unicase/u16-totitle: New file.
81640         New module 'unicase/u8-totitle'.
81641         * lib/unicase/u8-totitle.c: New file.
81642         * lib/unicase/u-totitle.h: New file.
81643         * modules/unicase/u8-totitle: New file.
81645         Tests for module 'unicase/u32-tolower'.
81646         * modules/unicase/u32-tolower-tests: New file.
81647         * tests/unicase/test-u32-tolower.c: New file.
81649         Tests for module 'unicase/u16-tolower'.
81650         * modules/unicase/u16-tolower-tests: New file.
81651         * tests/unicase/test-u16-tolower.c: New file.
81653         Tests for module 'unicase/u8-tolower'.
81654         * modules/unicase/u8-tolower-tests: New file.
81655         * tests/unicase/test-u8-tolower.c: New file.
81657         New module 'unicase/u32-tolower'.
81658         * lib/unicase/u32-tolower.c: New file.
81659         * modules/unicase/u32-tolower: New file.
81661         New module 'unicase/u16-tolower'.
81662         * lib/unicase/u16-tolower.c: New file.
81663         * modules/unicase/u16-tolower: New file.
81665         New module 'unicase/u8-tolower'.
81666         * lib/unicase/u8-tolower.c: New file.
81667         * modules/unicase/u8-tolower: New file.
81669         Tests for module 'unicase/u32-toupper'.
81670         * modules/unicase/u32-toupper-tests: New file.
81671         * tests/unicase/test-u32-toupper.c: New file.
81673         Tests for module 'unicase/u16-toupper'.
81674         * modules/unicase/u16-toupper-tests: New file.
81675         * tests/unicase/test-u16-toupper.c: New file.
81677         Tests for module 'unicase/u8-toupper'.
81678         * modules/unicase/u8-toupper-tests: New file.
81679         * tests/unicase/test-u8-toupper.c: New file.
81681         New module 'unicase/u32-toupper'.
81682         * lib/unicase/u32-toupper.c: New file.
81683         * modules/unicase/u32-toupper: New file.
81685         New module 'unicase/u16-toupper'.
81686         * lib/unicase/u16-toupper.c: New file.
81687         * modules/unicase/u16-toupper: New file.
81689         New module 'unicase/u8-toupper'.
81690         * lib/unicase/u8-toupper.c: New file.
81691         * modules/unicase/u8-toupper: New file.
81693         New module 'unicase/u32-casemap'.
81694         * lib/unicase/u32-casemap.c: New file.
81695         * modules/unicase/u32-casemap: New file.
81697         New module 'unicase/u16-casemap'.
81698         * lib/unicase/u16-casemap.c: New file.
81699         * modules/unicase/u16-casemap: New file.
81701         New module 'unicase/u8-casemap'.
81702         * lib/unicase/unicasemap.h: New file.
81703         * lib/unicase/u8-casemap.c: New file.
81704         * lib/unicase/u-casemap.h: New file.
81705         * modules/unicase/u8-casemap: New file.
81707         New module 'unicase/special-casing'.
81708         * lib/unicase/special-casing.h: New file.
81709         * lib/unicase/special-casing.c: New file.
81710         * lib/unicase/special-casing-table.gperf: New file, generated by
81711         gen-uni-tables.c.
81712         * modules/unicase/special-casing: New file.
81714         Tests for module 'unicase/locale-language'.
81715         * modules/unicase/locale-language-tests: New file.
81716         * tests/unicase/test-locale-language.sh: New file.
81717         * tests/unicase/test-locale-language.c: New file.
81719         New module 'unicase/locale-language'.
81720         * lib/unicase/locale-language.c: New file.
81721         * lib/unicase/locale-languages.gperf: New file.
81722         * modules/unicase/locale-language: New file.
81724         Generate more tables for case conversion and case folding.
81725         * lib/gen-uni-tables.c (SCC_*): New enum items.
81726         (struct special_casing_rule): New type.
81727         (casing_rules, num_casing_rules, allocated_casing_rules): New
81728         variables.
81729         (add_casing_rule, fill_casing_rules): New functions.
81730         (struct casefold_rule): New type.
81731         (casefolding_rules, num_casefolding_rules,
81732         allocated_casefolding_rules): New variables.
81733         (fill_casefolding_rules): New function.
81734         (unicode_casefold): New variable.
81735         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
81736         sort_casing_rules, output_casing_rules): New functions.
81737         (main): Accept to more arguments: SpecialCasing.txt and
81738         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
81739         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
81740         Output mapping for casefolding.
81742         * lib/unicase.h: Include stdbool.h, uninorm.h.
81743         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
81744         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
81745         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
81746         arguments.
81747         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
81748         resultp arguments.
81749         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
81750         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
81751         resultp arguments.
81752         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
81753         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
81754         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
81755         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
81756         declarations.
81757         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
81759 2009-03-08  Bruno Haible  <bruno@clisp.org>
81761         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81762         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
81763         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
81764         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81766 2009-03-07  Bruno Haible  <bruno@clisp.org>
81768         Adjust u*_normcmp, u*_normcoll API.
81769         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81770         u16_normcoll, u32_normcoll): Change failure conventions.
81771         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
81772         errno and return -1.
81773         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81775 2009-03-07  Bruno Haible  <bruno@clisp.org>
81777         Tests for module 'uninorm/u32-normcoll'.
81778         * modules/uninorm/u32-normcoll-tests: New file.
81779         * tests/uninorm/test-u32-normcoll.c: New file.
81781         Tests for module 'uninorm/u16-normcoll'.
81782         * modules/uninorm/u16-normcoll-tests: New file.
81783         * tests/uninorm/test-u16-normcoll.c: New file.
81785         Tests for module 'uninorm/u8-normcoll'.
81786         * modules/uninorm/u8-normcoll-tests: New file.
81787         * tests/uninorm/test-u8-normcoll.c: New file.
81789 2009-03-07  Bruno Haible  <bruno@clisp.org>
81791         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
81792         tests/uninorm/test-u32-normcmp.c.
81793         * tests/uninorm/test-u32-normcmp.c: Include it.
81794         (test_nonascii): New function, extracted from main. Add some more
81795         tests.
81796         (main): Invoke test_ascii and test_nonascii.
81797         * modules/uninorm/u32-normcmp-tests (Files): Add
81798         tests/uninorm/test-u32-normcmp.h.
81799         (Depends-on): Remove uninorm/u32-normcmp.
81801         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
81802         tests/uninorm/test-u16-normcmp.c.
81803         * tests/uninorm/test-u16-normcmp.c: Include it.
81804         (test_nonascii): New function, extracted from main. Add some more
81805         tests.
81806         (main): Invoke test_ascii and test_nonascii.
81807         * modules/uninorm/u16-normcmp-tests (Files): Add
81808         tests/uninorm/test-u16-normcmp.h.
81809         (Depends-on): Remove uninorm/u16-normcmp.
81811         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81812         tests/uninorm/test-u8-normcmp.c.
81813         * tests/uninorm/test-u8-normcmp.c: Include it.
81814         (test_nonascii): New function, extracted from main. Add some more
81815         tests.
81816         (main): Invoke test_ascii and test_nonascii.
81817         * modules/uninorm/u8-normcmp-tests (Files): Add
81818         tests/uninorm/test-u8-normcmp.h.
81819         (Depends-on): Remove uninorm/u8-normcmp.
81821 2009-03-07  Bruno Haible  <bruno@clisp.org>
81823         New module 'uninorm/u32-normcoll'.
81824         * lib/uninorm/u32-normcoll.c: New file.
81825         * modules/uninorm/u32-normcoll: New file.
81827         New module 'uninorm/u16-normcoll'.
81828         * lib/uninorm/u16-normcoll.c: New file.
81829         * modules/uninorm/u16-normcoll: New file.
81831         New module 'uninorm/u8-normcoll'.
81832         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81833         declarations.
81834         * lib/uninorm/u8-normcoll.c: New file.
81835         * lib/uninorm/u-normcoll.h: New file.
81836         * modules/uninorm/u8-normcoll: New file.
81838         New module 'uninorm/u32-normxfrm'.
81839         * lib/uninorm/u32-normxfrm.c: New file.
81840         * modules/uninorm/u32-normxfrm: New file.
81842         New module 'uninorm/u16-normxfrm'.
81843         * lib/uninorm/u16-normxfrm.c: New file.
81844         * modules/uninorm/u16-normxfrm: New file.
81846         New module 'uninorm/u8-normxfrm'.
81847         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81848         declarations.
81849         * lib/uninorm/u8-normxfrm.c: New file.
81850         * lib/uninorm/u-normxfrm.h: New file.
81851         * modules/uninorm/u8-normxfrm: New file.
81853 2009-03-07  Bruno Haible  <bruno@clisp.org>
81855         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81856         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81857         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81859 2009-03-07  Bruno Haible  <bruno@clisp.org>
81861         New module 'memxfrm'.
81862         * lib/memxfrm.h: New file.
81863         * lib/memxfrm.c: New file.
81864         * modules/memxfrm: New file.
81866 2009-03-07  Bruno Haible  <bruno@clisp.org>
81868         New module 'memcmp2'.
81869         * lib/memcmp2.h: New file.
81870         * lib/memcmp2.c: New file.
81871         * modules/memcmp2: New file.
81873 2009-03-07  Bruno Haible  <bruno@clisp.org>
81875         Tests for module 'uninorm/decomposing-form'.
81876         * modules/uninorm/decomposing-form-tests: New file.
81877         * tests/uninorm/test-decomposing-form.c: New file.
81879         New module 'uninorm/decomposing-form'.
81880         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81881         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81882         Add 'decomposing_variant' field.
81883         * lib/uninorm/decomposing-form.c: New file.
81884         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81885         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81886         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81887         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81888         * modules/uninorm/decomposing-form: New file.
81889         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81890         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81892 2009-03-07  Bruno Haible  <bruno@clisp.org>
81894         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81895         strings.
81897 2009-03-06  Bruno Haible  <bruno@clisp.org>
81899         Tests for module 'uninorm/u32-normcmp'.
81900         * tests/uninorm/test-u32-normcmp.c: New file.
81901         * modules/uninorm/u32-normcmp-tests: New file.
81903         Tests for module 'uninorm/u16-normcmp'.
81904         * tests/uninorm/test-u16-normcmp.c: New file.
81905         * modules/uninorm/u16-normcmp-tests: New file.
81907         Tests for module 'uninorm/u8-normcmp'.
81908         * tests/uninorm/test-u8-normcmp.c: New file.
81909         * modules/uninorm/u8-normcmp-tests: New file.
81911         New module 'uninorm/u32-normcmp'.
81912         * lib/uninorm/u32-normcmp.c: New file.
81913         * modules/uninorm/u32-normcmp: New file.
81915         New module 'uninorm/u16-normcmp'.
81916         * lib/uninorm/u16-normcmp.c: New file.
81917         * modules/uninorm/u16-normcmp: New file.
81919         New module 'uninorm/u8-normcmp'.
81920         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81921         declarations.
81922         * lib/uninorm/u8-normcmp.c: New file.
81923         * lib/uninorm/u-normcmp.h: New file.
81924         * modules/uninorm/u8-normcmp: New file.
81926 2009-03-06  Bruno Haible  <bruno@clisp.org>
81928         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81929         Reported by Eric Blake.
81931 2009-03-06  Eric Blake  <ebb9@byu.net>
81932             Bruno Haible  <bruno@clisp.org>
81934         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81935         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81936         condition.
81937         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81938         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81939         condition.
81940         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81942 2009-03-06  Eric Blake  <ebb9@byu.net>
81944         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81945         to avoid compiler warnings.
81946         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81948 2009-03-05  Bruno Haible  <bruno@clisp.org>
81950         * tests/test-ftell.c (main): Disable test beyond end of file on
81951         FreeMiNT.
81952         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81954 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81956         * lib/filevercmp.c: Move hidden files up in ordering.
81957         * tests/test-filevercmp.c: Add tests for hidden files.
81959 2009-03-04  Bruno Haible  <bruno@clisp.org>
81961         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81962         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81963         AM_CFLAGS.
81964         Reported by Simon Josefsson.
81966 2009-03-03  Bruno Haible  <bruno@clisp.org>
81968         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81969         Reported by Simon Josefsson.
81971         * doc/ld-version-script.texi: Update node reference.
81973 2009-03-03  Bruno Haible  <bruno@clisp.org>
81975         * modules/visibility (License): Change to 'unlimited'.
81976         Suggested by Simon Josefsson.
81978 2009-03-03  Jim Meyering  <meyering@redhat.com>
81980         unlinkdir: cannot_unlink_dir may modify process state
81981         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81982         it's neither thread-safe nor appropriate for use in a library.
81984 2009-03-03  Eric Blake  <ebb9@byu.net>
81986         test-closein: silence test under Darwin
81987         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81988         care if it dies from EPIPE or EBADF.
81990 2009-03-03  Bruno Haible  <bruno@clisp.org>
81992         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81993         earlier.
81994         * doc/visibility.texi: Fix @node and @section.
81996 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81998         * doc/gnulib.texi: Link to sections for ld version script and
81999         visibility.
82000         * doc/visibility.texi: Add @node and @section.
82001         * modules/ld-version-script: New module.
82002         * m4/ld-version-script.m4: New file.
82003         * doc/ld-version-script.texi: New file.
82005 2009-03-02  David Lutterkort  <lutter@redhat.com>
82007         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
82008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82010 2009-03-02  Bruno Haible  <bruno@clisp.org>
82012         * doc/visibility.texi: Mention libtool's -export-symbols option.
82014 2009-03-02  Jim Meyering  <meyering@redhat.com>
82016         announce-gen: new option: --no-print-checksums
82017         * build-aux/announce-gen (usage): Describe it.
82018         (print_checksums): Print a newline here, not in the [*] footnote.
82019         (main): Honor it.
82021 2009-03-01  Bruno Haible  <bruno@clisp.org>
82023         Use socklen_t in the native Windows replacements prototypes.
82024         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
82025         instead of 'int'.
82026         * lib/getsockopt.c (rpl_getsockopt): Likewise.
82027         * lib/setsockopt.c (rpl_setsockopt): Likewise.
82028         * modules/getsockopt (Depends-on): Add socklen.
82029         * modules/setsockopt (Depends-on): Add socklen.
82031 2009-03-01  Bruno Haible  <bruno@clisp.org>
82033         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
82034         least 4.2.
82036 2009-03-01  Eric Blake  <ebb9@byu.net>
82037             Bruno Haible  <bruno@clisp.org>
82039         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
82040         error messages.
82041         * lib/wait-process.c (wait_subprocess): Omit error message about
82042         deadly signal sent to the child of termsigp != NULL.
82044 2009-03-01  Eric Blake  <ebb9@byu.net>
82046         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
82048 2009-03-01  Bruno Haible  <bruno@clisp.org>
82050         Avoid a gcc warning.
82051         * tests/test-sched.c (b): Make global.
82052         Reported by Eric Blake.
82054 2009-01-19  Martin Lambers  <marlam@marlam.de>
82056         Provide POSIX semantics for socket timeout options on W32.
82057         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
82058         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
82059         * modules/setsockopt: Depend on sys_time module for struct timeval.
82060         * modules/getsockopt: Depend on sys_time module for struct timeval.
82062 2009-03-01  Simon Josefsson  <simon@josefsson.org>
82064         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
82065         __USE_GNU, for consistency with netdb.in.h.
82066         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82068 2009-03-01  Bruno Haible  <bruno@clisp.org>
82070         More support for FreeMiNT.
82071         * lib/fseeko.c (rpl_fseeko): Complete last commit.
82072         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82074 2009-03-01  Bruno Haible  <bruno@clisp.org>
82076         More support for FreeMiNT.
82077         * lib/fpurge.c (fpurge): Correct last commit.
82078         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82080 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82082         Fix unportable awk script in vc-list-files.
82083         * build-aux/vc-list-files: In the replacement awk script, use
82084         substr with a second argument of 1, not zero.
82085         Report by Simon Josefsson.
82087 2009-02-28  Bruno Haible  <bruno@clisp.org>
82089         More support for FreeMiNT.
82090         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
82091         to FreeMiNT today.
82092         * lib/fwriting.c (fwriting): Likewise.
82093         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
82095 2009-02-28  Bruno Haible  <bruno@clisp.org>
82097         * tests/test-freadseek.c (main): Disable test beyond end of file on
82098         FreeMiNT.
82099         * tests/test-ftello.c (main): Likewise.
82100         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82102 2009-02-28  Bruno Haible  <bruno@clisp.org>
82104         Add tentative support for FreeMiNT.
82105         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
82106         * lib/fpurge.c (fpurge): Likewise.
82107         * lib/freadable.c (freadable): Likewise.
82108         * lib/freading.c (freading): Likewise.
82109         * lib/freadptr.c (freadptr): Likewise.
82110         * lib/freadseek.c (freadptrinc): Likewise.
82111         * lib/fseeko.c (rpl_fseeko): Likewise.
82112         * lib/fseterr.c (fseterr): Likewise.
82113         * lib/fwritable.c (fwritable): Likewise.
82114         * lib/fwriting.c (fwriting): Likewise.
82115         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
82116         Hourihane.
82117         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82119 2009-02-28  Bruno Haible  <bruno@clisp.org>
82121         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
82122         SIGCHLD.
82123         Reported by Jim Meyering.
82125 2009-02-28  Bruno Haible  <bruno@clisp.org>
82127         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
82128         Mention the results of these tests on various platforms.
82129         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
82130         order.
82131         * doc/posix-functions/printf.texi: Likewise.
82132         * doc/posix-functions/snprintf.texi: Likewise.
82133         * doc/posix-functions/sprintf.texi: Likewise.
82134         * doc/posix-functions/vfprintf.texi: Likewise.
82135         * doc/posix-functions/vprintf.texi: Likewise.
82136         * doc/posix-functions/vsnprintf.texi: Likewise.
82137         * doc/posix-functions/vsprintf.texi: Likewise.
82138         * doc/glibc-functions/obstack_printf.texi: Likewise.
82139         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
82141 2009-02-28  Bruno Haible  <bruno@clisp.org>
82143         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
82144         Reported by Loïc Minier <lool@dooz.org>.
82146 2009-02-27  Bruno Haible  <bruno@clisp.org>
82148         * gnulib-tool (func_import): Make the sed expression used to create the
82149         sed script for updating the .gitignore file POSIX compliant.
82150         Reported by Eric Blake.
82152 2009-02-27  Bruno Haible  <bruno@clisp.org>
82154         * gnulib-tool (sed): Don't alias as "sed --posix".
82155         Reported by Eric Blake.
82157 2009-02-27  Bruno Haible  <bruno@clisp.org>
82159         Avoid test link errors.
82160         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
82161         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
82162         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
82163         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
82164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82166 2009-02-27  Bruno Haible  <bruno@clisp.org>
82168         Avoid spurious "(cached)" in configure output.
82169         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
82170         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
82171         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82172         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82173         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82174         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
82175         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82176         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
82177         Reported by Eric Blake.
82179 2009-02-27  Eric Blake  <ebb9@byu.net>
82181         printf: fix regression in previous patch
82182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
82184 2009-02-27  Bruno Haible  <bruno@clisp.org>
82186         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
82187         value.
82188         * lib/stdint.in.h: Likewise.
82189         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
82191 2009-02-27  Eric Blake  <ebb9@byu.net>
82193         doc: mention more functions added in cygwin 1.7.0
82194         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
82195         addition.
82196         * doc/posix-functions/open_wmemstream.texi: Likewise.
82197         * doc/posix-functions/wcsnlen.texi: Likewise.
82198         * doc/posix-functions/wcsnrtombs.texi: Likewise.
82199         * doc/posix-functions/wcstod.texi: Likewise.
82200         * doc/posix-functions/wcstof.texi: Likewise.
82201         * doc/posix-functions/wcstoimax.texi: Likewise.
82202         * doc/posix-functions/wcstok.texi: Likewise.
82203         * doc/posix-functions/wcstoumax.texi: Likewise.
82205         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
82206         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
82207         * doc/posix-functions/fprintf.texi: Update.
82208         * doc/posix-functions/printf.texi: Update.
82209         * doc/posix-functions/snprintf.texi: Update.
82210         * doc/posix-functions/sprintf.texi: Update.
82211         * doc/posix-functions/vfprintf.texi: Update.
82212         * doc/posix-functions/vprintf.texi: Update.
82213         * doc/posix-functions/vsnprintf.texi: Update.
82214         * doc/posix-functions/vsprintf.texi: Update.
82215         * doc/glibc-functions/obstack_printf.texi: Update.
82216         * doc/glibc-functions/obstack_vprintf.texi: Update.
82218 2009-02-26  Eric Blake  <ebb9@byu.net>
82220         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
82221         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
82222         compilation bug by using runtime conversion.
82223         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
82224         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
82225         * modules/ceill-tests (Files): Use nan.h.
82226         * modules/floorl-tests (Files): Likewise.
82227         * modules/frexpl-tests (Files): Likewise.
82228         * modules/isnanl-tests (Files): Likewise.
82229         * modules/ldexpl-tests (Files): Likewise.
82230         * modules/roundl-tests (Files): Likewise.
82231         * modules/truncl-tests (Files): Likewise.
82232         * tests/test-ceill.c (main): Use a working NaN.
82233         * tests/test-floorl.c (main): Likewise.
82234         * tests/test-frexpl.c (main): Likewise.
82235         * tests/test-isnan.c (test_long_double): Likewise.
82236         * tests/test-isnanl.h (main): Likewise.
82237         * tests/test-ldexpl.h (main): Likewise.
82238         * tests/test-roundl.h (main): Likewise.
82239         * tests/test-truncl.h (main): Likewise.
82240         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
82242 2009-02-26  Eric Blake  <ebb9@byu.net>
82243             Bruno Haible  <bruno@clisp.org>
82245         Work around a *printf bug with %ls on Solaris.
82246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
82247         precision is specified, sprintf stops converting the wide string
82248         argument when the number of bytes that have been produced by this
82249         conversion equals or exceeds the precision.
82250         * doc/posix-functions/fprintf.texi: Update.
82251         * doc/posix-functions/printf.texi: Update.
82252         * doc/posix-functions/snprintf.texi: Update.
82253         * doc/posix-functions/sprintf.texi: Update.
82254         * doc/posix-functions/vfprintf.texi: Update.
82255         * doc/posix-functions/vprintf.texi: Update.
82256         * doc/posix-functions/vsnprintf.texi: Update.
82257         * doc/posix-functions/vsprintf.texi: Update.
82258         * doc/glibc-functions/obstack_printf.texi: Update.
82259         * doc/glibc-functions/obstack_vprintf.texi: Update.
82261 2009-02-26  Eric Blake  <ebb9@byu.net>
82263         stdlib: favor compiler check of random.h
82264         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
82265         to avoid an ObjC random.h installed by Swarm.
82267 2009-02-26  Bruno Haible  <bruno@clisp.org>
82269         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
82270         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
82271         Reported by Gary V. Vaughan <gary@gnu.org>.
82273 2009-02-26  Bruno Haible  <bruno@clisp.org>
82275         Fix *printf behaviour regarding the %ls directive.
82276         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
82277         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
82278         NEED_PRINTF_DIRECTIVE_LS.
82279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
82280         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82282         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
82283         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
82284         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
82285         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82287         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82288         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82289         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82290         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
82291         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82293         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82294         * doc/posix-functions/fprintf.texi: Update.
82295         * doc/posix-functions/printf.texi: Update.
82296         * doc/posix-functions/snprintf.texi: Update.
82297         * doc/posix-functions/sprintf.texi: Update.
82298         * doc/posix-functions/vfprintf.texi: Update.
82299         * doc/posix-functions/vprintf.texi: Update.
82300         * doc/posix-functions/vsnprintf.texi: Update.
82301         * doc/posix-functions/vsprintf.texi: Update.
82302         * doc/glibc-functions/obstack_printf.texi: Update.
82303         * doc/glibc-functions/obstack_vprintf.texi: Update.
82304         Reported by Eric Blake.
82306 2009-02-25  Bruno Haible  <bruno@clisp.org>
82308         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
82309         with known value.
82310         Reported by Gary V. Vaughan <gary@gnu.org>.
82312 2009-02-25  Bruno Haible  <bruno@clisp.org>
82314         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
82315         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
82316         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
82317         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
82318         Reported by Gary V. Vaughan <gary@gnu.org>.
82320 2009-02-25  Bruno Haible  <bruno@clisp.org>
82322         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
82323         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
82324         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
82325         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
82326         Reported by Gary V. Vaughan <gary@gnu.org>.
82328 2009-02-25  Eric Blake  <ebb9@byu.net>
82330         tests: skip fseek/ftell tests if ungetc is broken
82331         * m4/ungetc.m4: New file.
82332         * modules/fseek-tests: Split test, so ungetc dependency is
82333         separate from rest of test.
82334         * modules/fseeko-tests: Likewise.
82335         * modules/ftell-tests: Likewise.
82336         * modules/ftello-tests: Likewise.
82337         * tests/test-fseek.c (main): Isolate ungetc dependency.
82338         * tests/test-fseeko.c (main): Likewise.
82339         * tests/test-ftell.c (main): Likewise.
82340         * tests/test-ftello.c (main): Likewise.
82341         * tests/test-fseek2.sh: New file.
82342         * tests/test-fseeko2.sh: Likewise.
82343         * tests/test-ftell2.sh: Likewise.
82344         * tests/test-ftello2.sh: Likewise.
82346 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
82348         test-getaddrinfo: fix usage of skip return code 77
82349         * tests/test-gettaddrinfo.c: Return skip code 77 only
82350         for first occurrence of skip (4x77 is not 77)
82352 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
82354         strtod: avoid C99 decl-after-statement
82355         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
82357 2009-02-24  Eric Blake  <ebb9@byu.net>
82359         strtod: detect HP-UX 11.31 bug
82360         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
82361         Reported by Gary V. Vaughan.
82363 2009-02-23  Bruno Haible  <bruno@clisp.org>
82365         Fix invalid read past end of memory block.
82366         * lib/vasnprintf.c (DCHAR_SET): Define.
82367         (local_wcslen): Define only when needed.
82368         (local_strnlen, local_wcsnlen): New functions.
82369         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
82370         directives that involve a conversion ourselves.
82371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
82372         wcsnlen, mbrtowc, wcrtomb.
82373         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
82374         * tests/test-vasprintf-posix.c (test_function): Likewise.
82375         * tests/test-snprintf-posix.h (test_function): Likewise.
82376         * tests/test-sprintf-posix.h (test_function): Likewise.
82377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82379 2009-02-22  Bruno Haible  <bruno@clisp.org>
82381         Implement new clarified decomposition of Hangul syllables.
82382         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
82383         of type LTV, return only a pairwise decomposition.
82384         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
82385         Likewise.
82386         * tests/uninorm/test-decomposition.c (main): Updated expected result.
82387         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
82388         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
82390 2009-02-22  Bruno Haible  <bruno@clisp.org>
82392         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
82393         zero-length results and shrink excess allocated memory.
82394         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
82395         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
82396         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
82397         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
82398         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
82399         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
82400         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
82401         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
82402         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
82403         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
82404         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
82405         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
82407 2009-02-21  Bruno Haible  <bruno@clisp.org>
82409         * doc/gnulib.texi: Include safe-alloc.texi earlier.
82410         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
82411         spaces after a period. Put a space between a macro name and its
82412         argument list. Trivial rewordings.
82413         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
82414         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
82415         (main): Return 0 explicitly.
82417 2009-02-21  Bruno Haible  <bruno@clisp.org>
82419         Tests for module 'uninorm/filter'.
82420         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
82421         * modules/uninorm/filter-tests: New file.
82423         New module 'uninorm/filter'.
82424         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
82425         uninorm_filter_flush, uninorm_filter_free): New declarations.
82426         * lib/uninorm/uninorm-filter.c: New file.
82427         * modules/uninorm/filter: New file.
82429 2009-02-21  Bruno Haible  <bruno@clisp.org>
82431         Tests for module 'uninorm/nfkc'.
82432         * tests/uninorm/test-nfkc.c: New file.
82433         * tests/uninorm/test-u8-nfkc.c: New file.
82434         * tests/uninorm/test-u16-nfkc.c: New file.
82435         * tests/uninorm/test-u32-nfkc.c: New file.
82436         * tests/uninorm/test-u32-nfkc-big.sh: New file.
82437         * tests/uninorm/test-u32-nfkc-big.c: New file.
82438         * modules/uninorm/nfkc-tests: New file.
82440         New module 'uninorm/nfkc'.
82441         * lib/uninorm/nfkc.c: New file.
82442         * modules/uninorm/nfkc: New file.
82444         Tests for module 'uninorm/nfkd'.
82445         * tests/uninorm/test-nfkd.c: New file.
82446         * tests/uninorm/test-u8-nfkd.c: New file.
82447         * tests/uninorm/test-u16-nfkd.c: New file.
82448         * tests/uninorm/test-u32-nfkd.c: New file.
82449         * tests/uninorm/test-u32-nfkd-big.sh: New file.
82450         * tests/uninorm/test-u32-nfkd-big.c: New file.
82451         * modules/uninorm/nfkd-tests: New file.
82453         New module 'uninorm/nfkd'.
82454         * lib/uninorm/nfkd.c: New file.
82455         * modules/uninorm/nfkd: New file.
82457         Tests for module 'uninorm/nfc'.
82458         * tests/uninorm/test-nfc.c: New file.
82459         * tests/uninorm/test-u8-nfc.c: New file.
82460         * tests/uninorm/test-u16-nfc.c: New file.
82461         * tests/uninorm/test-u32-nfc.c: New file.
82462         * tests/uninorm/test-u32-nfc-big.sh: New file.
82463         * tests/uninorm/test-u32-nfc-big.c: New file.
82464         * modules/uninorm/nfc-tests: New file.
82466         New module 'uninorm/nfc'.
82467         * lib/uninorm/nfc.c: New file.
82468         * modules/uninorm/nfc: New file.
82470         Tests for module 'uninorm/nfd'.
82471         * tests/uninorm/test-nfd.c: New file.
82472         * tests/uninorm/test-u8-nfd.c: New file.
82473         * tests/uninorm/test-u16-nfd.c: New file.
82474         * tests/uninorm/test-u32-nfd.c: New file.
82475         * tests/uninorm/test-u32-nfd-big.sh: New file.
82476         * tests/uninorm/test-u32-nfd-big.c: New file.
82477         * tests/uninorm/test-u32-normalize-big.h: New file.
82478         * tests/uninorm/test-u32-normalize-big.c: New file.
82479         * tests/uninorm/NormalizationTest.txt: New file, created from
82480         Unicode 5.1.0 NormalizationTest.txt.
82481         * modules/uninorm/nfd-tests: New file.
82483         New module 'uninorm/nfd'.
82484         * lib/uninorm/nfd.c: New file.
82485         * modules/uninorm/nfd: New file.
82487         New module 'uninorm/u32-normalize'.
82488         * lib/uninorm/u32-normalize.c: New file.
82489         * modules/uninorm/u32-normalize: New file.
82491         New module 'uninorm/u16-normalize'.
82492         * lib/uninorm/u16-normalize.c: New file.
82493         * modules/uninorm/u16-normalize: New file.
82495         New module 'uninorm/u8-normalize'.
82496         * lib/uninorm/u8-normalize.c: New file.
82497         * lib/uninorm/normalize-internal.h: New file.
82498         * lib/uninorm/u-normalize-internal.h: New file.
82499         * modules/uninorm/u8-normalize: New file.
82501         New module 'uninorm/decompose-internal'.
82502         * lib/uninorm/decompose-internal.c: New file.
82503         * modules/uninorm/decompose-internal: New file.
82505         Tests for module 'uninorm/composition'.
82506         * tests/uninorm/test-composition.c: New file.
82507         * modules/uninorm/composition-tests: New file.
82509         New module 'uninorm/composition'.
82510         * lib/uninorm/composition.c: New file.
82511         * lib/uninorm/composition-table.gperf: New file, generated by
82512         gen-uni-tables.
82513         * modules/uninorm/composition: New file.
82515         Tests for module 'uninorm/compat-decomposition'.
82516         * tests/uninorm/test-compat-decomposition.c: New file.
82517         * modules/uninorm/compat-decomposition-tests: New file.
82519         New module 'uninorm/compat-decomposition'.
82520         * lib/uninorm/decompose-internal.h: New file.
82521         * lib/uninorm/compat-decomposition.c: New file.
82522         * modules/uninorm/compat-decomposition: New file.
82524         Tests for module 'uninorm/canonical-decomposition'.
82525         * tests/uninorm/test-canonical-decomposition.c: New file.
82526         * modules/uninorm/canonical-decomposition-tests: New file.
82528         New module 'uninorm/canonical-decomposition'.
82529         * lib/uninorm/canonical-decomposition.c: New file.
82530         * modules/uninorm/canonical-decomposition: New file.
82532         Tests for module 'uninorm/decomposition'.
82533         * tests/uninorm/test-decomposition.c: New file.
82534         * modules/uninorm/decomposition-tests: New file.
82536         New module 'uninorm/decomposition'.
82537         * lib/uninorm/decomposition.c: New file.
82538         * modules/uninorm/decomposition: New file.
82540         New module 'uninorm/decomposition-table'.
82541         * lib/uninorm/decomposition-table.h: New file.
82542         * lib/uninorm/decomposition-table.c: New file.
82543         * lib/uninorm/decomposition-table1.h: New file, generated by
82544         gen-uni-tables.
82545         * lib/uninorm/decomposition-table2.h: New file, generated by
82546         gen-uni-tables.
82547         * modules/uninorm/decomposition-table: New file.
82549         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
82550         (UC_DECOMP_*): New enumeration items.
82551         (get_decomposition): New function.
82552         (struct decomp_table): New type.
82553         (output_decomposition, output_decomposition_tables): New functions.
82554         (unicode_composition_exclusions): New variable.
82555         (fill_composition_exclusions, debug_output_composition_tables): New
82556         functions.
82557         (main): Accept one more argument. Invoke fill_composition_exclusions.
82558         Output decomposition and composition tables.
82560         New module 'uninorm/base'.
82561         * lib/uninorm.h: New file.
82562         * lib/unictype.h: Update comment.
82563         * modules/uninorm/base: New file.
82565 2009-02-21  David Lutterkort  <lutter@redhat.com>
82567         Tests for module 'safe-alloc'.
82568         * tests/test-safe-alloc.c: New file.
82569         * modules/safe-alloc-tests: New file.
82571         New module 'safe-alloc'.
82572         * lib/safe-alloc.h: New file.
82573         * lib/safe-alloc.c: New file.
82574         * m4/safe-alloc.m4: New file.
82575         * modules/safe-alloc: New file.
82576         * doc/safe-alloc.texi: New file.
82577         * doc/gnulib.texi: Include it.
82578         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
82579         safe-alloc.
82581 2009-02-18  Bruno Haible  <bruno@clisp.org>
82583         Fix link error on non-glibc systems.
82584         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
82585         variable.
82586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82588 2009-02-18  Jim Meyering  <meyering@redhat.com>
82590         fts: avoid used-uninitialized error due to recent change
82591         * lib/fts.c (fts_read): Guard uses of the new member,
82592         parent->fts_n_dirs_remaining, since it's not relevant for
82593         the parent of a directory specified on the command-line.
82595 2009-02-17  James Youngman  <jay@gnu.org>
82596             Bruno Haible  <bruno@clisp.org>
82598         * m4/include_next.m4: Reformulate comment.
82600 2009-02-16  Jim Meyering  <meyering@redhat.com>
82602         fts: add #if guards so that the fts_lgpl module still builds
82603         * lib/fts.c: Guard just-added hash-table-using parts with
82604         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
82605         Reported by Simon Josefsson.
82607 2009-02-15  Bruno Haible  <bruno@clisp.org>
82609         * modules/array-mergesort-tests: New file.
82610         * tests/test-array-mergesort.c: New file.
82612         New module 'array-mergesort'.
82613         * modules/array-mergesort: New file.
82614         * lib/array-mergesort.h: New file.
82616 2009-02-15  Bruno Haible  <bruno@clisp.org>
82618         Fix 2009-02-07 commit.
82619         * lib/gen-uni-tables.c (output_predicate, output_category,
82620         output_combclass, output_bidi_category, output_decimal_digit,
82621         output_digit, output_numeric, output_mirror, output_scripts,
82622         output_ident_category, output_simple_mapping): Fix format directives.
82623         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
82625 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
82627         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
82628         fixes are available from IBM.
82630 2009-02-13  Jim Meyering  <meyering@redhat.com>
82632         fts: arrange not to stat non-directories in more cases
82633         This makes GNU find (when it doesn't need to stat each file)
82634         *much* more efficient at traversing reiserfs file systems.
82635         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
82636         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
82637         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
82638         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
82639         (leaf_optimization_applies): New function.
82640         (LCO_hash, LCO_compare): New helper functions.
82641         (link_count_optimize_ok): New function.
82642         (fts_stat): Initialize new member (if dir).
82643         (fts_read): Decrement parent's fts_n_dirs_remaining count if
82644         we've just stat'ed a directory.  Skip the stat call when possible.
82645         ---
82646         Note this AFS-related exchange:
82647         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
82648         and note find's pioctl call in find/fstype.c.
82649         But that is necessary only if you want to enable the
82650         optimization for AFS, and for now, I don't.
82652         fts: move a function definition "up" (no semantic change)
82653         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
82654         "up" to precede upcoming use of a related function.
82656 2009-02-11  Jim Meyering  <meyering@redhat.com>
82658         fts: correct internal computation of nlinks (optimization-related)
82659         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
82660         whether the current entry is a directory, so don't test it.
82662 2009-02-10  Bruno Haible  <bruno@clisp.org>
82664         Tests for module 'uniwbrk/ulc-wordbreaks'.
82665         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
82666         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82667         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82669         Tests for module 'uniwbrk/u32-wordbreaks'.
82670         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82671         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82673         Tests for module 'uniwbrk/u16-wordbreaks'.
82674         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82675         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82677         Tests for module 'uniwbrk/u8-wordbreaks'.
82678         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82679         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82681 2009-02-10  Bruno Haible  <bruno@clisp.org>
82683         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82684         property.
82685         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82686         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82687         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82689 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82691         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82692         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82694 2009-02-10  Bruno Haible  <bruno@clisp.org>
82696         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82697         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82698         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82699         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82700         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82701         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82703 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82705         * lib/sockets.h (gl_fd_to_handle): New function.
82707         * tests/test-sockets.c: Call gl_fd_to_handle.
82709 2009-02-09  Bruno Haible  <bruno@clisp.org>
82711         * doc/havelib.texi: Document the conventions on bi-arch systems.
82713 2009-02-08  Bruno Haible  <bruno@clisp.org>
82715         Document the AC_LIB_LINKFLAGS macro.
82716         * doc/havelib.texi: New file, mostly written on 2005-05-24.
82717         * doc/gnulib.texi: Include it.
82719 2009-02-08  Bruno Haible  <bruno@clisp.org>
82721         Fix wrong order of sections, compared to TOC.
82722         * doc/gnulib.texi: Include relocatable-maint.texi after the
82723         "Regular expressions" node, not before.
82725 2009-02-08  Bruno Haible  <bruno@clisp.org>
82727         Tests for module 'unicase/totitle'.
82728         * modules/unicase/totitle-tests: New file.
82730         Tests for module 'unicase/tolower'.
82731         * modules/unicase/tolower-tests: New file.
82733         Tests for module 'unicase/toupper'.
82734         * modules/unicase/toupper-tests: New file.
82735         * tests/unicase/test-mapping-part1.h: New file.
82736         * tests/unicase/test-mapping-part2.h: New file.
82738         New module 'unicase/totitle'.
82739         * modules/unicase/totitle: New file.
82740         * lib/unicase/totitle.c: New file.
82742         New module 'unicase/tolower'.
82743         * modules/unicase/tolower: New file.
82744         * lib/unicase/tolower.c: New file.
82746         New module 'unicase/toupper'.
82747         * modules/unicase/toupper: New file.
82748         * lib/unicase/toupper.c: New file.
82749         * lib/unicase/simple-mapping.h: New file.
82751         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
82752         (mapping_table): New structure.
82753         (output_simple_mapping): New function.
82754         (main): Invoke output_simple_mapping_test and output_simple_mapping.
82755         * modules/gen-uni-tables (Description): Update.
82756         * lib/unicase/toupper.h: New file, automatically generated by
82757         gen-uni-tables.
82758         * lib/unicase/tolower.h: New file, automatically generated by
82759         gen-uni-tables.
82760         * lib/unicase/totitle.h: New file, automatically generated by
82761         gen-uni-tables.
82762         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
82763         gen-uni-tables.
82764         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
82765         gen-uni-tables.
82766         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
82767         gen-uni-tables.
82769         New module 'unicase/base'.
82770         * modules/unicase/base: New file.
82771         * lib/unicase.h: New file.
82773 2009-02-08  Bruno Haible  <bruno@clisp.org>
82775         New module 'uniwbrk/ulc-wordbreaks'.
82776         * modules/uniwbrk/ulc-wordbreaks: New file.
82777         * lib/uniwbrk/ulc-wordbreaks.c: New file.
82779         New module 'uniwbrk/u32-wordbreaks'.
82780         * modules/uniwbrk/u32-wordbreaks: New file.
82781         * lib/uniwbrk/u32-wordbreaks.c: New file.
82783         New module 'uniwbrk/u16-wordbreaks'.
82784         * modules/uniwbrk/u16-wordbreaks: New file.
82785         * lib/uniwbrk/u16-wordbreaks.c: New file.
82787         New module 'uniwbrk/u8-wordbreaks'.
82788         * modules/uniwbrk/u8-wordbreaks: New file.
82789         * lib/uniwbrk/u8-wordbreaks.c: New file.
82790         * lib/uniwbrk/u-wordbreaks.h: New file.
82792         New module 'uniwbrk/table'.
82793         * modules/uniwbrk/table: New file.
82794         * lib/uniwbrk/wbrktable.h: New file.
82795         * lib/uniwbrk/wbrktable.c: New file.
82797         New module 'uniwbrk/wordbreak-property'.
82798         * modules/uniwbrk/wordbreak-property: New file.
82799         * lib/uniwbrk/wordbreak-property.c: New file.
82801         * lib/gen-uni-tables.c (WBP_*): New enum items.
82802         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
82803         (unicode_org_wbp): New variable.
82804         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
82805         New functions.
82806         (wbp_table): New structure.
82807         (output_wbp, output_wbrk_tables): New functions.
82808         (main): Accept additional argument. Invoke fill_org_wbp,
82809         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82810         output_wbrk_tables.
82811         * modules/gen-uni-tables (Description): Update.
82812         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82813         gen-uni-tables.
82815         New module 'uniwbrk/base'.
82816         * modules/uniwbrk/base: New file.
82817         * lib/uniwbrk.h: New file.
82819 2009-02-08  Bruno Haible  <bruno@clisp.org>
82821         Update to Unicode 5.1.0.
82822         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82823         U+2185..U+2188.
82824         (is_property_default_ignorable_code_point): Don't include characters
82825         of category Cc or Cs and not-a-characters.
82826         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82827         U+0D79, U+109E, U+109F, U+A60C.
82828         * lib/unictype/bidi_of.h: Regenerated.
82829         * lib/unictype/blocks.h: Regenerated.
82830         * lib/unictype/categ_C.h: Regenerated.
82831         * lib/unictype/categ_Cf.h: Regenerated.
82832         * lib/unictype/categ_Cn.h: Regenerated.
82833         * lib/unictype/categ_L.h: Regenerated.
82834         * lib/unictype/categ_Ll.h: Regenerated.
82835         * lib/unictype/categ_Lm.h: Regenerated.
82836         * lib/unictype/categ_Lo.h: Regenerated.
82837         * lib/unictype/categ_Lu.h: Regenerated.
82838         * lib/unictype/categ_M.h: Regenerated.
82839         * lib/unictype/categ_Mc.h: Regenerated.
82840         * lib/unictype/categ_Me.h: Regenerated.
82841         * lib/unictype/categ_Mn.h: Regenerated.
82842         * lib/unictype/categ_N.h: Regenerated.
82843         * lib/unictype/categ_Nd.h: Regenerated.
82844         * lib/unictype/categ_Nl.h: Regenerated.
82845         * lib/unictype/categ_No.h: Regenerated.
82846         * lib/unictype/categ_P.h: Regenerated.
82847         * lib/unictype/categ_Pd.h: Regenerated.
82848         * lib/unictype/categ_Pe.h: Regenerated.
82849         * lib/unictype/categ_Pf.h: Regenerated.
82850         * lib/unictype/categ_Pi.h: Regenerated.
82851         * lib/unictype/categ_Po.h: Regenerated.
82852         * lib/unictype/categ_Ps.h: Regenerated.
82853         * lib/unictype/categ_S.h: Regenerated.
82854         * lib/unictype/categ_Sk.h: Regenerated.
82855         * lib/unictype/categ_Sm.h: Regenerated.
82856         * lib/unictype/categ_So.h: Regenerated.
82857         * lib/unictype/categ_of.h: Regenerated.
82858         * lib/unictype/combining.h: Regenerated.
82859         * lib/unictype/ctype_alnum.h: Regenerated.
82860         * lib/unictype/ctype_alpha.h: Regenerated.
82861         * lib/unictype/ctype_graph.h: Regenerated.
82862         * lib/unictype/ctype_lower.h: Regenerated.
82863         * lib/unictype/ctype_print.h: Regenerated.
82864         * lib/unictype/ctype_punct.h: Regenerated.
82865         * lib/unictype/ctype_upper.h: Regenerated.
82866         * lib/unictype/decdigit.h: Regenerated.
82867         * lib/unictype/digit.h: Regenerated.
82868         * lib/unictype/mirror.h: Regenerated.
82869         * lib/unictype/numeric.h: Regenerated.
82870         * lib/unictype/pr_alphabetic.h: Regenerated.
82871         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82872         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82873         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82874         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82875         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82876         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82877         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82878         * lib/unictype/pr_combining.h: Regenerated.
82879         * lib/unictype/pr_dash.h: Regenerated.
82880         * lib/unictype/pr_decimal_digit.h: Regenerated.
82881         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82882         * lib/unictype/pr_deprecated.h: Regenerated.
82883         * lib/unictype/pr_diacritic.h: Regenerated.
82884         * lib/unictype/pr_extender.h: Regenerated.
82885         * lib/unictype/pr_format_control.h: Regenerated.
82886         * lib/unictype/pr_grapheme_base.h: Regenerated.
82887         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82888         * lib/unictype/pr_grapheme_link.h: Regenerated.
82889         * lib/unictype/pr_id_continue.h: Regenerated.
82890         * lib/unictype/pr_id_start.h: Regenerated.
82891         * lib/unictype/pr_ideographic.h: Regenerated.
82892         * lib/unictype/pr_ignorable_control.h: Regenerated.
82893         * lib/unictype/pr_lowercase.h: Regenerated.
82894         * lib/unictype/pr_math.h: Regenerated.
82895         * lib/unictype/pr_numeric.h: Regenerated.
82896         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82897         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82898         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82899         * lib/unictype/pr_other_id_continue.h: Regenerated.
82900         * lib/unictype/pr_other_lowercase.h: Regenerated.
82901         * lib/unictype/pr_other_math.h: Regenerated.
82902         * lib/unictype/pr_punctuation.h: Regenerated.
82903         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82904         * lib/unictype/pr_soft_dotted.h: Regenerated.
82905         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82906         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82907         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82908         * lib/unictype/pr_uppercase.h: Regenerated.
82909         * lib/unictype/pr_xid_continue.h: Regenerated.
82910         * lib/unictype/pr_xid_start.h: Regenerated.
82911         * lib/unictype/pr_zero_width.h: Regenerated.
82912         * lib/unictype/scripts.h: Regenerated.
82913         * lib/unictype/scripts_byname.gperf: Regenerated.
82914         * lib/unictype/sy_java_ident.h: Regenerated.
82915         * lib/unilbrk/lbrkprop1.h: Regenerated.
82916         * lib/unilbrk/lbrkprop2.h: Regenerated.
82917         * tests/unictype/test-categ_C.c: Regenerated.
82918         * tests/unictype/test-categ_Cf.c: Regenerated.
82919         * tests/unictype/test-categ_Cn.c: Regenerated.
82920         * tests/unictype/test-categ_L.c: Regenerated.
82921         * tests/unictype/test-categ_Ll.c: Regenerated.
82922         * tests/unictype/test-categ_Lm.c: Regenerated.
82923         * tests/unictype/test-categ_Lo.c: Regenerated.
82924         * tests/unictype/test-categ_Lu.c: Regenerated.
82925         * tests/unictype/test-categ_M.c: Regenerated.
82926         * tests/unictype/test-categ_Mc.c: Regenerated.
82927         * tests/unictype/test-categ_Me.c: Regenerated.
82928         * tests/unictype/test-categ_Mn.c: Regenerated.
82929         * tests/unictype/test-categ_N.c: Regenerated.
82930         * tests/unictype/test-categ_Nd.c: Regenerated.
82931         * tests/unictype/test-categ_Nl.c: Regenerated.
82932         * tests/unictype/test-categ_No.c: Regenerated.
82933         * tests/unictype/test-categ_P.c: Regenerated.
82934         * tests/unictype/test-categ_Pd.c: Regenerated.
82935         * tests/unictype/test-categ_Pe.c: Regenerated.
82936         * tests/unictype/test-categ_Pf.c: Regenerated.
82937         * tests/unictype/test-categ_Pi.c: Regenerated.
82938         * tests/unictype/test-categ_Po.c: Regenerated.
82939         * tests/unictype/test-categ_Ps.c: Regenerated.
82940         * tests/unictype/test-categ_S.c: Regenerated.
82941         * tests/unictype/test-categ_Sk.c: Regenerated.
82942         * tests/unictype/test-categ_Sm.c: Regenerated.
82943         * tests/unictype/test-categ_So.c: Regenerated.
82944         * tests/unictype/test-ctype_alnum.c: Regenerated.
82945         * tests/unictype/test-ctype_alpha.c: Regenerated.
82946         * tests/unictype/test-ctype_graph.c: Regenerated.
82947         * tests/unictype/test-ctype_lower.c: Regenerated.
82948         * tests/unictype/test-ctype_print.c: Regenerated.
82949         * tests/unictype/test-ctype_punct.c: Regenerated.
82950         * tests/unictype/test-ctype_upper.c: Regenerated.
82951         * tests/unictype/test-decdigit.h: Regenerated.
82952         * tests/unictype/test-digit.h: Regenerated.
82953         * tests/unictype/test-numeric.h: Regenerated.
82954         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82955         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82956         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82957         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82958         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82959         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82960         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82961         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82962         * tests/unictype/test-pr_combining.c: Regenerated.
82963         * tests/unictype/test-pr_dash.c: Regenerated.
82964         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82965         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82966         * tests/unictype/test-pr_deprecated.c: Regenerated.
82967         * tests/unictype/test-pr_diacritic.c: Regenerated.
82968         * tests/unictype/test-pr_extender.c: Regenerated.
82969         * tests/unictype/test-pr_format_control.c: Regenerated.
82970         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82971         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82972         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82973         * tests/unictype/test-pr_id_continue.c: Regenerated.
82974         * tests/unictype/test-pr_id_start.c: Regenerated.
82975         * tests/unictype/test-pr_ideographic.c: Regenerated.
82976         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82977         * tests/unictype/test-pr_lowercase.c: Regenerated.
82978         * tests/unictype/test-pr_math.c: Regenerated.
82979         * tests/unictype/test-pr_numeric.c: Regenerated.
82980         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82981         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82982         Regenerated.
82983         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82984         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82985         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82986         * tests/unictype/test-pr_other_math.c: Regenerated.
82987         * tests/unictype/test-pr_punctuation.c: Regenerated.
82988         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82989         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82990         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82991         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82992         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82993         * tests/unictype/test-pr_uppercase.c: Regenerated.
82994         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82995         * tests/unictype/test-pr_xid_start.c: Regenerated.
82996         * tests/unictype/test-pr_zero_width.c: Regenerated.
82998         Update to Unicode 5.1.0.
82999         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
83000         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
83001         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
83002         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
83003         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
83004         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
83005         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
83006         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
83007         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
83008         (nonspacing_table_ind): Update.
83009         * tests/uniwidth/test-uc_width2.sh: Update expected result.
83011         Update to Unicode 5.1.0.
83012         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
83013         code transform.
83014         * lib/uniname/uniname.c (unicode_character_name,
83015         unicode_name_character): Add the range 0x1Fxxx to the code transform.
83016         * lib/uniname/uninames.h: Regenerated.
83017         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
83019 2009-02-07  Bruno Haible  <bruno@clisp.org>
83021         Merge gen-ctype and gen-lbrk into a single program.
83022         * lib/gen-uni-tables.c: New file, incorporating
83023         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
83024         Add directory prefixes to the names of the generated files.
83025         * lib/unictype/gen-ctype.c: Remove file.
83026         * lib/unilbrk/gen-lbrk.c: Remove file.
83027         * modules/gen-uni-tables: New file.
83028         * modules/unictype/gen-ctype: Remove file.
83029         * modules/unilbrk/gen-lbrk: Remove file.
83031 2009-02-07  Bruno Haible  <bruno@clisp.org>
83033         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
83035         New module 'unistr/u32-strcoll'.
83036         * modules/unistr/u32-strcoll: New file.
83037         * lib/unistr/u32-strcoll.c: New file.
83039         New module 'unistr/u16-strcoll'.
83040         * modules/unistr/u16-strcoll: New file.
83041         * lib/unistr/u16-strcoll.c: New file.
83043         New module 'unistr/u8-strcoll'.
83044         * modules/unistr/u8-strcoll: New file.
83045         * lib/unistr/u8-strcoll.c: New file.
83046         * lib/unistr/u-strcoll.h: New file.
83048 2009-02-07  Bruno Haible  <bruno@clisp.org>
83050         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
83051         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83052         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83053         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
83054         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
83055         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
83057 2009-02-07  Bruno Haible  <bruno@clisp.org>
83059         Make 64-bit clean.
83060         * lib/unictype/gen-ctype.c (output_predicate, output_category,
83061         output_combclass, output_bidi_category, output_decimal_digit,
83062         output_digit, output_numeric, output_mirror, output_scripts,
83063         output_ident_category): Use proper width specifier in format strings.
83065 2009-02-07  Bruno Haible  <bruno@clisp.org>
83067         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
83068         failure behaviour.
83070 2009-02-07  Jim Meyering  <meyering@redhat.com>
83072         regex: avoid compilation failure with upcoming gcc-4.4
83073         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
83074         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
83075         "... error: integer overflow in preprocessor expression".
83077 2009-02-05  Ben Pfaff  <blp@gnu.org>
83079         Fix link errors on Windows when close module is used.
83080         * modules/close: Add $(LIB_CLOSE) to Link section.
83081         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
83082         $(LIB_CLOSE) on Windows.
83084 2009-02-05  Jim Meyering  <meyering@redhat.com>
83086         still avoid unused-parameter warnings, but do it cleanly
83087         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
83088         (get_fs_usage): Cast to void instead.
83089         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
83090         (dev_from_mount_options, read_file_system_list): Cast to void.
83091         Prompted by Bruno Haible.
83093 2009-02-04  Jim Meyering  <meyering@redhat.com>
83095         fsusage.c: correct copyright year
83096         * lib/fsusage.c: Reflect year in which the change is pushed into
83098         avoid misc. warnings
83099         * lib/fsusage.c (UNUSED_PARAM): Define.
83100         (get_fs_usage): Mark parameter "disk" as unused.
83101         * lib/getugroups.c (getgrent): Use "void" in prototype.
83102         * lib/mountlist.c: Mark unused parameters.
83103         (read_file_system_list): Declare a local with "const".
83104         * lib/nanosleep.c (getnow): Declare static.
83105         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
83107         dirfd: set errno upon failure
83108         * lib/dirfd.c: Include <errno.h>.
83109         Set errno to ENOTSUP when returning -1.
83110         * modules/dirfd (Depends-on): Add errno.
83111         Suggested by John Kodis <kodis@comcast.net>.
83113 2009-02-01  Bruno Haible  <bruno@clisp.org>
83115         Don't assume sizeof (long) >= sizeof (void *).
83116         * lib/memcmp.c: Include stdint.h.
83117         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
83118         srcp2 to 'const byte *'.
83119         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
83120         types to uintptr_t.
83121         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
83122         * modules/memcmp (Depends-on): Add stdint.
83123         Reported by Ozkan Sezer <sezeroz@gmail.com>.
83125 2009-01-30  Eric Blake  <ebb9@byu.net>
83127         fix more require-before-expand issues
83128         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
83129         expand, AC_PROG_AWK.
83130         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
83132 2009-01-28  Eric Blake  <ebb9@byu.net>
83134         version-etc: use consistent URL formatting
83135         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
83136         Improve formatting.  Use fputs for string without %.
83138 2009-01-28  Jim Meyering  <meyering@redhat.com>
83140         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
83141         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
83142         "underquoted definition of NAME" from autoconf-2.59.
83144 2009-01-28  Bruno Haible  <bruno@clisp.org>
83146         * doc/gnulib.texi: Add "Obsolete modules" to index.
83148 2009-01-28  Jim Meyering  <meyering@redhat.com>
83150         useless-if-before-free: recognize more variants
83151         * build-aux/useless-if-before-free: Also recognize e.g.,
83152         if (NULL != p) free (p);
83154 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
83156         test-getaddrinfo: skip (don't fail) this test when there's no network
83157         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
83158         on the presumption that it means you lack network access.
83160 2009-01-26  Jim Meyering  <meyering@redhat.com>
83162         fflush: avoid warnings on modern systems
83163         * lib/fflush.c (rpl_fflush): Move declarations of locals,
83164         pos and result, into scopes where they're used.
83166 2009-01-26  Eric Blake  <ebb9@byu.net>
83168         Silence warning reintroduced by recent extensions patch.
83169         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
83170         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
83171         autoconf.
83173         Backport improved autoconf semantics of AC_DEFUN_ONCE.
83174         * m4/00gnulib.m4: New file.
83175         * gnulib-tool (func_get_filelist): Always use it.
83176         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
83177         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
83179 2009-01-25  Bruno Haible  <bruno@clisp.org>
83181         Make test-quotearg work on MacOS X and AIX.
83182         * tests/test-quotearg.sh: New file.
83183         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
83184         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
83185         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
83186         include <libintl.h>.
83187         (fake_locale): Remove variable.
83188         (gettext, dgettext, dcgettext): Remove functions.
83189         (main): Instead of setting a fake locale, set a real locale. Call
83190         textdomain and bindtextdomain.
83191         * modules/quotearg-tests (Files): Add the new files.
83192         (Depends-on): Add gettext, setenv, unsetenv.
83193         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83194         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
83195         Augment TESTS_ENVIRONMENT.
83197 2009-01-25  Bruno Haible  <bruno@clisp.org>
83199         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
83200         fr_FR.ISO8859-1 locale on MacOS X.
83201         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
83202         ja_JP.eucJP locale on MacOS X.
83203         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
83204         zh_CN.GB18030 locale on MacOS X.
83206 2009-01-25  Bruno Haible  <bruno@clisp.org>
83208         Avoid link errors on MacOS X 10.3.
83209         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
83210         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83212 2009-01-25  Bruno Haible  <bruno@clisp.org>
83214         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83215         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
83216         * modules/pipe (Files): Remove m4/posix_spawn.m4.
83217         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83218         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
83219         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83220         posix_spawnattr_init, posix_spawnattr_setsigmask,
83221         posix_spawnattr_setflags, posix_spawnattr_destroy.
83223         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83224         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
83225         * modules/execute (Files): Remove m4/posix_spawn.m4.
83226         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83227         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83228         posix_spawnattr_init, posix_spawnattr_setsigmask,
83229         posix_spawnattr_setflags, posix_spawnattr_destroy.
83231 2009-01-25  Bruno Haible  <bruno@clisp.org>
83233         * lib/glthread/threadlib.c: Include <stdlib.h>.
83235 2009-01-25  Bruno Haible  <bruno@clisp.org>
83237         * lib/glthread/threadlib.c (dummy): New declaration.
83239 2009-01-25  Bruno Haible  <bruno@clisp.org>
83241         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
83242         multibyte characters also for the GB18030 encoding. Don't crash when
83243         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
83245 2009-01-25  Bruno Haible  <bruno@clisp.org>
83247         Avoid redefining 'struct random_data' on OSF/1 5.1.
83248         * lib/stdlib.in.h: Include <random.h> if it exists.
83249         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
83250         HAVE_RANDOM_H. Include <random.h> when testing whether
83251         'struct random_data' exists.
83252         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
83254 2009-01-25  Bruno Haible  <bruno@clisp.org>
83256         Don't install charset.alias on MacOS X >= 10.3.
83257         * lib/localcharset.c (DARWIN7): New macro.
83258         (get_charset_aliases): Hardcode the result for Darwin7.
83259         * modules/localcharset (install-exec-local): Don't install
83260         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
83262 2009-01-25  Bruno Haible  <bruno@clisp.org>
83264         Don't install charset.alias on mingw and Cygwin.
83265         * modules/localcharset (install-exec-local): Don't install
83266         charset.alias on mingw and Cygwin, if the file does not yet exist.
83267         The result for these platforms is hardcoded in localcharset.c.
83269 2009-01-25  Bruno Haible  <bruno@clisp.org>
83271         Make it possible again to use AC_GNU_SOURCE together with gnulib.
83272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
83273         before requiring AC_USE_SYSTEM_EXTENSIONS.
83275 2009-01-25  Jim Meyering  <meyering@redhat.com>
83277         c-strtod: avoid warnings
83278         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
83279         "assignment discards qualifiers from pointer target type" warnings.
83281 2009-01-24  Bruno Haible  <bruno@clisp.org>
83283         Add support for non-UTF-8 locales on MacOS X.
83284         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
83285         canonical encodings. For Darwin 7 and newer, don't map traditional
83286         encodings to UTF-8.
83287         Reported by Vincent Lefevre <vincent@vinc17.org>
83288         at <http://savannah.gnu.org/bugs/?25235>.
83290 2009-01-24  Bruno Haible  <bruno@clisp.org>
83292         * doc/gnulib.texi (Obsolete modules): New section.
83293         Reported by Mike Frysinger <vapier@gentoo.org>.
83295 2009-01-24  Bruno Haible  <bruno@clisp.org>
83297         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
83298         (%.dvi): New rule.
83300 2009-01-24  Bruno Haible  <bruno@clisp.org>
83302         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
83303         Reported by Eric Blake.
83305 2009-01-24  Bruno Haible  <bruno@clisp.org>
83307         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
83308         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
83309         Reported by Gary V. Vaughan <gary@gnu.org>.
83311 2009-01-24  Bruno Haible  <bruno@clisp.org>
83313         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
83315 2009-01-23  Bruno Haible  <bruno@clisp.org>
83317         Make c-strtod, c-strtold usable in libraries.
83318         * lib/c-strtod.c: Include string.h instead of xalloc.h.
83319         (C_STRTOD): Call strdup instead of xstrdup.
83320         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
83321         * modules/c-strtold (Depends-on): Likewise.
83322         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
83323         * NEWS: Mention the change.
83324         Reported by Michael Gold <mgold@ncf.ca>.
83326 2009-01-23  Jim Meyering  <meyering@redhat.com>
83328         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
83329         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
83330         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
83332 2009-01-23  Simon Josefsson  <simon@josefsson.org>
83334         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
83335         GNU CoreUtils.
83336         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
83337         * modules/version-etc (Description): Update.
83339 2009-01-22  Bruno Haible  <bruno@clisp.org>
83341         Cache the C locale object.
83342         * lib/c-strtod.c (c_locale_cache): New variable.
83343         (c_locale): New function.
83344         (C_STRTOD): Use it, and don't call freelocale.
83345         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
83346         Suggested by Paolo Bonzini.
83348 2009-01-21  Bruno Haible  <bruno@clisp.org>
83350         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
83351         conditions other than overflow.
83353 2009-01-21  Bruno Haible  <bruno@clisp.org>
83355         * lib/c-strtod.c: Include errno.h.
83356         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
83357         value from STRTOD_L and STRTOD.
83359 2009-01-21  Bruno Haible  <bruno@clisp.org>
83360         and Jim Meyering  <meyering@redhat.com>
83362         nanosleep: skip configure test (fail it) for apple universal builds
83363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
83364         universal builds, assume that nanosleep does not work.
83365         * modules/nanosleep (Depends-on): Add multiarch.
83367         mktime: skip configure test (fail it) for apple universal builds
83368         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
83369         universal builds, assume that mktime does not work.
83370         * modules/mktime (Depends-on): Add multiarch.
83372 2009-01-21  Eric Blake  <ebb9@byu.net>
83374         multiarch: avoid expand-before-require warning
83375         * modules/multiarch (configure.ac): Require, rather than expand,
83376         gl_MULTIARCH.
83377         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
83378         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
83379         enforce that all clients require it.  Partial reversion of
83380         2008-12-29 patch.
83382         error: avoid expand-before-require warning
83383         * modules/errno (configure.ac): Require, rather than expand,
83384         gl_HEADER_ERRNO_H.
83385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
83386         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
83387         enforce that all clients require it.
83389         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
83390         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
83391         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
83392         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
83394 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
83396         Revert:
83397         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83399         regex: do not depend on obsolete modules.
83400         * modules/regex: Remove memcmp and memmove.
83402 2009-01-20  Bruno Haible  <bruno@clisp.org>
83404         Make the 'link' module link on Windows NT 4.
83405         * lib/link.c (_WIN32_WINNT): Don't define.
83406         (CreateHardLinkFuncType): New type.
83407         (CreateHardLinkFunc, initialized): New variables.
83408         (initialize): New function.
83409         (link): Invoke CreateHardLink indirectly through the function pointer.
83411 2009-01-20  Bruno Haible  <bruno@clisp.org>
83413         Fix compilation failure on mingw.
83414         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
83416 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
83418         * doc/c-strtod.texi: Mention a couple of restrictions.
83420 2009-01-20  Jim Meyering  <meyering@redhat.com>
83422         gettimeofday: move more declarations out of functions
83423         * lib/gettimeofday.c: Move extern declarations of tzset and
83424         gmtime out of containing functions.  Prompted by Bruno Haible.
83426 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83428         regex: do not depend on obsolete modules.
83429         * modules/regex: Remove memcmp and memmove.
83431 2009-01-19  Bruno Haible  <bruno@clisp.org>
83433         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83434         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
83435         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83436         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
83437         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
83439 2009-01-19  Bruno Haible  <bruno@clisp.org>
83441         * tests/test-link.c: Include <errno.h>.
83442         (main): Exit with code 77 when a hard link cannot be created due to
83443         the file system.
83444         * tests/test-link.sh: Skip test when a hard link cannot be created due
83445         to the file system.
83446         Suggested by Eric Blake.
83448 2009-01-19  Martin Lambers  <marlam@marlam.de>
83450         * modules/link-tests: New file.
83451         * tests/test-link.sh: New file.
83452         * tests/test-link.c: New file.
83454 2009-01-19  Eric Blake  <ebb9@byu.net>
83456         doc: mention another function added in cygwin 1.7.0
83457         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
83458         Another new function in cygwin 1.7.
83460 2009-01-19  Bruno Haible  <bruno@clisp.org>
83462         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83463         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
83464         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
83465         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83466         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
83467         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
83468         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
83469         * m4/md4.m4 (gl_MD4): Likewise.
83470         * m4/md5.m4 (gl_MD5): Likewise.
83471         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
83472         * m4/sha1.m4 (gl_SHA1): Likewise.
83473         * m4/sha256.m4 (gl_SHA256): Likewise.
83474         * m4/sha512.m4 (gl_SHA512): Likewise.
83476 2009-01-19  Bruno Haible  <bruno@clisp.org>
83478         * modules/uniname/uniname-tests (Depends-on): Add progname.
83479         * tests/uniname/test-uninames.c: Include progname.h.
83480         (main): Call set_program_name.
83482         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
83483         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
83484         (main): Call set_program_name.
83486         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
83487         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
83488         (main): Call set_program_name.
83490         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
83491         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
83492         (main): Call set_program_name.
83494         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
83495         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
83496         (main): Call set_program_name.
83498         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
83499         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
83500         (main): Call set_program_name.
83502         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
83503         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
83504         (main): Call set_program_name.
83506         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
83507         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
83508         (main): Call set_program_name.
83510         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
83511         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
83512         (main): Call set_program_name.
83514 2009-01-19  Eric Blake  <ebb9@byu.net>
83516         test-unistd: test previous patch
83517         * tests/test-unistd.c: Test *_FILENO macros.
83519         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
83520         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83521         Guarantee a definition.
83522         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
83523         * modules/unistd-safer (Depends-on): Add dependency on unistd.
83524         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
83525         * lib/dup-safer.c (STDERR_FILENO): Likewise.
83526         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83527         Likewise.
83528         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
83529         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
83530         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83531         Likewise.
83532         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
83533         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
83534         (STDERR_FILENO): Likewise.
83535         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
83536         (STDERR_FILENO): Likewise.
83537         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
83538         (STDERR_FILENO): Likewise.
83539         Reported by Elbert Pol.
83541 2009-01-19  Eric Blake  <ebb9@byu.net>
83543         doc: mention more functions added in cygwin 1.7.0
83544         * doc/posix-functions/abort.texi (abort): Update wording related
83545         to cygwin.
83546         * doc/posix-functions/daylight.texi (daylight): Likewise.
83547         * doc/posix-functions/optarg.texi (optarg): Likewise.
83548         * doc/posix-functions/optarg.texi (opterr): Likewise.
83549         * doc/posix-functions/optarg.texi (optind): Likewise.
83550         * doc/posix-functions/optarg.texi (optopt): Likewise.
83551         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
83552         worked in 1.5.x, and was withdrawn in 1.7.
83553         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
83554         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
83555         cygwin versions.
83556         * doc/posix-functions/perror.texi (perror): Likewise.
83557         * doc/posix-functions/printf.texi (printf): Likewise.
83558         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
83559         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
83560         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
83561         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
83562         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
83563         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
83564         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83565         Likewise.
83566         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83567         Likewise.
83568         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
83569         this function.
83570         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
83571         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
83572         Likewise.
83573         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
83574         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
83575         * doc/posix-functions/confstr.texi (confstr): Likewise.
83576         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
83577         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
83578         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
83579         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
83580         * doc/posix-functions/fputws.texi (fputws): Likewise.
83581         * doc/posix-functions/fwide.texi (fwide): Likewise.
83582         * doc/posix-functions/getwc.texi (getwc): Likewise.
83583         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
83584         * doc/posix-functions/putwc.texi (putwc): Likewise.
83585         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
83586         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
83587         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
83588         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
83589         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
83590         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
83591         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
83592         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
83593         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
83594         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
83595         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
83597 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83599         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
83600         * lib/ioctl.c: Include <sys/ioctl.h>.
83602 2009-01-19  Simon Josefsson  <simon@josefsson.org>
83604         * modules/getdate-tests (Depends-on): Add progname.
83605         * tests/test-getdate.c: Use progname module, to avoid link errors
83606         on non-glibc systems.
83608 2009-01-18  Simon Josefsson  <simon@josefsson.org>
83610         * modules/filenamecat-tests (Depends-on): Add progname.
83611         * modules/fstrcmp-tests (Depends-on): Likewise.
83613         * tests/test-filenamecat.c: Use progname module, to avoid link
83614         errors on non-glibc systems.
83615         * tests/test-fstrcmp.c: Likewise.
83617 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83619         gettimeofday: avoid warning: nested extern declaration of 'localtime'
83620         * lib/gettimeofday.c: Move extern declaration out of function.
83622 2009-01-18  Bruno Haible  <bruno@clisp.org>
83624         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
83625         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
83626         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
83628 2009-01-18  Bruno Haible  <bruno@clisp.org>
83630         * lib/strftime.c (MEMPCPY): Remove unused macro.
83631         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
83633 2009-01-18  Martin Lambers  <marlam@marlam.de>
83635         New module 'link'.
83636         * lib/unistd.in.h (link): New declaration.
83637         * lib/link.c: New file.
83638         * m4/link.m4: New file.
83639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
83640         HAVE_LINK.
83641         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
83642         * modules/link: New file.
83643         * doc/posix-functions/link.texi: Mention the new module.
83645 2009-01-18  Bruno Haible  <bruno@clisp.org>
83647         * tests/test-avltree_list.c (main): Call set_program_name.
83648         * tests/test-avltree_oset.c (main): Likewise.
83649         * tests/test-obstack-printf.c: Include progname.h.
83650         (main): Call set_program_name.
83651         * tests/test-quotearg.c: Include progname.h.
83652         (main): Call set_program_name.
83653         * tests/test-xmemdup0.c: Include progname.h.
83654         (main): Call set_program_name.
83656 2009-01-18  Bruno Haible  <bruno@clisp.org>
83658         New module 'alphasort'.
83659         * lib/dirent.in.h (alphasort): New declaration.
83660         * lib/alphasort.c: New file, from glibc with modifications.
83661         * m4/alphasort.m4: New file.
83662         * modules/alphasort: New file.
83663         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
83664         HAVE_ALPHASORT.
83665         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
83666         HAVE_ALPHASORT.
83667         * doc/posix-functions/alphasort.texi: Mention the new module and the
83668         portability problems.
83670 2009-01-18  Bruno Haible  <bruno@clisp.org>
83672         New module 'scandir'.
83673         * lib/dirent.in.h (scandir): New declaration.
83674         * lib/scandir.c: New file, from glibc with modifications.
83675         * m4/scandir.m4: New file.
83676         * modules/scandir: New file.
83677         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83678         HAVE_SCANDIR.
83679         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83680         HAVE_SCANDIR.
83681         * doc/posix-functions/scandir.texi: Mention the new module and the
83682         portability problems.
83684 2009-01-17  Bruno Haible  <bruno@clisp.org>
83686         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83687         Update documentation.
83688         (func_remove_suffix): Escape all dots in the suffix. Update
83689         documentation.
83690         (func_filter_filelist): Update documentation.
83691         Reported by Ralf Wildenhues.
83693 2009-01-17  Bruno Haible  <bruno@clisp.org>
83695         * modules/dprintf-posix-tests: New file.
83696         * tests/test-dprintf-posix.sh: New file.
83697         * tests/test-dprintf-posix.c: New file.
83699         New modules 'dprintf', 'dprintf-posix'.
83700         * lib/stdio.in.h (dprintf): New declaration.
83701         * lib/dprintf.c: New file.
83702         * m4/dprintf.m4: New file.
83703         * m4/dprintf-posix.m4: New file.
83704         * modules/dprintf: New file.
83705         * modules/dprintf-posix: New file.
83706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83707         HAVE_DPRINTF, REPLACE_DPRINTF.
83708         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
83709         HAVE_DPRINTF, REPLACE_DPRINTF.
83710         * doc/posix-functions/dprintf.texi: Mention the new modules.
83712 2009-01-17  Bruno Haible  <bruno@clisp.org>
83714         * modules/vdprintf-posix-tests: New file.
83715         * tests/test-vdprintf-posix.sh: New file.
83716         * tests/test-vdprintf-posix.c: New file.
83718         New modules 'vdprintf', 'vdprintf-posix'.
83719         * lib/stdio.in.h (vdprintf): New declaration.
83720         * lib/vdprintf.c: New file.
83721         * m4/vdprintf.m4: New file.
83722         * m4/vdprintf-posix.m4: New file.
83723         * modules/vdprintf: New file.
83724         * modules/vdprintf-posix: New file.
83725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
83726         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83727         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
83728         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83729         * doc/posix-functions/vdprintf.texi: Mention the new modules.
83731 2009-01-17  Bruno Haible  <bruno@clisp.org>
83733         Fix replacement of fopen on mingw.
83734         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
83735         mingw.
83737 2009-01-17  Bruno Haible  <bruno@clisp.org>
83739         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
83740         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
83742 2009-01-17  Bruno Haible  <bruno@clisp.org>
83744         Avoid test-fflush2.sh failure on mingw.
83745         * tests/test-fflush2.c: Include binary-io.h.
83746         (main): Put standard input into binary mode.
83747         * modules/fflush-tests (Depends-on): Add binary-io.
83749 2009-01-17  Bruno Haible  <bruno@clisp.org>
83751         * lib/wchar.in.h: In another particular situation, include only the
83752         system's <wchar.h> file.
83753         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
83754         Reported by Albert Chin-A-Young <china@thewrittenword.com>
83755         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
83757 2009-01-17  Bruno Haible  <bruno@clisp.org>
83759         Support for stripping executables in --enable-relocatable.
83760         * build-aux/install-reloc: Expect one more argument, or an environment
83761         variable RELOC_STRIP_PROG. If set, strip the destination program and
83762         its wrapper.
83763         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
83764         RELOC_STRIP_PROG.
83765         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
83766         to set RELOCATABLE_STRIP.
83767         * NEWS: Mention the new Makefile requirement.
83769 2009-01-17  Bruno Haible  <bruno@clisp.org>
83771         * build-aux/install-reloc: Remove debugging information left over by
83772         C compiler on MacOS X.
83774 2009-01-17  Bruno Haible  <bruno@clisp.org>
83776         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
83777         * lib/progreloc.c (find_executable): Fix type of pointer passed to
83778         _NSGetExecutablePath.
83780 2009-01-16  Jim Meyering  <meyering@redhat.com>
83782         strerror: avoid warnings about discarding "const"
83783         * lib/strerror.c (rpl_strerror): Instead of returning a const
83784         string from each and every "case", use a variable, and add a single
83785         cast after the switch.
83787 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
83789         * lib/arpa_inet.in.h: Add extern "C" block for C++.
83791 2009-01-16  Bruno Haible  <bruno@clisp.org>
83793         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
83794         array initializer syntax that also works in C++ mode.
83795         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83797 2009-01-16  Jim Meyering  <meyering@redhat.com>
83799         poll: suppress a warning
83800         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
83801         to ignore "...unsigned expression < 0 is always false" warnings.
83803 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
83805         poll: remove declarations of unused variables
83806         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83807         sockbuf and optlen.
83809 2009-01-15  Bruno Haible  <bruno@clisp.org>
83811         Make fflush-after-ungetc POSIX compliant on BSD systems.
83812         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83813         (clear_ungetc_buffer): Implement also for other systems.
83814         (rpl_fflush): On glibc systems, invoke
83815         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83816         clear_ungetc_buffer after fetching the stream's position, not before.
83818 2009-01-15  Bruno Haible  <bruno@clisp.org>
83820         Make fflush-after-ungetc POSIX compliant on glibc systems.
83821         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83822         after ungetc.
83823         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83824         (rpl_fflush): On glibc systems, simply call the system's fflush
83825         function after clearing the ungetc buffer.
83826         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83827         Instead, lseek only to the end of file, then use the system's fseeko
83828         for the rest. On glibc systems, reset the EOF indicator bit.
83830 2009-01-15  Jim Meyering  <meyering@redhat.com>
83832         openmp.m4: revert quote-adding change, for portability to older autoconf
83833         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83834         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83835         Simon Josefsson noticed the problem when using autoconf-2.61.
83837 2009-01-15  Bruno Haible  <bruno@clisp.org>
83839         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83840         * tests/test-fflush2.c (ASSERT): Always fail.
83841         (main): Add two tests for fflush() after ungetc(), taking into account
83842         the Austin Group's clarification.
83843         Suggested by Eric Blake.
83845 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83847         mktime.m4: remove K&R-style function prototypes
83848         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83849         for the Sun C++ compiler.
83851 2009-01-14  Bruno Haible  <bruno@clisp.org>
83853         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83854         while including <wchar.h>.
83855         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83856         the system's <wchar.h> file.
83857         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83859 2009-01-14  Bruno Haible  <bruno@clisp.org>
83861         * m4/csharp.m4: Don't mention gettext on the serial number line.
83862         * m4/csharpexec.m4: Likewise.
83863         * m4/eaccess.m4: Likewise.
83864         * m4/javaexec.m4: Likewise.
83865         * m4/sig_atomic_t.m4: Likewise.
83866         * m4/tmpdir.m4: Likewise.
83867         * m4/intldir.m4: Bump gettext version.
83868         * m4/lib-ld.m4: Likewise.
83870 2009-01-14  Bruno Haible  <bruno@clisp.org>
83872         * lib/progname.c (set_program_name): Add more comments.
83873         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83875 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83877         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83878         were sys/stat.h does not define it.
83880 2009-01-14  Jim Meyering  <meyering@redhat.com>
83882         many *.m4 files: improve m4 quoting
83883         99% of this change was performed by running the following commands:
83884         git ls-files | grep '\.m4$' | xargs perl -pi \
83885           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83886           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83887           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83888           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83889         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83890         The remainder were to add Copyright dates, increment serial numbers,
83891         undo some changes in comments, exclude m4/intl.m4, and add quotes
83892         around the "1" in ",1" where the unusual spacing prohibited the
83893         above regexps from doing the job.  For more details, see
83894         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83895         * m4/acl.m4: Modified.
83896         * m4/afs.m4: Likewise.
83897         * m4/alloca.m4: Likewise.
83898         * m4/argp.m4: Likewise.
83899         * m4/argz.m4: Likewise.
83900         * m4/atexit.m4: Likewise.
83901         * m4/bison-i18n.m4: Likewise.
83902         * m4/bison.m4: Likewise.
83903         * m4/byteswap.m4: Likewise.
83904         * m4/c-stack.m4: Likewise.
83905         * m4/c-strtod.m4: Likewise.
83906         * m4/calloc.m4: Likewise.
83907         * m4/canonicalize-lgpl.m4: Likewise.
83908         * m4/chown.m4: Likewise.
83909         * m4/clock_time.m4: Likewise.
83910         * m4/codeset.m4: Likewise.
83911         * m4/copy-file.m4: Likewise.
83912         * m4/csharp.m4: Likewise.
83913         * m4/csharpcomp.m4: Likewise.
83914         * m4/csharpexec.m4: Likewise.
83915         * m4/d-ino.m4: Likewise.
83916         * m4/d-type.m4: Likewise.
83917         * m4/dirfd.m4: Likewise.
83918         * m4/double-slash-root.m4: Likewise.
83919         * m4/eaccess.m4: Likewise.
83920         * m4/eealloc.m4: Likewise.
83921         * m4/environ.m4: Likewise.
83922         * m4/errno_h.m4: Likewise.
83923         * m4/euidaccess.m4: Likewise.
83924         * m4/execute.m4: Likewise.
83925         * m4/fatal-signal.m4: Likewise.
83926         * m4/fchdir.m4: Likewise.
83927         * m4/fcntl_h.m4: Likewise.
83928         * m4/fileblocks.m4: Likewise.
83929         * m4/filenamecat.m4: Likewise.
83930         * m4/findprog.m4: Likewise.
83931         * m4/flexmember.m4: Likewise.
83932         * m4/fnmatch.m4: Likewise.
83933         * m4/fopen.m4: Likewise.
83934         * m4/fpending.m4: Likewise.
83935         * m4/fprintf-posix.m4: Likewise.
83936         * m4/free.m4: Likewise.
83937         * m4/frexp.m4: Likewise.
83938         * m4/frexpl.m4: Likewise.
83939         * m4/fsusage.m4: Likewise.
83940         * m4/ftruncate.m4: Likewise.
83941         * m4/gc-camellia.m4: Likewise.
83942         * m4/gc-random.m4: Likewise.
83943         * m4/gc.m4: Likewise.
83944         * m4/getaddrinfo.m4: Likewise.
83945         * m4/getcwd-abort-bug.m4: Likewise.
83946         * m4/getcwd-path-max.m4: Likewise.
83947         * m4/getdate.m4: Likewise.
83948         * m4/getdomainname.m4: Likewise.
83949         * m4/getgroups.m4: Likewise.
83950         * m4/gethostname.m4: Likewise.
83951         * m4/gethrxtime.m4: Likewise.
83952         * m4/getline.m4: Likewise.
83953         * m4/getloadavg.m4: Likewise.
83954         * m4/getndelim2.m4: Likewise.
83955         * m4/getpass.m4: Likewise.
83956         * m4/gettext.m4: Likewise.
83957         * m4/gettime.m4: Likewise.
83958         * m4/gettimeofday.m4: Likewise.
83959         * m4/gnulib-common.m4: Likewise.
83960         * m4/group-member.m4: Likewise.
83961         * m4/host-os.m4: Likewise.
83962         * m4/iconv.m4: Likewise.
83963         * m4/iconv_open.m4: Likewise.
83964         * m4/inet_ntop.m4: Likewise.
83965         * m4/inet_pton.m4: Likewise.
83966         * m4/inline.m4: Likewise.
83967         * m4/intldir.m4: Likewise.
83968         * m4/intlmacosx.m4: Likewise.
83969         * m4/intmax.m4: Likewise.
83970         * m4/intmax_t.m4: Likewise.
83971         * m4/inttypes.m4: Likewise.
83972         * m4/inttypes_h.m4: Likewise.
83973         * m4/inttypes-pri.m4: Likewise.
83974         * m4/isapipe.m4: Likewise.
83975         * m4/isnand.m4: Likewise.
83976         * m4/isnanf.m4: Likewise.
83977         * m4/isnanl.m4: Likewise.
83978         * m4/javacomp.m4: Likewise.
83979         * m4/javaexec.m4: Likewise.
83980         * m4/jm-winsz1.m4: Likewise.
83981         * m4/jm-winsz2.m4: Likewise.
83982         * m4/lchown.m4: Likewise.
83983         * m4/lcmessage.m4: Likewise.
83984         * m4/ldexpl.m4: Likewise.
83985         * m4/lib-ld.m4: Likewise.
83986         * m4/lib-link.m4: Likewise.
83987         * m4/libsigsegv.m4: Likewise.
83988         * m4/link-follow.m4: Likewise.
83989         * m4/localcharset.m4: Likewise.
83990         * m4/locale-fr.m4: Likewise.
83991         * m4/locale-ja.m4: Likewise.
83992         * m4/locale-tr.m4: Likewise.
83993         * m4/locale-zh.m4: Likewise.
83994         * m4/lock.m4: Likewise.
83995         * m4/longlong.m4: Likewise.
83996         * m4/ls-mntd-fs.m4: Likewise.
83997         * m4/lstat.m4: Likewise.
83998         * m4/malloc.m4: Likewise.
83999         * m4/mathl.m4: Likewise.
84000         * m4/mbrtowc.m4: Likewise.
84001         * m4/mbstate_t.m4: Likewise.
84002         * m4/mbswidth.m4: Likewise.
84003         * m4/memchr.m4: Likewise.
84004         * m4/memcmp.m4: Likewise.
84005         * m4/memcpy.m4: Likewise.
84006         * m4/memmem.m4: Likewise.
84007         * m4/memmove.m4: Likewise.
84008         * m4/mempcpy.m4: Likewise.
84009         * m4/memrchr.m4: Likewise.
84010         * m4/memset.m4: Likewise.
84011         * m4/minmax.m4: Likewise.
84012         * m4/mkdir-slash.m4: Likewise.
84013         * m4/mkdtemp.m4: Likewise.
84014         * m4/mktime.m4: Likewise.
84015         * m4/mmap-anon.m4: Likewise.
84016         * m4/mountlist.m4: Likewise.
84017         * m4/nanosleep.m4: Likewise.
84018         * m4/nls.m4: Likewise.
84019         * m4/nocrash.m4: Likewise.
84020         * m4/open.m4: Likewise.
84021         * m4/openat.m4: Likewise.
84022         * m4/openmp.m4: Likewise.
84023         * m4/pathmax.m4: Likewise.
84024         * m4/perl.m4: Likewise.
84025         * m4/physmem.m4: Likewise.
84026         * m4/pipe.m4: Likewise.
84027         * m4/po.m4: Likewise.
84028         * m4/poll.m4: Likewise.
84029         * m4/posixtm.m4: Likewise.
84030         * m4/posixver.m4: Likewise.
84031         * m4/printf-frexp.m4: Likewise.
84032         * m4/printf-frexpl.m4: Likewise.
84033         * m4/printf-posix.m4: Likewise.
84034         * m4/printf-posix-rpl.m4: Likewise.
84035         * m4/printf.m4: Likewise.
84036         * m4/progtest.m4: Likewise.
84037         * m4/putenv.m4: Likewise.
84038         * m4/readline.m4: Likewise.
84039         * m4/readlink.m4: Likewise.
84040         * m4/readutmp.m4: Likewise.
84041         * m4/realloc.m4: Likewise.
84042         * m4/regex.m4: Likewise.
84043         * m4/relocatable.m4: Likewise.
84044         * m4/relocatable-lib.m4: Likewise.
84045         * m4/rename-dest-slash.m4: Likewise.
84046         * m4/rename.m4: Likewise.
84047         * m4/rmdir-errno.m4: Likewise.
84048         * m4/rmdir.m4: Likewise.
84049         * m4/roundf.m4: Likewise.
84050         * m4/roundl.m4: Likewise.
84051         * m4/rpmatch.m4: Likewise.
84052         * m4/save-cwd.m4: Likewise.
84053         * m4/selinux-selinux-h.m4: Likewise.
84054         * m4/setenv.m4: Likewise.
84055         * m4/settime.m4: Likewise.
84056         * m4/sig2str.m4: Likewise.
84057         * m4/sig_atomic_t.m4: Likewise.
84058         * m4/signalblocking.m4: Likewise.
84059         * m4/signbit.m4: Likewise.
84060         * m4/sigpipe.m4: Likewise.
84061         * m4/sockets.m4: Likewise.
84062         * m4/sockpfaf.m4: Likewise.
84063         * m4/st_dm_mode.m4: Likewise.
84064         * m4/stat-time.m4: Likewise.
84065         * m4/stdbool.m4: Likewise.
84066         * m4/stdint.m4: Likewise.
84067         * m4/stdint_h.m4: Likewise.
84068         * m4/stpcpy.m4: Likewise.
84069         * m4/stpncpy.m4: Likewise.
84070         * m4/strcase.m4: Likewise.
84071         * m4/strchrnul.m4: Likewise.
84072         * m4/strcspn.m4: Likewise.
84073         * m4/strdup.m4: Likewise.
84074         * m4/strftime.m4: Likewise.
84075         * m4/strndup.m4: Likewise.
84076         * m4/strnlen.m4: Likewise.
84077         * m4/strpbrk.m4: Likewise.
84078         * m4/strptime.m4: Likewise.
84079         * m4/strsep.m4: Likewise.
84080         * m4/strtod.m4: Likewise.
84081         * m4/strtoimax.m4: Likewise.
84082         * m4/strtok_r.m4: Likewise.
84083         * m4/strtol.m4: Likewise.
84084         * m4/strtoll.m4: Likewise.
84085         * m4/strtoul.m4: Likewise.
84086         * m4/strtoull.m4: Likewise.
84087         * m4/strtoumax.m4: Likewise.
84088         * m4/strverscmp.m4: Likewise.
84089         * m4/threadlib.m4: Likewise.
84090         * m4/timegm.m4: Likewise.
84091         * m4/tm_gmtoff.m4: Likewise.
84092         * m4/tmpdir.m4: Likewise.
84093         * m4/tmpfile.m4: Likewise.
84094         * m4/tzset.m4: Likewise.
84095         * m4/uintmax_t.m4: Likewise.
84096         * m4/unlinkdir.m4: Likewise.
84097         * m4/unlocked-io.m4: Likewise.
84098         * m4/uptime.m4: Likewise.
84099         * m4/userspec.m4: Likewise.
84100         * m4/utimbuf.m4: Likewise.
84101         * m4/utime.m4: Likewise.
84102         * m4/utimes-null.m4: Likewise.
84103         * m4/utimes.m4: Likewise.
84104         * m4/vararrays.m4: Likewise.
84105         * m4/vasnprintf.m4: Likewise.
84106         * m4/vfprintf-posix.m4: Likewise.
84107         * m4/vprintf-posix.m4: Likewise.
84108         * m4/wait-process.m4: Likewise.
84109         * m4/wchar_t.m4: Likewise.
84110         * m4/wint_t.m4: Likewise.
84111         * m4/write-any-file.m4: Likewise.
84112         * m4/yield.m4: Likewise.
84114 2009-01-13  Bruno Haible  <bruno@clisp.org>
84116         Avoid test-copy-file.sh failures when ACL support insufficient.
84117         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
84118         TESTS_ENVIRONMENT.
84119         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
84120         Reported by Jim Meyering.
84122 2009-01-13  Bruno Haible  <bruno@clisp.org>
84124         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
84125         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
84126         * modules/unistdio/u8-printf-parse (Files): Likewise.
84127         * modules/unistdio/u32-printf-parse (Files): Likewise.
84128         * modules/unistdio/ulc-printf-parse (Files): Likewise.
84130 2009-01-13  Simon Josefsson  <simon@josefsson.org>
84132         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
84133         and m4/inttypes_h.m4 too.
84135 2009-01-12  Eric Blake  <ebb9@byu.net>
84137         tests: IRIX 6.2 cc can't compile -0.0 into .data
84138         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
84139         rather than at compile-time.
84140         * tests/test-floorl.c (minus_zero): Likewise.
84141         * tests/test-frexpl.c (minus_zero): Likewise.
84142         * tests/test-isnan.c (minus_zerol): Likewise.
84143         * tests/test-isnanl.h (minus_zero): Likewise.
84144         * tests/test-ldexpl.c (minus_zero): Likewise.
84145         * tests/test-roundl.c (minus_zero): Likewise.
84146         * tests/test-signbit.c (minus_zerol): Likewise.
84147         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84148         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84149         * tests/test-truncl.c (minus_zero): Likewise.
84150         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84151         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84152         Reported by Tom G. Christensen and Nelson H. F. Beebe.
84154 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84156         regex: fix glibc bug 9697
84157         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
84158         handling.
84160 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84162         regex: fix glibc bug 697
84163         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
84164         being NULL also if there are no backreferences.
84166 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84168         regex: merge glibc changes
84169         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
84170         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
84171         re_string_skip_chars, re_string_reconstruct): Likewise.
84172         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
84174 2009-01-07  Jim Meyering  <meyering@redhat.com>
84176         poll: filter through cppi
84177         * lib/poll.c: Indent cpp directives to reflect nesting.
84179 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
84181         poll: don't return uninitialized
84182         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
84184 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
84186         avoid compile failure on AIX 6.1
84187         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
84188         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
84190 2009-01-04  Jim Meyering  <meyering@redhat.com>
84192         remove duplicate inclusion of <stdio.h>
84193         * tests/test-fprintf-posix.c: Likewise.
84194         * tests/test-printf-posix.c: Likewise.
84195         * tests/test-snprintf-posix.c: Likewise.
84196         * tests/test-sprintf-posix.c: Likewise.
84197         * tests/test-vasprintf-posix.c: Likewise.
84198         * tests/test-vfprintf-posix.c: Likewise.
84199         * tests/test-vprintf-posix.c: Likewise.
84200         * tests/test-vsnprintf-posix.c: Likewise.
84201         * tests/test-vsprintf-posix.c: Likewise.
84203 2009-01-03  Jim Meyering  <meyering@redhat.com>
84205         gnulib-tool: fix sed-based filtering
84206         * gnulib-tool (func_filter_filelist): Remove extra backslash
84207         in sed_fff_filter definition.
84209 2009-01-02  Jim Meyering  <meyering@redhat.com>
84211         strftime: avoid compilation failure on Solaris 2.6
84212         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
84213         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
84214         Don't #define mbrlen or mbsinit, since now they're guaranteed to
84215         be available.  Reported by Tom G. Christensen.  Details in
84216         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
84218 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84219             Bruno Haible  <bruno@clisp.org>
84221         Speed up gnulib-tool by doing more string processing through shell
84222         built-ins.
84223         * gnulib-tool (fast_func_append): New variable.
84224         (func_remove_prefix, func_remove_suffix): New functions.
84225         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
84226         (func_filter_filelist): New function.
84227         (func_get_dependencies): Use func_remove_suffix instead of sed.
84228         (func_get_automake_snippet): Use func_filter_filelist instead of a
84229         subshell and sed invocation.
84231 2009-01-01  Bruno Haible  <bruno@clisp.org>
84233         Fix a security bug.
84234         * gnulib-tool (func_import, import, update): Don't allow the characters
84235         '"', '$', '`', '\' in macro arguments that become part of commands that
84236         are evaluated.
84238 2009-01-01  Bruno Haible  <bruno@clisp.org>
84240         * gnulib-tool (func_reset_sigpipe): Add more comments.
84242 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84244         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
84245         func_emit_tests_Makefile_am, func_import): Abort loops early if we
84246         already know the answer.
84248 2009-01-01  Jim Meyering  <meyering@redhat.com>
84250         * lib/version-etc.c (version_etc_va): Update copyright year.
84252 2008-12-30  Bruno Haible  <bruno@clisp.org>
84254         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
84255         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
84256         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
84258 2008-12-29  Eric Blake  <ebb9@byu.net>
84260         multiarch: avoid autoconf AC_REQUIRE bug
84261         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
84262         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
84263         2.63 and older.
84264         Reported by Bruno Haible, and analyzed in
84265         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
84267 2008-12-29  Bruno Haible  <bruno@clisp.org>
84269         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
84270         files in subdirectories correctly.
84271         Reported by Ralf Wildenhues.
84273 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84275         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
84276         rather than 'join FILE -', for Solaris join.
84278 2008-12-29  Bruno Haible  <bruno@clisp.org>
84280         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
84281         quoting.
84282         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84283         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
84284         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
84285         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
84286         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
84287         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
84288         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
84289         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
84290         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
84291         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
84292         * m4/nls.m4 (AM_NLS): Likewise.
84293         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
84294         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
84295         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84296         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
84297         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
84298         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
84299         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
84300         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
84301         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
84302         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84303         * m4/xsize.m4 (gl_XSIZE): Likewise.
84304         Suggested by Jim Meyering.
84306 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84308         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
84309         * lib/parse-duration.c: use a switch instead of cascading if's.
84311 2008-12-29  Eric Blake  <ebb9@byu.net>
84313         wchar.h: supply WEOF on Irix 5.3
84314         * lib/wchar.in.h (wint_t): Also supply WEOF.
84315         * lib/wctype.in.h (wint_t): Likewise.
84316         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
84317         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
84318         Reported by Tom G. Christensen.
84320 2008-12-26  Bruno Haible  <bruno@clisp.org>
84322         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
84323         i486, i586, i686.
84325 2008-12-26  Bruno Haible  <bruno@clisp.org>
84327         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
84329 2008-12-26  Bruno Haible  <bruno@clisp.org>
84331         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
84332         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
84333         not __STDC_CONSTANT_MACROS.
84334         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84336 2008-12-25  Bruno Haible  <bruno@clisp.org>
84338         Add support for universal builds to vasnprintf.
84339         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
84340         universal builds, guess no.
84341         * modules/vasnprintf-posix (Depends-on): Add multiarch.
84342         * modules/vasprintf-posix (Depends-on): Likewise.
84343         * modules/fprintf-posix (Depends-on): Likewise.
84344         * modules/vfprintf-posix (Depends-on): Likewise.
84345         * modules/snprintf-posix (Depends-on): Likewise.
84346         * modules/vsnprintf-posix (Depends-on): Likewise.
84347         * modules/sprintf-posix (Depends-on): Likewise.
84348         * modules/vsprintf-posix (Depends-on): Likewise.
84349         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
84350         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84351         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84355         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84357         Add support for universal builds to <inttypes.h>.
84358         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
84359         _SCNu64_PREFIX): In Apple
84360         universal builds, define directly, using _LP64.
84361         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
84362         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
84363         * modules/inttypes (Depends-on): Add multiarch.
84364         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84366         Add support for universal builds to <stdint.h>.
84367         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
84368         universal builds, define directly, using _LP64.
84369         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
84370         Apple universal builds, don't test for the size and suffix of ptrdiff_t
84371         and size_t.
84372         * modules/stdint (Depends-on): Add multiarch.
84373         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84375         New module 'multiarch'.
84376         * modules/multiarch: New file.
84377         * m4/multiarch.m4: New file.
84379 2008-12-25  Bruno Haible  <bruno@clisp.org>
84381         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
84383 2008-12-25  Bruno Haible  <bruno@clisp.org>
84385         * modules/btowc (License): Relicense under LGPLv2+.
84386         * modules/mbsinit (License): Likewise.
84387         * modules/mbrtowc (License): Likewise.
84388         * modules/wcrtomb (License): Likewise.
84389         * modules/streq (License): Likewise.
84390         Reported by David Lutterkort <lutter@redhat.com>.
84392 2008-12-23  Bruno Haible  <bruno@clisp.org>
84394         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
84396 2008-12-23  Bruno Haible  <bruno@clisp.org>
84398         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
84399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
84400         GETADDRINFO_LIB, not in LIBS.
84401         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
84402         * modules/canon-host (Link): Likewise.
84403         * NEWS: Mention the change.
84404         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
84405         GETADDRINFO_LIB.
84407 2008-12-22  Bruno Haible  <bruno@clisp.org>
84409         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
84410         * doc/posix-functions/iswalpha_l.texi: Likewise.
84411         * doc/posix-functions/iswblank_l.texi: Likewise.
84412         * doc/posix-functions/iswcntrl_l.texi: Likewise.
84413         * doc/posix-functions/iswctype_l.texi: Likewise.
84414         * doc/posix-functions/iswdigit_l.texi: Likewise.
84415         * doc/posix-functions/iswgraph_l.texi: Likewise.
84416         * doc/posix-functions/iswlower_l.texi: Likewise.
84417         * doc/posix-functions/iswprint_l.texi: Likewise.
84418         * doc/posix-functions/iswpunct_l.texi: Likewise.
84419         * doc/posix-functions/iswspace_l.texi: Likewise.
84420         * doc/posix-functions/iswupper_l.texi: Likewise.
84421         * doc/posix-functions/iswxdigit_l.texi: Likewise.
84422         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
84423         * doc/posix-functions/open_wmemstream.texi: Likewise.
84424         * doc/posix-functions/swscanf.texi: Likewise.
84425         * doc/posix-functions/towctrans_l.texi: Likewise.
84426         * doc/posix-functions/towlower.texi: Likewise.
84427         * doc/posix-functions/towlower_l.texi: Likewise.
84428         * doc/posix-functions/towupper.texi: Likewise.
84429         * doc/posix-functions/towupper_l.texi: Likewise.
84430         * doc/posix-functions/vfwprintf.texi: Likewise.
84431         * doc/posix-functions/vfwscanf.texi: Likewise.
84432         * doc/posix-functions/vswscanf.texi: Likewise.
84433         * doc/posix-functions/vwprintf.texi: Likewise.
84434         * doc/posix-functions/vwscanf.texi: Likewise.
84435         * doc/posix-functions/wcpcpy.texi: Likewise.
84436         * doc/posix-functions/wcpncpy.texi: Likewise.
84437         * doc/posix-functions/wcscasecmp.texi: Likewise.
84438         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
84439         * doc/posix-functions/wcscoll_l.texi: Likewise.
84440         * doc/posix-functions/wcsdup.texi: Likewise.
84441         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84442         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
84443         * doc/posix-functions/wcsnlen.texi: Likewise.
84444         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84445         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
84446         * doc/posix-functions/wctrans_l.texi: Likewise.
84447         * doc/posix-functions/wctype_l.texi: Likewise.
84448         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
84449         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
84450         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
84451         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
84452         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
84453         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
84454         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
84455         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
84456         * doc/glibc-functions/wcschrnul.texi: Likewise.
84457         * doc/glibc-functions/wcsftime_l.texi: Likewise.
84458         * doc/glibc-functions/wcstod_l.texi: Likewise.
84459         * doc/glibc-functions/wcstof_l.texi: Likewise.
84460         * doc/glibc-functions/wcstol_l.texi: Likewise.
84461         * doc/glibc-functions/wcstold_l.texi: Likewise.
84462         * doc/glibc-functions/wcstoll_l.texi: Likewise.
84463         * doc/glibc-functions/wcstoq.texi: Likewise.
84464         * doc/glibc-functions/wcstoul_l.texi: Likewise.
84465         * doc/glibc-functions/wcstoull_l.texi: Likewise.
84466         * doc/glibc-functions/wcstouq.texi: Likewise.
84467         * doc/glibc-functions/wmempcpy.texi: Likewise.
84469 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
84470             Eric Blake  <ebb9@byu.net>
84471             Paolo Bonzini  <bonzini@gnu.org>
84472             Bruno Haible  <bruno@clisp.org>
84474         Make c-stack work on Haiku.
84475         * lib/c-stack.c (SA_ONSTACK): Define fallback.
84476         (c_stack_action): Use SA_ONSTACK flag.
84478 2008-12-22  Bruno Haible  <bruno@clisp.org>
84480         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
84482 2008-12-22  Bruno Haible  <bruno@clisp.org>
84484         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
84485         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
84486         being overridden.
84487         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
84488         New macros.
84489         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
84490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
84491         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
84492         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
84494 2008-12-22  Bruno Haible  <bruno@clisp.org>
84496         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
84497         from test code.
84499 2008-12-22  Eric Blake  <ebb9@byu.net>
84501         Avoid gcc warnings on cygwin.
84502         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
84503         Avoid unused variable.
84504         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
84505         Likewise.
84507 2008-12-22  Bruno Haible  <bruno@clisp.org>
84509         Remove HAVE_MBRTOWC conditionals.
84510         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
84511         (mbscasecmp): Assume mbrtowc function.
84512         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
84513         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
84514         * lib/mbschr.c: Include mbuiter.h unconditionally.
84515         (mbschr): Assume mbrtowc function.
84516         * lib/mbscspn.c: Include mbuiter.h unconditionally.
84517         (mbscspn): Assume mbrtowc function.
84518         * lib/mbslen.c: Include mbuiter.h unconditionally.
84519         (mbslen): Assume mbrtowc function.
84520         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
84521         (mbsncasecmp): Assume mbrtowc function.
84522         * lib/mbsnlen.c: Include mbiter.h unconditionally.
84523         (mbsnlen): Assume mbrtowc function.
84524         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
84525         (mbspbrk): Assume mbrtowc function.
84526         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
84527         (mbspcasecmp): Assume mbrtowc function.
84528         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
84529         (mbsrchr): Assume mbrtowc function.
84530         * lib/mbssep.c: Include mbuiter.h unconditionally.
84531         (mbssep): Assume mbrtowc function.
84532         * lib/mbsspn.c: Include mbuiter.h unconditionally.
84533         (mbsspn): Assume mbrtowc function.
84534         * lib/mbsstr.c: Include mbuiter.h unconditionally.
84535         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
84536         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
84537         (mbstok_r): Assume mbrtowc function.
84538         * lib/propername.c: Include mbuiter.h unconditionally.
84539         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
84540         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
84541         (trim2): Assume mbrtowc function.
84542         * lib/mbswidth.c (mbsinit): Remove fallback definition.
84543         (mbsnwidth): Assume mbrtowc function.
84544         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
84545         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
84546         fallback definitions.
84547         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
84549 2008-12-22  Bruno Haible  <bruno@clisp.org>
84551         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
84553 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
84555         * modules/regex: Request emulations for the mb*/wc* functions we need.
84556         * m4/regex.m4: Don't look for those functions here.
84557         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
84559 2008-12-22  Bruno Haible  <bruno@clisp.org>
84561         * modules/fnmatch (Depends-on): Remove duplicated dependency.
84563 2008-12-21  Bruno Haible  <bruno@clisp.org>
84565         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
84566         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
84567         (Include): Remove conditionalization.
84568         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
84569         (Include): Remove conditionalization.
84570         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
84571         (Include): Remove conditionalization.
84572         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
84573         * m4/mbfile.m4 (gl_MBFILE): Likewise.
84574         * NEWS: Mention the change.
84575         Reported by Alan Hourihane <alanh@fairlite.co.uk>
84576         via Sergey Poznyakoff <gray@gnu.org.ua>.
84578 2008-12-21  Bruno Haible  <bruno@clisp.org>
84580         * MODULES.html.sh (Extended multibyte and wide character utilities
84581         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
84582         wcrtomb, wcsrtombs.
84583         (Support for systems lacking POSIX:2008): Add accept, bind, close,
84584         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
84585         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
84586         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
84588 2008-12-21  Bruno Haible  <bruno@clisp.org>
84590         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
84592 2008-12-21  Bruno Haible  <bruno@clisp.org>
84594         * modules/wcsnrtombs-tests: New file.
84595         * tests/test-wcsnrtombs1.sh: New file.
84596         * tests/test-wcsnrtombs2.sh: New file.
84597         * tests/test-wcsnrtombs3.sh: New file.
84598         * tests/test-wcsnrtombs4.sh: New file.
84599         * tests/test-wcsnrtombs.c: New file.
84601         New module 'wcsnrtombs'.
84602         * lib/wchar.in.h (wcsnrtombs): New declaration.
84603         * lib/wcsnrtombs.c: New file.
84604         * lib/wcsrtombs-state.c: New file.
84605         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
84606         (internal_state): Remove variable.
84607         * m4/wcsnrtombs.m4: New file.
84608         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
84609         compilation units.
84610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
84611         HAVE_WCSNRTOMBS.
84612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
84613         HAVE_WCSNRTOMBS.
84614         * modules/wcsnrtombs: New file.
84615         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
84616         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
84618 2008-12-21  Bruno Haible  <bruno@clisp.org>
84620         * modules/wcsrtombs-tests: New file.
84621         * tests/test-wcsrtombs1.sh: New file.
84622         * tests/test-wcsrtombs2.sh: New file.
84623         * tests/test-wcsrtombs3.sh: New file.
84624         * tests/test-wcsrtombs4.sh: New file.
84625         * tests/test-wcsrtombs.c: New file.
84627         New module 'wcsrtombs'.
84628         * lib/wchar.in.h (wcsrtombs): New declaration.
84629         * lib/wcsrtombs.c: New file.
84630         * m4/wcsrtombs.m4: New file.
84631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
84632         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
84634         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84635         * modules/wcsrtombs: New file.
84636         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
84637         bugs.
84639 2008-12-21  Bruno Haible  <bruno@clisp.org>
84641         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
84642         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
84643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
84644         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
84645         if not correct.
84646         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
84647         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
84648         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84649         m4/locale-zh.m4, m4/codeset.m4.
84650         * doc/posix-functions/wcrtomb.texi: Document the bug.
84652 2008-12-21  Bruno Haible  <bruno@clisp.org>
84654         Work around a btowc() bug on IRIX 6.5.
84655         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
84656         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
84657         REPLACE_WTOBC if not.
84658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
84659         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
84660         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
84662 2008-12-21  Bruno Haible  <bruno@clisp.org>
84664         * modules/wcrtomb-tests: New file.
84665         * tests/test-wcrtomb.sh: New file.
84666         * tests/test-wcrtomb.c: New file.
84668         New module 'wcrtomb'.
84669         * lib/wchar.in.h (wcrtomb): New declaration.
84670         * lib/wcrtomb.c: New file.
84671         * m4/wcrtomb.m4: New file.
84672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84673         HAVE_WCRTOMB.
84674         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84675         HAVE_WCRTOMB.
84676         * modules/wcrtomb: New file.
84677         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84679 2008-12-21  Bruno Haible  <bruno@clisp.org>
84681         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84682         * modules/mbsrtowcs (Files): Likewise.
84683         * modules/wctob (Files): Likewise.
84684         * modules/c-strcase-tests (Files): Likewise.
84685         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84686         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84687         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84688         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84689         * modules/vasnprintf-posix-tests (Files): Likewise.
84691 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84693         gitlog-to-changelog: pass all command-line arguments to git-log
84694         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84695         it is sometimes convenient to filter the commits in various ways.
84696         gitlog-to-changelog only allows --since to specify a start date,
84697         but git-log itself supports many other filtering mechanisms.
84698         At the moment, I want to filter by branch name.  Rather than
84699         adding a --branch option to gitlog-to-changelog, it seems more
84700         flexible to simply pass all options directly to git-log and let
84701         git do the work.  Notice that this effectively makes --since a
84702         redundant option for gitlog-to-changelog, but removing it would
84703         require current usage to change since calls would then require
84704         an additional '--'.
84706 2008-12-21  Bruno Haible  <bruno@clisp.org>
84708         * modules/mbsnrtowcs-tests: New file.
84709         * tests/test-mbsnrtowcs1.sh: New file.
84710         * tests/test-mbsnrtowcs2.sh: New file.
84711         * tests/test-mbsnrtowcs3.sh: New file.
84712         * tests/test-mbsnrtowcs4.sh: New file.
84713         * tests/test-mbsnrtowcs.c: New file.
84715         New module 'mbsnrtowcs'.
84716         * lib/wchar.in.h (mbsnrtowcs): New declaration.
84717         * lib/mbsnrtowcs.c: New file.
84718         * lib/mbsrtowcs-state.c: New file.
84719         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
84720         (internal_state): Remove variable.
84721         * m4/mbsnrtowcs.m4: New file.
84722         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
84723         compilation units.
84724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
84725         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84726         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
84727         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84728         * modules/mbsnrtowcs: New file.
84729         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
84730         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
84731         portability problem.
84733 2008-12-21  Bruno Haible  <bruno@clisp.org>
84735         Work around mbsrtowcs bug.
84736         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
84737         (gl_FUNC_MBSRTOWCS): Invoke it.
84738         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84739         m4/locale-zh.m4.
84740         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
84742 2008-12-21  Bruno Haible  <bruno@clisp.org>
84744         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
84746 2008-12-21  Bruno Haible  <bruno@clisp.org>
84748         Update doc for AIX.
84749         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
84750         16-bit wchar_t type.
84751         * doc/posix-functions/btowc.texi: Likewise.
84752         * doc/posix-functions/fgetwc.texi: Likewise.
84753         * doc/posix-functions/fgetws.texi: Likewise.
84754         * doc/posix-functions/fputwc.texi: Likewise.
84755         * doc/posix-functions/fputws.texi: Likewise.
84756         * doc/posix-functions/fwide.texi: Likewise.
84757         * doc/posix-functions/fwprintf.texi: Likewise.
84758         * doc/posix-functions/fwscanf.texi: Likewise.
84759         * doc/posix-functions/getwchar.texi: Likewise.
84760         * doc/posix-functions/getwc.texi: Likewise.
84761         * doc/posix-functions/iswalnum.texi: Likewise.
84762         * doc/posix-functions/iswalpha.texi: Likewise.
84763         * doc/posix-functions/iswblank.texi: Likewise.
84764         * doc/posix-functions/iswcntrl.texi: Likewise.
84765         * doc/posix-functions/iswctype.texi: Likewise.
84766         * doc/posix-functions/iswdigit.texi: Likewise.
84767         * doc/posix-functions/iswgraph.texi: Likewise.
84768         * doc/posix-functions/iswlower.texi: Likewise.
84769         * doc/posix-functions/iswprint.texi: Likewise.
84770         * doc/posix-functions/iswpunct.texi: Likewise.
84771         * doc/posix-functions/iswspace.texi: Likewise.
84772         * doc/posix-functions/iswupper.texi: Likewise.
84773         * doc/posix-functions/iswxdigit.texi: Likewise.
84774         * doc/posix-functions/mbrtowc.texi: Likewise.
84775         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84776         * doc/posix-functions/mbstowcs.texi: Likewise.
84777         * doc/posix-functions/mbtowc.texi: Likewise.
84778         * doc/posix-functions/putwchar.texi: Likewise.
84779         * doc/posix-functions/putwc.texi: Likewise.
84780         * doc/posix-functions/swprintf.texi: Likewise.
84781         * doc/posix-functions/tolower.texi: Likewise.
84782         * doc/posix-functions/toupper.texi: Likewise.
84783         * doc/posix-functions/towctrans.texi: Likewise.
84784         * doc/posix-functions/ungetwc.texi: Likewise.
84785         * doc/posix-functions/vswprintf.texi: Likewise.
84786         * doc/posix-functions/wcrtomb.texi: Likewise.
84787         * doc/posix-functions/wcscat.texi: Likewise.
84788         * doc/posix-functions/wcschr.texi: Likewise.
84789         * doc/posix-functions/wcscmp.texi: Likewise.
84790         * doc/posix-functions/wcscoll.texi: Likewise.
84791         * doc/posix-functions/wcscpy.texi: Likewise.
84792         * doc/posix-functions/wcscspn.texi: Likewise.
84793         * doc/posix-functions/wcsftime.texi: Likewise.
84794         * doc/posix-functions/wcslen.texi: Likewise.
84795         * doc/posix-functions/wcsncat.texi: Likewise.
84796         * doc/posix-functions/wcsncmp.texi: Likewise.
84797         * doc/posix-functions/wcsncpy.texi: Likewise.
84798         * doc/posix-functions/wcspbrk.texi: Likewise.
84799         * doc/posix-functions/wcsrchr.texi: Likewise.
84800         * doc/posix-functions/wcsrtombs.texi: Likewise.
84801         * doc/posix-functions/wcsspn.texi: Likewise.
84802         * doc/posix-functions/wcsstr.texi: Likewise.
84803         * doc/posix-functions/wcstod.texi: Likewise.
84804         * doc/posix-functions/wcstof.texi: Likewise.
84805         * doc/posix-functions/wcstoimax.texi: Likewise.
84806         * doc/posix-functions/wcstok.texi: Likewise.
84807         * doc/posix-functions/wcstold.texi: Likewise.
84808         * doc/posix-functions/wcstoll.texi: Likewise.
84809         * doc/posix-functions/wcstol.texi: Likewise.
84810         * doc/posix-functions/wcstombs.texi: Likewise.
84811         * doc/posix-functions/wcstoull.texi: Likewise.
84812         * doc/posix-functions/wcstoul.texi: Likewise.
84813         * doc/posix-functions/wcstoumax.texi: Likewise.
84814         * doc/posix-functions/wcswidth.texi: Likewise.
84815         * doc/posix-functions/wcsxfrm.texi: Likewise.
84816         * doc/posix-functions/wctob.texi: Likewise.
84817         * doc/posix-functions/wctomb.texi: Likewise.
84818         * doc/posix-functions/wctrans.texi: Likewise.
84819         * doc/posix-functions/wctype.texi: Likewise.
84820         * doc/posix-functions/wcwidth.texi: Likewise.
84821         * doc/posix-functions/wmemchr.texi: Likewise.
84822         * doc/posix-functions/wmemcmp.texi: Likewise.
84823         * doc/posix-functions/wmemcpy.texi: Likewise.
84824         * doc/posix-functions/wmemmove.texi: Likewise.
84825         * doc/posix-functions/wmemset.texi: Likewise.
84826         * doc/posix-functions/wprintf.texi: Likewise.
84827         * doc/posix-functions/wscanf.texi: Likewise.
84829 2008-12-21  Bruno Haible  <bruno@clisp.org>
84831         Update doc for HP-UX 11.11.
84832         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84833         in HP-UX version 11.00, not in all versions of HP-UX 11.
84834         * doc/posix-functions/fwide.texi: Likewise.
84835         * doc/posix-functions/fwprintf.texi: Likewise.
84836         * doc/posix-functions/fwscanf.texi: Likewise.
84837         * doc/posix-functions/inet_ntop.texi: Likewise.
84838         * doc/posix-functions/inet_pton.texi: Likewise.
84839         * doc/posix-functions/mbrlen.texi: Likewise.
84840         * doc/posix-functions/mbrtowc.texi: Likewise.
84841         * doc/posix-functions/mbsinit.texi: Likewise.
84842         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84843         * doc/posix-functions/swprintf.texi: Likewise.
84844         * doc/posix-functions/swscanf.texi: Likewise.
84845         * doc/posix-functions/towctrans.texi: Likewise.
84846         * doc/posix-functions/vfwprintf.texi: Likewise.
84847         * doc/posix-functions/vswprintf.texi: Likewise.
84848         * doc/posix-functions/vwprintf.texi: Likewise.
84849         * doc/posix-functions/wcrtomb.texi: Likewise.
84850         * doc/posix-functions/wcsrtombs.texi: Likewise.
84851         * doc/posix-functions/wcsstr.texi: Likewise.
84852         * doc/posix-functions/wctob.texi: Likewise.
84853         * doc/posix-functions/wctrans.texi: Likewise.
84854         * doc/posix-functions/wmemchr.texi: Likewise.
84855         * doc/posix-functions/wmemcmp.texi: Likewise.
84856         * doc/posix-functions/wmemcpy.texi: Likewise.
84857         * doc/posix-functions/wmemmove.texi: Likewise.
84858         * doc/posix-functions/wmemset.texi: Likewise.
84859         * doc/posix-functions/wprintf.texi: Likewise.
84860         * doc/posix-functions/wscanf.texi: Likewise.
84862 2008-12-21  Bruno Haible  <bruno@clisp.org>
84864         Work around a portability problem.
84865         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84866         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84868 2008-12-20  Bruno Haible  <bruno@clisp.org>
84870         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84871         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84872         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84874         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84876         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84877         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84878         set.
84879         (GNULIB_defined_mbstate_t): New macro.
84880         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84881         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84882         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84883         reuses the system's mbrtowc function but works around the bugs.
84884         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84885         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84886         macros.
84887         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84888         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84889         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84890         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84891         REPLACE_MBSINIT if mbsinit needs to be overridden.
84892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84893         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84894         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84895         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84896         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84897         m4/locale-zh.m4.
84898         (Depends): Add mbsinit.
84899         * modules/mbsinit (Depends): Add mbrtowc.
84900         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84902 2008-12-20  Bruno Haible  <bruno@clisp.org>
84904         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84905         so that there are no conversion errors on AIX.
84906         * tests/test-mbsrtowcs.c (main): LIkewise.
84908 2008-12-20  Bruno Haible  <bruno@clisp.org>
84910         Work around wctob bug on Solaris <= 9.
84911         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84912         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84914         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84915         * modules/wctob (Files): Add m4/locale-fr.m4.
84916         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84918 2008-12-20  Bruno Haible  <bruno@clisp.org>
84920         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84921         /dev/null.
84922         * tests/test-select-in.sh: Likewise.
84923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84925 2008-12-20  Bruno Haible  <bruno@clisp.org>
84927         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84928         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84929         Cygwin 1.5.x.
84931 2008-12-20  Bruno Haible  <bruno@clisp.org>
84933         Ensure mbstate_t is defined on HP-UX 11.11.
84934         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84935         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84936         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84937         AC_USE_SYSTEM_EXTENSIONS.
84938         * modules/fnmatch (Depends-on): Add extensions.
84939         * modules/mbrlen (Depends-on): Likewise.
84940         * modules/mbrtowc (Depends-on): Likewise.
84941         * modules/mbsinit (Depends-on): Likewise.
84942         * modules/mbsrtowcs (Depends-on): Likewise.
84943         * modules/mbswidth (Depends-on): Likewise.
84944         * modules/quotearg (Depends-on): Likewise.
84945         * modules/strftime (Depends-on): Likewise.
84947 2008-12-20  Bruno Haible  <bruno@clisp.org>
84949         Ensure wctob is declared on IRIX 6.5.
84950         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84951         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84952         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84954         of HAVE_WCTOB.
84955         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84956         HAVE_WCTOB.
84957         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84959 2008-12-19  Bruno Haible  <bruno@clisp.org>
84961         * modules/mbsrtowcs-tests: New file.
84962         * tests/test-mbsrtowcs1.sh: New file.
84963         * tests/test-mbsrtowcs2.sh: New file.
84964         * tests/test-mbsrtowcs3.sh: New file.
84965         * tests/test-mbsrtowcs4.sh: New file.
84966         * tests/test-mbsrtowcs.c: New file.
84968         New module 'mbsrtowcs'.
84969         * lib/wchar.in.h (mbsrtowcs): New declaration.
84970         * lib/mbsrtowcs.c: New file.
84971         * m4/mbsrtowcs.m4: New file.
84972         * modules/mbsrtowcs: New file.
84973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84974         HAVE_MBSRTOWCS.
84975         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84976         HAVE_MBSRTOWCS.
84977         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84979 2008-12-19  Bruno Haible  <bruno@clisp.org>
84981         New module 'mbrlen'.
84982         * lib/wchar.in.h (mbrlen): New declaration.
84983         * lib/mbrlen.c: New file.
84984         * m4/mbrlen.m4: New file.
84985         * modules/mbrlen: New file.
84986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84987         HAVE_MBRLEN.
84988         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84989         HAVE_MBRLEN.
84990         * doc/posix-functions/mbrlen.texi: Document the new module.
84992 2008-12-19  Bruno Haible  <bruno@clisp.org>
84994         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84995         * modules/mbrtowc (Depends-on): Add verify.
84996         Suggested by Paul Eggert.
84998 2008-12-18  Bruno Haible  <bruno@clisp.org>
85000         * modules/mbsinit-tests: New file.
85001         * tests/test-mbsinit.sh: New file.
85002         * tests/test-mbsinit.c: New file.
85004 2008-12-18  Bruno Haible  <bruno@clisp.org>
85006         * modules/mbrtowc-tests: New file.
85007         * tests/test-mbrtowc1.sh: New file.
85008         * tests/test-mbrtowc2.sh: New file.
85009         * tests/test-mbrtowc3.sh: New file.
85010         * tests/test-mbrtowc4.sh: New file.
85011         * tests/test-mbrtowc.c: New file.
85013         New module 'mbrtowc'.
85014         * lib/wchar.in.h (mbstate_t): Override when the system does not have
85015         mbsinit and mbrtowc.
85016         (mbrtowc): New declaration.
85017         * lib/mbrtowc.c: New file.
85018         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
85019         * modules/mbrtowc: New file.
85020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
85021         HAVE_MBRTOWC.
85022         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
85023         HAVE_MBRTOWC.
85024         * doc/posix-functions/mbrtowc.texi: Document the new module.
85026 2008-12-18  Bruno Haible  <bruno@clisp.org>
85028         New module 'wctob'.
85029         * lib/wchar.in.h (wctob): New declaration.
85030         * lib/wctob.c: New file.
85031         * m4/wctob.m4: New file.
85032         * modules/wctob: New file.
85033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
85034         HAVE_WCTOB.
85035         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
85036         * doc/posix-functions/wctob.texi: Document the new module.
85038 2008-12-18  Bruno Haible  <bruno@clisp.org>
85040         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
85041         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
85043 2008-12-18  Simon Josefsson  <simon@josefsson.org>
85045         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
85046         G. Christensen" <tgc@jupiterrise.com>.
85048         * lib/flock.c: Need to include errno.h.  Reported by "Tom
85049         G. Christensen" <tgc@jupiterrise.com>.
85051         * lib/flock.c: Need to include string.h.  Reported by "Tom
85052         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
85053         <ebb9@byu.net>.
85055 2008-12-18  Bruno Haible  <bruno@clisp.org>
85057         * m4/locale-ja.m4: New file, from GNU gettext.
85059 2008-12-17  Bruno Haible  <bruno@clisp.org>
85061         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
85062         Suggested by Eric Blake.
85064 2008-12-17  Bruno Haible  <bruno@clisp.org>
85066         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
85068 2008-12-17  Bruno Haible  <bruno@clisp.org>
85070         * lib/mbsinit.c: Include verify.h. Verify an assumption.
85071         * modules/mbsinit (Depends-on): Add verify.
85072         Suggested by Paul Eggert.
85074 2008-12-17  Bruno Haible  <bruno@clisp.org>
85076         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
85077         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
85078         gl_FUNC_MBRTOWC.
85079         * m4/mbiter.m4 (gl_MBITER): LIkewise.
85080         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
85081         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
85082         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
85083         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
85084         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
85085         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
85086         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
85087         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
85088         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
85089         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
85090         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
85091         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
85092         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
85093         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
85094         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85095         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
85096         * modules/trim (configure.ac): Likewise.
85098 2008-12-17  Bruno Haible  <bruno@clisp.org>
85100         * modules/btowc-tests: New file.
85101         * tests/test-btowc1.sh: New file.
85102         * tests/test-btowc2.sh: New file.
85103         * tests/test-btowc.c: New file.
85105         New module 'btowc'.
85106         * lib/wchar.in.h (btowc): New declaration.
85107         * lib/btowc.c: New file.
85108         * m4/btowc.m4: New file.
85109         * modules/btowc: New file.
85110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
85111         HAVE_BTOWC.
85112         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
85113         * doc/posix-functions/btowc.texi: Document the new module.
85115 2008-12-17  Bruno Haible  <bruno@clisp.org>
85117         New module 'mbsinit'.
85118         * lib/wchar.in.h (mbsinit): New declaration.
85119         * lib/mbsinit.c: New file.
85120         * m4/mbsinit.m4: New file.
85121         * modules/mbsinit: New file.
85122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
85123         HAVE_MBSINIT.
85124         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
85125         HAVE_MBSINIT.
85126         * doc/posix-functions/mbsinit.texi: Document the new module.
85128 2008-12-16  Bruno Haible  <bruno@clisp.org>
85130         * lib/unistd.in.h: Add comment.
85131         * tests/test-environ.c: Don't include <stdlib.h>.
85133 2008-12-16  Bruno Haible  <bruno@clisp.org>
85135         * lib/parse-duration.h (parse_duration): Document return value
85136         convention.
85137         * lib/parse-duration.c: Include specification header first. Add
85138         comments.
85139         (_): Remove macro.
85140         (parse_year_month_day, parse_hour_minute_second): Move side effects
85141         outside of strchr call.
85142         (parse_non_iso8601): Move side effects outside of isspace call.
85143         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
85144         call.
85146 2008-12-16  Bruno Haible  <bruno@clisp.org>
85148         * tests/test-parse-duration.sh: Produce no output when the test
85149         succeeds.
85151 2008-12-16  Bruno Haible  <bruno@clisp.org>
85153         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
85154         expressions.
85156 2008-12-15  Bruno Haible  <bruno@clisp.org>
85158         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
85159         * doc/glibc-functions/flistxattr.texi: Likewise.
85160         * doc/glibc-functions/fopencookie.texi: Likewise.
85161         * doc/glibc-functions/fremovexattr.texi: Likewise.
85162         * doc/glibc-functions/fsetxattr.texi: Likewise.
85163         * doc/glibc-functions/getxattr.texi: Likewise.
85164         * doc/glibc-functions/lgetxattr.texi: Likewise.
85165         * doc/glibc-functions/listxattr.texi: Likewise.
85166         * doc/glibc-functions/llistxattr.texi: Likewise.
85167         * doc/glibc-functions/lremovexattr.texi: Likewise.
85168         * doc/glibc-functions/lsetxattr.texi: Likewise.
85169         * doc/glibc-functions/removexattr.texi: Likewise.
85170         * doc/glibc-functions/setxattr.texi: Likewise.
85171         * doc/posix-functions/open_memstream.texi: Likewise.
85173 2008-12-15  Eric Blake  <ebb9@byu.net>
85175         Update doc for cygwin 1.7.
85176         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
85177         functions.
85178         * doc/posix-functions/fchmodat.texi: Likewise.
85179         * doc/posix-functions/fchownat.texi: Likewise.
85180         * doc/posix-functions/fdopendir.texi: Likewise.
85181         * doc/posix-functions/fmemopen.texi: Likewise.
85182         * doc/posix-functions/freeaddrinfo.texi: Likewise.
85183         * doc/posix-functions/fstatat.texi: Likewise.
85184         * doc/posix-functions/futimens.texi: Likewise.
85185         * doc/posix-functions/gai_strerror.texi: Likewise.
85186         * doc/posix-functions/getaddrinfo.texi: Likewise.
85187         * doc/posix-functions/getnameinfo.texi: Likewise.
85188         * doc/posix-functions/if_freenameindex.texi: Likewise.
85189         * doc/posix-functions/if_indextoname.texi: Likewise.
85190         * doc/posix-functions/if_nameindex.texi: Likewise.
85191         * doc/posix-functions/if_nametoindex.texi: Likewise.
85192         * doc/posix-functions/insque.texi: Likewise.
85193         * doc/posix-functions/linkat.texi: Likewise.
85194         * doc/posix-functions/llrint.texi: Likewise.
85195         * doc/posix-functions/llrintf.texi: Likewise.
85196         * doc/posix-functions/llrintl.texi: Likewise.
85197         * doc/posix-functions/lockf.texi: Likewise.
85198         * doc/posix-functions/lrintl.texi: Likewise.
85199         * doc/posix-functions/mkdirat.texi: Likewise.
85200         * doc/posix-functions/mkfifoat.texi: Likewise.
85201         * doc/posix-functions/mknodat.texi: Likewise.
85202         * doc/posix-functions/mq_close.texi: Likewise.
85203         * doc/posix-functions/mq_getattr.texi: Likewise.
85204         * doc/posix-functions/mq_notify.texi: Likewise.
85205         * doc/posix-functions/mq_open.texi: Likewise.
85206         * doc/posix-functions/mq_receive.texi: Likewise.
85207         * doc/posix-functions/mq_send.texi: Likewise.
85208         * doc/posix-functions/mq_setattr.texi: Likewise.
85209         * doc/posix-functions/mq_timedreceive.texi: Likewise.
85210         * doc/posix-functions/mq_timedsend.texi: Likewise.
85211         * doc/posix-functions/mq_unlink.texi: Likewise.
85212         * doc/posix-functions/open_memstream.texi: Likewise.
85213         * doc/posix-functions/openat.texi: Likewise.
85214         * doc/posix-functions/posix_fadvise.texi: Likewise.
85215         * doc/posix-functions/posix_fallocate.texi: Likewise.
85216         * doc/posix-functions/posix_madvise.texi: Likewise.
85217         * doc/posix-functions/posix_memalign.texi: Likewise.
85218         * doc/posix-functions/posix_openpt.texi: Likewise.
85219         * doc/posix-functions/readlinkat.texi: Likewise.
85220         * doc/posix-functions/remque.texi: Likewise.
85221         * doc/posix-functions/renameat.texi: Likewise.
85222         * doc/posix-functions/rintl.texi: Likewise.
85223         * doc/posix-functions/sem_unlink.texi: Likewise.
85224         * doc/posix-functions/shm_open.texi: Likewise.
85225         * doc/posix-functions/shm_unlink.texi: Likewise.
85226         * doc/posix-functions/signgam.texi: Likewise.
85227         * doc/posix-functions/sigset.texi: Likewise.
85228         * doc/posix-functions/stpcpy.texi: Likewise.
85229         * doc/posix-functions/stpncpy.texi: Likewise.
85230         * doc/posix-functions/strerror.texi: Likewise.
85231         * doc/posix-functions/strtod.texi: Likewise.
85232         * doc/posix-functions/symlinkat.texi: Likewise.
85233         * doc/posix-functions/unlinkat.texi: Likewise.
85234         * doc/posix-functions/utimensat.texi: Likewise.
85235         * doc/glibc-functions/bindresvport.texi: Likewise.
85236         * doc/glibc-functions/dn_expand.texi: Likewise.
85237         * doc/glibc-functions/exp10.texi: Likewise.
85238         * doc/glibc-functions/exp10f.texi: Likewise.
85239         * doc/glibc-functions/fgetxattr.texi: Likewise.
85240         * doc/glibc-functions/flistxattr.texi: Likewise.
85241         * doc/glibc-functions/fopencookie.texi: Likewise.
85242         * doc/glibc-functions/freeifaddrs.texi: Likewise.
85243         * doc/glibc-functions/fremovexattr.texi: Likewise.
85244         * doc/glibc-functions/fsetxattr.texi: Likewise.
85245         * doc/glibc-functions/getifaddrs.texi: Likewise.
85246         * doc/glibc-functions/getxattr.texi: Likewise.
85247         * doc/glibc-functions/lgetxattr.texi: Likewise.
85248         * doc/glibc-functions/listxattr.texi: Likewise.
85249         * doc/glibc-functions/llistxattr.texi: Likewise.
85250         * doc/glibc-functions/lremovexattr.texi: Likewise.
85251         * doc/glibc-functions/lsetxattr.texi: Likewise.
85252         * doc/glibc-functions/pow10.texi: Likewise.
85253         * doc/glibc-functions/pow10f.texi: Likewise.
85254         * doc/glibc-functions/rcmd_af.texi: Likewise.
85255         * doc/glibc-functions/removexattr.texi: Likewise.
85256         * doc/glibc-functions/res_init.texi: Likewise.
85257         * doc/glibc-functions/res_mkquery.texi: Likewise.
85258         * doc/glibc-functions/res_query.texi: Likewise.
85259         * doc/glibc-functions/res_querydomain.texi: Likewise.
85260         * doc/glibc-functions/res_send.texi: Likewise.
85261         * doc/glibc-functions/rresvport_af.texi: Likewise.
85262         * doc/glibc-functions/setxattr.texi: Likewise.
85263         * doc/glibc-functions/strcasestr.texi: Likewise.
85265 2008-12-15  Bruno Haible  <bruno@clisp.org>
85267         Fix compilation error on OSF/1 4.0.
85268         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
85269         <sys/time.h>, simply delegate to the system header.
85270         Reported by Daniel Richard G. <oss@teragram.com>.
85272 2008-12-15  Bruno Haible  <bruno@clisp.org>
85274         * doc/posix-functions/openat.texi: Mention the 'openat' module.
85275         * doc/posix-functions/fchmodat.texi: Likewise.
85276         * doc/posix-functions/fchownat.texi: Likewise.
85277         * doc/posix-functions/fdopendir.texi: Likewise.
85278         * doc/posix-functions/fstatat.texi: Likewise.
85279         * doc/posix-functions/mkdirat.texi: Likewise.
85280         * doc/posix-functions/unlinkat.texi: Likewise.
85282 2008-12-14  Bruno Haible  <bruno@clisp.org>
85284         Update doc for POSIX:2008.
85285         * doc/posix-functions/faccessat.texi: New file.
85286         * doc/posix-functions/fchmodat.texi: New file.
85287         * doc/posix-functions/fchownat.texi: New file.
85288         * doc/posix-functions/fdopendir.texi: New file.
85289         * doc/posix-functions/fstatat.texi: New file.
85290         * doc/posix-functions/futimens.texi: New file.
85291         * doc/posix-functions/linkat.texi: New file.
85292         * doc/posix-functions/mkdirat.texi: New file.
85293         * doc/posix-functions/mkfifoat.texi: New file.
85294         * doc/posix-functions/mknodat.texi: New file.
85295         * doc/posix-functions/open_wmemstream.texi: New file.
85296         * doc/posix-functions/openat.texi: New file.
85297         * doc/posix-functions/psiginfo.texi: New file.
85298         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
85299         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
85300         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
85301         * doc/posix-functions/readlinkat.texi: New file.
85302         * doc/posix-functions/renameat.texi: New file.
85303         * doc/posix-functions/strerror_l.texi: New file.
85304         * doc/posix-functions/symlinkat.texi: New file.
85305         * doc/posix-functions/unlinkat.texi: New file.
85306         * doc/posix-functions/utimensat.texi: New file.
85307         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85309 2008-12-14  Bruno Haible  <bruno@clisp.org>
85311         Update doc for POSIX:2008.
85312         * doc/posix-functions/alphasort.texi: Renamed from
85313         doc/glibc-functions/alphasort.texi.
85314         * doc/posix-functions/dirfd.texi: Renamed from
85315         doc/glibc-functions/dirfd.texi.
85316         * doc/posix-functions/dprintf.texi: Renamed from
85317         doc/glibc-functions/dprintf.texi.
85318         * doc/posix-functions/duplocale.texi: Renamed from
85319         doc/glibc-functions/duplocale.texi.
85320         * doc/posix-functions/fexecve.texi: Renamed from
85321         doc/glibc-functions/fexecve.texi.
85322         * doc/posix-functions/fmemopen.texi: Renamed from
85323         doc/glibc-functions/fmemopen.texi.
85324         * doc/posix-functions/freelocale.texi: Renamed from
85325         doc/glibc-functions/freelocale.texi.
85326         * doc/posix-functions/getdate_err.texi: Renamed from
85327         doc/glibc-functions/getdate_err.texi.
85328         * doc/posix-functions/isalnum_l.texi: Renamed from
85329         doc/glibc-functions/isalnum_l.texi.
85330         * doc/posix-functions/isalpha_l.texi: Renamed from
85331         doc/glibc-functions/isalpha_l.texi.
85332         * doc/posix-functions/isblank_l.texi: Renamed from
85333         doc/glibc-functions/isblank_l.texi.
85334         * doc/posix-functions/iscntrl_l.texi: Renamed from
85335         doc/glibc-functions/iscntrl_l.texi.
85336         * doc/posix-functions/isdigit_l.texi: Renamed from
85337         doc/glibc-functions/isdigit_l.texi.
85338         * doc/posix-functions/isgraph_l.texi: Renamed from
85339         doc/glibc-functions/isgraph_l.texi.
85340         * doc/posix-functions/islower_l.texi: Renamed from
85341         doc/glibc-functions/islower_l.texi.
85342         * doc/posix-functions/isprint_l.texi: Renamed from
85343         doc/glibc-functions/isprint_l.texi.
85344         * doc/posix-functions/ispunct_l.texi: Renamed from
85345         doc/glibc-functions/ispunct_l.texi.
85346         * doc/posix-functions/isspace_l.texi: Renamed from
85347         doc/glibc-functions/isspace_l.texi.
85348         * doc/posix-functions/isupper_l.texi: Renamed from
85349         doc/glibc-functions/isupper_l.texi.
85350         * doc/posix-functions/iswalnum_l.texi: Renamed from
85351         doc/glibc-functions/iswalnum_l.texi.
85352         * doc/posix-functions/iswalpha_l.texi: Renamed from
85353         doc/glibc-functions/iswalpha_l.texi.
85354         * doc/posix-functions/iswblank_l.texi: Renamed from
85355         doc/glibc-functions/iswblank_l.texi.
85356         * doc/posix-functions/iswcntrl_l.texi: Renamed from
85357         doc/glibc-functions/iswcntrl_l.texi.
85358         * doc/posix-functions/iswctype_l.texi: Renamed from
85359         doc/glibc-functions/iswctype_l.texi.
85360         * doc/posix-functions/iswdigit_l.texi: Renamed from
85361         doc/glibc-functions/iswdigit_l.texi.
85362         * doc/posix-functions/iswgraph_l.texi: Renamed from
85363         doc/glibc-functions/iswgraph_l.texi.
85364         * doc/posix-functions/iswlower_l.texi: Renamed from
85365         doc/glibc-functions/iswlower_l.texi.
85366         * doc/posix-functions/iswprint_l.texi: Renamed from
85367         doc/glibc-functions/iswprint_l.texi.
85368         * doc/posix-functions/iswpunct_l.texi: Renamed from
85369         doc/glibc-functions/iswpunct_l.texi.
85370         * doc/posix-functions/iswspace_l.texi: Renamed from
85371         doc/glibc-functions/iswspace_l.texi.
85372         * doc/posix-functions/iswupper_l.texi: Renamed from
85373         doc/glibc-functions/iswupper_l.texi.
85374         * doc/posix-functions/iswxdigit_l.texi: Renamed from
85375         doc/glibc-functions/iswxdigit_l.texi.
85376         * doc/posix-functions/isxdigit_l.texi: Renamed from
85377         doc/glibc-functions/isxdigit_l.texi.
85378         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
85379         doc/glibc-functions/mbsnrtowcs.texi.
85380         * doc/posix-functions/mkdtemp.texi: Renamed from
85381         doc/glibc-functions/mkdtemp.texi.
85382         * doc/posix-functions/newlocale.texi: Renamed from
85383         doc/glibc-functions/newlocale.texi.
85384         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
85385         doc/glibc-functions/nl_langinfo_l.texi.
85386         * doc/posix-functions/open_memstream.texi: Renamed from
85387         doc/glibc-functions/open_memstream.texi.
85388         * doc/posix-functions/opterr.texi: Renamed from
85389         doc/glibc-functions/opterr.texi.
85390         * doc/posix-functions/optind.texi: Renamed from
85391         doc/glibc-functions/optind.texi.
85392         * doc/posix-functions/optopt.texi: Renamed from
85393         doc/glibc-functions/optopt.texi.
85394         * doc/posix-functions/psignal.texi: Renamed from
85395         doc/glibc-functions/psignal.texi.
85396         * doc/posix-functions/scandir.texi: Renamed from
85397         doc/glibc-functions/scandir.texi.
85398         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
85399         doc/glibc-functions/sched_get_priority_min.texi.
85400         * doc/posix-functions/signgam.texi: Renamed from
85401         doc/glibc-functions/signgam.texi.
85402         * doc/posix-functions/stpcpy.texi: Renamed from
85403         doc/glibc-functions/stpcpy.texi.
85404         * doc/posix-functions/stpncpy.texi: Renamed from
85405         doc/glibc-functions/stpncpy.texi.
85406         * doc/posix-functions/strcasecmp_l.texi: Renamed from
85407         doc/glibc-functions/strcasecmp_l.texi.
85408         * doc/posix-functions/strcoll_l.texi: Renamed from
85409         doc/glibc-functions/strcoll_l.texi.
85410         * doc/posix-functions/strfmon_l.texi: Renamed from
85411         doc/glibc-functions/strfmon_l.texi.
85412         * doc/posix-functions/strftime_l.texi: Renamed from
85413         doc/glibc-functions/strftime_l.texi.
85414         * doc/posix-functions/strncasecmp_l.texi: Renamed from
85415         doc/glibc-functions/strncasecmp_l.texi.
85416         * doc/posix-functions/strndup.texi: Renamed from
85417         doc/glibc-functions/strndup.texi.
85418         * doc/posix-functions/strnlen.texi: Renamed from
85419         doc/glibc-functions/strnlen.texi.
85420         * doc/posix-functions/strsignal.texi: Renamed from
85421         doc/glibc-functions/strsignal.texi.
85422         * doc/posix-functions/strxfrm_l.texi: Renamed from
85423         doc/glibc-functions/strxfrm_l.texi.
85424         * doc/posix-functions/timer_gettime.texi: Renamed from
85425         doc/glibc-functions/timer_gettime.texi.
85426         * doc/posix-functions/tolower_l.texi: Renamed from
85427         doc/glibc-functions/tolower_l.texi.
85428         * doc/posix-functions/toupper_l.texi: Renamed from
85429         doc/glibc-functions/toupper_l.texi.
85430         * doc/posix-functions/towctrans_l.texi: Renamed from
85431         doc/glibc-functions/towctrans_l.texi.
85432         * doc/posix-functions/towlower_l.texi: Renamed from
85433         doc/glibc-functions/towlower_l.texi.
85434         * doc/posix-functions/towupper_l.texi: Renamed from
85435         doc/glibc-functions/towupper_l.texi.
85436         * doc/posix-functions/uselocale.texi: Renamed from
85437         doc/glibc-functions/uselocale.texi.
85438         * doc/posix-functions/vdprintf.texi: Renamed from
85439         doc/glibc-functions/vdprintf.texi.
85440         * doc/posix-functions/wcpcpy.texi:
85441         Renamed from doc/glibc-functions/wcpcpy.texi.
85442         * doc/posix-functions/wcpncpy.texi: Renamed from
85443         doc/glibc-functions/wcpncpy.texi.
85444         * doc/posix-functions/wcscasecmp.texi: Renamed from
85445         doc/glibc-functions/wcscasecmp.texi.
85446         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
85447         doc/glibc-functions/wcscasecmp_l.texi.
85448         * doc/posix-functions/wcscoll_l.texi: Renamed from
85449         doc/glibc-functions/wcscoll_l.texi.
85450         * doc/posix-functions/wcsdup.texi: Renamed from
85451         doc/glibc-functions/wcsdup.texi.
85452         * doc/posix-functions/wcsncasecmp.texi: Renamed from
85453         doc/glibc-functions/wcsncasecmp.texi.
85454         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
85455         doc/glibc-functions/wcsncasecmp_l.texi.
85456         * doc/posix-functions/wcsnlen.texi: Renamed from
85457         doc/glibc-functions/wcsnlen.texi.
85458         * doc/posix-functions/wcsnrtombs.texi: Renamed from
85459         doc/glibc-functions/wcsnrtombs.texi.
85460         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
85461         doc/glibc-functions/wcsxfrm_l.texi.
85462         * doc/posix-functions/wctrans_l.texi: Renamed from
85463         doc/glibc-functions/wctrans_l.texi.
85464         * doc/posix-functions/wctype_l.texi: Renamed from
85465         doc/glibc-functions/wctype_l.texi.
85466         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85467         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
85468         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
85469         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
85470         these subsections.
85471         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
85472         Remove sections.
85474 2008-12-14  Bruno Haible  <bruno@clisp.org>
85476         Update doc for POSIX:2008.
85477         * doc/posix-functions/*.texi: Update URL of POSIX specification.
85479 2008-12-14  Bruno Haible  <bruno@clisp.org>
85481         Update doc for POSIX:2008.
85482         * doc/pastposix-functions/bcmp.texi: Renamed from
85483         doc/posix-functions/bcmp.texi.
85484         * doc/pastposix-functions/bcopy.texi: Renamed from
85485         doc/posix-functions/bcopy.texi.
85486         * doc/pastposix-functions/bsd_signal.texi: Renamed from
85487         doc/posix-functions/bsd_signal.texi.
85488         * doc/pastposix-functions/bzero.texi: Renamed from
85489         doc/posix-functions/bzero.texi.
85490         * doc/pastposix-functions/ecvt.texi: Renamed from
85491         doc/posix-functions/ecvt.texi.
85492         * doc/pastposix-functions/fcvt.texi: Renamed from
85493         doc/posix-functions/fcvt.texi.
85494         * doc/pastposix-functions/ftime.texi: Renamed from
85495         doc/posix-functions/ftime.texi.
85496         * doc/pastposix-functions/gcvt.texi: Renamed from
85497         doc/posix-functions/gcvt.texi.
85498         * doc/pastposix-functions/getcontext.texi: Renamed from
85499         doc/posix-functions/getcontext.texi.
85500         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
85501         doc/posix-functions/gethostbyaddr.texi.
85502         * doc/pastposix-functions/gethostbyname.texi: Renamed from
85503         doc/posix-functions/gethostbyname.texi.
85504         * doc/pastposix-functions/getwd.texi: Renamed from
85505         doc/posix-functions/getwd.texi.
85506         * doc/pastposix-functions/h_errno.texi: Renamed from
85507         doc/posix-functions/h_errno.texi.
85508         * doc/pastposix-functions/index.texi: Renamed from
85509         doc/posix-functions/index.texi.
85510         * doc/pastposix-functions/makecontext.texi: Renamed from
85511         doc/posix-functions/makecontext.texi.
85512         * doc/pastposix-functions/mktemp.texi: Renamed from
85513         doc/posix-functions/mktemp.texi.
85514         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
85515         doc/posix-functions/pthread_attr_getstackaddr.texi.
85516         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
85517         doc/posix-functions/pthread_attr_setstackaddr.texi.
85518         * doc/pastposix-functions/rindex.texi: Renamed from
85519         doc/posix-functions/rindex.texi.
85520         * doc/pastposix-functions/scalb.texi: Renamed from
85521         doc/posix-functions/scalb.texi.
85522         * doc/pastposix-functions/setcontext.texi: Renamed from
85523         doc/posix-functions/setcontext.texi.
85524         * doc/pastposix-functions/swapcontext.texi: Renamed from
85525         doc/posix-functions/swapcontext.texi.
85526         * doc/pastposix-functions/ualarm.texi: Renamed from
85527         doc/posix-functions/ualarm.texi.
85528         * doc/pastposix-functions/usleep.texi: Renamed from
85529         doc/posix-functions/usleep.texi.
85530         * doc/pastposix-functions/vfork.texi: Renamed from
85531         doc/posix-functions/vfork.texi.
85532         * doc/pastposix-functions/wcswcs.texi: Renamed from
85533         doc/posix-functions/wcswcs.texi.
85534         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
85535         (Function Substitutes): Update.
85537 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85539         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
85540         m4/strerror.m4.
85542 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85543             Bruno Haible  <bruno@clisp.org>
85545         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
85547 2008-12-13  Bruno Haible  <bruno@clisp.org>
85549         * modules/strtoull (Depends-on): Remove unistd.
85551 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85553         * modules/strtoull (Depends-on): Add stdlib.
85555 2008-12-11  Simon Josefsson  <simon@josefsson.org>
85557         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
85559 2008-12-10  Jim Meyering  <meyering@redhat.com>
85561         gl_ASSERT: don't say assertions are disabled when they're not
85562         * m4/assert.m4 (gl_ASSERT): Do not make configure report
85563         "checking whether to enable assertions... no", when they are in
85564         fact enabled.  This is solely a bug in the output of configure.
85565         In spite of saying "no", NDEBUG was not defined in that case.
85566         Also, as noted by Eric Blake, leave assertions enabled upon
85567         --enable-assert=INVALID.
85569 2008-12-10  Bruno Haible  <bruno@clisp.org>
85571         Change MODULES.html to refer to POSIX:2008 where possible.
85572         * MODULES.html.sh (POSIX2008_URL): New variable.
85573         (posix_headers): Remove sys/timeb, ucontext.
85574         (posix2001_headers): New variable.
85575         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
85576         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
85577         index, makecontext, mktemp, pthread_attr_getstackaddr,
85578         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
85579         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
85580         (posix2001_functions): New variable.
85581         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
85582         otherwise.
85584 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85586         add missing include to parse-duration.c
85587         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
85588         * modules/parse-duration (Depends-on): Add xalloc.
85590         fix sed script reading maint.mk
85591         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
85592         (syntax-check-rules): Use it.
85594 2008-12-09  Bruno Haible  <bruno@clisp.org>
85596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
85597         MacOS X 10.4/PowerPC.
85598         Reported by Simon Josefsson.
85600 2008-12-08  Jim Meyering  <meyering@redhat.com>
85602         work around mingw's lack of some S_IF definitions
85603         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
85604         Reported by Simon Josefsson.
85606 2008-12-08  Bruno Haible  <bruno@clisp.org>
85608         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
85609         applied to variables. Needed on MacOS X 10.4/PowerPC.
85610         Reported by Simon Josefsson.
85612 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
85613         and Eric Blake  <ebb9@byu.net>
85615         assert: honor --enable-assert
85616         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
85617         order to honor --enable-assert, rather than treating it as a
85618         synonym for --disable-assert.
85620 2008-12-08  Jim Meyering  <meyering@redhat.com>
85622         * lib/posixtm.c: Remove now-useless declaration of mktime.
85624         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
85626 2008-12-07  Bruno Haible  <bruno@clisp.org>
85628         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
85629         test_once): Mark functions as static.
85630         * tests/test-tls.c (test_tls): Likewise.
85632 2008-12-07  Bruno Haible  <bruno@clisp.org>
85634         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
85635         iconv_register_autodetect.
85637 2008-12-07  Jim Meyering  <meyering@redhat.com>
85639         posixtm.c: avoid a warning
85640         * lib/posixtm.c (posixtime): Don't initialize tm0.
85641         It's no longer needed to placate gcc4's -Wuninitialized,
85642         and the attempt to placate would elicit a new warning.
85644         unicodeio.c: mark unused parameters
85645         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85646         (fallback_failure_callback): Likewise.
85648 2008-12-07  Bruno Haible  <bruno@clisp.org>
85650         * gnulib-tool (func_create_testdir): When building the tests
85651         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
85652         Reported by Simon Josefsson.
85654 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85656         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
85658 2008-12-06  Bruno Haible  <bruno@clisp.org>
85660         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
85661         Suggested by Eric Blake.
85663 2008-12-06  Bruno Haible  <bruno@clisp.org>
85665         Fix a c-stack test failure on MacOS X.
85666         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85667         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85668         handler for SIGBUS as well.
85669         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85670         install a signal handler for SIGBUS as well.
85671         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85673 2008-12-06  Bruno Haible  <bruno@clisp.org>
85675         Advocacy documentation.
85676         * doc/gnulib-intro.texi (Benefits): New section.
85677         * doc/gnulib.texi: Update.
85679 2008-12-06  Bruno Haible  <bruno@clisp.org>
85681         Document the 'manywarnings' module.
85682         * doc/manywarnings.texi: New file.
85683         * doc/gnulib.texi: Include it.
85685 2008-12-05  Eric Blake  <ebb9@byu.net>
85687         tests: silence some gcc warnings
85688         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85689         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85690         type mismatches.
85692 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85693             Bruno Haible  <bruno@clisp.org>
85695         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85697 2008-11-29  Jim Meyering  <meyering@redhat.com>
85699         unicodeio.c: mark unused parameters
85700         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85701         (fallback_failure_callback): Likewise.
85703         fts: fix a thinko
85704         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85705         (set_stat_type): Return S_IF*-valued "type" directly.
85706         Prompted by James Youngman's spotting a related bug.
85707         Confirmed by further testing through find.
85709         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
85710         * lib/fts.c (D_TYPE): Define.
85711         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
85712         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
85713         (s_ifmt_shift_bits): New function.
85714         (set_stat_type): New function.
85715         (fts_build): When not calling fts_stat, call set_stat_type
85716         to propagate dirent.d_type info to fts_read caller.
85717         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
85718         fts_statp->st_mode type information may be valid.
85720 2008-11-28  Simon Josefsson  <simon@josefsson.org>
85722         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
85723         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
85724         <sds@gnu.org>.
85726 2008-11-20  Bruno Haible  <bruno@clisp.org>
85728         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
85729         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
85730         INCLUDE_NEXT.
85731         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
85732         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
85733         * modules/math (Makefile.am): Substitute
85734         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
85735         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85737 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
85738             Bruno Haible  <bruno@clisp.org>
85740         * lib/stdint.in.h: Define all type macros so that their expansion is
85741         a single typedef'ed token. Fixes a compilation failure in Boost which
85742         does "using ::int8_t;".
85744 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85746         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
85747         gl_MANYWARN_ALL_GCC.
85748         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
85749         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
85750         * modules/manywarnings: New file.
85751         * MODULES.html.sh: Mention manywarnings module.
85753 2008-11-18  Bruno Haible  <bruno@clisp.org>
85755         * doc/gnulib-tool.texi (Unit tests): New section.
85757 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85759         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
85760         paths like 'lib/po/foo.po'.
85762 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85764         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
85765         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
85767 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85769         * m4/warnings.m4: Use CPPFLAGS to really check whether the
85770         parameter works.
85772 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85774         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
85776 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85778         * modules/parse-duration-tests: New file.
85779         * tests/test-parse-duration.sh: New file.
85780         * tests/test-parse-duration.c: New file.
85782         New module 'parse-duration'.
85783         * lib/parse-duration.h: New file.
85784         * lib/parse-duration.c: New file.
85785         * modules/parse-duration: New file.
85787 2008-11-17  Bruno Haible  <bruno@clisp.org>
85789         * tests/test-select-out.sh: Comment out the first pipe test.
85790         Reported by Simon Josefsson.
85792 2008-11-17  Bruno Haible  <bruno@clisp.org>
85794         * modules/getaddrinfo (Depends-on): Add servent, hostent.
85795         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
85796         gl_HOSTENT.
85798 2008-11-17  Bruno Haible  <bruno@clisp.org>
85800         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
85801         -lnetwork and -lnet. Needed for Haiku and BeOS.
85803 2008-11-16  Bruno Haible  <bruno@clisp.org>
85805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85807 2008-11-16  Bruno Haible  <bruno@clisp.org>
85809         Avoid test failure on Haiku.
85810         * tests/test-fsync.c: Include <errno.h>.
85811         (main): Don't require that fsync (0) fails.
85813 2008-11-15  Bruno Haible  <bruno@clisp.org>
85815         New module 'hostent'.
85816         * modules/hostent: New file.
85817         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85819 2008-11-15  Bruno Haible  <bruno@clisp.org>
85821         New module 'servent'.
85822         * modules/servent: New file.
85823         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85825 2008-11-15  Bruno Haible  <bruno@clisp.org>
85827         Avoid generating same test program with two different rules.
85828         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85829         test-frexp to test-frexp-nolibm.
85830         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85831         test-frexpl to test-frexpl-nolibm.
85833 2008-11-15  Bruno Haible  <bruno@clisp.org>
85835         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85836         $(FREXPL_LIBM).
85838 2008-11-15  Bruno Haible  <bruno@clisp.org>
85840         * lib/netdb.in.h: Activate the definitions also when the system's
85841         <netdb.h> has 'struct addrinfo'.
85842         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85843         EAI_OVERFLOW or AI_NUMERICSERV.
85844         * doc/posix-headers/netdb.texi: Document the problem.
85846 2008-11-15  Bruno Haible  <bruno@clisp.org>
85848         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85850         Make the 'sched' module work on platforms where <sched.h> exists but
85851         is incomplete (such as Haiku).
85852         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85853         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85854         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85855         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85856         HAVE_STRUCT_SCHED_PARAM.
85857         * modules/sched (Depends-on): Add include_next.
85858         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85859         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85860         * doc/posix-headers/sched.texi: Document the issue.
85862 2008-11-13  Jim Meyering  <meyering@redhat.com>
85864         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85865         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85866         test would fail due to the difference in the Report bugs to ...
85867         line.  The expected address is empty, "<>", while the actual
85868         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85870 2008-11-12  Bruno Haible  <bruno@clisp.org>
85872         lstat: don't compile lstat.c on systems lacking lstat
85873         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85874         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85875         Reported by Daniel P. Berrange via Jim Meyering.
85877 2008-11-12  Jim Meyering  <meyering@redhat.com>
85879         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85881 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85883         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85884         instead.
85886 2008-11-12  Bruno Haible  <bruno@clisp.org>
85888         * lib/unicodeio.c: Include unistr.h.
85889         (utf8_wctomb): Remove function.
85890         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85892 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85894         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85895         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85896         <bruno@clisp.org>.
85897         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85899 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85901         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85902         * doc/gnulib.texi: Add section for warnings.
85904 2008-11-11  Bruno Haible  <bruno@clisp.org>
85906         * lib/sockets.h: Add a comment.
85908 2008-11-11  Karl Berry  <karl@gnu.org>
85910         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85912 2008-11-11  Eric Blake  <ebb9@byu.net>
85914         fdl.texi: avoid git symlinks
85915         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85917 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85919         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85921 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85923         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85924         (gl_WARN_ADD): Substitute $2 if literal.
85926 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85928         * m4/warning.m4: Remove.
85930 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85932         * m4/warnings.m4: Almost complete rewrite. :-)
85934 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85936         * modules/warnings: New module.
85937         * m4/warnings.m4: New file.
85938         * MODULES.html.sh: Mention warnings module.
85939         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85940         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85942 2008-11-10  Eric Blake  <ebb9@byu.net>
85944         fdl.texi: make a symlink to the latest version
85945         * doc/standards.texi: Revert today's earlier change.
85946         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85947         * doc/fdl.texi: ...and replace this with a symlink to the newer
85948         fdl-1.3.texi.
85950 2008-11-10  Bruno Haible  <bruno@clisp.org>
85952         * tests/test-select-fd.c (main): Accept the result file name as fourth
85953         argument.
85954         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85955         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85957 2008-11-10  Bruno Haible  <bruno@clisp.org>
85959         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85960         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85961         as autoconf-substituted macros.
85962         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85964         gl_NETDB_H_DEFAULTS. Set these variables.
85965         * modules/netdb (Makefile.am): Substitute these variables.
85967 2008-11-10  Eric Blake  <ebb9@byu.net>
85969         standards.texi: include correct file for FDL 1.3
85970         * doc/standards.texi (GNU Free Documentation License): Change
85971         include file to pull in FDL 1.3, not 1.2.
85973         fdl.texi: revert accidental change to license
85974         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85976 2008-11-10  Bruno Haible  <bruno@clisp.org>
85978         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85979         cross-compiling guesses also when the native compile gives no result.
85981 2008-11-10  Bruno Haible  <bruno@clisp.org>
85983         * lib/spawni.c (__spawni): Force variable into the stack.
85985 2008-11-10  Bruno Haible  <bruno@clisp.org>
85987         Add support for Haiku.
85988         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85989         glibc and BeOS, but also on Haiku.
85990         * lib/fpurge.c (fpurge): Likewise.
85991         * lib/freadable.c (freadable): Likewise.
85992         * lib/freadahead.c (freadahead): Likewise.
85993         * lib/freading.c (freading): Likewise.
85994         * lib/freadptr.c (freadptr): Likewise.
85995         * lib/freadseek.c (freadptrinc): Likewise.
85996         * lib/fseeko.c (rpl_fseeko): Likewise.
85997         * lib/fseterr.c (fseterr): Likewise.
85998         * lib/fwritable.c (fwritable): Likewise.
85999         * lib/fwriting.c (fwriting): Likewise.
86000         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
86002 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86004         * lib/config.charset: Treat Haiku like BeOS.
86006 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86008         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
86009         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
86011 2008-11-08  Bruno Haible  <bruno@clisp.org>
86013         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
86014         AC_CACHE_CHECK.
86016 2008-11-08  Bruno Haible  <bruno@clisp.org>
86018         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
86020 2008-11-08  Bruno Haible  <bruno@clisp.org>
86022         * tests/test-select-fd.c: New file.
86023         * tests/test-select-in.sh: New file.
86024         * tests/test-select-out.sh: New file.
86025         * tests/test-select-stdin.c: New file.
86026         * modules/select-tests (Files): Add the new files.
86027         (Depends-on): Add gettimeofday.
86028         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
86029         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
86030         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
86032 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
86033             Bruno Haible  <bruno@clisp.org>
86035         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
86037 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
86039         * build-aux/pmccabe2html: Added support for C++ source files.
86041 2008-11-05  Ben Pfaff  <blp@gnu.org>
86043         Fix lib/close.c build on Windows.
86044         * modules/close (Files): Add lib/w32sock.h.
86046 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
86048         Accept Bison's NEWS format.
86049         * build-aux/announce-gen (print_news_deltas): Tweak
86050         $re_prefix.
86052 2008-11-04  Bruno Haible  <bruno@clisp.org>
86054         * modules/random_r (Maintainer): Add glibc.
86056 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86058         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
86059         by karl@freefriends.org (Karl Berry).
86060         * doc/alloca.texi: Likewise.
86061         * doc/c-ctype.texi: Likewise.
86062         * doc/c-strcase.texi: Likewise.
86063         * doc/c-strcaseeq.texi: Likewise.
86064         * doc/c-strcasestr.texi: Likewise.
86065         * doc/c-strstr.texi: Likewise.
86066         * doc/c-strtod.texi: Likewise.
86067         * doc/c-strtold.texi: Likewise.
86068         * doc/ctime.texi: Likewise.
86069         * doc/error.texi: Likewise.
86070         * doc/fdl.texi: Likewise.
86071         * doc/gcd.texi: Likewise.
86072         * doc/getdate.texi: Likewise.
86073         * doc/gnulib-intro.texi: Likewise.
86074         * doc/gnulib-tool.texi: Likewise.
86075         * doc/gnulib.texi: Likewise.
86076         * doc/inet_ntoa.texi: Likewise.
86077         * doc/maintain.texi: Likewise.
86078         * doc/make-stds.texi: Likewise.
86079         * doc/quote.texi: Likewise.
86080         * doc/regexprops-generic.texi: Likewise.
86081         * doc/standards.texi: Likewise.
86082         * doc/verify.texi: Likewise.
86083         * doc/visibility.texi: Likewise.
86084         * doc/gnulib.texi (GNU Free Documentation License): Include
86085         fdl-1.3.texi instead of fdl.texi.
86087 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86089         * doc/fdl-1.3.texi: New file, from
86090         <http://www.gnu.org/licenses/fdl-1.3.texi>.
86091         * modules/fdl-1.3: Add.
86092         * MODULES.html.sh: Add fdl-1.3.
86094 2008-11-03  Bruno Haible  <bruno@clisp.org>
86096         Make determination of absolute name of header file work with AIX xlc.
86097         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
86098         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
86099         preprocessing.
86100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86101         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86103 2008-11-03  Simon Josefsson  <simon@josefsson.org>
86105         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
86106         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
86107         <ludo@gnu.org>.
86109 2008-11-02  Bruno Haible  <bruno@clisp.org>
86111         Mark 'strpbrk' obsolete.
86112         * modules/strpbrk (Status, Notice): New sections.
86113         * modules/strtok_r (Depends-on): Add strpbrk.
86115 2008-11-02  Bruno Haible  <bruno@clisp.org>
86117         Mark 'strdup' obsolete.
86118         * modules/strdup (Status, Notice): New sections.
86119         * modules/findprog (Depends-on): Add strdup.
86120         * modules/getaddrinfo (Depends-on): Likewise.
86121         * modules/localename (Depends-on): Likewise.
86122         * modules/relocatable-lib (Depends-on): Likewise.
86123         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
86124         * modules/relocatable-prog (Depends-on): Likewise.
86125         * modules/trim (Depends-on): Likewise.
86126         * modules/unictype/gen-ctype (Depends-on): Likewise.
86127         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86129 2008-11-02  Bruno Haible  <bruno@clisp.org>
86131         Mark 'strcspn' obsolete.
86132         * modules/strcspn (Status, Notice): New sections.
86134 2008-11-02  Bruno Haible  <bruno@clisp.org>
86136         Mark 'rmdir' obsolete.
86137         * modules/rmdir (Status, Notice): New sections.
86138         * modules/clean-temp (Depends-on): Add rmdir.
86139         * modules/openat (Depends-on): Likewise.
86141 2008-11-02  Bruno Haible  <bruno@clisp.org>
86143         Mark 'raise' obsolete.
86144         * modules/raise (Status, Notice): New sections.
86145         (Include): Specify <signal.h>.
86146         * modules/stdio (Depends-on): Add raise.
86147         * modules/write (Depends-on): Likewise.
86149 2008-11-02  Bruno Haible  <bruno@clisp.org>
86151         Mark 'memset' obsolete.
86152         * modules/memset (Status, Notice): New sections.
86154 2008-11-02  Bruno Haible  <bruno@clisp.org>
86156         Mark 'memmove' obsolete.
86157         * modules/memmove (Status, Notice): New sections.
86158         * modules/argp (Depends-on): Add memmove.
86159         * modules/argz (Depends-on): Likewise.
86160         * modules/canonicalize (Depends-on): Likewise.
86161         * modules/canonicalize-lgpl (Depends-on): Likewise.
86162         * modules/fts (Depends-on): Likewise.
86163         * modules/getcwd (Depends-on): Likewise.
86164         * modules/human (Depends-on): Likewise.
86165         * modules/regex (Depends-on): Likewise.
86166         * modules/striconveh (Depends-on): Likewise.
86167         * modules/trim (Depends-on): Likewise.
86168         * modules/unistr/u8-move (Depends-on): Likewise.
86169         * modules/unistr/u16-move (Depends-on): Likewise.
86170         * modules/unistr/u32-move (Depends-on): Likewise.
86172 2008-11-02  Bruno Haible  <bruno@clisp.org>
86174         Mark 'memcpy' obsolete.
86175         * modules/memcpy (Status, Notice): New sections.
86177 2008-11-02  Bruno Haible  <bruno@clisp.org>
86179         Mark 'memcmp' obsolete.
86180         * modules/memcmp (Status, Notice): New sections.
86181         * modules/argmatch (Depends-on): Add memchr.
86182         * modules/backupfile (Depends-on): Likewise.
86183         * modules/c-strcasestr (Depends-on): Likewise.
86184         * modules/crypto/des (Depends-on): Likewise.
86185         * modules/csharpcomp (Depends-on): Likewise.
86186         * modules/fnmatch (Depends-on): Likewise.
86187         * modules/git-merge-changelog (Depends-on): Likewise.
86188         * modules/isnand (Depends-on): Likewise.
86189         * modules/isnand-nolibm (Depends-on): Likewise.
86190         * modules/isnanf (Depends-on): Likewise.
86191         * modules/isnanf-nolibm (Depends-on): Likewise.
86192         * modules/isnanl (Depends-on): Likewise.
86193         * modules/isnanl-nolibm (Depends-on): Likewise.
86194         * modules/mbchar (Depends-on): Likewise.
86195         * modules/memcoll (Depends-on): Likewise.
86196         * modules/quotearg (Depends-on): Likewise.
86197         * modules/regex (Depends-on): Likewise.
86198         * modules/relocatable-prog (Depends-on): Likewise.
86199         * modules/same (Depends-on): Likewise.
86200         * modules/signbit (Depends-on): Likewise.
86201         * modules/strcasestr-simple (Depends-on): Likewise.
86202         * modules/unictype/gen-ctype (Depends-on): Likewise.
86203         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86204         * modules/uniname/uniname (Depends-on): Likewise.
86205         * modules/unistr/u8-cmp (Depends-on): Likewise.
86207 2008-11-02  Bruno Haible  <bruno@clisp.org>
86209         Mark 'memchr' obsolete.
86210         * modules/memchr (Status, Notice): New sections.
86211         * modules/argp (Depends-on): Add memchr.
86212         * modules/base64 (Depends-on): Likewise.
86213         * modules/c-strcasestr (Depends-on): Likewise.
86214         * modules/chdir-long (Depends-on): Likewise.
86215         * modules/fnmatch (Depends-on): Likewise.
86216         * modules/getsubopt (Depends-on): Likewise.
86217         * modules/git-merge-changelog (Depends-on): Likewise.
86218         * modules/glob (Depends-on): Likewise.
86219         * modules/strcasestr-simple (Depends-on): Likewise.
86220         * modules/strnlen (Depends-on): Likewise.
86222 2008-11-02  Bruno Haible  <bruno@clisp.org>
86224         Mark 'atexit' obsolete.
86225         * modules/atexit (Status, Notice): New sections.
86226         * modules/chdir-long (Depends-on): Add atexit.
86227         * modules/wait-process (Depends-on): Likewise.
86229 2008-11-02  Bruno Haible  <bruno@clisp.org>
86231         * gnulib-tool: New option --with-obsolete.
86232         (func_usage): Document it.
86233         (func_modules_transitive_closure): Drop obsolete dependencies if
86234         incobsolete is not true.
86235         (func_import): Read and save the incobsolete variable to the cache.
86237 2008-11-02  Bruno Haible  <bruno@clisp.org>
86239         * modules/TEMPLATE-EXTENDED: New field 'Status'.
86240         * gnulib-tool: New option --extract-status.
86241         (func_usage): Document it.
86242         (sed_extract_prog): Recognize it.
86243         (func_get_status): New function.
86245 2008-10-30  Simon Josefsson  <simon@josefsson.org>
86247         * modules/sockets (License): Change from LGPL to LGPLv2+.
86249 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86251         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
86253 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86255         * MODULES.html.sh (Support for systems lacking POSIX:2001):
86256         Mention times and sys_times.
86257         * modules/sys_times, modules/sys_times-tests: New modules.
86258         * modules/times, modules/times-tests: Likewise
86259         * m4/sys_times_h.m4: New file.
86260         * lib/sys_times.in.h: Likewise
86261         * lib/times.c: Likewise.
86262         * tests/test-sys_times.c: Likewise.
86263         * tests/test-times.c: Likewise.
86264         * doc/posix-headers/sys_times.texi: Update.
86265         * doc/posix-functions/times.texi: Update.
86267 2008-10-28  Jim Meyering  <meyering@redhat.com>
86269         * modules/tempname (Depends-on): Add lstat.
86271         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
86273 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86275         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
86276         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
86277         using idiom used elsewhere in gnulib.
86279 2008-10-27  Jim Meyering  <meyering@redhat.com>
86281         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
86283 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86285         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
86286         TESTS_ENVIRONMENT, for shell scripts that needs to call built
86287         programs.
86288         * tests/test-argp-2.sh: Use $EXEEXT when needed.
86290 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86292         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
86294 2008-10-27  Bruno Haible  <bruno@clisp.org>
86296         * tests/test-lstat.c: Include <stdio.h>.
86298 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86300         * modules/lstat-tests: New module.
86301         * tests/test-lstat.c: New file.
86303 2008-10-26  Jim Meyering  <meyering@redhat.com>
86305         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
86307 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86308             Bruno Haible  <bruno@clisp.org>
86310         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
86311         * modules/configmake (Include): Add a note that the include must come
86312         after all system headers.
86313         * lib/javaversion.c: Include configmake.h after all other includes.
86315 2008-10-26  Bruno Haible  <bruno@clisp.org>
86317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
86318         HAVE_STRUCT_RANDOM_DATA to 1.
86319         (gl_STDLIB_H): Simplify.
86321 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86323         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
86324         substitute HAVE_STRUCT_RANDOM_DATA.
86325         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
86326         random_data.
86327         * modules/stdlib (Makefile.am): Substitute
86328         HAVE_STRUCT_RANDOM_DATA.
86330 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86332         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
86333         * doc/gnulib-intro.texi (Copyright): Likewise.
86335 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86337         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
86338         findings.
86340 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
86341             Bruno Haible  <bruno@clisp.org>
86343         * lib/unistd.in.h: Include <winsock2.h>.
86344         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
86345         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
86346         Provide dummy declarations.
86347         (gethostname): Override.
86348         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
86349         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
86350         gl_PREREQ_SYS_H_WINSOCK2.
86351         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
86352         * doc/posix-functions/gethostname.texi: More details.
86354 2008-10-25  Bruno Haible  <bruno@clisp.org>
86356         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86357         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
86358         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
86360         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
86361         here ...
86362         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
86363         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
86364         gl_UNISTD_H_DEFAULTS.
86366 2008-10-25  Eric Blake  <ebb9@byu.net>
86368         signbit: avoid spurious compiler failure
86369         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
86370         declarations inside function.
86372 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86373             Bruno Haible  <bruno@clisp.org>
86375         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
86376         * modules/random_r (Depends-on): Add stdint.
86378 2008-10-24  Bruno Haible  <bruno@clisp.org>
86380         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
86381         Eggert.
86382         * modules/strerror (License): Likewise.
86384 2008-10-24  Jim Meyering  <meyering@redhat.com>
86386         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
86387         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
86389 2008-10-24  Eric Blake  <ebb9@byu.net>
86391         getgroups: fix compilation when getgroups is available
86392         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
86393         but with <config.h> override of getgroups disabled.
86395 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86397         * doc/gnulib.texi (Header files): Add note about C++ problems.
86398         Explained by Bruno Haible <bruno@clisp.org>.
86400 2008-10-23  Bruno Haible  <bruno@clisp.org>
86402         Define a dummy SA_NODEFER macro on Interix.
86403         * lib/signal.in.h (SA_NODEFER): Define fallback.
86404         Reported by Aleksey Cheusov <cheusov@tut.by> via
86405         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
86407 2008-10-23  Bruno Haible  <bruno@clisp.org>
86409         * modules/freadahead (License): Change to LGPLv2+.
86410         Suggested by Simon Josefsson.
86412 2008-10-23  Jim Meyering  <meyering@redhat.com>
86414         random_r: new module
86415         * modules/random_r: New file.
86416         * m4/random_r.m4: New file.
86417         * lib/random_r.c: New file, from glibc.
86418         * modules/random_r-tests: New file.
86419         * tests/test-random_r.c: New file.
86420         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
86421          Declare.
86422         (RAND_MAX): Define.
86423         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
86424         * modules/stdlib: Substitute them, too.
86425         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
86426         * doc/glibc-functions/initstate_r.texi: Mention the new module.
86427         * doc/glibc-functions/random_r.texi: Likewise.
86428         * doc/glibc-functions/setstate_r.texi: Likewise.
86429         * doc/glibc-functions/srandom_r.texi: Likewise.
86430         * config/srclist.txt: Mention it.
86432 2008-10-23  David Lutterkort  <lutter@redhat.com>
86434         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
86435         link requirement
86437 2008-10-23  Jim Meyering  <meyering@redhat.com>
86439         selinux-h: mark parameters of stub functions as intentionally unused
86440         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
86441         * lib/se-context.in.h: Likewise.
86443 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86445         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
86447 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86449         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
86451 2008-10-22  Eric Blake  <ebb9@byu.net>
86453         glthread/thread: avoid compiler warning
86454         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
86455         Add unreachable abort to silence compiler.
86457 2008-10-22  Eric Blake  <ebb9@byu.net>
86459         netdb: also supply struct addrinfo for cygwin 1.5.x
86460         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
86461         older cygwin.
86462         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
86463         cygwin.
86464         * doc/posix-headers/netdb.texi (netdb.h): Document this.
86466 2008-10-22  Bruno Haible  <bruno@clisp.org>
86468         * users.txt: Update entry about pspp.
86470 2008-10-21  Bruno Haible  <bruno@clisp.org>
86472         Simplification.
86473         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
86474         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
86476         Simplification.
86477         * lib/ioctl.c (ioctl): Don't undefine.
86478         * lib/socket.c (socket): Don't undefine.
86480         Remove unused module indicator macros.
86481         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
86482         GNULIB_$1 as a C macro.
86484         * doc/posix-functions/close.texi: Undo last change.
86485         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
86486         Windows platforms.
86488 2008-10-21  Bruno Haible  <bruno@clisp.org>
86490         Add gethostname() declaration to <unistd.h>.
86491         * lib/unistd.in.h (gethostname): New declaration.
86492         * lib/gethostname.c: Include <unistd.h>.
86493         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
86494         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
86495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
86496         and HAVE_GETHOSTNAME.
86497         * modules/gethostname (Depends-on): Add unistd.
86498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86499         (Include): Specify <unistd.h>.
86500         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
86501         HAVE_GETHOSTNAME.
86502         * tests/test-gethostname.c: Include <unistd.h> first.
86504 2008-10-21  Bruno Haible  <bruno@clisp.org>
86506         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
86507         * modules/select-tests (Depends-on): Likewise.
86508         Reported by Simon Josefsson.
86510 2008-10-21  Simon Josefsson  <simon@josefsson.org>
86512         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
86513         * lib/accept.c: New file, based on winsock.c.
86514         * lib/bind.c: New file, based on winsock.c.
86515         * lib/connect.c: New file, based on winsock.c.
86516         * lib/getpeername.c: New file, based on winsock.c.
86517         * lib/getsockname.c: New file, based on winsock.c.
86518         * lib/getsockopt.c: New file, based on winsock.c.
86519         * lib/ioctl.c: New file, based on winsock.c.
86520         * lib/listen.c: New file, based on winsock.c.
86521         * lib/recv.c: New file, based on winsock.c.
86522         * lib/recvfrom.c: New file, based on winsock.c.
86523         * lib/send.c: New file, based on winsock.c.
86524         * lib/sendto.c: New file, based on winsock.c.
86525         * lib/setsockopt.c: New file, based on winsock.c.
86526         * lib/shutdown.c: New file, based on winsock.c.
86527         * lib/socket.c: New file, based on winsock.c.
86528         * lib/w32sock.h: New file, based on winsock.c.
86529         * lib/winsock.c: Remove file.
86530         * modules/accept: Likewise.
86531         * modules/bind: Likewise.
86532         * modules/connect: Likewise.
86533         * modules/getpeername: Likewise.
86534         * modules/getsockname: Likewise.
86535         * modules/getsockopt: Likewise.
86536         * modules/ioctl: Likewise.
86537         * modules/listen: Likewise.
86538         * modules/recv: Likewise.
86539         * modules/recvfrom: Likewise.
86540         * modules/send: Likewise.
86541         * modules/sendto: Likewise.
86542         * modules/setsockopt: Likewise.
86543         * modules/shutdown: Likewise.
86544         * modules/socket: Use socket.c instead of winsock.c.
86545         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
86546         * doc/posix-functions/accept.texi: Doc fix.
86547         * doc/posix-functions/bind.texi: Doc fix.
86548         * doc/posix-functions/close.texi: Doc fix.
86549         * doc/posix-functions/connect.texi: Doc fix.
86550         * doc/posix-functions/getpeername.texi: Doc fix.
86551         * doc/posix-functions/getsockname.texi: Doc fix.
86552         * doc/posix-functions/getsockopt.texi: Doc fix.
86553         * doc/posix-functions/ioctl.texi: Doc fix.
86554         * doc/posix-functions/listen.texi: Doc fix.
86555         * doc/posix-functions/recv.texi: Doc fix.
86556         * doc/posix-functions/recvfrom.texi: Doc fix.
86557         * doc/posix-functions/send.texi: Doc fix.
86558         * doc/posix-functions/sendto.texi: Doc fix.
86559         * doc/posix-functions/setsockopt.texi: Doc fix.
86560         * doc/posix-functions/shutdown.texi: Doc fix.
86561         * doc/posix-functions/socket.texi: Doc fix.
86563 2008-10-20  Bruno Haible  <bruno@clisp.org>
86565         Take into account the role of SIGABRT_COMPAT on Windows 2008.
86566         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
86567         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
86568         as an alias for SIGABRT.
86569         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
86570         (sigaction): Map it to SIGABRT.
86571         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86573 2008-10-20  Bruno Haible  <bruno@clisp.org>
86575         * lib/fts.c: Don't include lstat.h.
86576         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
86578         Move the lstat() declaration to <sys/stat.h>.
86579         * lib/lstat.h: Remove file.
86580         * lib/sys_stat.in.h: Add special invocation convention.
86581         (lstat): New declaration.
86582         * lib/lstat.c (orig_lstat): New function.
86583         (rpl_lstat): Use orig_lstat instead of lstat.
86584         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
86585         AC_C_INLINE. Set REPLACE_LSTAT.
86586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
86587         and REPLACE_LSTAT.
86588         * modules/lstat (Files): Remove lib/lstat.h.
86589         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86590         (Include): Specify <sys/stat.h> instead of lstat.h.
86591         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
86592         REPLACE_LSTAT.
86593         * NEWS: Mention the change.
86595 2008-10-20  Bruno Haible  <bruno@clisp.org>
86597         * modules/posix_spawn-tests: New file.
86598         * tests/test-posix_spawn3.c: New file.
86600 2008-10-20  Bruno Haible  <bruno@clisp.org>
86602         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
86603         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86604         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
86605         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86606         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
86608 2008-10-20  Bruno Haible  <bruno@clisp.org>
86610         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
86611         of posix_spawn on AIX 5.3.
86613 2008-10-20  Bruno Haible  <bruno@clisp.org>
86615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
86617 2008-10-20  Bruno Haible  <bruno@clisp.org>
86619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
86620         of AC_LANG_PROGRAM.
86622 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86624         * lib/netdb.in.h: Don't define GNU specific constants until they
86625         are supported or needed.  Reported by Bruno Haible
86626         <bruno@clisp.org>.
86628 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86630         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
86632 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86634         * lib/getaddrinfo.h: Remove file.
86635         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
86636         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
86637         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
86638         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
86639         * modules/netdb: Substitute GNULIB_GETADDRINFO.
86640         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
86641         * tests/test-getaddrinfo.c: Likewise.
86642         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
86643         * NEWS: Mention change.
86645 2008-10-19  Bruno Haible  <bruno@clisp.org>
86647         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
86649 2008-10-19  Bruno Haible  <bruno@clisp.org>
86651         * lib/wait-process.c: Include simply <sys/wait.h>.
86652         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
86653         WIFSTOPPED): Remove fallback definitions.
86654         * modules/wait-process (Depends-on): Add sys_wait.
86656         New module 'sys_wait'.
86657         * modules/sys_wait: New file.
86658         * lib/sys_wait.in.h: New file, partially copied from
86659         lib/wait-process.c.
86660         * m4/sys_wait_h.m4: New file.
86661         * doc/posix-headers/sys_wait.texi: Mention the new module.
86663 2008-10-19  Bruno Haible  <bruno@clisp.org>
86665         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86667 2008-10-19  Bruno Haible  <bruno@clisp.org>
86669         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86670         * lib/wait-process.c (WAIT_T): Remove type.
86671         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86672         (wait_subprocess): Update.
86674 2008-10-19  Bruno Haible  <bruno@clisp.org>
86676         New module 'atoll'.
86677         * modules/atoll: New file.
86678         * lib/stdlib.in.h (atoll): New declaration.
86679         * lib/atoll.c: New file, from glibc with modifications.
86680         * m4/atoll.m4: New file.
86681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86682         HAVE_ATOLL.
86683         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86684         * doc/posix-functions/atoll.texi: Mention the new module.
86686 2008-10-19  Bruno Haible  <bruno@clisp.org>
86688         Add strtoull() declaration to <stdlib.h>.
86689         * lib/stdlib.in.h (strtoull): New declaration.
86690         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86691         Set HAVE_STRTOULL.
86692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86693         HAVE_STRTOULL.
86694         * modules/strtoull (Depends-on): Add stdlib.
86695         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86696         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86697         HAVE_STRTOULL.
86699 2008-10-19  Bruno Haible  <bruno@clisp.org>
86701         Add strtoll() declaration to <stdlib.h>.
86702         * lib/stdlib.in.h (strtoll): New declaration.
86703         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86704         Set HAVE_STRTOLL.
86705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86706         HAVE_STRTOLL.
86707         * modules/strtoll (Depends-on): Add stdlib.
86708         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86709         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
86711 2008-10-19  Bruno Haible  <bruno@clisp.org>
86713         * modules/bcopy (Depends-on): Add strings.
86714         (Include): Specify <strings.h>.
86716 2008-10-19  Bruno Haible  <bruno@clisp.org>
86718         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
86720 2008-10-19  Bruno Haible  <bruno@clisp.org>
86722         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
86723         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
86724         mingw.
86726 2008-10-19  Bruno Haible  <bruno@clisp.org>
86728         * lib/atanl.c: Don't include isnanl.h.
86729         * lib/cosl.c: Likewise.
86730         * lib/ldexpl.c: Likewise.
86731         * lib/logl.c: Likewise.
86732         * lib/sinl.c: Likewise.
86733         * lib/sqrtl.c: Likewise.
86734         * lib/tanl.c: Likewise.
86736         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
86737         * lib/isnanf.h: Remove file.
86738         * lib/isnand.h: Remove file.
86739         * lib/isnanl.h: Remove file.
86740         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
86741         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
86742         macros.
86743         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
86744         HAVE_ISNANF, don't define it as a C macro.
86745         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
86746         HAVE_ISNAND, don't define it as a C macro.
86747         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
86748         HAVE_ISNANL, don't define it as a C macro.
86749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
86750         HAVE_ISNAN[FDL].
86751         * modules/isnanf (Files): Remove lib/isnanf.h.
86752         (Depends-on): Add math.
86753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86754         (Include): Specify <math.h> instead of isnanf.h.
86755         * modules/isnand (Files): Remove lib/isnand.h.
86756         (Depends-on): Add math.
86757         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86758         (Include): Specify <math.h> instead of isnand.h.
86759         * modules/isnanl (Files): Remove lib/isnanl.h.
86760         (Depends-on): Add math.
86761         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86762         (Include): Specify <math.h> instead of isnanl.h.
86763         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
86764         HAVE_ISNAN[FDL].
86765         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
86766         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
86767         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
86768         * NEWS: Mention the change.
86770 2008-10-18  Bruno Haible  <bruno@clisp.org>
86772         Add getusershell(), setusershell(), endusershell() declarations to
86773         <unistd.h>.
86774         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
86775         declarations.
86776         * lib/getusershell.c: Include unistd.h.
86777         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
86778         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86779         HAVE_GETUSERSHELL.
86780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
86781         and HAVE_GETUSERSHELL.
86782         * modules/getusershell (Depends-on): Add unistd, extensions.
86783         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86784         (Include): Specify <unistd.h>.
86785         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
86786         HAVE_GETUSERSHELL.
86788 2008-10-18  Bruno Haible  <bruno@clisp.org>
86790         Add a getloadavg() declaration to <stdlib.h>.
86791         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
86792         getloadavg declaration.
86793         (getloadavg): New declaration.
86794         * lib/getloadavg.c: Include <stdlib.h> first.
86795         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
86796         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
86797         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
86798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
86799         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86800         * modules/getloadavg (Depends-on): Add stdlib, extensions.
86801         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86802         (Include): Specify <stdlib.h>.
86803         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
86804         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86806 2008-10-18  Bruno Haible  <bruno@clisp.org>
86808         * lib/dirchownmod.c: Don't include lchmod.h.
86810         Move the lchmod() declaration to <sys/stat.h>.
86811         * lib/lchmod.h: Remove file.
86812         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86813         (lchmod): New declaration, moved here from lib/lchown.h.
86814         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86815         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86817         and HAVE_LCHMOD.
86818         * modules/lchmod (Files): Remove lib/lchmod.h.
86819         (Depends-on): Add sys_stat, extensions.
86820         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86821         (Include): Specify <sys/stat.h> instead of lchmod.h.
86822         * modules/sys_stat (Depends-on): Add link-warning.
86823         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86824         definition of GL_LINK_WARNING.
86825         * NEWS: Mention the change.
86827 2008-10-18  Bruno Haible  <bruno@clisp.org>
86829         * lib/fchdir.c: Don't include dirfd.h.
86830         * lib/fts.c: Likewise.
86831         * lib/getcwd.c: Likewise.
86832         * lib/glob.c: Likewise.
86834         Move the dirfd() declaration to <dirent.h>.
86835         * lib/dirfd.h: Remove file.
86836         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86837         (dirfd): New declaration.
86838         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86840         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86841         HAVE_DECL_DIRFD.
86842         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86843         HAVE_DECL_DIRFD.
86844         * modules/dirfd (Files): Remove lib/dirfd.h.
86845         (Depends-on): Add dirent, extensions.
86846         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86847         (Include): Specify <dirent.h> instead of dirfd.h.
86848         * modules/dirent (Depends-on): Add link-warning.
86849         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86850         definition of GL_LINK_WARNING.
86851         * NEWS: Mention the change.
86853 2008-10-18  Bruno Haible  <bruno@clisp.org>
86855         Move the euidaccess() declaration to <unistd.h>.
86856         * lib/euidaccess.h: Remove file.
86857         * lib/unistd.in.h (euidaccess): New declaration.
86858         * lib/euidaccess.c: Don't include euidaccess.h.
86859         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86860         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86862         and HAVE_EUIDACCESS.
86863         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86864         (Depends-on): Add unistd.
86865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86866         (Include): Specify <unistd.h> instead of euidaccess.h.
86867         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86868         HAVE_EUIDACCESS.
86869         * NEWS: Mention the change.
86871 2008-10-18  Bruno Haible  <bruno@clisp.org>
86873         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86875         Move the getdomainname() declaration to <unistd.h>.
86876         * lib/getdomainname.h: Remove file.
86877         * lib/unistd.in.h (getdomainname): New declaration.
86878         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86879         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86880         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86881         HAVE_GETDOMAINNAME.
86882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86883         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86884         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86885         (Depends-on): Add unistd, extensions.
86886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86887         (Includes): Specify <unistd.h> instead of getdomainname.h.
86888         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86889         HAVE_GETDOMAINNAME.
86890         * NEWS: Mention the change.
86892 2008-10-18  Bruno Haible  <bruno@clisp.org>
86894         * modules/dirent: New file.
86895         * m4/dirent_h.m4: New file.
86896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86897         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86898         * modules/fchdir (Files): Remove lib/dirent.in.h.
86899         (Depends-on): Add dirent.
86900         (Makefile.am): Move rules to modules/dirent.
86901         * doc/posix-headers/dirent.texi: Mention the new module.
86903 2008-10-18  Bruno Haible  <bruno@clisp.org>
86905         Avoid -Wunused-parameter warnings in public gnulib header files.
86906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86907         macro.
86908         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86910 2008-10-18  Bruno Haible  <bruno@clisp.org>
86912         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86913         * doc/glibc-functions/error.texi: Mention the module 'error'.
86914         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86915         * doc/glibc-functions/getdomainname.texi: Mention the module
86916         'getdomainname'.
86917         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86918         * doc/glibc-functions/getpagesize.texi: Mention the module
86919         'getpagesize'.
86920         * doc/glibc-functions/getusershell.texi: Mention the module
86921         'getusershell'.
86922         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86923         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86924         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86925         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86926         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86927         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86928         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86929         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86930         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86931         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86932         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86933         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86934         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86935         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86937 2008-10-17  Bruno Haible  <bruno@clisp.org>
86939         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86940         HP-UX and IRIX, use -0.0L.
86941         * tests/test-ceill.c (minus_zero): Likewise.
86942         * tests/test-floorl.c (minus_zero): Likewise.
86943         * tests/test-frexpl.c (minus_zero): Likewise.
86944         * tests/test-isnan.c (minus_zerol): Likewise.
86945         * tests/test-isnanl.h (minus_zero): Likewise.
86946         * tests/test-ldexpl.c (minus_zero): Likewise.
86947         * tests/test-roundl.c (minus_zero): Likewise.
86948         * tests/test-signbit.c (minus_zerol): Likewise.
86949         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86950         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86951         * tests/test-truncl.c (minus_zero): Likewise.
86952         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86953         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86954         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86955         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86957 2008-10-17  Bruno Haible  <bruno@clisp.org>
86959         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86960         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86961         that it gets activated only for gcc >= 3.0.
86962         * lib/dirent.in.h: Likewise.
86963         * lib/errno.in.h: Likewise.
86964         * lib/fcntl.in.h: Likewise.
86965         * lib/float.in.h: Likewise.
86966         * lib/iconv.in.h: Likewise.
86967         * lib/inttypes.in.h: Likewise.
86968         * lib/locale.in.h: Likewise.
86969         * lib/math.in.h: Likewise.
86970         * lib/netdb.in.h: Likewise.
86971         * lib/netinet_in.in.h: Likewise.
86972         * lib/search.in.h: Likewise.
86973         * lib/signal.in.h: Likewise.
86974         * lib/spawn.in.h: Likewise.
86975         * lib/stdarg.in.h: Likewise.
86976         * lib/stdint.in.h: Likewise.
86977         * lib/stdio.in.h: Likewise.
86978         * lib/stdlib.in.h: Likewise.
86979         * lib/string.in.h: Likewise.
86980         * lib/strings.in.h: Likewise.
86981         * lib/sys_file.in.h: Likewise.
86982         * lib/sys_ioctl.in.h: Likewise.
86983         * lib/sys_select.in.h: Likewise.
86984         * lib/sys_socket.in.h: Likewise.
86985         * lib/sys_stat.in.h: Likewise.
86986         * lib/sys_time.in.h: Likewise.
86987         * lib/sysexits.in.h: Likewise.
86988         * lib/time.in.h: Likewise.
86989         * lib/unistd.in.h: Likewise.
86990         * lib/wchar.in.h: Likewise.
86991         * lib/wctype.in.h: Likewise.
86992         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86994 2008-10-17  Jim Meyering  <meyering@redhat.com>
86996         ignore-value: don't depend on inline module
86997         * modules/ignore-value (Depends-on): Remove 'inline'.
86998         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86999         Suggestion from Bruno Haible.
87001 2008-10-17  Bruno Haible  <bruno@clisp.org>
87003         New implementation of condition variables for Win32.
87004         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
87005         (gl_linked_waitqueue_t): New type.
87006         (gl_cond_t): Use it.
87007         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
87008         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
87009         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
87010         (glthread_cond_init_func, glthread_cond_wait_func,
87011         glthread_cond_timedwait_func, glthread_cond_signal_func,
87012         glthread_cond_broadcast_func, glthread_cond_destroy_func):
87013         Reimplemented on the basis of gl_linked_waitqueue_t.
87014         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
87015         gl_waitqueue_t.
87016         (gl_rwlock_t): Update.
87017         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
87019 2008-10-17  Simon Josefsson  <simon@josefsson.org>
87021         * modules/recvfrom (Depends-on): Add dependency on getpeername.
87022         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87024 2008-10-17  Jim Meyering  <meyering@redhat.com>
87026         ignore-value: new module
87027         * modules/ignore-value: New file.
87028         * lib/ignore-value.h: New file.
87029         * MODULES.html.sh (Compiler warning management): New section,
87030         just for this module.  More to come.
87032 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
87034         open-safer.c: avoid 'signed and unsigned in conditional...' warning
87035         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
87036         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
87038 2008-10-16  Jim Meyering  <meyering@redhat.com>
87040         openat-die.c: avoid 'no previous prototype' warning
87041         * lib/openat-die.c: Include "openat.h".
87042         Reported by Reuben Thomas <rrt@sc3d.org>.
87044 2008-10-16  Simon Josefsson  <simon@josefsson.org>
87046         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
87047         * lib/netdb.in.h: Fix typo.
87048         Reported by Bruno Haible  <bruno@clisp.org>
87050         * lib/netdb.in.h: Include sys/socket.h for platforms without
87051         netdb.h, to get structures like hostent on MinGW.
87052         * modules/netdb (Depends-on): Add sys_socket.
87054 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87056         * modules/netdb, modules/netdb-tests: New file.
87057         * m4/netdb_h.m4: New file.
87058         * lib/netdb.in.h: Add, currently just an empty file pending
87059         definitions.
87060         * tests/test-netdb.c: New file.
87061         * doc/posix-headers/netdb.texi: Mention that we replace it if
87062         needed.
87063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87064         netdb.
87066 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87068         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
87069         with code.
87071 2008-10-13  Bruno Haible  <bruno@clisp.org>
87073         * lib/glthread/cond.c (glthread_cond_wait_func,
87074         glthread_cond_timedwait_func): Add a comment.
87076 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87078         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
87079         * tests/test-select.c: Likewise,
87081 2008-10-13  Bruno Haible  <bruno@clisp.org>
87083         * lib/glthread/cond.c (glthread_cond_wait_func,
87084         glthread_cond_timedwait_func): Fix variable name.
87085         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87087 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
87089         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
87090         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
87091         struct sockaddr.sa_len.
87092         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
87094 2008-10-13  Simon Josefsson  <simon@josefsson.org>
87096         * build-aux/pmccabe2html: Add css and css_url parameters.
87098 2008-10-12  Bruno Haible  <bruno@clisp.org>
87100         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
87101         calling aclx_get.
87102         Reported by Rainer Tammer <tammer@tammer.net>.
87104 2008-10-12  Bruno Haible  <bruno@clisp.org>
87106         Use msvcrt aware primitives for creation/termination of Win32 threads.
87107         * lib/glthread/thread.c: Include <process.h>.
87108         (glthread_create_func): Use _beginthreadex instead of CreateThread.
87109         (wrapper_func): Update signature.
87110         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
87112 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87113             Bruno Haible  <bruno@clisp.org>
87115         Provide a Win32 implementation of the 'cond' module.
87116         * lib/glthread/cond.h [USE_WIN32]: New implementation.
87117         * lib/glthread/cond.c (glthread_cond_init_func,
87118         glthread_cond_wait_func, glthread_cond_timedwait_func,
87119         glthread_cond_signal_func, glthread_cond_broadcast_func,
87120         glthread_cond_destroy_func) [USE_WIN32]: New functions.
87121         * modules/cond (Dependencies): Add gettimeofday.
87123 2008-10-11  Bruno Haible  <bruno@clisp.org>
87125         Make sleep work on older versions of mingw.
87126         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
87127         only whether it exists.
87128         * doc/posix-functions/sleep.texi: Mention the problem with older
87129         versions of mingw.
87131 2008-10-11  Bruno Haible  <bruno@clisp.org>
87133         New module 'shutdown'.
87134         * modules/shutdown: New file.
87135         * lib/sys_socket.in.h (shutdown): New declaration.
87136         * lib/winsock.c (shutdown): New function.
87137         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
87138         GNULIB_SHUTDOWN.
87139         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87140         * doc/posix-functions/shutdown.texi: Document the new module.
87142 2008-10-11  Jim Meyering  <meyering@redhat.com>
87144         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
87146 2008-10-11  Bruno Haible  <bruno@clisp.org>
87148         New module 'fclose'.
87149         * modules/fclose: New file.
87150         * lib/stdio.in.h (fclose): New declaration.
87151         * lib/fclose.c: New file.
87152         * m4/fclose.m4: New file.
87153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
87154         REPLACE_FCLOSE.
87155         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
87156         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
87157         REPLACE_FCLOSE.
87158         * modules/close (Depends-on): fclose.
87159         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
87161 2008-10-11  Bruno Haible  <bruno@clisp.org>
87163         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
87164         set errno and don't call _close.
87166 2008-10-10  Bruno Haible  <bruno@clisp.org>
87168         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
87169         ACL, not afterwards. Fixes test failure on Cygwin.
87171 2008-10-09  Ben Pfaff  <blp@gnu.org>
87173         * build-aux/announce-gen: Fix gnulib version related part of usage
87174         message.  Die with a useful error message if no tarballs are
87175         found.
87177 2008-10-10  Jim Meyering  <meyering@redhat.com>
87179         bootstrap: use git's --depth=N option only if it's supported
87180         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
87181         recognize the --depth option.  Reported by Pádraig Brady.
87183 2008-10-09  Bruno Haible  <bruno@clisp.org>
87185         New module 'ioctl'.
87186         * modules/ioctl: New file.
87187         * lib/sys_socket.in.h (ioctl): Remove declaration.
87188         * lib/winsock.c: Include <sys/ioctl.h>.
87189         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
87190         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87191         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
87192         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
87193         * doc/posix-functions/ioctl.texi: Mention the new module.
87195 2008-10-09  Bruno Haible  <bruno@clisp.org>
87197         New module 'sys_ioctl'.
87198         * lib/sys_ioctl.in.h: New file.
87199         * m4/sys_ioctl_h.m4: New file.
87200         * modules/sys_ioctl: New file.
87201         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
87203 2008-10-09  Bruno Haible  <bruno@clisp.org>
87205         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
87206         * lib/winsock.c: Include <stdarg.h>.
87207         (rpl_ioctl): Change to second argument 'int' and then varargs.
87209 2008-10-09  Bruno Haible  <bruno@clisp.org>
87211         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
87212         when the sys_socket module is present and the system has <winsock2.h>.
87214 2008-10-09  Bruno Haible  <bruno@clisp.org>
87216         * doc/posix-functions/close.texi: Mention module 'close' instead of
87217         module 'sys_socket'.
87219 2008-10-09  Bruno Haible  <bruno@clisp.org>
87221         * doc/glibc-headers/sys_ioctl.texi: New file.
87222         * doc/gnulib.texi: Include it.
87224 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87225             Bruno Haible  <bruno@clisp.org>
87227         Combine the two replacements of 'close'.
87228         * lib/sys_socket.in.h (close): Define to a reminder to include
87229         <unistd.h>.
87230         (_gl_close_fd_maybe_socket): New declaration.
87231         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
87232         * lib/winsock.c (close): Remove undefinition.
87233         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
87234         needed for the gnulib module 'close'.
87235         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
87236         define to an error symbol or to a warning, if suitable.
87237         * lib/close.c: Include <sys/socket.h>.
87238         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
87239         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
87240         UNISTD_H_HAVE_WINSOCK2_H.
87241         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
87242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87243         UNISTD_H_HAVE_WINSOCK2_H.
87244         * modules/sys_socket (Files): Add m4/unistd_h.m4.
87245         (configure.ac): Set a module indicator.
87246         (Makefile.am): Substitute GNULIB_CLOSE.
87247         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
87248         * modules/poll-tests (Depends-on): Add close.
87249         * modules/select-tests (Depends-on): Likewise.
87251 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87252             Bruno Haible  <bruno@clisp.org>
87254         New module 'close'.
87255         * modules/close: New file.
87256         * lib/unistd.in.h (close): Move declaration out of the
87257         FCHDIR_REPLACEMENT scope.
87258         (_gl_unregister_fd): New declaration.
87259         * lib/close.c: New file.
87260         * lib/fchdir.c (rpl_close): Remove function.
87261         * m4/close.m4: New file.
87262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87263         close.
87264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
87265         REPLACE_CLOSE.
87266         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
87267         REPLACE_CLOSE.
87268         * modules/fchdir (Depends-on): Add close.
87270 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87271             Bruno Haible  <bruno@clisp.org>
87273         * lib/fcntl.in.h (open): Simplify conditionals.
87274         (_gl_register_fd): New declaration.
87275         * lib/fchdir.c (rpl_open): Remove function.
87276         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
87277         also.
87278         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
87279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87280         open.
87282 2008-10-09  Jim Meyering  <meyering@redhat.com>
87284         GNUmakefile: use the more name-space-friendly "_version"
87285         * top/GNUmakefile (_dummy): Update.
87286         (_version): Rename from "version".
87288 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87289             Bruno Haible  <bruno@clisp.org>
87291         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
87292         rpl_close.
87293         (_gl_register_fd): New function, extracted from rpl_open.
87294         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
87295         (rpl_open, rpl_opendir): Use _gl_register_fd.
87297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87299         Fix organization of 'open' replacement.
87300         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
87301         (gl_FUNC_OPEN): Use it.
87302         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
87304 2008-10-08  Bruno Haible  <bruno@clisp.org>
87306         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
87308 2008-10-08  Simon Josefsson  <simon@josefsson.org>
87310         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
87311         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
87312         listen).
87314 2008-10-08  Eric Blake  <ebb9@byu.net>
87316         GNUmakefile: add 'make version' target
87317         * top/GNUmakefile (_curr-ver): Split version update rules...
87318         (version): ...into a target.
87320 2008-10-07  Bruno Haible  <bruno@clisp.org>
87322         Use a more portable replacement expression for -0.0L.
87323         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
87324         instead of -0.0L. Fix m4 quotation.
87326         * tests/test-signbit.c: Include <float.h>.
87327         (minus_zero): New variable.
87328         (test_signbitl): Use minus_zero instead of -zero.
87329         * modules/signbit-tests (Depends-on): Add float.
87331         * tests/test-ceill.c: Include <float.h>.
87332         (zero): Remove variable.
87333         (minus_zero): New variable.
87334         (main): Use minus_zero instead of -zero.
87335         * modules/ceill-tests (Depends-on): Add float.
87337         * tests/test-floorl.c: Include <float.h>.
87338         (zero): Remove variable.
87339         (minus_zero): New variable.
87340         (main): Use minus_zero instead of -zero.
87341         * modules/floorl-tests (Depends-on): Add float.
87343         * tests/test-roundl.c: Include <float.h>.
87344         (zero): Remove variable.
87345         (minus_zero): New variable.
87346         (main): Use minus_zero instead of -zero.
87347         * modules/roundl-tests (Depends-on): Add float.
87349         * tests/test-truncl.c: Include <float.h>.
87350         (zero): Remove variable.
87351         (minus_zero): New variable.
87352         (main): Use minus_zero instead of -zero.
87353         * modules/truncl-tests (Depends-on): Add float.
87355         * tests/test-frexpl.c (zero): Remove variable.
87356         (minus_zero): New variable.
87357         (main): Use minus_zero instead of -zero.
87358         * modules/frexpl-tests (Depends-on): Add float.
87360         * tests/test-isnan.c (zerol): Remove variable.
87361         (minus_zerol): New variable.
87362         (test_long_double): Use minus_zerol instead of -zerol.
87363         * modules/isnan-tests (Depends-on): Add float.
87365         * tests/test-isnanl.h (zero): Remove variable.
87366         (minus_zero): New variable.
87367         (main): Use minus_zero instead of -zero.
87368         * modules/isnanl-nolibm-tests (Depends-on): Add float.
87369         * modules/isnanl-tests (Depends-on): Add float.
87371         * tests/test-ldexpl.c (zero): Remove variable.
87372         (minus_zero): New variable.
87373         (main): Use minus_zero instead of -zero.
87374         * modules/ldexpl-tests (Depends-on): Add float.
87376         * tests/test-snprintf-posix.h (zerol): Remove variable.
87377         (minus_zerol): New variable.
87378         (test_function): Use minus_zerol instead of -zerol.
87379         * modules/snprintf-posix-tests (Depends-on): Add float.
87380         * modules/vsnprintf-posix-tests (Depends-on): Add float.
87382         * tests/test-sprintf-posix.h (zerol): Remove variable.
87383         (minus_zerol): New variable.
87384         (test_function): Use minus_zerol instead of -zerol.
87385         * modules/sprintf-posix-tests (Depends-on): Add float.
87386         * modules/vsprintf-posix-tests (Depends-on): Add float.
87388         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
87389         (minus_zerol): New variable.
87390         (test_function): Use minus_zerol instead of -zerol.
87391         * modules/vasnprintf-posix-tests (Depends-on): Add float.
87393         * tests/test-vasprintf-posix.c (zerol): Remove variable.
87394         (minus_zerol): New variable.
87395         (test_function): Use minus_zerol instead of -zerol.
87396         * modules/vasprintf-posix-tests (Depends-on): Add float.
87398 2008-10-07  Simon Josefsson  <simon@josefsson.org>
87400         * MODULES.html.sh (Support for building documentation): Mention
87401         pmccabe2html.  Sort entries.
87403         Add pmccabe2html module, from gnupdf.
87404         * build-aux/pmccabe.css: New file.
87405         * build-aux/pmccabe2html: New file.
87406         * m4/pmccabe2html.m4: New file.
87407         * modules/pmccabe2html: New file.
87409 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
87411         flock: new module
87412         * MODULES.html.sh: Add to list of modules.
87413         * lib/flock.c: flock implementation for Windows and Unix systems
87414         which have fcntl.
87415         * doc/glibc-functions/flock.texi: Update documentation.
87416         * lib/sys_file.in.h: <sys/file.h> header file.
87417         * m4/flock.m4: M4 macros.
87418         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
87419         * modules/flock: flock module.
87420         * modules/flock-tests: flock tests module.
87421         * modules/sys_file: sys/file.h module.
87422         * tests/test-flock.c: test suite for flock.
87424 2008-10-06  Jim Meyering  <meyering@redhat.com>
87426         bootstrap: check for LT_INIT more portably still ;-)
87427         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
87428         Spotted by Bruno Haible.
87430 2008-10-06  Eric Blake  <ebb9@byu.net>
87432         test-signbit: avoid tripping Irix cc bug on -0.0L
87433         * tests/test-signbit.c (minus_zerol): Delete, and replace with
87434         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
87435         entire testsuite consistent and avoids an Irix 6.2 bug.
87437 2008-10-05  Bruno Haible  <bruno@clisp.org>
87438             Jim Meyering  <jim@meyering.net>
87440         Add an option for ignoring EPIPE during close_stdout.
87441         * lib/closeout.h: Include <stdbool.h>.
87442         (close_stdout_set_ignore_EPIPE): New declaration.
87443         * lib/closeout.c: Include <stdbool.h>.
87444         (ignore_EPIPE): New variable.
87445         (close_stdout_set_ignore_EPIPE): New function.
87446         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
87447         * lib/close-stream.c (close_stream): Mention the possible EPIPE
87448         failure.
87449         * modules/closeout (Depends-on): Add stdbool.
87451 2008-10-05  Bruno Haible  <bruno@clisp.org>
87453         * modules/accept: New file.
87454         * modules/bind: New file.
87455         * modules/connect: New file.
87456         * modules/getpeername: New file.
87457         * modules/getsockname: New file.
87458         * modules/getsockopt: New file.
87459         * modules/listen: New file.
87460         * modules/recv: New file.
87461         * modules/recvfrom: New file.
87462         * modules/send: New file.
87463         * modules/sendto: New file.
87464         * modules/setsockopt: New file.
87465         * modules/socket: New file.
87466         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
87467         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
87468         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
87469         the particular module is requested. Add a link warning when the
87470         particular module is not requested.
87471         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
87472         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
87473         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
87474         the particular module is requested.
87475         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
87476         gl_SYS_SOCKET_H_DEFAULTS): New macros.
87477         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
87478         * modules/sys_socket (Depends-on): Add link-warning.
87479         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
87480         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
87481         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
87482         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
87483         GL_LINK_WARNING.
87484         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
87485         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
87486         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
87487         * doc/posix-functions/getpeername.texi: Mention the new module
87488         'getpeername'.
87489         * doc/posix-functions/getsockname.texi: Mention the new module
87490         'getsockname'.
87491         * doc/posix-functions/getsockopt.texi: Mention the new module
87492         'getsockopt'.
87493         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
87494         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
87495         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
87496         * doc/posix-functions/send.texi: Mention the new module 'send'.
87497         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
87498         * doc/posix-functions/setsockopt.texi: Mention the new module
87499         'setsockopt'.
87500         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
87501         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
87502         listen, connect, accept.
87503         * modules/select-tests (Depends-on): Likewise.
87505 2008-10-05  Bruno Haible  <bruno@clisp.org>
87507         * lib/winsock.c (strerror): Remove unused #undef.
87508         (rpl_close): Remove unused local variable.
87510         * modules/sys_socket (Depends-on); Add errno.
87512 2008-10-05  Bruno Haible  <bruno@clisp.org>
87514         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
87515         (select): Add a link warning when the 'select' module is not used.
87516         * modules/sys_select (Depends-on): Add link-warning.
87517         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
87518         Suggested by Paolo Bonzini.
87520 2008-10-05  Jim Meyering  <meyering@redhat.com>
87522         bootstrap: check for LT_INIT more portably
87523         * build-aux/bootstrap: Avoid using grep -E, since it's not
87524         portable enough.  Suggestion from Bruno Haible.
87526 2008-10-05  Bruno Haible  <bruno@clisp.org>
87528         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
87529         as being fixed by gnulib.
87531 2008-10-05  Bruno Haible  <bruno@clisp.org>
87533         * modules/select-tests: New file, mostly copied from
87534         modules/sys_select-tests.
87535         * tests/test-select.c: New file, mostly copied from
87536         tests/test-sys_select.c.
87537         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
87538         * modules/sys_select-tests (Depends-on): Remove all dependencies.
87539         (Makefile.am): Remove test_sys_select_LDADD.
87541         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
87542         to an undefined symbol, for an error message.
87543         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
87544         (gl_SYS_SELECT_H_DEFAULTS): New macro.
87545         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
87546         winsock-select.c here.
87547         * modules/sys_select (Files): Remove lib/winsock-select.c.
87548         (Depends-on): Remove alloca.
87549         (Makefile.am): Substitute GNULIB_SELECT.
87550         * modules/select: New file.
87551         * doc/posix-functions/select.texi: Update.
87553 2008-10-05  Bruno Haible  <bruno@clisp.org>
87555         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
87556         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
87557         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
87558         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
87559         getdtablesize.
87560         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
87561         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
87563 2008-10-05  Bruno Haible  <bruno@clisp.org>
87565         * modules/getdtablesize-tests: New file.
87566         * tests/test-getdtablesize.c: New file.
87568         New module 'getdtablesize'.
87569         * lib/unistd.in.h (getdtablesize): New declaration.
87570         * lib/getdtablesize.c: New file.
87571         * m4/getdtablesize.m4: New file.
87572         * modules/getdtablesize: New file.
87573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87574         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
87575         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
87576         HAVE_GETDTABLESIZE.
87577         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
87579 2008-10-05  Bruno Haible  <bruno@clisp.org>
87581         * modules/sched (Makefile.am): Fix typo.
87582         Reported by Simon Josefsson.
87584 2008-10-05  Jim Meyering  <meyering@redhat.com>
87586         bootstrap: check for LT_INIT, too
87587         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
87588         are deprecated.  Suggestion from Ralf Wildenhues.
87590 2008-10-05  Bruno Haible  <bruno@clisp.org>
87592         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
87593         overriding them by ours.
87594         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
87596 2008-10-05  Jim Meyering  <meyering@redhat.com>
87598         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
87599         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
87600         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
87602 2008-10-04  Bruno Haible  <bruno@clisp.org>
87604         * modules/dup2 (License): Change to LGPLv2+.
87605         * modules/sleep (License): Likewise.
87606         * modules/perror (License): Likewise.
87607         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
87608         Blake.
87609         * modules/signal (License): Likewise.
87610         * modules/sigprocmask (License): Likewise.
87611         * modules/raise (License): Change to LGPLv2+, with approval by Jim
87612         Meyering.
87614 2008-10-04  Bruno Haible  <bruno@clisp.org>
87616         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
87617         Reported by Rainer Tammer <tammer@tammer.net>.
87619 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
87620             Bruno Haible  <bruno@clisp.org>
87622         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
87623         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
87624         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
87626 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
87628         filevercmp: new module
87629         * lib/filevercmp.h: New function filevercmp comparing version strings.
87630         * lib/filevercmp.c: Implementation of filevercmp function.
87631         * modules/filevercmp: Module metadata.
87632         * tests/test-filevercmp.c: Unit test for new module.
87633         * modules/filevercmp-tests: Unit test metadata.
87634         * MODULES.html.sh: Add filevercmp module.
87636 2008-10-03  Bruno Haible  <bruno@clisp.org>
87638         * lib/c-ctype.h: Add comment.
87639         Reported by Jim Meyering.
87641 2008-10-02  Bruno Haible  <bruno@clisp.org>
87643         * modules/posix_spawn-internal (Depends-on): Add 'open'.
87645 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87647         * build-aux/bootstrap: Allow renaming bootstrap, and change the
87648         name of bootstrap.conf accordingly.
87650 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87652         * build-aux/bootstrap: Install git-merge-changelog configuration
87653         items into .gitconfig if needed.
87655 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87657         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
87658         git repository, and initialize/update it accordingly.
87660 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
87662         * modules/fsync-tests: New file.
87663         * tests/test-fsync.c: New file.
87665         New module 'fsync'.
87666         * lib/fsync.c: New file.
87667         * m4/fsync.m4: New file.
87668         * modules/fsync: New file.
87669         * lib/unistd.in.h (fsync): New declaration.
87670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87671         GNULIB_FSYNC and HAVE_FSYNC.
87672         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87673         * MODULES.html.sh (posix_functions): Add fsync.
87674         * doc/posix-functions/fsync.texi: Mention the new module.
87676 2008-10-02  Jim Meyering  <meyering@redhat.com>
87678         fts.c: sync with similar code from coreutils' remove.c
87679         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87680         Guard also with "#if defined __linux__", since for now at least,
87681         this code is Linux-kernel-specific.
87683 2008-10-02  Jim Meyering  <meyering@redhat.com>
87685         fts: bug fixes
87686         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87687         Include <sys/vfs.h>, not <sys/statfs.h>.
87689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87690         Include <sys/vfs.h>, not <sys/statfs.h>.
87692 2008-10-01  Bruno Haible  <bruno@clisp.org>
87694         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87695         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87696         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87697         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87698         * doc/posix-functions/posix_spawnp.texi: Likewise.
87699         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87700         whether posix_spawn actually works.
87701         * m4/pipe.m4 (gl_PIPE): Likewise.
87702         * modules/execute (Files): Add m4/posix_spawn.m4.
87703         * modules/pipe (Files): Add m4/posix_spawn.m4.
87704         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87706 2008-10-01  Jim Meyering  <meyering@redhat.com>
87708         remove trailing spaces
87709         * NEWS: Likewise.
87710         * lib/poll.c (poll): Likewise.
87711         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
87712         * lib/winsock.c (rpl_close): Likewise.
87713         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
87714         * modules/yield: Likewise.
87715         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
87716         * tests/test-sys_select.c (connect_to_socket): Likewise.
87718         fts.c: adjust a new interface to be more generally useful
87719         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
87720         (fts_build): Adjust caller.
87722 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87724         * modules/cond-tests: New file.
87725         * tests/test-cond.c: New file.
87727 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87728             Bruno Haible  <bruno@clisp.org>
87730         * modules/cond (Dependencies): Add errno, time.
87731         * lib/glthread/cond.h: Include <time.h>.
87732         (gl_cond_define, gl_cond_define_initialized): Use the same definition
87733         across platforms.
87735 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87736             Bruno Haible  <bruno@clisp.org>
87738         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
87740 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87741             Bruno Haible  <bruno@clisp.org>
87743         * modules/tls-tests (Depends-on): Add thread, yield.
87744         (configure.ac): Remove all checks.
87745         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
87746         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87747         gl_thread_self): Remove definitions. Include glthread/thread.h and
87748         glthread/yield.h instead.
87749         (test_tls): Pass an additional NULL argument to gl_thread_join.
87751 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87752             Bruno Haible  <bruno@clisp.org>
87754         * modules/lock-tests (Depends-on): Add thread, yield.
87755         (configure.ac): Remove all checks.
87756         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
87757         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87758         gl_thread_self): Remove definitions. Include glthread/thread.h and
87759         glthread/yield.h instead.
87760         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
87761         additional NULL argument to gl_thread_join.
87763 2008-09-30  Bruno Haible  <bruno@clisp.org>
87765         Fix the Win32 implementation of the 'thread' module.
87766         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
87767         pointer type.
87768         (gl_thread_self): Invoke gl_thread_self_func.
87769         (gl_thread_self_func): New declaration.
87770         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
87771         (do_init_self_key, init_self_key): New functions.
87772         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
87773         Remove some fields.
87774         (running_threads, running_lock): Remove variables.
87775         (get_current_thread_handle): New function.
87776         (gl_thread_self_func, wrapper_func, glthread_create_func,
87777         glthread_join_func, gl_thread_exit_func): Largely rewritten and
87778         simplified.
87780 2008-09-30  Bruno Haible  <bruno@clisp.org>
87782         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
87783         files.
87785 2008-09-30  Jim Meyering  <meyering@redhat.com>
87787         fts.m4: correct the test for statfs.f_type
87788         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
87789         when checking for statfs.f_type.
87791 2008-09-15  Simon Josefsson  <simon@josefsson.org>
87793         tests: avoid some compiler warnings
87794         * tests/test-memchr.c (main): Pass NULL indirectly.
87795         * tests/test-getdate.c (main): Remove unused variable 'ret'.
87797 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
87799         getdate.y: disallow countable dayshifts like "4 yesterday ago"
87800         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
87801         exactly specified dayshifts.
87802         (dayshift): New rule.
87803         (rel): Add dayshift.
87804         (relative_time_table) [tomorrow, yesterday, today, now]:
87805         Use tDAY_SHIFT in place of tDAY_UNIT.
87806         * tests/test-getdate.c: Add tests for now-disallowed countable
87807         dayshifts, e.g., "4 yesterday ago".
87809 2008-09-29  Bruno Haible  <bruno@clisp.org>
87811         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87812         * tests/test-posix_spawn1.in.sh: Renamed from
87813         tests/test-posix_spawn.in.sh.
87814         * tests/test-posix_spawn2.c: New file.
87815         * tests/test-posix_spawn2.in.sh: New file.
87816         * modules/posix_spawnp-tests (Files): Update.
87817         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87819 2008-09-29  Bruno Haible  <bruno@clisp.org>
87821         Propagate effects of putenv/setenv/unsetenv to child processes.
87822         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87823         * lib/pipe.c (create_pipe): Likewise.
87825 2008-09-29  Bruno Haible  <bruno@clisp.org>
87827         Enable use of shell scripts as executables in mingw.
87828         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87829         run the program as a shell script.
87830         * lib/pipe.c (create_pipe): Likewise.
87831         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87832         resulting array.
87834 2008-09-29  Eric Blake  <ebb9@byu.net>
87836         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87838 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87840         * doc/posix-functions/accept.texi: Update mingw problems.
87841         * doc/posix-functions/bind.texi: Update mingw problems.
87842         * doc/posix-functions/close.texi: Update mingw problems.
87843         * doc/posix-functions/connect.texi: Update mingw problems.
87844         * doc/posix-functions/getpeername.texi: Update mingw problems.
87845         * doc/posix-functions/getsockname.texi: Update mingw problems.
87846         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87847         * doc/posix-functions/ioctl.texi: Update mingw problems.
87848         * doc/posix-functions/listen.texi: Update mingw problems.
87849         * doc/posix-functions/recv.texi: Update mingw problems.
87850         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87851         * doc/posix-functions/select.texi: Update mingw problems.
87852         * doc/posix-functions/send.texi: Update mingw problems.
87853         * doc/posix-functions/sendto.texi: Update mingw problems.
87854         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87855         * doc/posix-functions/socket.texi: Update mingw problems.
87857 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87858             Bruno Haible  <bruno@clisp.org>
87860         * lib/sys_select.in.h: Include sys/time.h.
87861         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87862         * modules/sys_select: Depend on sys_time.
87863         * tests/test-sys_select.c: Test that sys/select.h defines struct
87864         timeval fully.
87866 2008-09-29  Bruno Haible  <bruno@clisp.org>
87868         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87869         * lib/sys_select.in.h: Likewise.
87871 2008-09-29  Bruno Haible  <bruno@clisp.org>
87873         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87875 2008-09-29  Bruno Haible  <bruno@clisp.org>
87877         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87878         Set LIBSOCKET instead of augmenting LIBS.
87879         * modules/sockets (Link): New section.
87880         * modules/sockets-tests (test_sockets_LDADD): New variable.
87881         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87882         * modules/poll-tests (test_poll_LDADD): New variable.
87883         * NEWS: Document the change.
87885 2008-09-29  Bruno Haible  <bruno@clisp.org>
87887         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87888         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87889         ARPA_INET_H directly.
87890         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87892 2008-09-28  Bruno Haible  <bruno@clisp.org>
87894         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87895         from gl_HEADER_SYS_SOCKET.
87896         (gl_HEADER_SYS_SOCKET): Invoke it.
87897         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87899 2008-09-28  Bruno Haible  <bruno@clisp.org>
87901         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87902         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87903         Needed on OSF/1 4.0.
87905 2008-09-28  Bruno Haible  <bruno@clisp.org>
87907         Override open more carefully.
87908         * lib/open.c (orig_open): New function.
87909         (rpl_open): Use orig_open instead of open.
87910         * lib/fcntl.in.h: Add special invocation convention.
87911         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87912         (gl_FUNC_OPEN): Invoke it.
87914         Override freopen more carefully.
87915         * lib/freopen.c (orig_freopen): New function.
87916         (rpl_freopen): Use orig_freopen instead of freopen.
87917         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87918         (gl_FUNC_FREOPEN): Invoke it.
87920         Override fopen more carefully.
87921         * lib/fopen.c (orig_fopen): New function.
87922         (rpl_fopen): Use orig_fopen instead of fopen.
87923         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87924         (gl_FUNC_FOPEN): Invoke it.
87925         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87927 2008-09-28  Bruno Haible  <bruno@clisp.org>
87929         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87930         SIGPIPE.
87932 2008-09-28  Bruno Haible  <bruno@clisp.org>
87934         * tests/test-sigaction.c (handler, main): Disable the check whether
87935         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87936         glibc systems with LinuxThreads.
87938 2008-09-28  Bruno Haible  <bruno@clisp.org>
87940         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87942         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87943         with AIX xlc.
87944         * lib/fcntl.in.h (open): Likewise.
87945         Reported by Rainer Tammer <tammer@tammer.net>.
87947 2008-09-28  Bruno Haible  <bruno@clisp.org>
87949         * modules/posix_spawnp-tests: New file.
87950         * tests/test-posix_spawn.c: New file.
87951         * tests/test-posix_spawn.in.sh: New file.
87953         New module 'posix_spawnp'.
87954         * modules/posix_spawnp: New file.
87955         * lib/spawnp.c: New file, from GNU libc with modifications.
87956         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87958         New module 'posix_spawn'.
87959         * modules/posix_spawn: New file.
87960         * lib/spawn.c: New file, from GNU libc with modifications.
87961         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87963         New module 'posix_spawnattr_destroy'.
87964         * modules/posix_spawnattr_destroy: New file.
87965         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87966         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87967         module.
87969         New module 'posix_spawnattr_setsigmask'.
87970         * modules/posix_spawnattr_setsigmask: New file.
87971         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87972         modifications.
87973         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87974         new module.
87976         New module 'posix_spawnattr_getsigmask'.
87977         * modules/posix_spawnattr_getsigmask: New file.
87978         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87979         modifications.
87980         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87981         new module.
87983         New module 'posix_spawnattr_setsigdefault'.
87984         * modules/posix_spawnattr_setsigdefault: New file.
87985         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87986         modifications.
87987         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87988         new module.
87990         New module 'posix_spawnattr_getsigdefault'.
87991         * modules/posix_spawnattr_getsigdefault: New file.
87992         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87993         modifications.
87994         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87995         new module.
87997         New module 'posix_spawnattr_setschedpolicy'.
87998         * modules/posix_spawnattr_setschedpolicy: New file.
87999         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
88000         modifications.
88001         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
88002         new module.
88004         New module 'posix_spawnattr_getschedpolicy'.
88005         * modules/posix_spawnattr_getschedpolicy: New file.
88006         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
88007         modifications.
88008         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
88009         new module.
88011         New module 'posix_spawnattr_setschedparam'.
88012         * modules/posix_spawnattr_setschedparam: New file.
88013         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
88014         modifications.
88015         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
88016         new module.
88018         New module 'posix_spawnattr_getschedparam'.
88019         * modules/posix_spawnattr_getschedparam: New file.
88020         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
88021         modifications.
88022         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
88023         new module.
88025         New module 'posix_spawnattr_setpgroup'.
88026         * modules/posix_spawnattr_setpgroup: New file.
88027         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
88028         modifications.
88029         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
88030         module.
88032         New module 'posix_spawnattr_getpgroup'.
88033         * modules/posix_spawnattr_getpgroup: New file.
88034         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
88035         modifications.
88036         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
88037         module.
88039         New module 'posix_spawnattr_setflags'.
88040         * modules/posix_spawnattr_setflags: New file.
88041         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
88042         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
88043         module.
88045         New module 'posix_spawnattr_getflags'.
88046         * modules/posix_spawnattr_getflags: New file.
88047         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
88048         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
88049         module.
88051         New module 'posix_spawnattr_init'.
88052         * modules/posix_spawnattr_init: New file.
88053         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
88054         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
88055         module.
88057         New module 'posix_spawn_file_actions_destroy'.
88058         * modules/posix_spawn_file_actions_destroy: New file.
88059         * lib/spawn_faction_destroy.c: New file, from GNU libc with
88060         modifications.
88061         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
88062         the new module.
88064         New module 'posix_spawn_file_actions_addopen'.
88065         * modules/posix_spawn_file_actions_addopen: New file.
88066         * lib/spawn_faction_addopen.c: New file, from GNU libc with
88067         modifications.
88068         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
88069         the new module.
88071         New module 'posix_spawn_file_actions_adddup2'.
88072         * modules/posix_spawn_file_actions_adddup2: New file.
88073         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
88074         modifications.
88075         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
88076         the new module.
88078         New module 'posix_spawn_file_actions_addclose'.
88079         * modules/posix_spawn_file_actions_addclose: New file.
88080         * lib/spawn_faction_addclose.c: New file, from GNU libc with
88081         modifications.
88082         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
88083         the new module.
88085         New module 'posix_spawn_file_actions_init'.
88086         * modules/posix_spawn_file_actions_init: New file.
88087         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
88088         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
88089         new module.
88091         New module 'posix_spawn-internal'.
88092         * modules/posix_spawn-internal: New file.
88093         * lib/spawn_int.h: New file, from GNU libc with modifications.
88094         * lib/spawni.c: New file, from GNU libc with modifications.
88095         * m4/posix_spawn.m4: New file.
88097         New module 'spawn'.
88098         * modules/spawn: New file.
88099         * lib/spawn.in.h: New file, from GNU libc with modifications.
88100         * m4/spawn_h.m4: New file.
88101         * doc/posix-headers/spawn.texi: Mention the new module.
88103 2008-09-28  Bruno Haible  <bruno@clisp.org>
88105         * modules/sched-tests: New file.
88106         * tests/test-sched.c: New file.
88108         New module 'sched'.
88109         * modules/sched: New file.
88110         * lib/sched.in.h: New file.
88111         * m4/sched_h.m4: New file.
88112         * doc/posix-headers/sched.texi: Mention the new module.
88114 2008-09-27  Eric Blake  <ebb9@byu.net>
88116         Fix previous patch, and tweak references to $0.
88117         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
88118         (func_version, func_gnulib_dir): Don't call this program
88119         gnulib-tool.
88120         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
88121         with using $0 in function.
88122         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
88123         (func_fatal_error): Reuse the name the user invoked us with.
88125 2008-09-27  Bruno Haible  <bruno@clisp.org>
88127         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
88128         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
88129         (gl_ICONV_H): Not here.
88130         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
88131         instead of assigning ICONV_H directly.
88133         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
88134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
88135         WCHAR_H directly.
88137 2008-09-27  Bruno Haible  <bruno@clisp.org>
88139         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
88140         * modules/arpa_inet (Depends-on): Add link-warning.
88141         (Makefile.am): Insert the definition of GL_LINK-WARNING.
88142         * modules/unistd (Makefile.am): Likewise.
88144 2008-09-26  Bruno Haible  <bruno@clisp.org>
88146         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
88147         variables.
88148         (func_version): Essentially copied from gnulib-tool.
88149         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
88150         func_readlink): Copied from gnulib-tool.
88152 2008-09-26  Bruno Haible  <bruno@clisp.org>
88154         * gnulib-tool (func_version): Change directory to $gnulib_dir before
88155         invoking git-version-gen.
88157 2008-09-26  Bruno Haible  <bruno@clisp.org>
88159         * posix-modules: Update to directory names changed on 2008-01-19.
88160         Remove commas in output before splitting into words. No more need to
88161         avoid 'ftruncate' since 2007-02-19.
88163 2008-09-26  Bruno Haible  <bruno@clisp.org>
88165         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
88167 2008-09-26  Bruno Haible  <bruno@clisp.org>
88169         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
88170         * modules/fwriteerror (Depends-on): Add errno.
88172 2008-09-26  Bruno Haible  <bruno@clisp.org>
88174         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
88175         * tests/test-vc-list-files-cvs.sh: Likewise.
88177 2008-09-26  Bruno Haible  <bruno@clisp.org>
88179         * doc/posix-headers/sys_resource.texi: Reorder items.
88181 2008-09-26  Jim Meyering  <meyering@redhat.com>
88183         fts: tweak inode comparison function
88184         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
88185         inode numbers, as documented.
88187         fts: sort dirent entries on inode number before traversing
88188         This avoids a quadratic, seek-related performance penalty when
88189         operating on a directory containing many entries (measurable at 10k;
88190         3.5 hours at 2 million entries with a cold cache) on certain types
88191         of file systems, including ext3 and ext4, but not tmpfs.
88192         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88193         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
88194         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
88195         (fs_handles_readdir_ordered_dirents_efficiently): New function.
88196         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
88197         (fts_build): Set the stat.st_ino member from D_INO.
88198         If it is likely to be useful, sort dirent entries on inode number.
88200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
88201         and the struct statfs.f_type member.
88202         * modules/fts (Depends-on): Add d-ino.
88204 2008-09-26  Bruno Haible  <bruno@clisp.org>
88206         * modules/sigpipe-die (Depends-on): Add sigpipe.
88208         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
88209         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
88210         and GNULIB_STDIO_H_SIGPIPE are set.
88211         * lib/stdio-write.c: New file.
88212         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
88213         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88214         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88215         REPLACE_STDIO_WRITE_FUNCS.
88216         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
88217         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88218         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88219         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88220         * modules/stdio (Files): Add lib/stdio-write.c.
88221         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
88222         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88223         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88224         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88225         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
88226         REPLACE_FPRINTF_POSIX.
88227         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
88228         REPLACE_PRINTF_POSIX.
88229         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
88230         REPLACE_VFPRINTF_POSIX.
88231         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
88232         REPLACE_VPRINTF_POSIX.
88233         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
88234         SIGPIPE issue.
88235         * doc/posix-functions/fputc.texi: Likewise.
88236         * doc/posix-functions/fputs.texi: Likewise.
88237         * doc/posix-functions/fwrite.texi: Likewise.
88238         * doc/posix-functions/printf.texi: Likewise.
88239         * doc/posix-functions/putc.texi: Likewise.
88240         * doc/posix-functions/putchar.texi: Likewise.
88241         * doc/posix-functions/puts.texi: Likewise.
88242         * doc/posix-functions/vfprintf.texi: Likewise.
88243         * doc/posix-functions/vprintf.texi: Likewise.
88245         * modules/safe-write (Depends-on): Add write.
88247         * modules/sigpipe-tests: New file.
88248         * tests/test-sigpipe.c: New file.
88249         * tests/test-sigpipe.sh: New file.
88251         * modules/write: New file.
88252         * lib/unistd.in.h: Include <sys/types.h>.
88253         (write): New declaration.
88254         * lib/write.c: New file.
88255         * m4/write.m4: New file.
88256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88257         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
88258         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
88259         GNULIB_WRITE, REPLACE_WRITE.
88260         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
88261         and the SIGPIPE issue.
88263         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
88264         (raise): New declaration.
88265         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
88266         (ext_signal): New function.
88267         (rpl_raise): New function.
88268         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
88269         GNULIB_SIGNAL_H_SIGPIPE.
88270         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
88271         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
88273         * modules/sigpipe: New file.
88274         * m4/sigpipe.m4: New file.
88276 2008-09-25  Derek Price  <derek@ximbiot.com>
88277             Bruno Haible  <bruno@clisp.org>
88279         * gnulib-tool (func_import): Report all license incompatibilities, not
88280         just the first one.
88282 2008-09-25  Bruno Haible  <bruno@clisp.org>
88284         * gnulib-tool (func_import): When computing the edits, consider not
88285         only the Makefile.ams that exist but also those that will be generated.
88287 2008-09-25  Simon Josefsson  <simon@josefsson.org>
88289         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
88290         fixes gnulib-tool --test warning about duplicate dependency.
88292 2008-09-25  Bruno Haible  <bruno@clisp.org>
88294         * gnulib-tool: Don't ask the user to perform edits in the generated
88295         Makefile.ams.
88296         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
88297         apply to the Makefile.am being generated.
88298         (func_emit_tests_Makefile_am): Execute edits that apply to the
88299         Makefile.am being generated.
88300         (func_import): Setup list of Makefile.am edits before emitting the
88301         Makefile.ams, not at the end.
88302         (func_create_testdir): Update.
88303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88305 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88307         * gnulib-tool (func_import): Store the --tests-base option in the
88308         comment in gnulib-cache.m4.
88310 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
88312         * NEWS: Document increased portability that sys_select now provides.
88314         * lib/sys_select.in.h: Install select wrapper.
88315         * lib/sys_socket.in.h: Use more descriptive name when there is no
88316         select wrapper.
88317         * lib/winsock-select.c: New.
88318         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
88319         Require gl_HEADER_SYS_SOCKET.
88320         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
88321         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
88322         * tests/test-sys_select.c: Add functional tests.
88324 2008-09-24  Eric Blake  <ebb9@byu.net>
88326         open, fopen: close fd leak in last patch
88327         * lib/open.c (rpl_open): Close fd before returning error.
88328         * lib/fopen.c (rpl_fopen): Close fd before returning error.
88329         * doc/posix-functions/open.texi (open): Document that Irix also
88330         has the bug.
88331         * doc/posix-functions/fopen.texi (fopen): Likewise.
88332         Reported by Paolo Bonzini.
88334 2008-09-24  Bruno Haible  <bruno@clisp.org>
88336         Ensure that a filename ending in a slash cannot be used to access a
88337         non-directory.
88338         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
88339         to check whether it's really a directory.
88340         * lib/fopen.c: Include fcntl.h, unistd.h.
88341         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
88342         and fdopen().
88343         * modules/fopen (Depends-on): Add unistd.
88344         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
88345         * tests/test-fopen.c (main): Likewise.
88346         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
88347         * doc/posix-functions/fopen.texi: Likewise.
88348         Reported by Eric Blake.
88350 2008-09-23  Eric Blake  <ebb9@byu.net>
88352         c-stack: avoid compiler optimizations when provoking overflow
88353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
88354         recursion harder to optimize, to ensure a stack overflow occurs.
88355         * tests/test-c-stack.c (recurse): Likewise.
88356         Borrowed from libsigsegv.
88358         c-stack: work around Irix sigaltstack bug
88359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
88360         whether sigaltstack uses wrong end of stack_t (copied in part from
88361         libsigsegv).
88362         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
88363         Irix bug, without requiring an over-allocation.
88364         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
88365         bug.
88367         fopen: document mingw bug on directories
88368         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
88369         not allowing a stream visiting a directory, even though reading
88370         from such a stream is not portable.
88372 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88374         * lib/poll.c: Rewrite.
88375         * modules/poll: Depend on alloca.
88377 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88379         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
88380         instead define prototypes for a full set of wrappers.  Ensure
88381         that Cygwin does not use the compatibility code, which is only
88382         for MinGW.
88383         * lib/winsock.c: New.
88384         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
88385         * modules/sys_socket: Add lib/winsock.c.
88387         * modules/poll-tests: Add errno and perror.
88388         * tests/test-poll.c: Use ioctl, not ioctlsocket.
88390 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88392         * tests/test-poll.c: Downgrade minimum needed Winsock version.
88394 2008-09-23  Bruno Haible  <bruno@clisp.org>
88396         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
88397         * doc/glibc-functions/*: Likewise.
88399 2008-09-23  Simon Josefsson  <simon@josefsson.org>
88401         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
88402         success.
88404 2008-09-22  Eric Blake  <ebb9@byu.net>
88405             Bruno Haible  <bruno@clisp.org>
88407         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
88408         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
88409         supply %A but mishandle pseudo-NaN.
88410         Reported by Simon Josefsson.
88412 2008-09-21  Bruno Haible  <bruno@clisp.org>
88414         * tests/test-lock.c (main): Tweak skip message.
88415         * tests/test-tls.c (main): Likewise.
88417 2008-09-21  Bruno Haible  <bruno@clisp.org>
88419         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
88420         whether 'struct sigaction' has sa_sigaction here...
88421         (gl_PREREQ_SIG_HANDLER_H): ... not here.
88422         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
88424 2008-09-21  Bruno Haible  <bruno@clisp.org>
88426         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
88427         section.
88428         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
88429         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
88430         the new section.
88431         (Support for obsolete systems lacking POSIX:2001): New section.
88432         (String handling <string.h>): Move strdup to the new section.
88433         Suggested by Simon Josefsson and Paolo Bonzini.
88435 2008-09-21  Bruno Haible  <bruno@clisp.org>
88437         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
88438         exponents in %e and %g results on 'long double'. Needed for mingw's
88439         improved *printf functions.
88440         * tests/test-vasprintf-posix.c (test_function): Likewise.
88441         * tests/test-snprintf-posix.h (test_function): Likewise.
88442         * tests/test-sprintf-posix.h (test_function): Likewise.
88443         Reported by Eric Blake.
88445 2008-09-21  Bruno Haible  <bruno@clisp.org>
88447         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
88448         * tests/test-sprintf-posix.h (test_function): Likewise.
88450 2008-09-21  Bruno Haible  <bruno@clisp.org>
88452         * modules/getpass (Depends-on): Add strdup-posix.
88454         New module 'strdup-posix'.
88455         * modules/strdup-posix: New file.
88456         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
88457         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
88458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88459         REPLACE_STRDUP.
88460         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
88461         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
88462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88463         strdup-posix.
88465         * modules/strdup (Depends-on): Remove malloc-posix.
88467 2008-09-20  Bruno Haible  <bruno@clisp.org>
88469         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
88470         Wildenhues.
88472 2008-09-20  Bruno Haible  <bruno@clisp.org>
88474         Ensure that wint_t gets defined on IRIX 5.3.
88475         * lib/wchar.in.h (wint_t): Define if not defined by the system.
88476         * lib/wctype.in.h (wint_t): Likewise.
88477         (__wctype_wint_t): Remove type.
88478         (isw*): Use wint_t instead of __wctype_wint_t.
88479         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
88480         * modules/wchar (Files): Add m4/wint_t.m4.
88481         (Makefile.am): Substitute HAVE_WINT_T.
88482         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
88483         * tests/test-wctype.c: Check that wint_t is defined.
88484         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
88485         * doc/posix-headers/wctype.texi: Likewise.
88486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88488 2008-09-18  Bruno Haible  <bruno@clisp.org>
88490         * gnulib-tool (func_exit): Update comment.
88492 2008-09-18  Simon Josefsson  <simon@josefsson.org>
88494         * modules/getaddrinfo (Depends-on): Remove strdup, this module
88495         assumes strdup exists and does not depend on strdup to return
88496         ENOMEM on out of memory conditions.
88498 2008-09-18  Bruno Haible  <bruno@clisp.org>
88500         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
88501         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
88502         digits for the exponent.
88504 2008-09-18  Jim Meyering  <meyering@redhat.com>
88505             Bruno Haible  <bruno@clisp.org>
88507         * lib/vasnprintf.c (decimal_point_char): Define also if
88508         NEED_PRINTF_INFINITE_LONG_DOUBLE.
88510 2008-09-16  Bruno Haible  <bruno@clisp.org>
88511         and Eric Blake  <ebb9@byu.net>
88513         vasnprintf: support Irix 5.3
88514         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
88515         that mishandle long double infinity.
88516         Reported by Tom G. Christensen.
88518 2008-09-16  Bruno Haible  <bruno@clisp.org>
88520         * doc/glibc-functions/scandir.texi: Mention the function is missing on
88521         Solaris 9.
88522         * doc/glibc-functions/alphasort.texi: Likewise.
88523         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
88525 2008-09-16  Jim Meyering  <meyering@redhat.com>
88527         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
88528         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
88529         a umask modification leak out of a subshell.  Otherwise, the
88530         opensolaris /bin/sh would be accepted and thus cause unwarranted
88531         failures in the coreutils test suite.
88533 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
88535         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
88536         to succeed.
88538 2008-09-16  Jim Meyering  <meyering@redhat.com>
88540         avoid spurious test failure when library is built without ACL support
88541         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
88542         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
88543         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
88544         * tests/test-copy-acl.sh: Likewise.
88546 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88548         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
88549         based on character occurrence counts.
88551 2008-09-15  Eric Blake  <ebb9@byu.net>
88553         tests: avoid some compiler warnings
88554         * tests/test-memchr.c (main): Pass NULL indirectly.
88555         * tests/test-closein.c (main): Avoid unused variable.
88557 2008-09-15  Bruno Haible  <bruno@clisp.org>
88559         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
88560         are missing on OpenBSD 4.0 individually.
88561         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88563 2008-09-15  Bruno Haible  <bruno@clisp.org>
88565         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
88566         * doc/posix-functions/strerror.texi: Mention also Cygwin.
88567         * doc/posix-functions/perror.texi: Likewise.
88568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
88569         is missing.
88570         Reported by Eric Blake.
88572         * lib/errno.in.h: Use replacement values >= 2000.
88573         Reported by Eric Blake.
88575 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88577         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
88578         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
88579         limit.
88580         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
88581         compareseq was aborted.
88583 2008-09-14  Bruno Haible  <bruno@clisp.org>
88585         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
88586         yvec_edit_count.
88587         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
88588         (fstrcmp_bounded): Simplify result computation accordingly.
88590 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88592         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
88593         (fstrcmp): Define in terms of fstrcmp_bounded.
88594         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
88595         lower_bound argument.
88596         Return quickly if the result is certainly < lower_bound.
88597         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
88599 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88601         * lib/diffseq.h (EARLY_ABORT): New macro.
88602         (compareseq): Change return type to bool. Return true when EARLY_ABORT
88603         evaluates to true.
88605 2008-09-14  Bruno Haible  <bruno@clisp.org>
88607         * modules/perror-tests: New file.
88608         * tests/test-perror.sh: New file.
88609         * tests/test-perror.c: New file.
88611         New module 'perror'.
88612         * lib/stdio.in.h (perror): New declaration.
88613         * lib/perror.c: New file.
88614         * m4/perror.m4: New file.
88615         * modules/perror: New file.
88616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
88617         * doc/posix-functions/perror.texi: Mention the perror module.
88618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
88619         REPLACE_PERROR.
88620         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
88621         REPLACE_PERROR.
88623 2008-09-14  Bruno Haible  <bruno@clisp.org>
88625         * modules/stdio (Makefile.am): Reorder to match the order in
88626         lib/stdio.in.h.
88627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88629 2008-09-13  Bruno Haible  <bruno@clisp.org>
88631         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
88633 2008-09-13  Bruno Haible  <bruno@clisp.org>
88635         Extend strerror to cover the added errno values.
88636         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
88637         (rpl_strerror): Provide error messages for the added errno values and
88638         for the WSA* values.
88639         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
88640         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
88641         strerror.
88642         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
88643         * modules/strerror (Depends-on): Add errno.
88644         * doc/posix-functions/strerror.texi: Document the change.
88645         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
88646         and EOVERFLOW.
88648 2008-09-13  Bruno Haible  <bruno@clisp.org>
88650         * modules/EOVERFLOW: Remove file.
88651         * m4/eoverflow.m4: Remove file.
88652         * modules/EOVERFLOW-tests: Remove file.
88653         * tests/test-EOVERFLOW.c: Remove file.
88654         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
88655         * modules/ftell (Depends-on): Likewise.
88656         * modules/getdelim (Depends-on): Likewise.
88657         * modules/getugroups (Depends-on): Likewise.
88658         * modules/poll (Depends-on): Likewise.
88659         * modules/snprintf (Depends-on): Likewise.
88660         * modules/sprintf-posix (Depends-on): Likewise.
88661         * modules/vasnprintf (Depends-on): Likewise.
88662         * modules/vasprintf (Depends-on): Likewise.
88663         * modules/vfprintf-posix (Depends-on): Likewise.
88664         * modules/vsnprintf (Depends-on): Likewise.
88665         * modules/vsprintf-posix (Depends-on): Likewise.
88666         * modules/xvasprintf (Depends-on): Likewise.
88667         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88668         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88669         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88670         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88671         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88672         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88673         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88674         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88675         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88676         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88677         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88678         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88679         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88680         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88681         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88682         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88683         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88684         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88685         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88686         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88687         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88688         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88689         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88690         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88691         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88692         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88693         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88694         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88695         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88696         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88697         * MODULES.html.sh: Remove EOVERFLOW.
88698         * NEWS: Mention the change.
88700 2008-09-13  Bruno Haible  <bruno@clisp.org>
88702         * modules/errno-tests: New file.
88703         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88705         * lib/errno.in.h: New file.
88706         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88707         * modules/errno: New file.
88708         * doc/posix-headers/errno.texi: Update documentation.
88709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
88711 2008-09-13  Bruno Haible  <bruno@clisp.org>
88713         * tests/test-poll.c: Use #if for native Windows, rather than testing
88714         __MSVCRT__.
88716 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88717             Bruno Haible  <bruno@clisp.org>
88719         * lib/glob.c: Don't include <pwd.h> on native Windows.
88720         (WINDOWS32): New macro.
88721         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
88723 2008-09-13  Bruno Haible  <bruno@clisp.org>
88725         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
88726         (ETIMEDOUT): Remove macro.
88727         (glthread_cond_timedwait_multithreaded): New declaration.
88728         (glthread_cond_timedwait): Use it.
88729         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
88730         (glthread_cond_timedwait_multithreaded): New function.
88732 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88734         * modules/poll-tests: Do not check for io.h.
88735         * tests/test-poll.c: Check for __MSVCRT__ instead.
88737 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88739         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
88740         * modules/poll-tests: Add inet_pton, stdbool, sockets.
88741         * tests/test-poll.c: Use them.  Use _pipe on Windows.
88743 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88745         * modules/poll-tests: New.
88746         * tests/test-poll.c: New.
88748 2008-09-12  Eric Blake  <ebb9@byu.net>
88750         frexp: test for NetBSD failure on -0.0
88751         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
88752         not all, bugs from NetBSD 3.0 have been fixed.
88753         * doc/posix-functions/frexp.texi (frexp): Document bug.
88754         Reported by Thomas Klausner.
88756         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
88757         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
88758         literal -0.0.
88759         Reported by Jonathan C. Patschke <jp@centtech.com>.
88761 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88763         * lib/glthread/cond.h: Use dummy implementation also if
88764         USE_WIN32_THREADS.
88766 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88768         * modules/fnmatch-posix (License): Change to LGPLv2+.
88769         * modules/fnmatch-gnu (License): Likewise.
88771 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88773         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
88775 2008-09-11  Jim Meyering  <meyering@redhat.com>
88777         * users.txt: Add gtk-vnc.
88779 2008-09-08  Simon Josefsson  <simon@josefsson.org>
88781         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
88782         rotate amounts.
88784         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
88785         required for 16-bit and 8-bit rotates.
88786         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
88787         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
88788         UINT8_MAX instead of hard-coded constants.
88789         Suggested by Paul Eggert.
88791 2008-09-07  Bruno Haible  <bruno@clisp.org>
88793         * tests/test-striconveh.c (main): Check behaviour when converting from
88794         UTF-7.
88796         Make striconveh work better with stateful encodings.
88797         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
88798         that iconv does not increment the inptr when returning -1/EINVAL.
88800 2008-09-07  Bruno Haible  <bruno@clisp.org>
88802         * build-aux/config.rpath: Update according to libtool-2.2.6.
88803         * build-aux/config.libpath: Likewise.
88805 2008-09-06  Bruno Haible  <bruno@clisp.org>
88807         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88808         * lib/freadptr.c (freadptr): Likewise.
88809         * lib/freadseek.c (freadptrinc): Likewise.
88810         Reported by Simon Josefsson.
88812 2008-09-06  Bruno Haible  <bruno@clisp.org>
88814         * modules/freadptr (License): Change to LGPLv2+.
88815         * modules/freadseek (License): Likewise.
88816         Suggested by Eric Blake.
88818         * modules/memchr2 (License): Change to LGPLv2+.
88819         Approved by Eric Blake.
88821 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88822             Bruno Haible  <bruno@clisp.org>
88824         Make gnulib-tool work with native 'sed' on AIX.
88825         * gnulib-tool (sed_noop): New variable.
88826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88827         func_add_or_update, func_create_testdir): Use it to initialize sed
88828         script variables.
88829         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88831 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88832             Bruno Haible  <bruno@clisp.org>
88834         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88835         also works after #include directives.
88837 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88839         getdate.y: reject an out-of-range timezone value
88840         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88841         the range [-24...+24].  When specified with only one or two digits,
88842         * tests/test-getdate.c: Tests for the fix.
88843         * doc/getdate.texi: Document this change.
88845 2008-09-03  Bruno Haible  <bruno@clisp.org>
88847         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88849 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88851         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88852         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88853         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88854         Blake <ebb9@byu.net>.
88856         * tests/test-bitrotate.c: Add more test vectors.
88858 2008-09-02  Eric Blake  <ebb9@byu.net>
88860         vasnprintf-posix: handle large precision via %.*d
88861         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88862         when handling it ourselves.
88863         * tests/test-vasnprintf-posix.c (test_function): Add test.
88864         * tests/test-snprintf-posix.h (test_function): Likewise.
88865         * tests/test-sprintf-posix.h (test_function): Likewise.
88866         * tests/test-vasprintf-posix.c (test_function): Likewise.
88867         Reported by Alain Guibert.
88869 2008-09-01  Eric Blake  <ebb9@byu.net>
88871         c-stack: make configure-time check more robust
88872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88873         successful sigaction call.
88874         Reported by Tom G. Christensen.
88876 2008-09-01  Bruno Haible  <bruno@clisp.org>
88878         New module 'findprog-lgpl'.
88879         * modules/findprog-lgpl: New file.
88880         * lib/findprog-lgpl.c: New file.
88881         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88882         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88883         to decide whether to use strdup or xstrdup, concatenated_filename or
88884         xconcatenated_filename.
88886 2008-09-01  Bruno Haible  <bruno@clisp.org>
88888         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88889         'xconcat-filename' (GPL).
88890         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88891         (License): Change to LGPLv2+.
88892         * modules/xconcat-filename: New file.
88893         * lib/concat-filename.h (concatenated_filename): Change specification.
88894         (xconcatenated_filename): New declaration.
88895         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88896         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88897         memory situations.
88898         * lib/xconcat-filename.c: New file.
88899         * NEWS: Mention the change.
88900         * lib/findprog.c: Include concat-filename.h, not filename.h.
88901         (find_in_path): Use xconcatenated_filename instead of
88902         concatenated_filename.
88903         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88904         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88905         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88906         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88907         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88908         instead of concatenated_filename.
88909         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88910         (execute_java_class): Use xconcatenated_filename instead of
88911         concatenated_filename.
88912         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88913         * modules/javacomp (Depends-on): Likewise.
88914         * modules/javaexec (Depends-on): Likewise.
88916 2008-09-01  Bruno Haible  <bruno@clisp.org>
88918         Split module 'filename' into 'filename' and 'concat-filename'.
88919         * modules/filename: Keep only lib/filename.h.
88920         (License): Change to LGPLv2+.
88921         * modules/concat-filename: New file, extracted from modules/filename.
88922         * lib/filename.h (concatenated_filename): Remove declaration.
88923         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88924         * lib/concat-filename.c: Include concat-filename.h.
88925         * NEWS: Mention the change.
88927 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88929         * lib/bitrotate.h (rotl8, rotr8): Add.
88931         * modules/bitrotate (configure.ac): Need
88932         AC_REQUIRE([AC_C_INLINE]).
88933         (Description): Mention stdint.h.  Reported by Bruno Haible
88934         <bruno@clisp.org>.
88936         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88937         Paolo Bonzini <bonzini@gnu.org>.
88939 2008-08-31  Bruno Haible  <bruno@clisp.org>
88941         Assume Solaris specific bi-arch conventions on Solaris systems.
88942         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88943         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88945         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88946         like acl_libdirstem.
88947         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88948         acl_libdirstem.
88949         * NEWS: Mention the change.
88950         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88952 2008-08-31  Jim Meyering  <meyering@redhat.com>
88954         * lib/strftime.h: Add comments describing the two added arguments.
88956         remove duplicate #include directives
88957         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88958         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88960 2008-08-31  Bruno Haible  <bruno@clisp.org>
88962         New module 'sigpipe-die'.
88963         * modules/sigpipe-die: New file.
88964         * lib/sigpipe-die.h: New file.
88965         * lib/sigpipe-die.c: New file.
88966         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88968 2008-08-31  Bruno Haible  <bruno@clisp.org>
88970         Don't override previously installed signal handlers.
88971         * lib/fatal-signal.c (saved_sigactions): New variable.
88972         (uninstall_handlers): Reset the signal to the saved handler, not
88973         to SIG_DFL (except when ignored).
88974         (install_handlers): Save the previous handlers.
88976 2008-08-30  Bruno Haible  <bruno@clisp.org>
88978         * gnulib-tool (func_reset_sigpipe): New function.
88979         (func_get_automake_snippet, func_modules_transitive_closure,
88980         func_import): Invoke it before a join command that reads from stdin,
88981         to avoid "echo: write error: Broken pipe" error messages on stderr.
88982         Reported by Sam Steingold <sds@gnu.org>.
88984 2008-08-30  Bruno Haible  <bruno@clisp.org>
88986         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88987         Code copied from m4/open.m4.
88988         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88989         access and the filename ends in a slash. Code copied from lib/open.c.
88990         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88991         * tests/test-fopen.c (main): Check against bug with trailing slash.
88993 2008-08-29  Bruno Haible  <bruno@clisp.org>
88995         Avoid some "gcc -pedantic" warnings.
88996         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88997         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88998         * lib/dirent.in.h: Likewise.
88999         * lib/fcntl.in.h: Likewise.
89000         * lib/float.in.h: Likewise.
89001         * lib/iconv.in.h: Likewise.
89002         * lib/inttypes.in.h: Likewise.
89003         * lib/locale.in.h: Likewise.
89004         * lib/math.in.h: Likewise.
89005         * lib/netinet_in.in.h: Likewise.
89006         * lib/search.in.h: Likewise.
89007         * lib/signal.in.h: Likewise.
89008         * lib/stdarg.in.h: Likewise.
89009         * lib/stdint.in.h: Likewise.
89010         * lib/stdio.in.h: Likewise.
89011         * lib/stdlib.in.h: Likewise.
89012         * lib/string.in.h: Likewise.
89013         * lib/strings.in.h: Likewise.
89014         * lib/sys_select.in.h: Likewise.
89015         * lib/sys_socket.in.h: Likewise.
89016         * lib/sys_stat.in.h: Likewise.
89017         * lib/sys_time.in.h: Likewise.
89018         * lib/sysexits.in.h: Likewise.
89019         * lib/time.in.h: Likewise.
89020         * lib/unistd.in.h: Likewise.
89021         * lib/wchar.in.h: Likewise.
89022         * lib/wctype.in.h: Likewise.
89023         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
89024         * modules/fchdir (Makefile.am): Likewise.
89025         * modules/fcntl (Makefile.am): Likewise.
89026         * modules/float (Makefile.am): Likewise.
89027         * modules/iconv_open (Makefile.am): Likewise.
89028         * modules/inttypes (Makefile.am): Likewise.
89029         * modules/locale (Makefile.am): Likewise.
89030         * modules/math (Makefile.am): Likewise.
89031         * modules/netinet_in (Makefile.am): Likewise.
89032         * modules/search (Makefile.am): Likewise.
89033         * modules/signal (Makefile.am): Likewise.
89034         * modules/stdarg (Makefile.am): Likewise.
89035         * modules/stdint (Makefile.am): Likewise.
89036         * modules/stdio (Makefile.am): Likewise.
89037         * modules/stdlib (Makefile.am): Likewise.
89038         * modules/string (Makefile.am): Likewise.
89039         * modules/strings (Makefile.am): Likewise.
89040         * modules/sys_select (Makefile.am): Likewise.
89041         * modules/sys_socket (Makefile.am): Likewise.
89042         * modules/sys_stat (Makefile.am): Likewise.
89043         * modules/sys_time (Makefile.am): Likewise.
89044         * modules/sysexits (Makefile.am): Likewise.
89045         * modules/time (Makefile.am): Likewise.
89046         * modules/unistd (Makefile.am): Likewise.
89047         * modules/wchar (Makefile.am): Likewise.
89048         * modules/wctype (Makefile.am): Likewise.
89049         Reported by Reuben Thomas <rrt@sc3d.org>.
89051 2008-08-29  Bruno Haible  <bruno@clisp.org>
89053         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
89054         any more.
89056 2008-08-29  Simon Josefsson  <simon@josefsson.org>
89058         * MODULES.html.sh (Misc): Add bitrotate.
89060         * modules/bitrotate: New file.
89062         * lib/bitrotate.h: New file.
89064         * modules/bitrotate-tests: New file.
89066         * tests/test-bitrotate.c: New file.
89068         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
89069         on the bitrotate module.
89071         * lib/arctwo.c: Use new bitrotate module.
89073 2008-08-29  Jim Meyering  <meyering@redhat.com>
89075         bootstrap: merge changes from coreutils
89076         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
89077         of copied files.  Remove a kludge, now that this is fixed.
89078         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
89079         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
89080         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
89082 2008-08-29  Bruno Haible  <bruno@clisp.org>
89084         * MODULES.html.sh: Remove --cvs-urls option.
89086 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
89088         maint.mk: adjust to file name change
89089         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
89091 2008-08-28  Jim Meyering  <meyering@redhat.com>
89093         * modules/getndelim2 (License): Relicense to LGPLv2+.
89094         Approved by Richard Stallman for the version of 1995, and by
89095         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
89097 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
89099         * lib/getdelim.c (flockfile, funlockfile): Make all of them
89100         dummy if one is not available.  Do not touch them if
89101         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
89102         (getc_maybe_unlocked): New.
89103         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
89105 2008-08-26  Eric Blake  <ebb9@byu.net>
89107         doc/INSTALL: resync from autoconf
89108         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
89109         (INSTALL_PRELUDE): Delete; this is done more efficiently by
89110         moving...
89111         * install.texi [!autoconf]: ...here.  Resync from autoconf.
89112         * INSTALL: Regenerate.
89113         * INSTALL.ISO: New file.
89114         * INSTALL.UTF-8: Likewise.
89116 2008-08-26  Jim Meyering  <meyering@redhat.com>
89118         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
89119         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
89120         these definitions conditional, so that they may be overridden, too.
89122 2008-08-26  Bruno Haible  <bruno@clisp.org>
89124         Generate INSTALL file variants with prettier quotes.
89125         * doc/Makefile (INSTALL_PRELUDE): New macro.
89126         (INSTALL): Use it.
89127         (INSTALL.ISO, INSTALL.UTF-8): New rules.
89129 2008-08-26  Bruno Haible  <bruno@clisp.org>
89131         Run makeinfo in an English locale.
89132         * doc/Makefile (MAKEINFO): New variable.
89134 2008-08-26  Bruno Haible  <bruno@clisp.org>
89136         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
89137         Suggested by Eric Blake.
89139 2008-08-25  Bruno Haible  <bruno@clisp.org>
89141         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
89143 2008-08-25  Eric Blake  <ebb9@byu.net>
89145         c-stack: test that stack overflow can be caught
89146         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
89147         that platform allows handling stack overflow; at least OS/2 EMX
89148         has sigaltstack, but crashes before transferring control to
89149         handler on stack overflow.
89150         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
89151         check for HAVE_STACK_OVERFLOW_HANDLING.
89152         Reported by Elbert Pol.
89154 2008-08-25  Bruno Haible  <bruno@clisp.org>
89156         * doc/posix-functions/strftime.texi: Fix description of strftime
89157         module.
89159 2008-08-24  Bruno Haible  <bruno@clisp.org>
89161         * tests/uniwidth/test-uc_width2.c: New file.
89162         * tests/uniwidth/test-uc_width2.sh: New file.
89163         * modules/uniwidth/width-tests (Files): Add the new files.
89164         (TESTS): Add uniwidth/test-uc_width2.sh.
89165         (TESTS_ENVIRONMENT): New variable.
89166         (check_PROGRAMS): Add test-uc_width2.
89167         (test_uc_width2_SOURCES): New variable.
89169         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
89170         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
89171         not 0x00AB.
89172         Reported by Alexander V. Lukyanov <lav@netis.ru>.
89174 2008-08-22  Eric Blake  <ebb9@byu.net>
89176         test-lock, test-tls: mention why a test is skipped
89177         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
89178         skipped.
89179         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
89181         count-one-bits: relax license
89182         * modules/count-one-bits (License): Relicense to LGPLv2+.
89183         Suggested by Ludovic Courtès, approved by Ben Pfaff.
89185 2008-08-22  Andreas Schwab  <schwab@suse.de>
89187         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
89188         Remove spurious space in assignment.
89190 2008-08-21  Simon Josefsson  <simon@josefsson.org>
89192         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
89193         Paul Eggert <eggert@CS.UCLA.EDU>.
89195 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
89197         * modules/gettext: Add m4/threadlib.m4.
89199 2008-08-19  Eric Blake  <ebb9@byu.net>
89201         test-c-stack: fix compilation failure on FreeBSD 5.0
89202         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
89203         headers before <sys/resource.h>.
89204         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
89205         the bug.
89206         Reported by Nelson H. F. Beebe.
89208         strverscmp: migrate from "strverscmp.h" to <string.h>
89209         * modules/string (Makefile.am): Add new hooks.
89210         * modules/strverscmp (Files): Remove strverscmp.h.
89211         (Depends-on): Add string.
89212         (configure.ac): Add indicator.
89213         (Include): Mention new header.
89214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
89215         defaults.
89216         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
89217         results.
89218         * lib/strverscmp.h: Delete.
89219         * lib/string.in.h (strverscmp): Provide declaration, when needed.
89220         * tests/test-strverscmp.c (includes): Adjust client.
89221         * lib/check-version.c (includes): Likewise.
89222         * NEWS: Document the change.
89224         strverscmp: add unit test
89225         * modules/strverscmp-tests: New file.
89226         * tests/test-strverscmp.c: Likewise.
89228 2008-08-19  Simon Josefsson  <simon@josefsson.org>
89230         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
89231         regarding Windows crypto stuff, from Mono.
89233 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
89235         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
89236         if present, for intel RND.  Return error on failures.
89238 2008-08-18  Ben Pfaff  <blp@gnu.org>
89240         gitlog-to-changelog: give better diagnostic for failed pipe-open
89241         * build-aux/gitlog-to-changelog: Improve error message: suggest
89242         that the version of Git may be too old.
89244 2008-08-18  Simon Josefsson  <simon@josefsson.org>
89246         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
89247         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
89249 2008-08-18  Bruno Haible  <bruno@clisp.org>
89251         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
89252         pthread_in_use().
89254 2008-08-18  Bruno Haible  <bruno@clisp.org>
89256         * lib/glthread/threadlib.c: Include <pthread.h>.
89258 2008-08-18  Bruno Haible  <bruno@clisp.org>
89260         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
89261         glthread_recursive_lock_* macros.
89262         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
89263         Fix syntax error.
89265 2008-08-18  Bruno Haible  <bruno@clisp.org>
89267         * lib/glthread/thread.c: Avoid forcing a context switch right after
89268         thread creation.
89270 2008-08-17  Bruno Haible  <bruno@clisp.org>
89272         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
89273         * lib/glthread/thread.h: Provide Win32 specific implementation.
89274         * modules/thread (Files): Add lib/glthread/thread.c.
89275         (Depends-on): Add lock.
89276         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
89278 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89280         New module 'yield'.
89281         * modules/yield: New file.
89282         * lib/glthread/yield.h: New file.
89283         * m4/yield.m4: New file.
89284         * MODULES.html.sh (Multithreading): Add yield.
89286 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89288         New module 'thread'.
89289         * modules/thread: New file.
89290         * lib/glthread/thread.h: New file.
89291         * m4/thread.m4: New file.
89292         * MODULES.html.sh (Multithreading): Add thread.
89294 2008-08-17  Bruno Haible  <bruno@clisp.org>
89296         * lib/glthread/lock.h: Include <stdlib.h> always.
89297         * lib/glthread/tls.h: Likewise.
89298         * lib/glthread/cond.h: Likewise.
89300 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89302         New module 'cond'.
89303         * modules/cond: New file.
89304         * lib/glthread/cond.h: New file.
89305         * lib/glthread/cond.c: New file.
89306         * m4/cond.m4: New file.
89307         * MODULES.html.sh (Multithreading): Add cond.
89309 2008-08-16  Eric Blake  <ebb9@byu.net>
89311         c-stack: fix regression on Irix 5.3 from 2008-06-21
89312         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
89313         sa_sigaction...
89314         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
89315         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
89316         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
89317         * modules/signal (Makefile.am): Use the value.
89318         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
89319         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
89320         * doc/posix-headers/signal.texi (signal.h): Document this
89321         portability issue.
89322         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
89323         Reported by Tom G. Christensen.
89325 2008-08-17  Bruno Haible  <bruno@clisp.org>
89327         New module 'threadlib'.
89328         * modules/threadlib: New file.
89329         * lib/glthread/threadlib.c: New file, extracted from
89330         lib/glthread/lock.c.
89331         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
89332         functions.
89333         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
89334         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
89335         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
89336         macros.
89337         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
89338         (gl_DISABLE_THREADS): Remove macro.
89339         * modules/lock (Files): Remove build-aux/config.rpath.
89340         (Depends-on): Remove havelib. Add threadlib.
89341         (configure.ac-early): Remove section.
89342         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
89343         * modules/tls (Depends-on): Remove lock. Add threadlib.
89344         (Link): New section, copied from threadlib.
89345         * MODULES.html.sh (Multithreading): Add threadlib.
89347 2008-08-14  Bruno Haible  <bruno@clisp.org>
89349         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
89350         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
89351         glthread_rwlock_unlock, glthread_rwlock_destroy,
89352         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
89353         glthread_recursive_lock_destroy): Define as macros always.
89354         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
89355         glthread_lock_lock.
89356         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
89357         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
89358         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
89359         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
89360         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
89361         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
89362         (glthread_recursive_lock_lock_func): Renamed from
89363         glthread_recursive_lock_lock.
89364         (glthread_recursive_lock_unlock_func): Renamed from
89365         glthread_recursive_lock_unlock.
89366         (glthread_recursive_lock_destroy_func): Renamed from
89367         glthread_recursive_lock_destroy.
89369 2008-08-14  Bruno Haible  <bruno@clisp.org>
89371         * lib/glthread/lock.h: Renamed from lib/lock.h.
89372         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
89373         * lib/glthread/tls.h: Renamed from lib/tls.h.
89374         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
89375         * lib/fstrcmp.c: Update includes.
89376         * lib/strsignal.c: Update includes.
89377         * modules/lock (Files, Makefile.am): Update.
89378         (Include): Change to "glthread/lock.h".
89379         * modules/tls (Files, Makefile.am): Update.
89380         (Include): Change to "glthread/tls.h".
89381         * tests/test-lock.c: Update includes.
89382         * tests/test-tls.c: Update includes.
89383         * NEWS: Mention the renamed header files.
89385 2008-08-11  Jim Meyering  <meyering@redhat.com>
89387         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
89389 2008-08-11  Eric Blake  <ebb9@byu.net>
89391         test-c-stack: avoid C99-ism
89392         * tests/test-c-stack.c (main): Fix whitespace, move declaration
89393         before statement.
89394         Reported by Alain Guibert.
89396 2008-08-10  Jim Meyering  <meyering@redhat.com>
89398         ensure that return value of uinttostr et al are not ignored
89399         * lib/inttostr.h (__GNUC_PREREQ): Define.
89400         (__attribute_warn_unused_result__): Define.
89401         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
89403 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
89405         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
89406         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
89408 2008-08-07  Jim Meyering  <meyering@redhat.com>
89410         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
89412         * modules/mkstemp (License): Relicense under LGPLv2+.
89413         * modules/tempname (License): Likewise.
89415 2008-08-06  Bruno Haible  <bruno@clisp.org>
89417         * lib/poll.c (poll): Further micro-optimization.
89419 2008-08-06  Jim Meyering  <meyering@redhat.com>
89421         inet_pton.c: use locale-independent tolower
89422         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
89423         (inet_pton6): Use c_tolower rather than tolower.
89424         * modules/inet_pton (Depends-on): Add c-ctype.
89426 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
89428         * lib/poll.c (poll): Avoid division when timeout is 0, cache
89429         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
89431 2008-08-06  Jim Meyering  <meyering@redhat.com>
89433         * modules/inet_pton (License): Relicense under LGPLv2+.
89435 2008-08-03  Bruno Haible  <bruno@clisp.org>
89437         Additional non-aborting API for lock and tls.
89438         * lib/lock.h: Include <errno.h>.
89439         (glthread_lock_init): New macro/function.
89440         (gl_lock_init): Define as wrapper around glthread_lock_init.
89441         (glthread_lock_lock): New macro/function.
89442         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
89443         (glthread_lock_unlock): New macro/function.
89444         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
89445         (glthread_lock_destroy): New macro/function.
89446         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
89447         (glthread_rwlock_init): New macro/function.
89448         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
89449         (glthread_rwlock_rdlock): New macro/function.
89450         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
89451         (glthread_rwlock_wrlock): New macro/function.
89452         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
89453         (glthread_rwlock_unlock): New macro/function.
89454         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
89455         (glthread_rwlock_destroy): New macro/function.
89456         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
89457         (glthread_recursive_lock_init): New macro/function.
89458         (gl_recursive_lock_init): Define as wrapper around
89459         glthread_recursive_lock_init.
89460         (glthread_recursive_lock_lock): New macro/function.
89461         (gl_recursive_lock_lock): Define as wrapper around
89462         glthread_recursive_lock_lock.
89463         (glthread_recursive_lock_unlock): New macro/function.
89464         (gl_recursive_lock_unlock): Define as wrapper around
89465         glthread_recursive_lock_unlock.
89466         (glthread_recursive_lock_destroy): New macro/function.
89467         (gl_recursive_lock_destroy): Define as wrapper around
89468         glthread_recursive_lock_destroy.
89469         (glthread_once): New macro/function.
89470         (gl_once): Define as wrapper around glthread_once.
89471         Update function declarations.
89472         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
89473         glthread_rwlock_init. Return error code.
89474         (glthread_rwlock_rdlock_multithreaded): Renamed from
89475         glthread_rwlock_rdlock. Return error code.
89476         (glthread_rwlock_wrlock_multithreaded): Renamed from
89477         glthread_rwlock_wrlock. Return error code.
89478         (glthread_rwlock_unlock_multithreaded): Renamed from
89479         glthread_rwlock_unlock. Return error code.
89480         (glthread_rwlock_destroy_multithreaded): Renamed from
89481         glthread_rwlock_destroy. Return error code.
89482         (glthread_recursive_lock_init_multithreaded): Renamed from
89483         glthread_recursive_lock_init. Return error code.
89484         (glthread_recursive_lock_lock_multithreaded): Renamed from
89485         glthread_recursive_lock_lock. Return error code.
89486         (glthread_recursive_lock_unlock_multithreaded): Renamed from
89487         glthread_recursive_lock_unlock. Return error code.
89488         (glthread_recursive_lock_destroy_multithreaded): Renamed from
89489         glthread_recursive_lock_destroy. Return error code.
89490         (glthread_once_call): Make static.
89491         (glthread_once_multithreaded): Renamed from glthread_once.
89492         * lib/tls.h: Include <errno.h>.
89493         (glthread_tls_key_init): New macro/function.
89494         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
89495         (glthread_tls_set): New macro/function.
89496         (gl_tls_set): Define as wrapper around glthread_tls_set.
89497         (glthread_tls_key_destroy): New macro/function.
89498         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
89499         Update function declarations.
89500         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
89501         glthread_tls_get.
89502         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89504 2008-08-04  Eric Blake  <ebb9@byu.net>
89506         gnumakefile: use space, not TAB, outside of targets
89507         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
89509 2008-08-02  Jim Meyering  <meyering@redhat.com>
89511         getdate.y: avoid locale-dependent date parsing failure
89512         In Turkish locales, getdate would fail to recognize keywords
89513         containing a lowercase "i".  The solution is not to rely on
89514         locale-sensitive case-conversion.
89515         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
89516         (lookup_word): Use c_toupper in place of toupper.
89517         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
89518         Reported by Vefa Bicakci <bicave@superonline.com> in
89519         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
89520         * modules/getdate (Depends-on): Add c-ctype.
89522 2008-08-02  Bruno Haible  <bruno@clisp.org>
89524         * gnulib-tool (func_import): When updating or creating a .gitignore
89525         file, prepend each added line with a slash, and ignore leading slashes
89526         from the existing lines.
89527         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89529 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89531         Portability fix for GNU make 3.79.1.
89532         * top/GNUmakefile: Avoid 'else COND', which older GNU make
89533         versions do not understand.
89535 2008-08-01  Bruno Haible  <bruno@clisp.org>
89537         Work around bug of HP-UX 10.20 cc with -0.0 literal.
89538         * tests/test-isnanf.h (zero): New variable.
89539         (main): Avoid literal -0.0f.
89540         * tests/test-isnand.h (zero): New variable.
89541         (main): Avoid literal -0.0.
89542         * tests/test-isnanl.h (zero): New variable.
89543         (main): Avoid literal -0.0L.
89544         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
89545         (test_float, test_double, test_long_double): Avoid literals -0.0f,
89546         -0.0, -0.0L.
89547         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
89548         (test_signbitd): Avoid literal -0.0.
89549         (test_signbitl): Avoid literal -0.0L.
89550         * tests/test-ceilf1.c (zero): New variable.
89551         (main): Avoid literal -0.0f.
89552         * tests/test-ceill.c (zero): New variable.
89553         (main): Avoid literal -0.0L.
89554         * tests/test-floorf1.c (zero): New variable.
89555         (main): Avoid literal -0.0f.
89556         * tests/test-floorl.c (zero): New variable.
89557         (main): Avoid literal -0.0L.
89558         * tests/test-roundf1.c (zero): New variable.
89559         (main): Avoid literal -0.0f.
89560         * tests/test-round1.c (zero): New variable.
89561         (main): Avoid literal -0.0.
89562         * tests/test-roundl.c (zero): New variable.
89563         (main): Avoid literal -0.0L.
89564         * tests/test-truncf1.c (zero): New variable.
89565         (main): Avoid literal -0.0f.
89566         * tests/test-trunc1.c (zero): New variable.
89567         (main): Avoid literal -0.0.
89568         * tests/test-truncl.c (zero): New variable.
89569         (main): Avoid literal -0.0L.
89570         * tests/test-frexp.c (zero): New variable.
89571         (main): Avoid literal -0.0.
89572         * tests/test-frexpl.c (zero): New variable.
89573         (main): Avoid literal -0.0L.
89574         * tests/test-ldexpl.c (zero): New variable.
89575         (main): Avoid literal -0.0L.
89576         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89577         (zerod, zerol): New variables.
89578         (test_function): Avoid literals -0.0, -0.0L.
89579         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89580         (zerod, zerol): New variables.
89581         (test_function): Avoid literals -0.0, -0.0L.
89582         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89583         (zerod, zerol): New variables.
89584         (test_function): Avoid literals -0.0, -0.0L.
89585         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89586         (zerod, zerol): New variables.
89587         (test_function): Avoid literals -0.0, -0.0L.
89588         * tests/test-strtod.c (zero): New variable.
89589         (main): Avoid literal -0.0.
89590         Reported by Jonathan C. Patschke <jp@centtech.com>.
89592 2008-07-31  Jim Meyering  <meyering@redhat.com>
89594         sha256.h: correct definition of SHA224_DIGEST_SIZE
89595         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
89596         Reported by Paulie Pena IV <paulie4@gmail.com>.
89597         Define as 224 / 8, rather than as a literal.
89598         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
89599         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
89600         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
89602 2008-07-31  Bruno Haible  <bruno@clisp.org>
89604         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
89605         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
89606         Reported by Jonathan Patschke <jp@centtech.com>.
89608 2008-07-31  Bruno Haible  <bruno@clisp.org>
89610         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
89611         Reported by Paolo Bonzini <bonzini@gnu.org>.
89613 2008-07-30  Eric Blake  <ebb9@byu.net>
89615         test-strtod: allow compilation without -lm
89616         * tests/test-strtod.c (main): Avoid link dependence on fabs.
89617         Reported by Dennis Clarke <blastwave@gmail.com>.
89619 2008-07-28  Jim Meyering  <meyering@redhat.com>
89621         bootstrap: work also when there are no .po files in po/
89622         * build-aux/bootstrap (update_po_files): Complete the change
89623         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
89625 2008-07-27  Jim Meyering  <meyering@redhat.com>
89627         * users.txt: Add zile.
89629 2008-07-26  Ben Pfaff  <blp@gnu.org>
89631         Add missing dependencies on new m4/exponent[fdl].m4 files.
89632         * modules/isnanf-nolibm: Add m4/exponentf.m4.
89633         * modules/isnand-nolibm: Add m4/exponentd.m4.
89634         * modules/isnanl-nolibm: Add m4/exponentl.m4.
89635         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
89636         m4/isnan[fdl].m4, because the macros actually used moved.
89637         Reported by Jim Meyering.
89639 2008-07-14  Ben Pfaff  <blp@gnu.org>
89641         Add isinf module.
89642         * lib/isinf.c: New file.
89643         * lib/math.in.h: Define isinf macro if we have decided to replace
89644         it.
89645         * m4/isinf.m4: New file.
89646         * m4/math_h.m4: Initialize and substitute variables for isinf
89647         module.
89648         * modules/isinf: New file.
89649         * modules/isinf-tests: New file.
89650         * modules/math: Add substitutions for new module.
89651         * tests/test-isinf.c: New file.
89652         * doc/posix-functions/isinf.texi: Mention new module.
89653         * MODULES.html.sh: Mention new module.
89655 2008-07-14  Ben Pfaff  <blp@gnu.org>
89657         Factor out some macros for use by additional modules.
89658         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
89659         exponentf.m4.
89660         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
89661         exponentd.m4.
89662         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
89663         file exponentl.m4.
89664         * m4/exponentf.m4: New file.
89665         * m4/exponentd.m4: New file.
89666         * m4/exponentl.m4: New file.
89667         * modules/isnanf: Use new file m4/exponentf.m4.
89668         * modules/isnand: Use new file m4/exponentd.m4.
89669         * modules/isnanl: Use new file m4/exponentl.m4.
89671 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89673         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89674         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89675         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89676         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89678         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89679         readlink on platforms without PATH_MAX.
89681 2008-07-21  Eric Blake  <ebb9@byu.net>
89683         Warn, not fail, on stale version.
89684         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89686         Don't allow installation with stale devel version number.
89687         * top/GNUmakefile (_is-install-target): New macro.
89688         (_curr-ver): Forbid installation with stale version number.
89690 2008-07-20  Bruno Haible  <bruno@clisp.org>
89692         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89693         TESTS_ENVIRONMENT.
89694         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89696 2008-07-20  Bruno Haible  <bruno@clisp.org>
89698         * lib/c-stack.h (c_stack_action): Add documentation.
89699         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89701 2008-07-20  Bruno Haible  <bruno@clisp.org>
89703         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89704         * modules/readlink (License): Likewise.
89706 2008-07-17  Eric Blake  <ebb9@byu.net>
89708         * modules/c-stack (Link): Fix typo.
89710         Make c-stack use libsigsegv, when available.
89711         * modules/c-stack (Depends-on): Add libsigsegv.
89712         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
89713         needed.
89714         * lib/c-stack.c (SIGSTKSZ): Define fallback.
89715         (segv_handler, overflow_handler, c_stack_action)
89716         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
89717         implementation when libsigsegv is available, but only when using
89718         the library is necessary.
89719         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
89720         comment, explaining why XSI check fails on Linux.
89721         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
89722         * tests/test-c-stack2.sh: Tweak skip message.
89723         * NEWS: Document new link-time requirements.
89725 2008-07-16  Eric Blake  <ebb9@byu.net>
89727         c-stack: Expose false positives when not using libsigsegv.
89728         * modules/c-stack-tests (Files): Expand test.
89729         * tests/test-c-stack.c (main): Add means to conditionally trigger
89730         non-overflow SIGSEGV.
89731         * tests/test-c-stack2.sh: New file.
89733 2008-07-14  Bruno Haible  <bruno@clisp.org>
89735         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
89736         Reported by Eric Blake.
89738 2008-07-14  Sam Steingold  <sds@gnu.org>
89739             Bruno Haible  <bruno@clisp.org>
89741         New module libsigsegv.
89742         * modules/libsigsegv: New file.
89743         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
89744         modifications.
89745         * MODULES.html.sh (Signal handling): New section.
89747 2008-07-14  Bruno Haible  <bruno@clisp.org>
89749         * modules/unictype/ctype-* (Description): Add the word "function".
89750         Improves the resulting doc in MODULES.html.
89752 2008-07-12  Ben Pfaff  <blp@gnu.org>
89754         Add longlong module.
89755         * modules/longlong: New file.
89757 2008-07-12  Bruno Haible  <bruno@clisp.org>
89759         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
89760         to empty.
89762 2008-07-10  Ben Pfaff  <blp@gnu.org>
89764         Add isnan module.
89765         * doc/posix-functions/isnan.texi: Mention new module.
89766         * lib/math.in.h: Define isnan macro if we have decided to replace
89767         it.
89768         * m4/isnan.m4: New file.
89769         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
89770         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
89771         also.
89772         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
89773         redundancy.
89774         * m4/math_h.m4: Initialize and substitute variables for isnan
89775         module.
89776         * modules/isnan: New file.
89777         * modules/isnan-tests: New file.
89778         * modules/math: Add substitutions for new module.
89779         * tests/test-isnan.c: New file.
89780         * MODULES.html.sh: Mention new module.
89782 2008-07-10  Ben Pfaff  <blp@gnu.org>
89784         Add isnanf module.
89785         * lib/isnanf.m4: New file.
89786         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
89787         (gl_HAVE_ISNANF_IN_LIBM): New macro.
89788         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
89789         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
89790         * modules/isnanf: New file.
89791         * modules/isnanf-tests: New file.
89792         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
89793         files.
89794         * tests/test-isnanf-nolibm.c: factored most of its contents into
89795         new file tests/test-isnanf.h.
89796         * tests/test-isnanf.h: New file.
89797         * tests/test-isnanf.c: New file.
89798         * MODULES.html.sh: Mention new module.
89799         * doc/glibc-functions/isnanf.texi: Mention new module.
89801 2008-07-10  Ben Pfaff  <blp@gnu.org>
89803         Add isnand module.
89804         * lib/isnand.h: New file.
89805         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89806         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89807         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89808         functionality also.
89809         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89810         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89811         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89812         * modules/isnand: New file.
89813         * modules/isnand-tests: New file.
89814         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89815         files.
89816         * tests/test-isnand-nolibm.c: factored most of its contents into
89817         new file tests/test-isnand.h.
89818         * tests/test-isnand.h: New file.
89819         * tests/test-isnand.c: New file.
89820         * MODULES.html.sh: Mention new module.
89822 2008-07-10  Ben Pfaff  <blp@gnu.org>
89824         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89825         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89826         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89827         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89828         * modules/isnanf-nolibm: Update references to renamed files.
89829         * modules/isnand-nolibm: Likewise.
89830         * modules/isnanf-nolibm-tests: Likewise.
89831         * modules/isnand-nolibm-tests: Likewise.
89832         * lib/frexp.c: Likewise.
89833         * lib/isfinite.c: Likewise.
89834         * lib/signbitd.c: Likewise.
89835         * lib/signbitf.c: Likewise.
89836         * lib/vasnprintf.c: Likewise.
89837         * tests/test-ceilf1.c: Likewise.
89838         * tests/test-ceilf2.c: Likewise.
89839         * tests/test-floorf1.c: Likewise.
89840         * tests/test-floorf2.c: Likewise.
89841         * tests/test-frexp.c: Likewise.
89842         * tests/test-round1.c: Likewise.
89843         * tests/test-round2.c: Likewise.
89844         * tests/test-roundf1.c: Likewise.
89845         * tests/test-strtod.c: Likewise.
89846         * tests/test-trunc1.c: Likewise.
89847         * tests/test-trunc2.c: Likewise.
89848         * tests/test-truncf1.c: Likewise.
89849         * tests/test-truncf2.c: Likewise.
89850         * NEWS: Mention the renamed header files.
89852 2008-07-11  Jim Meyering  <meyering@redhat.com>
89854         vc-list-files: make the last-resort awk code more portable
89855         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89856         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89857         does not support it.
89859 2008-07-10  Eric Blake  <ebb9@byu.net>
89861         Work with tar's bootstrap.
89862         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89863         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89864         an m4 comment.
89866 2008-07-09  Jim Meyering  <meyering@redhat.com>
89868         posix-shell.m4: fix typo that made this test malfunction
89869         * m4/posix-shell.m4: Remove capitalization in variable name.
89871 2008-07-08  Bruno Haible  <bruno@clisp.org>
89873         * m4/onceonly.m4: Update comments.
89874         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89876 2008-07-04  Jim Meyering  <meyering@redhat.com>
89878         * users.txt: Add vc-dwim.
89879         (bison, coreutils): Use the gitweb URL.
89881 2008-07-03  Jim Meyering  <meyering@redhat.com>
89883         * users.txt: Add libffcall.  From Sam Steingold.
89885 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89887         getdate.y: do not ignore TZ with relative day, month or year offset
89888         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89889         relative-date-handling, since otherwise, the latter would clobber the
89890         sole output (an updated Start value) of the tz-handling block.
89891         * tests/test-getdate.c: Tests for the fix
89893 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89895         Recognize 'foo_LIBRARIES += libgnu.a'.
89896         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89897         makefile snippet has already specified an installation location,
89898         also using '+='.
89900 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89902         getdate.y: factor out common actions
89903         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89904         Use them in place of open-coded actions.
89906 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89908         Add self-test for getdate module.
89909         * modules/getdate-tests: New file.
89910         * tests/test-getdate.c: New file.
89912 2008-06-29  Bruno Haible  <bruno@clisp.org>
89914         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89915         .gitignore.
89916         Reported by Sylvain Beucler <beuc@beuc.net>.
89918 2008-06-29  Bruno Haible  <bruno@clisp.org>
89920         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89921         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89923 2008-06-29  Bruno Haible  <bruno@clisp.org>
89925         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89926         EXTRA_DIST.
89927         Reported by Sylvain Beucler <beuc@beuc.net>.
89929 2008-06-26  Jim Meyering  <meyering@redhat.com>
89931         make several modules depend on the "open" module
89932         This provides slightly increased consistency when opening-for-write
89933         the name of a non-directory spelled with a trailing slash.
89934         * modules/chdir-safer: Likewise.
89935         * modules/chown: Likewise.
89936         * modules/clean-temp: Likewise.
89937         * modules/copy-file: Likewise.
89938         * modules/fchdir: Likewise.
89939         * modules/fcntl-safer: Likewise.
89940         * modules/pipe: Likewise.
89941         * modules/utime: Likewise.
89942         Prompted by Eric Blake and Bruno Haible.
89944 2008-06-24  Andreas Schwab  <schwab@suse.de>
89946         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89947         literals can be used as initializers for global variables.
89949 2008-06-23  Eric Blake  <ebb9@byu.net>
89951         Make gnulib-cache.m4 easier to diff.
89952         * gnulib-tool (func_import): Allow newlines when reading cached
89953         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89955 2008-06-23  Bruno Haible  <bruno@clisp.org>
89957         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89958         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89959         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89960         m4/signalblocking.m4.
89961         (gl_PREREQ_SIGACTION): Don't invoke it.
89962         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89963         gl_PREREQ_SIG_HANDLER_H.
89964         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89965         Don't check for sigaction here.
89967 2008-06-23  Bruno Haible  <bruno@clisp.org>
89969         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89970         (install_handlers): Don't set the SA_RESETHAND flag.
89972 2008-06-23  Bruno Haible  <bruno@clisp.org>
89974         * m4/sigaction.m4: Comment fixes.
89975         * lib/signal.in.h: Likewise.
89977 2008-06-23  Eric Blake  <ebb9@byu.net>
89979         Fix typo.
89980         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89982         Avoid SA_ namespace.
89983         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89984         Reported by Ralf Wildenhues.
89986         Avoid test failure due to SA_RESTORER.
89987         * tests/test-sigaction.c (SA_MASK): New macro.
89988         (main): Avoid failing due to extension flags being set.
89989         Reported by Jim Meyering.
89991         Revert use of sig-handler.h in sigprocmask.c.
89992         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89993         it requires the existence of struct sigaction.
89994         * lib/sigprocmask.c (handler_t): Restore typedef.
89995         (rpl_signal, old_handlers): Use local type.
89997 2008-06-22  Bruno Haible  <bruno@clisp.org>
89999         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
90000         conditionally.
90001         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90003 2008-06-22  Bruno Haible  <bruno@clisp.org>
90005         * doc/posix-functions/siginterrupt.texi: Move note.
90007         * lib/signal.in.h (SA_RESTART): New macro.
90008         * lib/sigaction.c: Update comment.
90010         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
90012         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
90013         (gl_PREREQ_SIGPROCMASK): Invoke it.
90014         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
90016         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
90018         * lib/sigprocmask.c: Update a comment.
90020 2008-06-21  Eric Blake  <ebb9@byu.net>
90022         Use sigaction module rather than signal().
90023         * modules/c-stack (Depends-on): Add sigaction.
90024         * modules/fatal-signal (Depends-on): Likewise.
90025         * modules/nanosleep (Depends-on): Likewise.
90026         * modules/sigprocmask (Files): Add sig-handler.h.
90027         * modules/sigaction (Files): Likewise.
90028         * lib/sig-handler.h (get_handler): New file, suggested by Paul
90029         Eggert.
90030         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
90031         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
90032         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
90033         (init_fatal_signals): Likewise.
90034         * lib/nanosleep.c (rpl_nanosleep): Likewise.
90035         (siginterrupt): Delete fallback.
90036         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
90037         instead.
90038         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
90039         siginterrupt.
90041         New module sigaction, for mingw.
90042         * modules/sigaction: New module...
90043         * modules/sigaction-tests: ...and its test.
90044         * m4/sigaction.m4: New file.
90045         * lib/sigaction.c: Likewise.
90046         * tests/test-sigaction.c: Likewise.
90047         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
90048         * modules/signal (Makefile.am): Likewise.
90049         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
90050         needed.
90051         * doc/posix-headers/signal.texi (signal.h): Mention provided
90052         types.
90053         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
90054         that sigaction is preferable.
90055         * doc/posix-functions/sigaction.texi (sigaction): Mention new
90056         module.
90057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90058         sigaction.
90060         Improve robustness of sigprocmask by overriding signal.
90061         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
90062         is in use.
90063         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
90064         (SIGKILL, SIGSTOP): Provide fallbacks.
90065         (rpl_signal): Implement.
90066         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
90067         signal can be called inside handlers.
90069         Fix nanosleep module on mingw.
90070         * modules/nanosleep (Depends-on): Add sys_select.
90071         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
90073         Fix licensing of sigprocmask.
90074         * modules/raise (License): Relicense as LGPL.
90076 2008-06-21  Bruno Haible  <bruno@clisp.org>
90078         * lib/propername.c (proper_name_utf8): Don't use the transliterated
90079         result if it contains question marks.
90080         Reported by Michael Geng <linux@michaelgeng.de>.
90082 2008-06-19  Bruno Haible  <bruno@clisp.org>
90084         Fix CVS-ism.
90085         * doc/gnulib.texi: Include updated-stamp.texi.
90086         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
90087         (updated-stamp.texi): New rule.
90088         (gnulib.info): Depend on it.
90089         * doc/.gitignore: Add updated-stamp.texi.
90090         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
90092 2008-06-19  Bruno Haible  <bruno@clisp.org>
90094         * doc/Makefile (gnulib.info): Update and simplify dependencies.
90095         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90097 2008-06-19  Eric Blake  <ebb9@byu.net>
90099         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
90100         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
90101         Reported by Stepan Kasal.
90103 2008-06-18  Bruno Haible  <bruno@clisp.org>
90105         * lib/fatal-signal.c (init_fatal_signals): Add comment.
90106         Reported by Eric Blake.
90108 2008-06-18  Eric Blake  <ebb9@byu.net>
90110         Work around cygwin 1.5.25 strsignal bug.
90111         * tests/test-strsignal.c: Allow for const char *.
90112         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
90114 2008-06-18  Simon Josefsson  <simon@josefsson.org>
90116         * users.txt: Update URL to article and add author/date
90117         information.
90119 2008-06-17  Bruno Haible  <bruno@clisp.org>
90121         New macro gl_DISABLE_THREADS.
90122         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
90123         if the user did not pass --enable-threads or --disable-threads option.
90124         (gl_DISABLE_THREADS): New macro.
90125         Reported by Eric Blake <ebb9@byu.net>.
90127 2008-06-17  Bruno Haible  <bruno@clisp.org>
90129         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
90130         when the macro ignores it.
90131         Based on a patch by Eric Blake <ebb9@byu.net>.
90133 2008-06-17  Bruno Haible  <bruno@clisp.org>
90135         * modules/tls (License): Change to LGPLv2+.
90136         Reported by Eric Blake.
90138 2008-06-17  Eric Blake  <ebb9@byu.net>
90140         Simplify c-stack prerequisites.
90141         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
90142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
90143         no longer requires <ucontext.h> to exist.  Optimize setrlimit
90144         check.
90145         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
90146         <sys/resource.h>.
90148         Move c-stack test into testsuite.
90149         * modules/c-stack-tests: New file.
90150         * lib/c-stack.c [DEBUG]: Move test program...
90151         * tests/test-c-stack.c: ...into this new file.  Skip rather than
90152         fail test if sigaltstack is lacking.
90153         * tests/test-c-stack.sh: New driver file.
90155 2008-06-16  Eric Blake  <ebb9@byu.net>
90157         Use raise module consistently.
90158         * modules/fatal-signal (Depends-on): Add raise.
90159         * modules/sigprocmask (Depends-on): Likewise.
90160         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
90161         * lib/sigprocmask.c (sigprocmask): Likewise.
90162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90163         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
90165         Fix compliance bug in sigpending.
90166         * lib/sigprocmask.c (sigpending): Return pending array via
90167         parameter, not return value.
90169 2008-06-14  Eric Blake  <ebb9@byu.net>
90171         Improve obstack-printf test code.
90172         * tests/test-obstack-printf.c (test_function): Fix comment, and
90173         simplify usage of obstack_* in macros.  Add a test for coverage.
90174         Reported by Bruno Haible.
90176 2008-06-14  Bruno Haible  <bruno@clisp.org>
90178         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
90179         array size as a constant, not as a const variable.
90180         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90181         AC_USE_SYSTEM_EXTENSIONS.
90182         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
90183         Test whether the obstack_printf function actually exists.
90184         * modules/obstack-printf (Depends-on): Add extensions.
90185         (Include): Remove obstack.h.
90186         * modules/obstack-printf-posix (Depends-on): Add extensions.
90187         (Include): Remove obstack.h.
90189 2008-06-13  Eric Blake  <ebb9@byu.net>
90191         Add obstack-printf and obstack-printf-posix modules.
90192         * modules/obstack-printf: New file.
90193         * modules/obstack-printf-posix: Likewise.
90194         * MODULES.html.sh (Misc): Mention them.
90195         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
90196         Likewise.
90197         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
90198         Likewise.
90199         * modules/stdio (Makefile.am): Accomodate new modules.
90200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90201         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
90202         Declare.
90203         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
90204         functions.
90205         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
90206         (gl_REPLACE_OBSTACK_PRINTF): New macros
90207         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
90208         * tests/test-obstack-printf.c: New file.
90209         * modules/obstack-printf-tests: Likewise.
90210         * modules/obstack-printf-posix-tests: Likewise.
90212 2008-06-11  Bruno Haible  <bruno@clisp.org>
90214         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
90215         * lib/open.c: Include errno.h.
90216         (open): Fail when attempting to write to a file that has a trailing
90217         slash.
90218         * tests/test-open.c (main): Test against trailing slash bug.
90219         * doc/posix-functions/open.texi: Mention the trailing slash bug.
90221 2008-06-10  Bruno Haible  <bruno@clisp.org>
90223         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
90224         for $? to work inside the trap command, with various /bin/sh-s.
90225         * tests/test-vc-list-files-cvs.sh: Likewise.
90227 2008-06-10  Bruno Haible  <bruno@clisp.org>
90229         * lib/acl-internal.h: Don't include gettext.h here.
90230         * lib/set-mode-acl.c: Include gettext.h here.
90231         * lib/copy-acl.c: Likewise.
90233 2008-06-10  Bruno Haible  <bruno@clisp.org>
90235         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
90236         * lib/wait-process.c (wait_subprocess): Likewise.
90237         * lib/execute.h (execute): Add termsigp argument.
90238         * lib/execute.c (execute): Likewise.
90239         * lib/csharpcomp.c (compile_csharp_using_pnet,
90240         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
90241         * lib/csharpexec.c (execute_csharp_using_pnet,
90242         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
90243         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
90244         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
90245         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
90246         is_jikes_present): Update.
90247         * lib/javaexec.c (execute_java_class): Update.
90248         * lib/javaversion.c (execute_and_read_line): Update.
90249         * NEWS: Document the changes.
90250         Reported by Eric Blake.
90252 2008-06-10  Eric Blake  <ebb9@byu.net>
90254         Add missing include.
90255         * tests/test-strstr.c (includes): Add <signal.h>.
90256         * tests/test-strcasestr.c (includes): Likewise.
90257         * tests/test-memmem.c (includes): Likewise.
90259 2008-06-10  Bruno Haible  <bruno@clisp.org>
90261         * lib/wait-process.c (wait_subprocess): Add an assertion.
90263 2008-06-10  Bruno Haible  <bruno@clisp.org>
90265         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
90267 2008-06-10  Bruno Haible  <bruno@clisp.org>
90269         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
90270         using alarm().
90271         * tests/test-strcasestr.c (main): Likewise.
90272         * tests/test-strstr.c (main): Likewise.
90274 2008-06-09  Bruno Haible  <bruno@clisp.org>
90276         Work around the Solaris 10 ACE ACLs ABI change.
90277         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
90278         declare if ACL_NO_TRIVIAL is present.
90279         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
90280         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
90281         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
90282         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
90283         define if ACL_NO_TRIVIAL is present.
90284         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
90285         and use the current ABI.
90286         (file_has_acl): Use same #if condition as elsewhere.
90287         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
90288         in use, and use the current ABI.
90289         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
90290         Reported by Jim Meyering.
90292 2008-06-09  Eric Blake  <ebb9@byu.net>
90294         Work around environments that (stupidly) ignore SIGALRM.
90295         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
90296         before using alarm().
90297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90299         Reported by Ian Beckwith <ianb@erislabs.net>.
90301         Produce autobuild blurb earlier in log.
90302         * modules/autobuild (configure.ac-early): Move AB_INIT here.
90304 2008-06-09  Jim Meyering  <meyering@redhat.com>
90305         and Ondřej Vašík  <ovasik@redhat.com>
90307         utimens.c: correct kernel bug work-around
90308         Ondřej Vašík found that the invalid return value of 280 indicates
90309         failure, not success, and the kernel bug we're trying to work
90310         around affects not just the utimensat call, but also the fallback
90311         futimens call.
90312         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
90313         not success.
90314         [HAVE_FUTIMENS]: Use the same work-around, here.
90316 2008-06-09  Jim Meyering  <meyering@redhat.com>
90318         add more guards around definition of ACE_-related code
90319         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
90320         ALLOW and ACE_OWNER are also defined.
90322 2008-06-08  Bruno Haible  <bruno@clisp.org>
90324         * lib/acl-internal.h: Add me as co-author.
90325         * lib/file-has-acl.c: Likewise.
90326         * lib/set-mode-acl.c: Likewise.
90327         * lib/copy-acl.c: Likewise.
90329 2008-06-08  Bruno Haible  <bruno@clisp.org>
90331         Add support for AIX ACLs.
90332         * lib/acl-internal.h (acl_nontrivial): New declaration.
90333         * lib/file-has-acl.c (acl_nontrivial): New function.
90334         (file_has_acl): Add implementation using AIX 4 ACL API.
90335         * lib/set-mode-acl.c (qset_acl): Likewise.
90336         * lib/copy-acl.c (qcopy_acl): Likewise.
90338 2008-06-08  Bruno Haible  <bruno@clisp.org>
90340         Add support for HP-UX ACLs.
90341         * lib/acl-internal.h (acl_nontrivial): New declaration.
90342         * lib/file-has-acl.c (acl_nontrivial): New function.
90343         (file_has_acl): Add implementation using HP-UX 11 ACL API.
90344         * lib/set-mode-acl.c (qset_acl): Likewise.
90345         * lib/copy-acl.c (qcopy_acl): Likewise.
90347 2008-06-08  Bruno Haible  <bruno@clisp.org>
90349         Add support for Cygwin ACLs.
90350         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
90351         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
90352         the chmod_or_fchmod call.
90353         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
90355 2008-06-08  Bruno Haible  <bruno@clisp.org>
90357         Fix bug with setuid modes in Solaris 10+ code.
90358         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
90359         succeeded, when the mode contains some special bits.
90361 2008-06-08  Bruno Haible  <bruno@clisp.org>
90363         Add support for Solaris 7..10 ACLs.
90364         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
90365         declarations.
90366         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
90367         functions.
90368         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
90369         * lib/set-mode-acl.c (qset_acl): Likewise.
90370         * lib/copy-acl.c (qcopy_acl): Likewise.
90372 2008-06-08  Bruno Haible  <bruno@clisp.org>
90374         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
90375         declaration.
90376         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
90377         (acl_access_nontrivial): Remove MacOS X case.
90378         (file_has_acl): Use acl_extended_nontrivial.
90379         * lib/copy-acl.c (qcopy_acl): Likewise.
90381 2008-06-08  Bruno Haible  <bruno@clisp.org>
90383         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
90385 2008-06-08  Jim Meyering  <meyering@redhat.com>
90387         * modules/acl (Maintainer): Add Bruno Haible.
90389 2008-06-07  Bruno Haible  <bruno@clisp.org>
90391         Improve support for Tru64 ACLs.
90392         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
90393         ACL on OSF/1.
90395 2008-06-07  Bruno Haible  <bruno@clisp.org>
90397         Add support for MacOS X ACLs.
90398         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
90399         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
90400         * lib/set-mode-acl.c (qset_acl): Likewise.
90401         * lib/copy-acl.c (qcopy_acl): Likewise.
90403 2008-06-07  Bruno Haible  <bruno@clisp.org>
90405         Fix memory leak introduced on 2008-05-22.
90406         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
90407         use.
90409 2008-06-07  Bruno Haible  <bruno@clisp.org>
90411         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
90412         to construct an empty ACL.
90414 2008-06-07  Bruno Haible  <bruno@clisp.org>
90416         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
90417         precisely.
90418         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
90420 2008-06-07  Bruno Haible  <bruno@clisp.org>
90422         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
90423         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
90425 2008-06-07  Bruno Haible  <bruno@clisp.org>
90427         * doc/posix-functions/_setjmp.texi: Explain the use of this function
90428         regardless of POSIX.
90429         * doc/posix-functions/_longjmp.texi: Likewise.
90430         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
90431         SystemV platform in this case.
90433 2008-06-06  Eric Blake  <ebb9@byu.net>
90435         Document abort() bugs.
90436         * doc/posix-functions/abort.texi (abort): Mention anomalies.
90438         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
90439         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
90440         sigsetjmp.
90441         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
90442         siglongjmp, but only as a macro.
90443         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
90444         is obsolete.
90445         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
90447         Tweak documentation to cover cygwin argz bugs.
90448         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
90449         argz bug fix; no code change needed since no cygwin releases
90450         occurred between the last fix and the bug being tested.
90451         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
90452         module and recently fixed cygwin bugs.
90453         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
90454         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
90455         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
90456         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
90457         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
90458         Likewise.
90459         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
90460         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
90461         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
90462         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
90463         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
90464         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
90465         Likewise.
90467         Avoid gcc warning on cygwin.
90468         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
90469         !ACL_NO_TRIVIAL]: Avoid unused variable.
90471 2008-06-05  Eric Blake  <ebb9@byu.net>
90473         Be tolerant of UNKNOWN version in gnulib-tool test dir.
90474         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
90475         git-version-gen fails to come up with a version.
90476         Reported by Simon Josefsson.
90478 2008-06-05  Jim Meyering  <meyering@redhat.com>
90479             Paul Eggert  <eggert@cs.ucla.edu>
90481         utimens.c: work around a probable Linux kernel bug
90482         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
90483         appears to be a kernel bug that causes utimensat to return 280
90484         instead of 0, indicating success.
90486 2008-06-04  Bruno Haible  <bruno@clisp.org>
90488         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
90489         2008-06-01 commit.
90491 2008-06-04  Bruno Haible  <bruno@clisp.org>
90493         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
90494         * lib/file-has-acl.c (acl_access_nontrivial): New function.
90495         (file_has_acl): Use it. Save errno afterwards.
90496         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
90498 2008-06-03  Bruno Haible  <bruno@clisp.org>
90500         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
90501         draft code. Simplify #ifs.
90502         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
90503         Put Solaris code after POSIX-draft code. Fix comments regarding
90504         Solaris 10, HP-UX. Mention Cygwin.
90505         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
90507 2008-06-03  Eric Blake  <ebb9@byu.net>
90509         Provide fallback for older kernels.
90510         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
90511         Provide runtime fallback if kernel lacks support.
90512         Reported by Mike Frysinger.
90514 2008-06-02  Bruno Haible  <bruno@clisp.org>
90516         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
90517         it exists.
90519 2008-06-02  Bruno Haible  <bruno@clisp.org>
90521         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
90522         * lib/copy-acl.c (qcopy_acl): Update comment.
90524 2008-06-02  Bruno Haible  <bruno@clisp.org>
90526         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
90527         like ACL APIs.
90529 2008-06-02  Bruno Haible  <bruno@clisp.org>
90531         * tests/test-file-has-acl.sh: Use different code for Cygwin.
90532         * tests/test-set-mode-acl.sh: Likewise.
90533         * tests/test-copy-acl.sh: Likewise.
90534         * tests/test-copy-file.sh: Likewise.
90536 2008-06-02  Bruno Haible  <bruno@clisp.org>
90538         * tests/test-file-has-acl.sh: Remove unused code.
90540 2008-06-01  Bruno Haible  <bruno@clisp.org>
90542         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
90543         (copy_acl): Just a wrapper around qcopy_acl that emits the error
90544         messages.
90545         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
90547 2008-06-01  Bruno Haible  <bruno@clisp.org>
90549         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
90550         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
90551         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
90552         APIs.
90553         * modules/acl-tests (configure.ac): Remove tests now contained in
90554         m4/acl.m4.
90556 2008-06-02  Jim Meyering  <meyering@redhat.com>
90558         announce-gen: use a better key-server host name
90559         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
90560         it may be more consistently reliable.  Suggested by Werner Koch
90561         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
90563 2008-06-01  Bruno Haible  <bruno@clisp.org>
90565         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
90566         Reported by Voroskoi Andras <voroskoi@gmail.com>.
90568 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
90570         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
90572 2008-06-01  Bruno Haible  <bruno@clisp.org>
90574         New ACL tests.
90575         * tests/test-file-has-acl.sh: New file.
90576         * tests/test-file-has-acl.c: New file.
90577         * tests/test-set-mode-acl.sh: New file.
90578         * tests/test-set-mode-acl.c: New file.
90579         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
90580         * tests/test-copy-acl.c: New file.
90581         * modules/acl-tests: New file, based on modules/copy-file-tests.
90582         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
90583         (Depends-on): Add acl-tests.
90584         (configure.ac): Remove checks.
90585         (Makefile.am): Don't create test-sameacls program here any more.
90587 2008-06-01  Bruno Haible  <bruno@clisp.org>
90589         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
90590         * tests/test-sameacls.c: Include progname.h.
90591         (main): Invoke set_program_name. Portability fixes for MacOS X,
90592         Solaris, HP-UX.
90594 2008-06-01  Bruno Haible  <bruno@clisp.org>
90596         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
90597         function.
90598         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
90600 2008-06-01  Bruno Haible  <bruno@clisp.org>
90602         * modules/rpmatch (Depends-on): Add strdup.
90604 2008-06-01  Bruno Haible  <bruno@clisp.org>
90606         * lib/pipe.c: Include unistd-safer.h.
90607         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
90608         * modules/pipe (Depends-on): Add unistd-safer.
90610 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90612         * modules/autobuild (configure.ac): Call AB_INIT.
90614 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90616         * tests/test-getaddrinfo.c: Don't print debug messages by default.
90617         Suggested by Bruno Haible <bruno@clisp.org>.
90619 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90621         * tests/test-base64.c: Cast size_t to unsigned long when invoking
90622         printf.  Use %lu instead of %d.  Reported by Bruno Haible
90623         <bruno@clisp.org>.
90625 2008-05-29  Eric Blake  <ebb9@byu.net>
90627         Prefer new POSIX 200x interfaces over futimesat.
90628         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
90629         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
90630         when available.
90631         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
90633 2008-05-28  Bruno Haible  <bruno@clisp.org>
90635         * modules/stpcpy (License): Change to LGPLv2+.
90636         Requested by David Lutterkort <dlutter@redhat.com>.
90638 2008-05-27  Bruno Haible  <bruno@clisp.org>
90640         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
90641         current mingw.
90642         Reported by Jose E. Marchesi <jemarch@gnu.org>.
90644 2008-05-27  Bruno Haible  <bruno@clisp.org>
90646         * modules/iconv_open (Link): New section, from module 'iconv'.
90647         * modules/striconv (Link): Likewise.
90648         * modules/striconveh (Link): Likewise.
90649         * modules/xstriconv (Link): Likewise.
90650         * modules/unicodeio (Link): Likewise.
90651         * modules/propername (Link): Likewise.
90652         Reported by Jim Meyering.
90654 2008-05-26  Jim Meyering  <meyering@redhat.com>
90656         sha256: do not artificially restrict buffer length to be < 2^32
90657         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
90658         uint32_t to size_t.
90659         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
90660         to match.
90662         avoid unaligned access errors, e.g., on sparc
90663         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
90664         direct access through a possibly-unaligned uint64* pointer.
90665         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
90666         direct access through a possibly-unaligned uint32* pointer.
90667         Prompted by this patch from Tom "spot" Callaway:
90668         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90670         sha512.c: fix typo in comment
90671         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90673 2008-05-25  Bruno Haible  <bruno@clisp.org>
90675         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90676         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90677         (Makefile.am): Update lib_SOURCES.
90679 2008-05-25  Bruno Haible  <bruno@clisp.org>
90681         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90683 2008-05-25  Jim Meyering  <meyering@redhat.com>
90685         useless-if-before-free: freed expr may have white-space differences
90686         * build-aux/useless-if-before-free: Recognize cases in which the
90687         freed expression differs from the tested one in embedded white
90688         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90689         $1 was used, so we can't make any regexp shy.  Improved tests now
90690         detect this.
90692         useless-if-before-free: accept white space in the expression.
90693         * build-aux/useless-if-before-free: For now, any white space
90694         in the expression must be identical in the free argument.
90696         useless-if-before-free: efficiency tweak
90697         * build-aux/useless-if-before-free: Make the expression-matching
90698         regexp "shy".
90699         Make the *outer* regexp shy, not the expr-matching one.
90701         update code-in-comment to accept cast of free arg
90702         * build-aux/useless-if-before-free: Update regexp.
90704 2008-05-25  Bruno Haible  <bruno@clisp.org>
90706         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90707         * modules/copy-file-tests (Files, Makefile.am): Update.
90708         * tests/test-copy-file.c (func_test_copy): Update.
90710 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
90712         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
90714 2008-05-23  Bruno Haible  <bruno@clisp.org>
90716         Improve support for ACLs on OSF/1.
90717         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
90718         Remove fallback for unknown flavors of ACLs.
90720 2008-05-22  Bruno Haible  <bruno@clisp.org>
90722         Add support for ACLs on OSF/1.
90723         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
90724         replacements.
90725         (acl_free_text): New macro fallback.
90726         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
90727         acl_free.
90728         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
90729         acl_free_text function. Require AC_C_INLINE.
90731 2008-05-22  Bruno Haible  <bruno@clisp.org>
90733         Make copy_acl work on MacOS X 10.5.
90734         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
90735         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
90736         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
90737         If MODE_INSIDE_ACL, don't assume that every system has the same text
90738         representation for ACLs as FreeBSD.
90739         * lib/copy-acl.c (copy_acl): Add support for platforms with
90740         !MODE_INSIDE_ACL.
90741         * lib/file-has-acl.c (file_has_acl): Likewise.
90742         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
90743         FreeBSD, MacOS X, or IRIX, respectively.
90745 2008-05-22  Bruno Haible  <bruno@clisp.org>
90747         * lib/acl.h: Don't include <sys/acl.h>.
90748         (GETACLCNT): Move fallback to lib/acl-internal.h.
90749         * lib/acl-internal.h: Include <sys/acl.h> here.
90750         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
90752 2008-05-22  Bruno Haible  <bruno@clisp.org>
90754         Split off copy_acl function to separate file.
90755         * lib/copy-acl.c: New file, extracted from lib/acl.c.
90756         * lib/acl.c (copy_acl): Moved function to separate file.
90757         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
90758         * modules/acl (Files): Add lib/copy-acl.c.
90759         (Makefiles.am): Augment lib_SOURCES.
90761 2008-05-22  Bruno Haible  <bruno@clisp.org>
90763         * modules/copy-file-tests: New file.
90764         * tests/test-copy-file.sh: New file.
90765         * tests/test-copy-file.c: New file.
90766         * tests/test-copy-file-sameacls.c: New file.
90768 2008-05-22  Eric Blake  <ebb9@byu.net>
90770         Avoid gcc warning.
90771         * tests/test-memcmp.c (main): Pass NULL indirectly.
90773 2008-05-21  Bruno Haible  <bruno@clisp.org>
90775         Add reference doc about ACLs.
90776         * doc/acl-resources.txt: New file.
90777         * doc/acl-cygwin.txt: New file.
90779 2008-05-21  Bruno Haible  <bruno@clisp.org>
90781         Avoid one more warning from gcc.
90782         * lib/vasnprintf.c (IF_LINT): Update comments.
90783         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90785 2008-05-21  Jim Meyering  <meyering@redhat.com>
90787         avoid a warning from gcc
90788         * lib/vasnprintf.c (IF_LINT): Define.
90789         (scale10_round_decimal_long_double):
90790         Use it to avoid a "may be used uninitialized" warning.
90791         (scale10_round_decimal_double): Likewise.
90793 2008-05-21  Simon Josefsson  <simon@josefsson.org>
90795         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
90796         declared.
90798 2008-05-20  Bruno Haible  <bruno@clisp.org>
90800         * tests/test-memcmp.c (main): Test also the sign of the result. Test
90801         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
90803 2008-05-20  Simon Josefsson  <simon@josefsson.org>
90805         * modules/memcmp-tests: New file.
90806         * tests/test-memcmp.c: New file.
90808 2008-05-19  Bruno Haible  <bruno@clisp.org>
90810         * modules/propername (Notice, configure.ac): Put quoted "..." into
90811         --keyword option.
90812         * lib/propername.h: Update comments accordingly.
90813         Reported by Eric Blake.
90815 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90817         * modules/getpass-gnu (Depends-on): Add fseeko.
90819 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90821         * modules/base64-tests: New file.
90823 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90825         * lib/base64.c (base64_decode_ctx): If a decode context structure
90826         was passed in use it to ignore newlines.  If a context structure
90827         was _not_ passed in, continue to treat newlines as garbage (this
90828         is the historical behavior).  Formerly base64_decode.
90829         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90830         takes a decode context structure.
90831         * lib/base64.h (base64_decode): Macro for four-argument calls.
90832         (base64_decode_alloc): Likewise.
90833         * lib/base64.c (base64_decode_ctx): If a decode context structure
90834         was passed in use it to ignore newlines.  If a context structure
90835         was _not_ passed in, continue to treat newlines as garbage (this
90836         is the historical behavior).  Formerly base64_decode.
90837         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90838         takes a decode context structure.
90839         * lib/base64.h (base64_decode): Macro for four-argument calls.
90840         (base64_decode_alloc): Likewise.
90842 2008-05-19  Jim Meyering  <meyering@redhat.com>
90844         avoid a warning from gcc
90845         * lib/trim.c (IF_LINT): Define.
90846         (trim2): Use it to avoid a "may be used uninitialized" warning.
90848         Fix doc typo.
90849         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90851 2008-05-19  Bruno Haible  <bruno@clisp.org>
90853         * doc/glibc-functions/getpass.texi: Document limits of other
90854         implementations.
90856 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90857             Bruno Haible <bruno@clisp.org>
90859         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90861 2008-05-18  Bruno Haible  <bruno@clisp.org>
90863         * modules/propername: New file, from GNU gettext.
90864         * lib/propername.h: New file, from GNU gettext.
90865         * lib/propername.c: New file, from GNU gettext.
90866         * MODULES.html.sh (Internationalization functions): Add propername.
90868 2008-05-16  Jim Meyering  <meyering@redhat.com>
90869             Bruno Haible  <bruno@clisp.org>
90871         Avoid some warnings from "gcc -Wshadow".
90872         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90874 2008-05-15  Eric Blake  <ebb9@byu.net>
90876         Extend previous patch to cygwin 1.7.0.
90877         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90878         fast implementation in cygwin >= 1.7.0.
90879         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90882 2008-05-15  Bruno Haible  <bruno@clisp.org>
90884         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90885         implementation in glibc >= 2.9.
90886         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90889 2008-05-15  Bruno Haible  <bruno@clisp.org>
90891         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90892         (Unicode string functions): Add unilbrk/*.
90893         Reported by Karl Berry.
90895 2008-05-15  Eric Blake  <ebb9@byu.net>
90897         Fix violation of <stdbool.h> replacement in regex.
90898         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90899         * lib/regexec.c (re_search_internal): Likewise.
90900         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90902 2008-05-15  Jim Meyering  <meyering@redhat.com>
90904         avoid distracting test output when git or cvs is not found
90905         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90906         * tests/test-vc-list-files-git.sh: Likewise.
90908 2008-05-15  Eric Blake  <ebb9@byu.net>
90910         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90911         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90912         glibc version.
90913         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90914         * doc/posix-functions/strstr.texi (strstr): Likewise.
90915         * lib/str-two-way.h (MAX): Sychronize with glibc.
90917 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90919         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90920         opr.ctx_type.
90921         (calc_first): Initialize constraint field.
90922         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90923         Fix grammar.
90924         (duplicate_node): Merge constraint field for all node types.
90925         (calc_eclosure_iter): Look at constraint field for all node types.
90926         * lib/regex_internal.c (create_cd_newstate): Don't look at
90927         opr.ctx_type.
90929 2008-05-14  Bruno Haible  <bruno@clisp.org>
90931         Help GCC to do better code generation.
90932         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90933         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90934         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90935         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90936         Declare with attribute 'malloc' if supported.
90938 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90940         use "echo STR|wc -c" rather than unportable "expr length STR"
90941         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90942         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90944 2008-05-14  Jim Meyering  <meyering@redhat.com>
90946         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90947         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90948         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90949         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90950         via Collin Lasse.
90952 2008-05-14  Eric Blake  <ebb9@byu.net>
90954         Avoid quadratic growth in gl_LIBSOURCES.
90955         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90956         Suggested by Bruno Haible.
90958         Test xmemdup0.
90959         * modules/xmemdup0-tests: New file.
90960         * tests/test-xmemdup0.c: Likewise.
90962 2008-05-13  Eric Blake  <ebb9@byu.net>
90964         Split xmemdup0 into its own module.
90965         * modules/xmemdup0: New file.
90966         * lib/xmemdup0.h: Likewise.
90967         * lib/xmemdup0.c: Likewise.
90968         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90969         * lib/xalloc.h (xmemdup0): Remove.
90970         * lib/xmalloc.c (xmemdup0): Likewise.
90972 2008-05-13  Eric Blake  <ebb9@byu.net>
90973             Bruno Haible  <bruno@clisp.org>
90975         Reduce number of forks required during autoconf.
90976         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90977         and gl_LIBSOURCES_DIR.
90978         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90979         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90980         m4_syscmd per file.
90981         <m4_foreach_w>: Move...
90982         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90984 2008-05-13  Eric Blake  <ebb9@byu.net>
90986         * gnulib-tool: Fix various comment typos.
90988 2008-05-12  Bruno Haible  <bruno@clisp.org>
90990         Tailor the linebreaking algorithm.
90991         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90993 2008-05-12  Bruno Haible  <bruno@clisp.org>
90995         Update to Unicode 5.0.0.
90996         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90997         LBP_JV, LBP_JT. Redistribute values.
90998         (unilbrk_table): Change size.
90999         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
91000         Unicode TR#14 rev. 22.
91001         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91002         LBP_JV, LBP_JT. Redistribute values.
91003         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
91004         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
91005         Update.
91006         * lib/unilbrk/lbrkprop1.h: Regenerated.
91007         * lib/unilbrk/lbrkprop2.h: Regenerated.
91008         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
91009         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
91010         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
91011         Likewise.
91012         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
91013         Likewise.
91014         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
91015         result.
91016         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
91017         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
91018         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
91019         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
91020         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
91021         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
91023 2008-05-11  Bruno Haible  <bruno@clisp.org>
91025         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
91027 2008-05-11  Bruno Haible  <bruno@clisp.org>
91029         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
91030         * modules/unilbrk/gen-lbrk: New file.
91032 2008-05-11  Bruno Haible  <bruno@clisp.org>
91034         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
91035         * m4/sha512.m4 (gl_SHA512): Likewise.
91037 2008-05-11  Jim Meyering  <meyering@redhat.com>
91039         New modules: crypto/sha256, crypto/sha512 (from coreutils)
91040         * modules/crypto/sha256: New file.
91041         * modules/crypto/sha512: Likewise.
91042         * lib/sha256.c: Likewise.
91043         * lib/sha256.h: Likewise.
91044         * lib/sha512.c: Likewise.
91045         * lib/sha512.h: Likewise.
91046         * lib/u64.h: Likewise.
91047         * m4/sha256.m4: Likewise.
91048         * m4/sha512.m4: Likewise.
91049         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
91051 2008-05-10  Bruno Haible  <bruno@clisp.org>
91053         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
91054         (Input/Output <stdio.h>): Add xprintf.
91055         (Signal handling <signal.h>): Add strsignal.
91056         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
91057         (Core language properties): Add func.
91058         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
91059         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
91060         strings.
91061         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
91062         (Input/output): New section.
91063         (File system functions): Add openat-die, stat-macros.
91064         (Networking functions): Add sockets.
91065         (Unicode string functions): Add unictype/*.
91066         (Support for building libraries and executables): Add gperf.
91067         (Support for building documentation): Add agpl-3.0.
91068         (Misc): Add nocrash.
91070 2008-05-10  Bruno Haible  <bruno@clisp.org>
91072         * modules/unictype/gen-ctype: New file.
91074 2008-05-10  Jim Meyering  <meyering@redhat.com>
91076         Make chdir-safer.c more efficient on a system with no symlinks.
91077         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
91078         also if ELOOP is zero.  Suggested by Bruno Haible.
91080         Make chdir-safer.c slightly safer.
91081         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
91082         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
91084         Avoid compile failure on systems without ELOOP (like mingw).
91085         * lib/chdir-safer.c (ELOOP): Define if not already defined.
91086         Reported by Bruno Haible.
91088 2008-05-10  Bruno Haible  <bruno@clisp.org>
91090         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
91091         (is_utf8_encoding): Use a case-insensitive comparison.
91092         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
91093         streq.
91095 2008-05-10  Bruno Haible  <bruno@clisp.org>
91097         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
91098         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
91099         * lib/unilbrk/ulc-common.h (iconv_string_length,
91100         iconv_string_keeping_offsets): Remove declarations.
91101         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
91102         Don't include <iconv.h>, streq.h, xsize.h.
91103         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
91104         conversion.
91105         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
91106         <iconv.h>, streq.h, xsize.h.
91107         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
91108         conversion.
91109         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
91110         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
91111         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
91112         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
91114 2008-05-10  Bruno Haible  <bruno@clisp.org>
91116         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
91117         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
91119         * modules/unilbrk/u32-width-linebreaks-tests: New file.
91120         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
91122         * modules/unilbrk/u16-width-linebreaks-tests: New file.
91123         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
91125         * modules/unilbrk/u8-width-linebreaks-tests: New file.
91126         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
91128         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
91129         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
91131         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
91132         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
91134         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
91135         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
91137         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
91138         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
91140 2008-05-10  Bruno Haible  <bruno@clisp.org>
91142         Split up 'linebreak' module.
91143         * lib/unilbrk.h: New file, based on lib/linebreak.h.
91144         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
91145         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
91146         modifications.
91147         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
91148         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
91149         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
91150         lib/linebreak.c.
91151         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
91152         lib/linebreak.c.
91153         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
91154         lib/linebreak.c.
91155         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
91156         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
91157         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
91158         lib/linebreak.c.
91159         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
91160         lib/linebreak.c.
91161         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
91162         lib/linebreak.c.
91163         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
91164         lib/linebreak.c.
91165         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
91166         lib/linebreak.c.
91167         * modules/unilbrk/base: New file.
91168         * modules/unilbrk/tables: New file.
91169         * modules/unilbrk/u8-possible-linebreaks: New file.
91170         * modules/unilbrk/u16-possible-linebreaks: New file.
91171         * modules/unilbrk/u32-possible-linebreaks: New file.
91172         * modules/unilbrk/ulc-common: New file.
91173         * modules/unilbrk/ulc-possible-linebreaks: New file.
91174         * modules/unilbrk/u8-width-linebreaks: New file.
91175         * modules/unilbrk/u16-width-linebreaks: New file.
91176         * modules/unilbrk/u32-width-linebreaks: New file.
91177         * modules/unilbrk/ulc-width-linebreaks: New file.
91178         * lib/linebreak.h: Remove file.
91179         * lib/linebreak.c: Remove file.
91180         * m4/linebreak.m4: Remove file.
91181         * modules/linebreak: Remove file.
91182         * NEWS: Mention the changes.
91184 2008-05-09  Eric Blake  <ebb9@byu.net>
91186         Add xmemdup0.
91187         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
91188         implementation.
91189         * lib/xmalloc.c (xmemdup0): New C implementation.
91191 2008-05-08  Bruno Haible  <bruno@clisp.org>
91193         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
91195 2008-05-07  Eric Blake  <ebb9@byu.net>
91197         Support cross-compilation of <wctype.h>.
91198         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
91199         AC_CACHE_CHECK.
91201 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
91203         * build-aux/vc-list-files: Add support for bzr.
91205 2008-05-03  Jim Meyering  <meyering@redhat.com>
91207         avoid failed assertion with tight malloc
91208         * tests/test-getndelim2.c: Correct an off-by-one assertion.
91210 2008-05-03  Simon Josefsson  <simon@josefsson.org>
91212         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
91213         are needed from arpa/inet.h.
91214         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
91215         Reported by Bruno Haible.
91217 2008-05-02  Jim Meyering  <meyering@redhat.com>
91219         avoid compilation error on FreeBSD 6
91220         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
91222 2008-05-01  Jim Meyering  <meyering@redhat.com>
91224         useless-if-before-free: correct --help's exit status description
91225         * build-aux/useless-if-before-free (usage): Like grep, exit 0
91226         for one or more matches, etc.  Reported by Bruno Haible.
91228         vc-list-files: make the stand-alone gnulib test work
91229         * modules/vc-list-files-tests (configure.ac):
91230         Define and AC_SUBST abs_aux_dir.
91231         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
91232         $(abs_top_srcdir) to each script and having each of them
91233         duplicate the work of setting PATH, set PATH here, using
91234         the new variable, abs_aux_dir instead.
91235         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
91236         * tests/test-vc-list-files-git.sh: Likewise.
91237         Reported by Bruno Haible.
91239 2008-05-01  Bruno Haible  <bruno@clisp.org>
91241         * lib/getndelim2.c (getndelim2): Fix newsize computation during
91242         reallocation. Rename 'done' to 'found_delimiter'.
91244 2008-05-01  Jim Meyering  <meyering@redhat.com>
91246         vc-list-files: accommodate /bin/sh like the one from Solaris 10
91247         * build-aux/vc-list-files: Use `...`, not $(...).
91249 2008-04-30  Jim Meyering  <meyering@redhat.com>
91251         add tests for vc-list-files
91252         * modules/vc-list-files-tests: New module.
91253         * tests/test-vc-list-files-cvs.sh: New file.
91254         * tests/test-vc-list-files-git.sh: New file.
91256         avoid a warning from gcc
91257         * lib/getndelim2.c (IF_LINT): Define.
91258         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
91260         vc-list-files: work properly with build-aux/cvsu, too
91261         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
91262         to all cvs-based clauses.
91264         vc-list-files: work properly in the CVS+awk case, too
91265         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
91267         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
91268         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
91269         take more than one file argument, so .  Add quotes, just in case $dir
91270         ever contains a shell meta-character.  Prompted by Soren Hansen in
91271         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
91273 2008-04-29  Eric Blake  <ebb9@byu.net>
91275         Optimize getndelim2 to use block operations when possible.
91276         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
91277         freadseek, and memchr2.
91278         * lib/getndelim2.c (getndelim2): Use them for block reads.
91280 2008-04-29  Bruno Haible  <bruno@clisp.org>
91282         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
91283         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91284         * modules/inet_ntop (Depends-on): Add extensions.
91285         * modules/inet_pton (Depends-on): Likewise.
91286         Reported by Simon Josefsson.
91288 2008-04-29  Jim Meyering  <meyering@redhat.com>
91290         When the is more than one match in a block, match all of them.
91291         * build-aux/useless-if-before-free: Iterate through each block
91292         until there are no more matches.
91294         Fix broken useless-if-before-free script.
91295         * build-aux/useless-if-before-free: Fix typo: missing "?" after
91296         the expression to match cast of argument to free-like function.
91298 2008-04-29  Eric Blake  <ebb9@byu.net>
91300         Use new header.
91301         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
91303 2008-04-29  Jim Meyering  <meyering@redhat.com>
91305         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
91306         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
91307         by gnulib to exist and to declare e.g., inet_ntop.
91308         Don't include "inet_ntop.h", now removed.
91310         * m4/arpa_inet_h.m4: Remove trailing blanks.
91312 2008-04-29  Eric Blake  <ebb9@byu.net>
91314         Silence valgrind on safe reads beyond potential array bounds.
91315         * lib/rawmemchr.valgrind: New file.
91316         * lib/strchrnul.valgrind: Likewise.
91317         * modules/rawmemchr (Files): Distribute new file.
91318         * modules/strchrnul (Files): Likewise.
91319         Suggested by Bruno Haible.
91321 2008-04-29  Bruno Haible  <bruno@clisp.org>
91323         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
91324         (inet_ntop, inet_pton): Change portability warning's wording.
91325         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
91326         Invoke gl_CHECK_NEXT_HEADERS.
91327         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
91328         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
91329         set ARPA_INET_H.
91330         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91331         * modules/arpa_inet (Description): No longer only for systems that
91332         lack it.
91333         (Depends-on): Add include_next.
91334         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
91335         HAVE_ARPA_INET_H.
91337 2008-04-29  Jim Meyering  <meyering@redhat.com>
91339         * modules/mkdir (License): Re-license as LGPLv2+.
91341 2008-04-29  Bruno Haible  <bruno@clisp.org>
91343         * modules/rawmemchr (Maintainer): Set to Eric.
91344         * modules/strchrnul (Maintainer): Likewise.
91346 2008-04-29  Simon Josefsson  <simon@josefsson.org>
91348         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
91349         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
91351         * modules/arpa_inet (arpa/inet.h): Use them.
91353 2008-04-28  Eric Blake  <ebb9@byu.net>
91355         Test getndelim2.
91356         * modules/getndelim2-tests: New file.
91357         * tests/test-getndelim2.c: Likewise.
91358         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
91359         stream.
91360         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
91362         * MODULES.html.sh: Document new module.
91364 2008-04-20  Bruno Haible  <bruno@clisp.org>
91366         * lib/c-stack.c (die): Use raise.
91367         * modules/c-stack (Depends-on): Add raise.
91369 2008-04-28  Bruno Haible  <bruno@clisp.org>
91371         Expect rpmatch to be declared.
91372         * lib/yesno.c (rpmatch): Remove declaration.
91374         Declare rpmatch.
91375         * lib/stdlib.in.h (rpmatch): New declaration.
91376         * lib/rpmatch.c: Include <stdlib.h> first.
91377         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
91378         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
91379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
91380         HAVE_RPMATCH.
91381         * modules/rpmatch (Depends-on): Add stdlib, extensions.
91382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91383         (Include): Set to <stdlib.h>.
91384         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
91385         HAVE_RPMATCH.
91386         * NEWS: Document the change.
91388 2008-04-28  Bruno Haible  <bruno@clisp.org>
91390         Change rpmatch to use nl_langinfo when appropriate.
91391         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
91392         (N_): New macro.
91393         (localized_pattern): New function/macro.
91394         (try): Remove match, nomatch arguments. Copy the pattern into safe
91395         memory before caching it.
91396         (rpmatch): Use localized_pattern. Add translator comments.
91397         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
91398         Suggested by Eric Blake.
91399         * modules/rpmatch (Depends-on): Add stdbool.
91401 2008-04-28  Eric Blake  <ebb9@byu.net>
91403         Add rawmemchr module, matching glibc.
91404         * modules/string (Makefile.am): New indicator.
91405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
91406         * lib/string.in.h (rawmemchr): Declare when appropriate.
91407         * modules/rawmemchr: New file.
91408         * m4/rawmemchr.m4: Likewise.
91409         * lib/rawmemchr.c: Likewise.
91410         * modules/rawmemchr-tests: Likewise.
91411         * tests/test-rawmemchr.c: Likewise.
91412         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
91413         module.
91414         * modules/strchrnul (Depends-on): Add rawmemchr.
91415         * lib/strchrnul.c (strchrnul): Optimize a corner case.
91417         Whitespace cleanup.
91418         * tests/test-strchrnul.c: Reindent.
91419         * lib/strchrnul.c: Likewise.
91421         Optimize and test strchrnul.
91422         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
91423         * modules/strchrnul-tests: New file.
91424         * tests/test-strchrnul.c: Likewise.
91426         Remove intprops dependency.
91427         * modules/memchr (Depends-on): Remove intprops.
91428         * modules/memrchr (Depends-on): Likewise.
91429         * modules/memchr2 (Depends-on): Likewise.
91430         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
91431         * lib/memrchr.c (__memrchr): Likewise.
91432         * lib/memrchr2.c (memchr2): Likewise.
91433         Reported by Simon Josefsson.
91435 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91437         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
91438         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91440 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91442         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
91444         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
91446         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
91448         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
91449         declarations.
91450         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
91452         * m4/inet_pton.m4: Don't check for header files.
91454         * m4/inet_ntop.m4: Don't check for header files.
91456 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91458         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
91459         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
91460         trigger for cygwin).
91461         Reported by Bruno Haible  <bruno@clisp.org>.
91463 2008-04-28  Bruno Haible  <bruno@clisp.org>
91465         * doc/posix-functions/strdup.texi: Mention mingw problem.
91467 2008-04-27  Bruno Haible  <bruno@clisp.org>
91469         * modules/stat-time-tests (Depends-on): Add sleep.
91470         * tests/test-stat-time.c (force_unlink): New function.
91471         (cleanup): Use it.
91472         (test_mtime): Remove the ctime related tests.
91473         (test_ctime): New function, containing the ctime related tests.
91474         (main): Call test_ctime, except on native Windows platforms.
91476 2008-04-27  Bruno Haible  <bruno@clisp.org>
91478         * lib/rpmatch.c (rpmatch): Add some comments.
91479         Reported by James Youngman <jay@gnu.org>.
91481 2008-04-27  Bruno Haible  <bruno@clisp.org>
91483         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
91484         quiet NaNs.
91486 2008-04-27  Bruno Haible  <bruno@clisp.org>
91488         Make test-yesno.sh work on mingw.
91489         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
91490         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
91491         (main): Set stdin to binary mode.
91492         * modules/yesno-tests (Depends-on): Add binary-io.
91494 2008-04-27  Bruno Haible  <bruno@clisp.org>
91496         Fix 'isfinite' on x86, x86_64, ia64 platforms.
91497         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
91498         argument that lie outside the IEEE 854 domain.
91499         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
91500         (gl_ISFINITE): Use it.
91501         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
91503 2008-04-27  Bruno Haible  <bruno@clisp.org>
91505         Allow local renaming in config.h.
91506         * lib/memrchr.c (memrchr): Don't undefine outside libc.
91508 2008-04-27  Bruno Haible  <bruno@clisp.org>
91510         * lib/memchr.c (__memchr): Change type of 'i'.
91511         * lib/memchr2.c (memchr2): Likewise.
91513 2008-04-26  Eric Blake  <ebb9@byu.net>
91514         and Bruno Haible  <bruno@clisp.org>
91516         Optimize and test memrchr.
91517         * modules/memrchr (Depends-on): Add intprops.
91518         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
91519         * modules/memrchr-tests: New file.
91520         * tests/test-memrchr.c: New file.
91522 2008-04-26  Bruno Haible  <bruno@clisp.org>
91524         Add tentative support for DragonFly BSD.
91525         * lib/stdio-impl.h: Add macros for DragonFly BSD.
91526         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
91527         fp.
91528         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91529         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
91530         * lib/fpurge.c (fpurge): Likewise.
91531         * lib/freadable.c (freaadable): Likewise.
91532         * lib/freadahead.c (freadahead): Likewise.
91533         * lib/freading.c (freading): Likewise.
91534         * lib/freadptr.c (freadptr): Likewise.
91535         * lib/freadseek.c (freadptrinc): Likewise.
91536         * lib/fseeko.c (fseeko): Likewise.
91537         * lib/fseterr.c (fseterr): Likewise.
91538         * lib/fwritable.c (fwritable): Likewise.
91539         * lib/fwriting.c (fwriting): Likewise.
91541 2008-04-26  Bruno Haible  <bruno@clisp.org>
91543         * lib/stdio-impl.h: New file.
91544         * lib/fbufmode.c: Include stdio-impl.h.
91545         (fbufmode): Use fp_, remove redundant #defines.
91546         * lib/fflush.c: Include stdio-impl.h.
91547         (clear_ungetc_buffer): Remove redundant #defines.
91548         * lib/fpurge.c: Include stdio-impl.h.
91549         (fpurge): Remove redundant #defines.
91550         * lib/freadable.c: Include stdio-impl.h.
91551         (freadable): Remove redundant #defines.
91552         * lib/freadahead.c: Include stdio-impl.h.
91553         (freadahead): Remove redundant #defines.
91554         * lib/freading.c: Include stdio-impl.h.
91555         (freading): Remove redundant #defines.
91556         * lib/freadptr.c: Include stdio-impl.h.
91557         (freadptr): Remove redundant #defines.
91558         * lib/freadseek.c: Include stdio-impl.h.
91559         (freadptrinc): Remove redundant #defines.
91560         * lib/fseeko.c: Include stdio-impl.h.
91561         (rpl_fseeko): Remove redundant #defines.
91562         * lib/fseterr.c: Include stdio-impl.h.
91563         (fseterr): Remove redundant #defines.
91564         * lib/fwritable.c: Include stdio-impl.h.
91565         (fwritable: Remove redundant #defines.
91566         * lib/fwriting.c: Include stdio-impl.h.
91567         (fwriting): Remove redundant #defines.
91568         * modules/fbufmode (Files): Add lib/stdio-impl.h.
91569         * modules/fflush (Files): Likewise.
91570         * modules/fpurge (Files): Likewise.
91571         * modules/freadable (Files): Likewise.
91572         * modules/freadahead (Files): Likewise.
91573         * modules/freading (Files): Likewise.
91574         * modules/freadptr (Files): Likewise.
91575         * modules/freadseek (Files): Likewise.
91576         * modules/fseeko (Files): Likewise.
91577         * modules/fseterr (Files): Likewise.
91578         * modules/fwritable (Files): Likewise.
91579         * modules/fwriting (Files): Likewise.
91581 2008-04-26  Bruno Haible  <bruno@clisp.org>
91583         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91584         restore_seek_optimization, update_fpos_cache): New functions, extracted
91585         from rpl_fflush.
91586         (rpl_fflush): Use them.
91587         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
91588         (gl_REPLACE_FFLUSH): Use it.
91590 2008-04-26  Bruno Haible  <bruno@clisp.org>
91592         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
91593         on Solaris.
91594         * tests/test-xstrtoimax.sh: Likewise.
91595         * tests/test-xstrtoumax.sh: Likewise.
91596         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91598 2008-04-26  Bruno Haible  <bruno@clisp.org>
91600         * modules/memchr-tests: New file.
91601         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
91603 2008-04-26  Eric Blake  <ebb9@byu.net>
91604             Bruno Haible  <bruno@clisp.org>
91606         * lib/memchr.c: Include intprops.h.
91607         (__memchr): Optimize parallel detection of matching bytes. Rename local
91608         variables. Add explanatory comments.
91610 2008-04-26  Bruno Haible  <bruno@clisp.org>
91612         Fix module 'memchr', broken since 2000-10-28.
91613         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
91615 2008-04-26  Bruno Haible  <bruno@clisp.org>
91617         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
91618         comments.
91620 2008-04-25  Eric Blake  <ebb9@byu.net>
91622         Use native fstatat on cygwin 1.7.0.
91623         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
91624         first.
91626 2008-04-23  Eric Blake  <ebb9@byu.net>
91628         Improve memchr2 performance.
91629         * lib/memchr2.c (memchr2): Further optimize parallel detection of
91630         NUL bytes.
91631         * modules/memchr2 (Depends-on): Use intprops.h.
91633 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91635         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
91636         an inline function instead of a CPP macro.  Patch by Ben Pfaff
91637         <blp@cs.stanford.edu>.
91639 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91641         * lib/arpa_inet.in.h: New file.
91643         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
91644         (Makefile.am): Sed in substitute header file.
91646         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
91647         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
91649         * modules/inet_ntop (configure.ac): Use
91650         gl_ARPA_INET_MODULE_INDICATOR.
91652         * modules/inet_pton (configure.ac): Use
91653         gl_ARPA_INET_MODULE_INDICATOR.
91655 2008-04-22  Jim Meyering  <meyering@redhat.com>
91657         * modules/verify (License): Re-license as LGPLv2+.
91659 2008-04-22  Simon Josefsson  <simon@josefsson.org>
91661         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
91662         parameter to void* as per POSIX standard (MinGW uses char*).
91664 2008-04-21  Bruno Haible  <bruno@clisp.org>
91666         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91667         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91668         Define to replacements if REPLACE_ISWCNTRL is 1.
91669         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91670         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91671         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91672         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91673         what it fixes.
91674         * doc/posix-functions/iswalpha.texi: Likewise.
91675         * doc/posix-functions/iswblank.texi: Likewise.
91676         * doc/posix-functions/iswcntrl.texi: Likewise.
91677         * doc/posix-functions/iswdigit.texi: Likewise.
91678         * doc/posix-functions/iswgraph.texi: Likewise.
91679         * doc/posix-functions/iswlower.texi: Likewise.
91680         * doc/posix-functions/iswprint.texi: Likewise.
91681         * doc/posix-functions/iswpunct.texi: Likewise.
91682         * doc/posix-functions/iswspace.texi: Likewise.
91683         * doc/posix-functions/iswupper.texi: Likewise.
91684         * doc/posix-functions/iswxdigit.texi: Likewise.
91685         Reported by Alain Guibert.
91687 2008-04-21  Bruno Haible  <bruno@clisp.org>
91689         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91690         Patch by Alain Guibert.
91692 2008-04-21  Bruno Haible  <bruno@clisp.org>
91694         Fix test failures on mingw.
91695         * tests/test-xstrtol.c (print_no_progname): New function.
91696         (main): Install it in error_print_progname hook.
91697         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91698         * tests/test-xstrtoimax.sh: Likewise.
91699         * tests/test-xstrtoumax.sh: Likewise.
91701 2008-04-21  Bruno Haible  <bruno@clisp.org>
91703         Fix test failure on mingw.
91704         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91706 2008-04-21  Bruno Haible  <bruno@clisp.org>
91708         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
91709         Actually assign a value.
91711 2008-04-20  Bruno Haible  <bruno@clisp.org>
91713         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
91714         take 2.
91715         * lib/canonicalize.c (canonicalize_file_name): Elide if the
91716         'canonicalize-lgpl' module is also used.
91717         * lib/canonicalize-lgpl.c: Undo last change.
91718         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
91720 2008-04-20  Bruno Haible  <bruno@clisp.org>
91722         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
91723         config.h. Provide _mkdir based fallback for mingw.
91724         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
91725         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
91726         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
91727         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
91728         rather than defining mkdir in config.h.
91729         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
91730         (gl_SYS_STAT_H_DEFAULTS): New macro.
91731         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
91732         HAVE_IO_H any more.
91733         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
91734         HAVE_DECL_MKDIR and HAVE_IO_H.
91736 2008-04-20  Bruno Haible  <bruno@clisp.org>
91738         * lib/isapipe.c: Port to native Windows platforms.
91740 2008-04-20  Bruno Haible  <bruno@clisp.org>
91742         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
91744 2008-04-21  Eric Blake  <ebb9@byu.net>
91746         Work around preprocessors that don't handle UINTMAX_MAX.
91747         * lib/memchr2.c (memchr2): Avoid embedded #if.
91748         Reported by Alain Guibert, fix suggested by Bruno Haible.
91750 2008-04-21  Simon Josefsson  <simon@josefsson.org>
91752         * doc/posix-functions/strftime.texi (strftime): Explain better
91753         Windows incompatibility.  Suggested by Micah Cowan
91754         <micah@cowan.name>.
91756 2008-04-20  Bruno Haible  <bruno@clisp.org>
91758         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
91759         unistr/u8-mblen.
91761 2008-04-20  Bruno Haible  <bruno@clisp.org>
91763         Fix test failure on platforms with non-GNU iconv.
91764         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
91765         (U_TO_U8): Use it, rather than u16_to_u8.
91766         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
91767         units at the end of the input string.
91768         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
91770 2008-04-20  Bruno Haible  <bruno@clisp.org>
91772         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
91773         when the resulting length is 0.
91774         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
91776 2008-04-20  Bruno Haible  <bruno@clisp.org>
91778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
91779         works.
91780         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
91782 2008-04-20  Bruno Haible  <bruno@clisp.org>
91784         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
91785         * modules/tsearch-tests (configure.ac): Test for initstate function.
91787 2008-04-20  Bruno Haible  <bruno@clisp.org>
91789         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
91790         for nlink_t if missing.
91791         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
91793 2008-04-19  Bruno Haible  <bruno@clisp.org>
91795         Work around snprintf bug on Linux libc5.
91796         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
91797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
91798         gl_SNPRINTF_SIZE1.
91799         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91800         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91801         that test failed.
91802         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
91803         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
91804         * modules/snprintf (Files): Add m4/printf.m4.
91805         * modules/vsnprintf (Files): Likewise.
91806         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91807         * doc/posix-functions/vsnprintf.texi: Likewise.
91809 2008-04-19  Bruno Haible  <bruno@clisp.org>
91811         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91812         from 0.0058 to less than 10^-7.
91814 2008-04-19  Bruno Haible  <bruno@clisp.org>
91816         Fix rounding when a precision is given.
91817         * lib/vasnprintf.c (is_borderline): New function.
91818         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91819         9...9x.
91820         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91821         %e, %g.
91822         * tests/test-vasprintf-posix.c (test_function): Likewise.
91823         * tests/test-snprintf-posix.h (test_function): Likewise.
91824         * tests/test-sprintf-posix.h (test_function): Likewise.
91825         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91826         * tests/test-printf-posix.h (test_function): Likewise.
91827         * tests/test-printf-posix.output: Update.
91828         Reported by John Darrington <john@darrington.wattle.id.au> via
91829         Ben Pfaff <blp@cs.stanford.edu>.
91831 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91833         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91834         Suggested by Bruno Haible <bruno@clisp.org>.
91836 2008-04-17  Bruno Haible  <bruno@clisp.org>
91838         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91839         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91840         implementation.
91841         Patch by Bruce Merry <bmerry@gmail.com>.
91843 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91845         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91846         doesn't work under Windows.
91848 2008-04-16  Bruno Haible  <bruno@clisp.org>
91850         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91851         New macros.
91852         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91853         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91854         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91855         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91856         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91857         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91858         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91859         macros.
91860         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91861         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91862         Northern Sotho, Uighur.
91864 2008-04-16  Bruno Haible  <bruno@clisp.org>
91866         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91867         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91868         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91869         Reported by Daniel Bergström <daniel@octocode.com>.
91871 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91872             Bruno Haible  <bruno@clisp.org>
91874         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91875         function.
91876         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91877         New functions, mostly extracted from gl_locale_name_default.
91878         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91880 2008-04-16  Eric Blake  <ebb9@byu.net>
91882         Adjust strtod detection to catch glibc 2.7 bug.
91883         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91884         Reported by John Gatewood Ham.
91886 2008-04-16  Bruno Haible  <bruno@clisp.org>
91888         Add tentative support for Linux libc5.
91889         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91890         * lib/fpurge.c (fpurge): Likewise.
91891         * lib/freadable.c (freadable): Likewise.
91892         * lib/freadahead.c (freadahead): Likewise.
91893         * lib/freading.c (freading): Likewise.
91894         * lib/freadptr.c (freadptr): Likewise.
91895         * lib/freadseek.c (freadptrinc): Likewise.
91896         * lib/fseeko.c (rpl_fseeko): Likewise.
91897         * lib/fseterr.c (fseterr): Likewise.
91898         * lib/fwritable.c (fwritable): Likewise.
91899         * lib/fwriting.c (fwriting): Likewise.
91900         Reported by Alain Guibert <alguibert+bts@free.fr>.
91902 2008-04-15  Bruno Haible  <bruno@clisp.org>
91904         * modules/mathl (configure.ac): Define module indicator.
91906 2008-04-15  Bruno Haible  <bruno@clisp.org>
91908         * lib/logl.c (logl): Remove unused variables.
91910 2008-04-15  Bruno Haible  <bruno@clisp.org>
91912         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91913         fails.
91915 2008-04-15  Bruno Haible  <bruno@clisp.org>
91917         * lib/trim.c (trim2): Fix argument of isspace() macro.
91919 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91921         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91922         to 0.
91923         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91925 2008-04-14  Bruno Haible  <bruno@clisp.org>
91927         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91928         AC_LANG_PROGRAM argument.
91929         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91930         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91932         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91933         * m4/math_h.m4 (gl_MATH_H): Likewise.
91934         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91936         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91937         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91938         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91939         * m4/regex.m4 (gl_REGEX): Likewise.
91940         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91941         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91943         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91945         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91946         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91949 2008-04-14  Jim Meyering  <meyering@redhat.com>
91951         test-strtod: fix typos: s/abs/fabs/
91952         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91954 2008-04-13  Bruno Haible  <bruno@clisp.org>
91956         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91957         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91958         module is also used and while not building the reloc-wrapper.
91960 2008-04-13  Bruno Haible  <bruno@clisp.org>
91962         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91964 2008-04-13  Bruno Haible  <bruno@clisp.org>
91966         Fix AIX compilation failure introduced on 2008-04-02.
91967         * tests/test-frexp.c (exp): Undefine before redefining.
91968         * tests/test-frexpl.c (exp): Likewise.
91970 2008-04-13  Bruno Haible  <bruno@clisp.org>
91972         Work around a HP-UX stdio bug.
91973         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91974         * tests/test-ftello.c (main): Likewise.
91975         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91976         * doc/posix-functions/ftello.texi: Likewise.
91978 2008-04-13  Bruno Haible  <bruno@clisp.org>
91980         Make test-signbit pass on HP-UX/hppa.
91981         * tests/test-signbit.c (minus_zerol): New variable.
91982         (test_signbitl): Use it.
91984 2008-04-13  Bruno Haible  <bruno@clisp.org>
91986         Make truncl work on OSF/1 4.0.
91987         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91988         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91989         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91991         HAVE_DECL_TRUNCL.
91992         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91993         HAVE_DECL_TRUNCL.
91994         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91996 2008-04-13  Bruno Haible  <bruno@clisp.org>
91998         * lib/unictype.h: Remove trailing comma from enumeration definitions.
92000 2008-04-13  Bruno Haible  <bruno@clisp.org>
92002         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
92003         expression, so as to avoid HP-UX 11 cc compiler bug.
92005 2008-04-13  Bruno Haible  <bruno@clisp.org>
92007         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
92009 2008-04-13  Bruno Haible  <bruno@clisp.org>
92011         * lib/git-merge-changelog.c: Remove empty declaration outside of
92012         functions.
92014 2008-04-13  Bruno Haible  <bruno@clisp.org>
92016         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
92018 2008-04-13  Bruno Haible  <bruno@clisp.org>
92020         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
92021         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
92022         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
92023         also if it exists but lacks definitions of the SHUT_* macros.
92024         * modules/sys_socket (Description): Update.
92025         Reported by Elbert Pol <e.pol@chello.nl>.
92027 2008-04-13  Bruno Haible  <bruno@clisp.org>
92029         * lib/localcharset.c (OS2): Don't redefine if already defined.
92030         Reported by Elbert Pol <e.pol@chello.nl>.
92032 2008-04-13  Bruno Haible  <bruno@clisp.org>
92034         * lib/binary-io.h [__EMX__]: Include <io.h>.
92035         Reported by Elbert Pol <e.pol@chello.nl>.
92037 2008-04-12  Bruno Haible  <bruno@clisp.org>
92039         * lib/fpucw.h: Enable the definitions also for x86_64.
92040         Needed for NetBSD/x86_64.
92041         Reported by Thomas Klausner <tk@giga.or.at>.
92043 2008-04-12  Bruno Haible  <bruno@clisp.org>
92045         * tests/test-strtod.c: Include isnand.h.
92046         (main): Use isnand instead of isnan.
92047         Reported by Jim Meyering.
92049 2008-04-12  Bruno Haible  <bruno@clisp.org>
92051         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
92052         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92054 2008-04-12  Jim Meyering  <meyering@redhat.com>
92056         * m4/math_h.m4 (gl_MATH_H): Fix typos.
92058 2008-04-12  Bruno Haible  <bruno@clisp.org>
92060         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
92061         Reported by Elbert Pol <e.pol@chello.nl>.
92063 2008-04-12  Eric Blake  <ebb9@byu.net>
92065         Work around Solaris 10 math.h bug.
92066         * m4/math_h.m4 (gl_MATH_H): Check for bug.
92067         (gl_MATH_H_DEFAULTS): Set up default.
92068         * modules/math (Makefile.am): Replace new indicators.
92069         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
92070         * tests/test-math.c (main): Test this.
92071         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
92072         * doc/posix-headers/math.texi (math.h): Mention bug.
92073         Reported by Nelson H. F. Beebe and Jim Meyering.
92075 2008-04-11  Bruno Haible  <bruno@clisp.org>
92077         Adapt to future versions of Apple GCC.
92078         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
92079         Reported by Peter O'Gorman <peter@pogma.com>.
92081 2008-04-11  Bruno Haible  <bruno@clisp.org>
92083         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
92085 2008-04-11  Bruno Haible  <bruno@clisp.org>
92087         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
92089         * modules/getaddrinfo-tests (Makefile.am): Define
92090         test_getaddrinfo_LDADD.
92092 2008-04-11  Bruno Haible  <bruno@clisp.org>
92094         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
92095         (init): Fix syntax error.
92096         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
92097         is declared.
92099 2008-04-11  Bruno Haible  <bruno@clisp.org>
92101         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
92102         * modules/glob (Depends-on): Add stdbool.
92104 2008-04-11  Bruno Haible  <bruno@clisp.org>
92106         * lib/trim.c: Include <string.h>.
92108 2008-04-11  Eric Blake  <ebb9@byu.net>
92110         Avoid compile failure on OS/2.
92111         * lib/regex_internal.h (internal_function): Disable optimization
92112         on OS/2 (__EMX__), where it caused compiler error.
92113         Reported by Elbert Pol.
92115 2008-04-11  Bruno Haible  <bruno@clisp.org>
92117         Flush the standard error stream before aborting. Needed on mingw.
92118         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
92119         * tests/test-array_list.c (ASSERT): Likewise.
92120         * tests/test-array_oset.c (ASSERT): Likewise.
92121         * tests/test-avltree_list.c (ASSERT): Likewise.
92122         * tests/test-avltree_oset.c (ASSERT): Likewise.
92123         * tests/test-avltreehash_list.c (ASSERT): Likewise.
92124         * tests/test-binary-io.c (ASSERT): Likewise.
92125         * tests/test-byteswap.c (ASSERT): Likewise.
92126         * tests/test-c-ctype.c (ASSERT): Likewise.
92127         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
92128         * tests/test-c-strcasestr.c (ASSERT): Likewise.
92129         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
92130         * tests/test-c-strstr.c (ASSERT): Likewise.
92131         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
92132         * tests/test-canonicalize.c (ASSERT): Likewise.
92133         * tests/test-carray_list.c (ASSERT): Likewise.
92134         * tests/test-ceilf1.c (ASSERT): Likewise.
92135         * tests/test-ceilf2.c (ASSERT): Likewise.
92136         * tests/test-ceill.c (ASSERT): Likewise.
92137         * tests/test-count-one-bits.c (ASSERT): Likewise.
92138         * tests/test-fbufmode.c (ASSERT): Likewise.
92139         * tests/test-fflush2.c (ASSERT): Likewise.
92140         * tests/test-floorf1.c (ASSERT): Likewise.
92141         * tests/test-floorf2.c (ASSERT): Likewise.
92142         * tests/test-floorl.c (ASSERT): Likewise.
92143         * tests/test-fopen.c (ASSERT): Likewise.
92144         * tests/test-fpending.c (ASSERT): Likewise.
92145         * tests/test-fprintf-posix.c (ASSERT): Likewise.
92146         * tests/test-fpurge.c (ASSERT): Likewise.
92147         * tests/test-freadable.c (ASSERT): Likewise.
92148         * tests/test-freadahead.c (ASSERT): Likewise.
92149         * tests/test-freading.c (ASSERT): Likewise.
92150         * tests/test-freadptr.c (ASSERT): Likewise.
92151         * tests/test-freadptr2.c (ASSERT): Likewise.
92152         * tests/test-freadseek.c (ASSERT): Likewise.
92153         * tests/test-freopen.c (ASSERT): Likewise.
92154         * tests/test-frexp.c (ASSERT): Likewise.
92155         * tests/test-frexpl.c (ASSERT): Likewise.
92156         * tests/test-fseek.c (ASSERT): Likewise.
92157         * tests/test-fseeko.c (ASSERT): Likewise.
92158         * tests/test-fstrcmp.c (ASSERT): Likewise.
92159         * tests/test-ftell.c (ASSERT): Likewise.
92160         * tests/test-ftello.c (ASSERT): Likewise.
92161         * tests/test-func.c (ASSERT): Likewise.
92162         * tests/test-fwritable.c (ASSERT): Likewise.
92163         * tests/test-fwriting.c (ASSERT): Likewise.
92164         * tests/test-getdelim.c (ASSERT): Likewise.
92165         * tests/test-getline.c (ASSERT): Likewise.
92166         * tests/test-i-ring.c (ASSERT): Likewise.
92167         * tests/test-iconv-utf.c (ASSERT): Likewise.
92168         * tests/test-iconv.c (ASSERT): Likewise.
92169         * tests/test-isfinite.c (ASSERT): Likewise.
92170         * tests/test-isnand.c (ASSERT): Likewise.
92171         * tests/test-isnanf.c (ASSERT): Likewise.
92172         * tests/test-isnanl.h (ASSERT): Likewise.
92173         * tests/test-ldexpl.c (ASSERT): Likewise.
92174         * tests/test-linked_list.c (ASSERT): Likewise.
92175         * tests/test-linkedhash_list.c (ASSERT): Likewise.
92176         * tests/test-localename.c (ASSERT): Likewise.
92177         * tests/test-lseek.c (ASSERT): Likewise.
92178         * tests/test-mbscasecmp.c (ASSERT): Likewise.
92179         * tests/test-mbscasestr1.c (ASSERT): Likewise.
92180         * tests/test-mbscasestr2.c (ASSERT): Likewise.
92181         * tests/test-mbscasestr3.c (ASSERT): Likewise.
92182         * tests/test-mbscasestr4.c (ASSERT): Likewise.
92183         * tests/test-mbschr.c (ASSERT): Likewise.
92184         * tests/test-mbscspn.c (ASSERT): Likewise.
92185         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
92186         * tests/test-mbspbrk.c (ASSERT): Likewise.
92187         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
92188         * tests/test-mbsrchr.c (ASSERT): Likewise.
92189         * tests/test-mbsspn.c (ASSERT): Likewise.
92190         * tests/test-mbsstr1.c (ASSERT): Likewise.
92191         * tests/test-mbsstr2.c (ASSERT): Likewise.
92192         * tests/test-mbsstr3.c (ASSERT): Likewise.
92193         * tests/test-memchr2.c (ASSERT): Likewise.
92194         * tests/test-memmem.c (ASSERT): Likewise.
92195         * tests/test-open.c (ASSERT): Likewise.
92196         * tests/test-printf-frexp.c (ASSERT): Likewise.
92197         * tests/test-printf-frexpl.c (ASSERT): Likewise.
92198         * tests/test-printf-posix.c (ASSERT): Likewise.
92199         * tests/test-quotearg.c (ASSERT): Likewise.
92200         * tests/test-rbtree_list.c (ASSERT): Likewise.
92201         * tests/test-rbtree_oset.c (ASSERT): Likewise.
92202         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
92203         * tests/test-round1.c (ASSERT): Likewise.
92204         * tests/test-roundf1.c (ASSERT): Likewise.
92205         * tests/test-roundl.c (ASSERT): Likewise.
92206         * tests/test-signbit.c (ASSERT): Likewise.
92207         * tests/test-sleep.c (ASSERT): Likewise.
92208         * tests/test-snprintf-posix.c (ASSERT): Likewise.
92209         * tests/test-snprintf.c (ASSERT): Likewise.
92210         * tests/test-sprintf-posix.c (ASSERT): Likewise.
92211         * tests/test-stat-time.c (ASSERT): Likewise.
92212         * tests/test-strcasestr.c (ASSERT): Likewise.
92213         * tests/test-strerror.c (ASSERT): Likewise.
92214         * tests/test-striconv.c (ASSERT): Likewise.
92215         * tests/test-striconveh.c (ASSERT): Likewise.
92216         * tests/test-striconveha.c (ASSERT): Likewise.
92217         * tests/test-strsignal.c (ASSERT): Likewise.
92218         * tests/test-strstr.c (ASSERT): Likewise.
92219         * tests/test-strtod.c (ASSERT): Likewise.
92220         * tests/test-trunc1.c (ASSERT): Likewise.
92221         * tests/test-trunc2.c (ASSERT): Likewise.
92222         * tests/test-truncf1.c (ASSERT): Likewise.
92223         * tests/test-truncf2.c (ASSERT): Likewise.
92224         * tests/test-truncl.c (ASSERT): Likewise.
92225         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
92226         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
92227         * tests/test-vasnprintf.c (ASSERT): Likewise.
92228         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
92229         * tests/test-vasprintf.c (ASSERT): Likewise.
92230         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
92231         * tests/test-vprintf-posix.c (ASSERT): Likewise.
92232         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
92233         * tests/test-vsnprintf.c (ASSERT): Likewise.
92234         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
92235         * tests/test-wcwidth.c (ASSERT): Likewise.
92236         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
92237         * tests/test-xprintf-posix.c (ASSERT): Likewise.
92238         * tests/test-xvasprintf.c (ASSERT): Likewise.
92239         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
92240         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
92241         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
92242         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
92243         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
92244         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
92245         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
92246         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
92247         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
92248         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
92249         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
92250         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
92251         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
92252         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
92253         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
92254         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
92255         * tests/unictype/test-block_list.c (ASSERT): Likewise.
92256         * tests/unictype/test-block_of.c (ASSERT): Likewise.
92257         * tests/unictype/test-block_test.c (ASSERT): Likewise.
92258         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
92259         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
92260         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
92261         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
92262         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
92263         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
92264         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
92265         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
92266         * tests/unictype/test-combining.c (ASSERT): Likewise.
92267         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
92268         * tests/unictype/test-digit.c (ASSERT): Likewise.
92269         * tests/unictype/test-mirror.c (ASSERT): Likewise.
92270         * tests/unictype/test-numeric.c (ASSERT): Likewise.
92271         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
92272         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
92273         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
92274         * tests/unictype/test-scripts.c (ASSERT): Likewise.
92275         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
92276         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
92277         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
92278         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
92279         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
92280         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
92281         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
92282         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
92283         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
92284         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
92285         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
92286         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
92287         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
92288         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
92289         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
92290         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
92291         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
92292         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
92293         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
92294         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
92295         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
92296         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
92297         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
92298         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
92299         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
92300         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
92301         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
92302         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
92303         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
92304         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
92305         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
92306         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
92307         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
92308         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
92309         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
92310         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
92311         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
92312         Reported by Eric Blake.
92314 2008-04-11  Bruno Haible  <bruno@clisp.org>
92316         * lib/wchar.in.h: Tweak comment.
92318 2008-04-11  Bruno Haible  <bruno@clisp.org>
92320         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
92321         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
92322         gl_COMMON.
92323         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
92325 2008-04-11  Bruno Haible  <bruno@clisp.org>
92327         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
92329 2008-04-11  Simon Josefsson  <simon@josefsson.org>
92331         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
92332         of attempting to use non-existing /dev/*random.  Based on patch
92333         from Adam Strzelecki <ono@java.pl> in
92334         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
92336 2008-04-08  Bruno Haible  <bruno@clisp.org>
92338         Add tentative support for emx+gcc.
92339         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
92340         * lib/fpurge.c (fpurge): Likewise.
92341         * lib/freadable.c (freadable): Likewise.
92342         * lib/freadahead.c (freadahead): Likewise.
92343         * lib/freading.c (freading): Likewise.
92344         * lib/freadptr.c (freadptr): Likewise.
92345         * lib/freadseek.c (freadptrinc): Likewise.
92346         * lib/fseeko.c (rpl_fseeko): Likewise.
92347         * lib/fseterr.c (fseterr): Likewise.
92348         * lib/fwritable.c (fwritable): Likewise.
92349         * lib/fwriting.c (fwriting): Likewise.
92350         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
92352 2008-04-09  Eric Blake  <ebb9@byu.net>
92354         Avoid some autoconf warnings.
92355         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
92356         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
92357         * m4/afs.m4 (gl_AFS): Likewise.
92358         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
92359         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
92360         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92361         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
92362         (gl_INTEGER_TYPE_SUFFIX): Likewise.
92363         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
92364         (AC_CHECK_DECLS_ONCE): Likewise.
92365         Rename file...
92366         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
92367         gnulib-tool requires autoconf 2.59 or better.
92368         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
92370 2008-04-08  Eric Blake  <ebb9@byu.net>
92372         Use 'git describe --match' if present (added in git 1.5.5).
92373         * build-aux/git-version-gen: Limit result to tags that match 'v*'
92374         if possible.
92376 2008-04-08  Bruno Haible  <bruno@clisp.org>
92378         Add tentative support for OpenServer.
92379         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
92380         _ptr, _cnt.
92381         * lib/fpurge.c (fpurge): Likewise.
92382         * lib/freadable.c (freadable): Likewise.
92383         * lib/freadahead.c (freadahead): Likewise.
92384         * lib/freading.c (freading): Likewise.
92385         * lib/freadptr.c (freadptr): Likewise.
92386         * lib/freadseek.c (freadptrinc): Likewise.
92387         * lib/fseeko.c (rpl_fseeko): Likewise.
92388         * lib/fseterr.c (fseterr): Likewise.
92389         * lib/fwritable.c (fwritable): Likewise.
92390         * lib/fwriting.c (fwriting): Likewise.
92391         Reported by Roger Cornelius <rac@tenzing.org> and
92392         Brian K. White <brian@aljex.com>.
92394 2008-04-06  Jim Meyering  <meyering@redhat.com>
92396         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
92398 2008-04-06  Bruno Haible  <bruno@clisp.org>
92400         Avoid possible error with non-ASCII bytes in UTF-8 locales.
92401         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
92402         * tests/test-printf-posix.sh: Likewise.
92403         * tests/test-vfprintf-posix.sh: Likewise.
92404         * tests/test-vprintf-posix.sh: Likewise.
92405         * tests/test-xprintf-posix.sh: Likewise.
92407 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92409         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
92410         hide error from 'ls', needed on OS/2.
92411         Report by Elbert Pol <elbert.pol@gmail.com>.
92413 2008-04-04  Eric Blake  <ebb9@byu.net>
92415         Make test-fseeko.c failures meaningful.
92416         * tests/test-fseeko.c: Print line number on failure.
92417         * tests/test-fseek.c: Likewise.
92418         Reported by Nelson H. F. Beebe.
92420         Improve strtod bug detection check.
92421         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
92422         required for Solaris 10.
92423         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
92425 2008-04-04  Bruno Haible  <bruno@clisp.org>
92427         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
92428         by m4/setenv.m4.
92430 2008-04-03  Eric Blake  <ebb9@byu.net>
92432         Ensure sane .version contents.
92433         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
92434         version string.
92435         * build-aux/git-version-gen: Improve documentation.
92437         Make GNU make output nicer.
92438         * top/GNUmakefile [!_have-Makefile]: Add dependency on
92439         MAKECMDGOALS to enforce message for all command line targets.  Set
92440         srcdir for use in maint.mk.
92442         Another maintainer tweak.
92443         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
92444         a target that regenerates version.
92446 2008-04-03  Jim Meyering  <meyering@redhat.com>
92448         vc-list-files: don't cause coreutils "make po-check" failure
92449         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
92451 2008-04-03  Eric Blake  <ebb9@byu.net>
92453         Allow VPATH usage of vc-list-files.
92454         * build-aux/vc-list-files (scriptversion): Add timestamp.
92455         (options): Add --help, --version, -C.
92456         (CVS): Support installed cvsu.
92458 2008-04-02  Bruno Haible  <bruno@clisp.org>
92460         Avoid some "statement with no effect" warnings from gcc.
92461         * tests/test-wctype.c (main): Explicitly ignore unused values.
92462         Reported by Jim Meyering.
92464 2008-04-02  Jim Meyering  <meyering@redhat.com>
92466         Avoid some warnings from "gcc -Wshadow".
92467         * tests/test-frexp.c (exp): Define to a different identifier.
92468         * tests/test-frexpl.c (exp): Likewise.
92470 2008-04-03  Jim Meyering  <meyering@redhat.com>
92472         bootstrap: remove dangling *.[ch] symlinks from lib
92473         * build-aux/bootstrap [dangling symlink removal]: Move find's
92474         -depth option to precede all others, to avoid a warning.
92475         Remove *.[ch] files too, and from "$source_base" (usually lib/).
92477 2008-04-02  Bruno Haible  <bruno@clisp.org>
92479         Avoid some warnings from "gcc -Wshadow".
92480         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
92481         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
92482         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
92483         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
92484         Reported by Jim Meyering.
92486 2008-04-01  Bruno Haible  <bruno@clisp.org>
92488         Fix test to work on IRIX 6.5 with cc.
92489         * tests/test-math.c (numeric_equal): New function.
92490         (main): Use it.
92492 2008-04-01  Bruno Haible  <bruno@clisp.org>
92494         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
92496 2008-04-01  Bruno Haible  <bruno@clisp.org>
92498         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
92499         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92500         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
92501         (Depends-on): Remove math.
92503         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
92504         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92505         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
92506         (Depends-on): Remove math.
92508         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
92509         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92510         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
92511         (Depends-on): Remove math.
92512         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
92513         (Depends-on): Remove math.
92515         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
92516         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92517         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
92518         (Depends-on): Remove math.
92519         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
92520         (Depends-on): Remove math.
92522         * tests/test-round1.c: Include nan.h.
92523         (main): Use NaNd instead of NAN.
92524         * modules/round-tests (Files): Add tests/nan.h.
92526         * tests/test-trunc1.c: Include nan.h.
92527         (main): Use NaNd instead of NAN.
92528         * modules/trunc-tests (Files): Add tests/nan.h.
92530         * tests/test-roundf1.c: Include nan.h.
92531         (main): Use NaNf instead of NAN.
92532         * modules/roundf-tests (Files): Add tests/nan.h.
92534         * tests/test-truncf1.c: Include nan.h.
92535         (main): Use NaNf instead of NAN.
92536         * modules/truncf-tests (Files): Add tests/nan.h.
92538         * tests/test-ceilf1.c: Include nan.h.
92539         (main): Use NaNf instead of NAN.
92540         * modules/ceilf-tests (Files): Add tests/nan.h.
92542         * tests/test-floorf1.c: Include nan.h.
92543         (main): Use NaNf instead of NAN.
92544         * modules/floorf-tests (Files): Add tests/nan.h.
92546         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
92547         (main): Use NaNf instead of NAN.
92548         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
92550         * tests/test-isnand.c: Include nan.h instead of <math.h>.
92551         (main): Use NaNd instead of NAN.
92552         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
92554         * tests/test-frexp.c: Include nan.h.
92555         (main): Use NaNd instead of NAN.
92556         * modules/frexp-tests (Files): Add tests/nan.h.
92558         * lib/isnan.c: Don't include <math.h>.
92559         (FUNC): Don't use NAN macro.
92560         * modules/isnand-nolibm (Depends-on): Remove math.
92561         * modules/isnanf-nolibm (Depends-on): Remove math.
92562         * modules/isnanl (Depends-on): Remove math.
92563         * modules/isnanl-nolibm (Depends-on): Remove math.
92565         * tests/nan.h: New file.
92567 2008-04-01  Eric Blake  <ebb9@byu.net>
92569         Fix typos.
92570         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
92571         values to be the right type.
92573         For now, cater to gnulib strtod inaccuracies.
92574         * tests/test-strtod.c (main): Allow 1-ulp error on expected
92575         fractional results.  While not as nice from a QoI perspective, it
92576         is a quicker patch than correctly implementing decimal to binary
92577         rounding.
92579 2008-03-31  Eric Blake  <ebb9@byu.net>
92581         Guarantee a definition of NAN.
92582         * lib/math.in.h (NAN): Define if missing.
92583         * tests/test-math.c (main): Test it.
92584         * doc/posix-headers/math.texi (math.h): Document this.
92585         * lib/isnan.c (rpl_isnand): Use it.
92586         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
92587         * tests/test-floorf1.c (NaN): Likewise.
92588         * tests/test-frexp.c (NaN): Likewise.
92589         * tests/test-isnand.c (NaN): Likewise.
92590         * tests/test-isnanf.c (NaN): Likewise.
92591         * tests/test-round1.c (NaN): Likewise.
92592         * tests/test-roundf1.c (NaN): Likewise.
92593         * tests/test-snprintf-posix.h (NaN): Likewise.
92594         * tests/test-sprintf-posix.h (NaN): Likewise.
92595         * tests/test-trunc1.c (NaN): Likewise.
92596         * tests/test-truncf1.c (NaN): Likewise.
92597         * tests/test-vasnprintf-posix.c (NaN): Likewise.
92598         * tests/test-vasprintf-posix.c (NaN): Likewise.
92599         * modules/isnand-nolibm (Depends-on): Add math.
92600         * modules/isnanf-nolibm (Depends-on): Likewise.
92601         * modules/isnanl (Depends-on): Likewise.
92602         * modules/isnanl-nolibm (Depends-on): Likewise.
92603         * modules/snprintf-posix-tests (Depends-on): Likewise.
92604         * modules/sprintf-posix-tests (Depends-on): Likewise.
92605         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
92606         * modules/vsprintf-posix-tests (Depends-on): Likewise.
92607         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
92608         * modules/vasprintf-posix-tests (Depends-on): Likewise.
92610 2008-03-31  Bruno Haible  <bruno@clisp.org>
92612         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
92613         * doc/posix-functions/strtod.texi: Likewise.
92615 2008-03-31  Bruno Haible  <bruno@clisp.org>
92617         * tests/test-strtod.c (main): Don't use C99 syntax.
92619 2008-03-31  Bruno Haible  <bruno@clisp.org>
92621         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
92622         Reported by Eric Blake.
92624 2008-03-31  Jim Meyering  <meyering@redhat.com>
92626         Don't compare actual signbit return values.
92627         * tests/test-strtod.c (main): Rather, compare only their
92628         zero/non-zero nature.
92630 2008-03-31  Eric Blake  <ebb9@byu.net>
92632         More strtod documentation.
92633         * doc/posix-functions/strtod.texi (strtod): Interpret more test
92634         failures as distinct bugs.
92636 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
92638         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
92639         Problem reported by Erik Benada in
92640         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
92642 2008-03-30  Bruno Haible  <bruno@clisp.org>
92644         * tests/test-strtod.c: Add comments about which assertion fails on which
92645         platform.
92646         * doc/posix-functions/strtod.texi: Add info about many more platforms.
92648 2008-03-30  Eric Blake  <ebb9@byu.net>
92650         Test signbit behavior on zeros.
92651         * tests/test-signbit.c (test_signbitf): Add tests for zero.
92652         (test_signbitd, test_signbitl): Likewise.
92654         More strtod touchups.
92655         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
92656         sign of negative underflow, for now.  Use .5, not .1.
92657         * doc/posix-functions/strtod.texi (strtod): Mention these
92658         limitations.
92659         Reported by Jim Meyering.
92661 2008-03-30  Bruno Haible  <bruno@clisp.org>
92663         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
92664         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
92666 2008-03-30  Bruno Haible  <bruno@clisp.org>
92668         Avoid failure when attempting to return empty iconv results on some
92669         platforms.
92670         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92671         allocation, don't report ENOMEM when the resulting string is empty.
92673 2008-03-30  Bruno Haible  <bruno@clisp.org>
92675         Fix buffer overrun.
92676         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92677         Don't consider the width for tmp_length. Check count against tmp_length
92678         before doing the padding. Ensure enough allocation during padding.
92680 2008-03-30  Eric Blake  <ebb9@byu.net>
92682         strtod touchups.
92683         * lib/strtod.c (strtod): Avoid compiler warnings.
92684         Reported by Jim Meyering.
92686 2008-03-30  Bruno Haible  <bruno@clisp.org>
92688         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92689         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92690         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92691         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92692         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92693         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92694         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92695         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92697         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92698         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92699         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92700         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92701         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92702         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92703         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92704         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92706         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92707         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
92708         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
92709         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
92710         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
92711         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
92712         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
92713         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
92715         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
92716         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
92718         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
92719         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
92721         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
92722         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
92724         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
92725         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
92726         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
92728         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
92729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
92730         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
92732         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
92733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
92734         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
92736         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
92737         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
92738         * modules/vasprintf (Depends-on): Add EOVERFLOW.
92740         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
92741         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
92742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
92743         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
92744         (Depends-on): Add EOVERFLOW.
92745         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
92746         (Depends-on): Add EOVERFLOW.
92747         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92748         (Depends-on): Add EOVERFLOW.
92749         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92750         (Depends-on): Add EOVERFLOW.
92751         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92752         (Depends-on): Add EOVERFLOW.
92753         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92754         (Depends-on): Add EOVERFLOW.
92755         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92756         (Depends-on): Add EOVERFLOW.
92757         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92758         (Depends-on): Add EOVERFLOW.
92760         * lib/sprintf.c (EOVERFLOW): Remove fallback.
92761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
92762         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
92764         * lib/snprintf.c (EOVERFLOW): Remove fallback.
92765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
92766         * modules/snprintf (Depends-on): Add EOVERFLOW.
92768         * lib/poll.c (EOVERFLOW): Remove fallback.
92769         * modules/poll (Depends-on): Add EOVERFLOW.
92771         * lib/getugroups.c (EOVERFLOW): Remove fallback.
92772         * modules/getugroups (Depends-on): Add EOVERFLOW.
92774         * lib/getdelim.c (EOVERFLOW): Remove fallback.
92775         * modules/getdelim (Depends-on): Add EOVERFLOW.
92777         * lib/ftell.c (EOVERFLOW): Remove fallback.
92778         * modules/ftell (Depends-on): Add EOVERFLOW.
92780         * lib/fprintf.c (EOVERFLOW): Remove fallback.
92781         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
92782         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
92784         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
92786         * modules/EOVERFLOW-tests: New file.
92787         * tests/test-EOVERFLOW.c: New file.
92789         * modules/EOVERFLOW: New file.
92790         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
92792 2008-03-30  Bruno Haible  <bruno@clisp.org>
92794         Fix bug introduced on 2007-06-10.
92795         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
92796         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
92798 2008-03-30  Bruno Haible  <bruno@clisp.org>
92800         Improve freadseek's efficiency after ungetc.
92801         * lib/freadseek.c: Include freadahead.h.
92802         (freadptrinc): New function, extracted from freadseek.
92803         (freadseek): Use it in a loop. Use freadahead to determine the number
92804         of loop iterations.
92805         * modules/freadseek (Depends-on): Add freadahead.
92806         (configure.ac): Require AC_C_INLINE.
92808 2008-03-30  Bruno Haible  <bruno@clisp.org>
92810         * lib/freadseek.c (freadseek): Don't ignore the return value of
92811         freadptr.
92813 2008-03-29  Eric Blake  <ebb9@byu.net>
92815         Add hex float support.
92816         * modules/strtod (Depends-on): Add c-ctype.
92817         (Link): Mention POW_LIB.
92818         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92819         whitespace between 'e' and exponent.
92820         * tests/test-strtod.c (main): Enable hex float tests.
92821         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92822         now provides.
92824         Document various strtod bugs, with some fixes.
92825         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92826         "-0x", "inf", "nan", and hex constants.
92827         * doc/posix-functions/atof.texi (atof): Likewise.
92828         * modules/stdlib (Makefile.am): Support strtod.
92829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92830         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92831         detect additional strtod bugs.
92832         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92833         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92834         bool where appropriate.  Parse 'inf' and 'nan'.
92835         * tests/test-strtod.c: New file.
92836         * modules/strtod (Depends-on): Add stdbool, stdlib.
92837         (configure.ac): Turn on module indicator.
92838         * modules/strtod-tests: New module.
92840 2008-03-29  Eric Blake  <ebb9@byu.net>
92842         Fix ftell on mingw.
92843         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92844         * modules/ftell-tests (Depends-on): Add binary-io.
92845         * modules/ftello-tests (Depends-on): Likewise.
92846         * tests/test-ftell.c (main): Enhance test to cover behavior after
92847         ungetc.  Enforce binary mode.
92848         * tests/test-ftello.c (main): Likewise.
92850         Pass test-freadseek on cygwin.
92851         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92852         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92853         ungetc buffer.
92855         * tests/test-fflush2.c (main): Fix typo.
92857 2008-03-29  Bruno Haible  <bruno@clisp.org>
92859         * tests/test-fflush2.c (main): Temporarily disable the contents of
92860         this test.
92861         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92862         Reported by Eric Blake.
92864 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92866         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92867         (GC_SHA224_DIGEST_SIZE): Add.
92869         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92870         (gc_hash_digest_length): Likewise.
92871         (gc_hash_buffer): Likewise.
92873 2008-03-25  Bruno Haible  <bruno@clisp.org>
92875         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92876         detail which gettext release to use.
92877         Reported by Simon Josefsson.
92879 2008-03-26  Jim Meyering  <meyering@redhat.com>
92881         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92882         * modules/gnumakefile (clean-GNUmakefile): Also, use
92883         test ... && ... || : syntax rather than if-then ... fi.
92885         gnumakefile: Don't double-quote-expand $(VPATH) value.
92886         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92888 2008-03-24  Eric Blake  <ebb9@byu.net>
92890         Alter GNUmakefile to install into top directory.
92891         * modules/maintainer-makefile: Split, and add dependency...
92892         * modules/gnumakefile: to this new module.
92893         * build-aux/GNUmakefile: Move...
92894         * top/GNUmakefile: ...here.
92895         * build-aux/maint.mk: Move...
92896         * top/maint.mk: ...here.
92897         * MODULES.html.sh (Support for maintaining...): Document new
92898         module.
92900 2008-03-23  Bruno Haible  <bruno@clisp.org>
92902         * gnulib-tool: New options --vc-files, --no-vc-files.
92903         (func_usage): Document them.
92904         (vc_files): New variable.
92905         (func_import): Consider vc_files.
92906         (func_create_testdir): Set vc_files to empty.
92907         Suggested by Jim Meyering and Karl Berry.
92909 2008-03-23  Bruno Haible  <bruno@clisp.org>
92911         Fix regex compilation error on HP-UX 11.
92912         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92913         * modules/regex (Files): Add m4/mbstate_t.m4.
92914         Reported by Ton Voon <ton.voon@altinity.com>.
92916 2008-03-23  Bruno Haible  <bruno@clisp.org>
92918         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92920 2008-03-23  Eric Blake  <ebb9@byu.net>
92921             Bruno Haible  <bruno@clisp.org>
92923         Install files from top/ in the destination directory.
92924         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92925         augmentation also for the files from top/.
92926         (func_import, func_create_testdir): Rewrite file names:
92927         top/filename -> filename.
92929 2008-03-23  Bruno Haible  <bruno@clisp.org>
92931         Tweak "gnulib --version" output.
92932         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92934 2008-03-23  Bruno Haible  <bruno@clisp.org>
92936         Tweak "gnulib --version" output.
92937         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92938         rather than contents of ChangeLog, when possible.
92940 2008-03-21  Eric Blake  <ebb9@byu.net>
92942         More --version tweaks.
92943         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92944         date of last ChangeLog entry.
92946 2008-03-21  Jim Meyering  <meyering@redhat.com>
92948         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92950 2008-03-20  Eric Blake  <ebb9@byu.net>
92952         VPATH fix.
92953         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92955 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92957         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92958         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92960 2008-03-20  Eric Blake  <ebb9@byu.net>
92962         Sync GNUmakefile with coreutils.
92963         * build-aux/GNUmakefile (have-Makefile): Rename...
92964         (_have-Makefile): ...to this, for namespace consideration.
92965         (GNUmakefile.cfg): Include, if present.
92966         (_autoreconf): Define a default.
92967         (_is-dist-target): New rule for rebuilds to pick up intra-release
92968         version.
92969         (maint-cfg.mk): Rename...
92970         (cfg.mk): ...to this.
92972 2008-03-18  Jim Meyering  <meyering@redhat.com>
92974         New script and module: mktempd
92975         * MODULES.html.sh (maint+release support): Add mktempd.
92976         * build-aux/mktempd: New file.
92977         * modules/mktempd: New file.
92979 2008-03-15  Jim Meyering  <meyering@redhat.com>
92981         Undo last change.
92982         * lib/sha1.c, lib/md5.c: 63 != ~63.
92983         Reported by Andreas Schwab.
92985         sha1.c, md5.c: Hoist a redundant expression.
92986         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92987         "ctx->buflen" only once, before calling *_process_block.
92988         * lib/md5.c (md5_process_bytes): Likewise.
92990 2008-03-14  Eric Blake  <ebb9@byu.net>
92992         Bump copyright year in files generated by gnulib-tool.
92993         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92994         gnulib-tool, rather than hard-coding it.
92996         Fix 'gnulib-tool --version' output to work with git.
92997         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92998         (startup): ...here.
92999         (func_version): Use it to invoke git-version-gen, rather than
93000         relying on CVS keyword expansion.  Modernize wording.
93001         (cvsdatestamp, last_checkin_date, version): Kill unused
93002         variables.
93004 2008-03-12  Jim Meyering  <meyering@redhat.com>
93006         Recognize optional cast of the argument to free.
93007         * build-aux/useless-if-before-free: Update regexps.
93009         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
93011 2008-03-11  Bruno Haible  <bruno@clisp.org>
93013         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
93014         by a single package.
93015         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
93016         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
93017         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
93018         Reported by Sam Steingold <sds@gnu.org>.
93020 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93022         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
93023         repositories.
93025 2008-03-11  Bruno Haible  <bruno@clisp.org>
93027         Avoid conflicts between local macro definitions.
93028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
93029         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
93031 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
93032             Bruno Haible  <bruno@clisp.org>
93034         Make va_copy work with some version of xlc on AIX 5.1.
93035         * lib/stdarg.in.h: New file.
93036         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
93037         On AIX, use a <stdarg.h> file substitute.
93038         * modules/stdarg (Files): Add lib/stdarg.in.h.
93039         (Depends-on): Add include_next.
93040         (Makefile.am): Build a stdarg.h substitute if requested.
93041         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
93043 2008-03-10  Bruno Haible  <bruno@clisp.org>
93045         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
93046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
93047         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93049 2008-03-10  Bruno Haible  <bruno@clisp.org>
93051         * modules/stdlib (Depends-on): Add include_next, remove
93052         absolute-header.
93054 2008-03-09  Bruno Haible  <bruno@clisp.org>
93056         * lib/freadahead.h (freadahead): Document more precisely.
93057         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
93058         the sum of both buffer sizes.
93059         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
93060         * NEWS: Document the change.
93062 2008-03-09  Bruno Haible  <bruno@clisp.org>
93064         Extend freadptr to return also the buffer size.
93065         * lib/freadptr.h (freadptr): Add sizep argument.
93066         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
93067         (freadptr): Add sizep argument. Determine buffer size like freadahead
93068         does.
93069         * tests/test-freadptr.c: Don't include freadahead.h.
93070         (main): Adapt for new calling convention of freadptr.
93071         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
93072         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
93073         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
93074         tests/test-freadptr2.sh.
93075         (Depends): Remove freadahead.
93076         (TESTS): Add test-freadptr2.sh.
93077         (check_PROGRAMS): Add test-freadptr2.
93079 2008-03-09  Bruno Haible  <bruno@clisp.org>
93081         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
93082         Report and solution by Simon Josefsson.
93084 2008-03-06  Bruno Haible  <bruno@clisp.org>
93086         Make fflush after ungetc work on BSD platforms.
93087         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
93088         * tests/test-fflush2.c: New file.
93089         * tests/test-fflush2.sh: New file.
93090         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
93091         tests/test-fflush2.c.
93092         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
93093         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
93095 2008-03-06  Eric Blake  <ebb9@byu.net>
93097         Likewise for ftello.
93098         * modules/ftello (Dependencies): Add extensions.
93099         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
93101 2008-03-06  Bruno Haible  <bruno@clisp.org>
93103         * modules/fseeko (Dependencies): Add extensions.
93104         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
93105         Needed on glibc systems.
93107 2008-03-06  Bruno Haible  <bruno@clisp.org>
93109         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
93110         email address.
93111         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93113 2008-03-06  Bruno Haible  <bruno@clisp.org>
93115         * users.txt: Add libgnupdf.
93117 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93119         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
93120         (Header File Substitutes, Function Substitutes,
93121         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
93122         (Build robot for gnulib): Fix typo.
93124 2008-03-06  Bruno Haible  <bruno@clisp.org>
93126         * doc/gnulib-tool.texi (VCS Issues): Small updates.
93127         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93129 2008-03-06  Bruno Haible  <bruno@clisp.org>
93131         * doc/func.texi: New file, extracted from doc/gnulib.texi.
93132         * doc/gnulib.texi: Include it.
93134 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93136         * modules/func (License): Change license to unlimited; there was
93137         no LGPL parts in the module anyway.
93139 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93141         * modules/__func__: Renamed to modules/func.
93142         * modules/__func__-tests: Renamed to modules/func-tests.
93143         * tests/test-__func__.c: Renamed to tests/test-func.c.
93144         * m4/__func__.m4: Renamed to m4/func.m4.
93145         * doc/gnulib.texi (__func__): Section renamed to func.
93146         Suggested by Eric Blake <ebb9@byu.net>.
93148 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93150         * doc/gnulib.texi (__func__): Use C99 terminology when talking
93151         about __func__.  Make example self-contained.  Suggested by Eric
93152         Blake <ebb9@byu.net>.
93154         * tests/test-__func__.c (main): Avoid extraneous () around __func.
93155         Suggested by Eric Blake <ebb9@byu.net>.
93157 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93159         * modules/__func__: New file.
93160         * modules/__func__-tests: New file.
93161         * tests/test-__func__.c: New file.
93162         * m4/__func__.m4: New file.
93163         * doc/gnulib.texi (__func__): Document __func__ module.
93165 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93167         * modules/byteswap (License): Re-license as LGPLv2+.
93169 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93171         * doc/Makefile: Add pdf target.
93173 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93175         * modules/inline (License): Use 'unlimited', since there are only
93176         *.m4 files in this module.
93178 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93179             Bruno Haible  <bruno@clisp.org>
93181         Add support for HP C 7.1 on OpenVMS 8.3.
93182         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
93184 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93186         Update VMS specifics.
93187         * lib/getopt.c [VMS]: Remove include of unixlib.h.
93189 2008-03-02  Jim Meyering  <meyering@redhat.com>
93191         Remove the last dependency on the "free" module.
93192         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
93193         Reported by Bob Proulx.
93195         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
93197         Remove useless "if" tests before free.  Deprecate "free" module.
93198         * doc/posix-functions/free.texi: Mention that this
93199         module is no longer useful.
93200         * modules/free (Notice): Say this module is obsolete.
93201         * modules/readutmp (Depends-on): Remove free.
93202         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
93203         * lib/putenv.c (putenv): Likewise.
93204         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
93205         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
93206         * tests/test-c-strcasestr.c (main): Likewise.
93207         * tests/test-c-strstr.c (main): Likewise.
93208         * tests/test-mbscasestr1.c (main): Likewise.
93209         * tests/test-mbscasestr2.c (main): Likewise.
93210         * tests/test-mbsstr1.c (main): Likewise.
93211         * tests/test-mbsstr2.c (main): Likewise.
93212         * tests/test-memmem.c (main): Likewise.
93213         * tests/test-strcasestr.c (main): Likewise.
93214         * tests/test-striconv.c (main): Likewise.
93215         * tests/test-striconveh.c (main): Likewise.
93216         * tests/test-striconveha.c (main): Likewise.
93217         * tests/test-strstr.c (main): Likewise.
93219         * build-aux/git-version-gen: Adjust a comment and the Usage string.
93221         bootstrap: sync from coreutils again
93222         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
93224 2008-03-01  Jim Meyering  <meyering@redhat.com>
93226         bootstrap: sync from coreutils
93227         * build-aux/bootstrap (update_po_files): Copy a .po file into place
93228         also when the target doesn't exist.
93230 2008-03-01  Eric Blake  <ebb9@byu.net>
93232         Fix bugs in last patch.
93233         * lib/memchr2.c (memchr2): Fix typo.
93234         * tests/test-memchr2.c: Test previous bug, and don't use GNU
93235         extension.
93236         Reported by Bruce Korb.
93238         New module 'memchr2'.
93239         * modules/memchr2: New file.
93240         * modules/memchr2-tests: Likewise.
93241         * lib/memchr2.h: Likewise.
93242         * lib/memchr2.c: Likewise, based on memchr.c.
93243         * tests/test-memchr2.c: New test.
93244         * MODULES.html.sh (String handling): Add memchr2.
93246 2008-02-29  Bruno Haible  <bruno@clisp.org>
93248         * modules/freadseek-tests: New file.
93249         * tests/test-freadseek.sh: New file.
93250         * tests/test-freadseek.c: New file.
93252         New module 'freadseek'.
93253         * modules/freadseek: New file.
93254         * lib/freadseek.h: New file.
93255         * lib/freadseek.c: New file.
93256         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
93258 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93260         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
93261         wydawca.
93263         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
93264         program_invocation_name and program_invocation_short_name are
93265         present.
93267 2008-02-28  Bruno Haible  <bruno@clisp.org>
93269         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
93270         * tests/test-freadptr.sh: Also test non-seekable stdin.
93272 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
93274         * build-aux/bootstrap (source_base, m4_base)
93275         (doc_base, tests_base): New variables.
93276         (gnulib_tool_options): Do not hardcode base directories, use
93277         the above variables instead.
93279 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
93281         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
93283 2008-02-28  Bruno Haible  <bruno@clisp.org>
93285         * modules/freadptr-tests: New file.
93286         * tests/test-freadptr.sh: New file.
93287         * tests/test-freadptr.c: New file.
93289         New module 'freadptr'.
93290         * modules/freadptr: New file.
93291         * lib/freadptr.h: New file.
93292         * lib/freadptr.c: New file.
93293         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
93295 2008-02-26  Karl Berry  <karl@freefriends.org>
93297         Sync from Libtool:
93298         * libltdl/argz.c (argz_add, argz_count): New functions.
93299         * libltdl/argz.in.h: Declare them.
93300         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
93302 2008-02-22  Bruno Haible  <bruno@clisp.org>
93304         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
93305         is a pointer type.  Needed for HP-UX 10.
93306         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
93307         * doc/posix-functions/gmtime_r.texi: Likewise.
93308         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93310 2008-02-24  Bruno Haible  <bruno@clisp.org>
93312         * modules/environ-tests: New file.
93313         * tests/test-environ.c: New file.
93315         New module 'environ'.
93316         * modules/environ: New file.
93317         * lib/unistd.in.h (environ): New declaration.
93318         * m4/environ.m4: New file.
93319         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
93320         after use.
93321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
93322         HAVE_DECL_ENVIRON.
93323         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
93324         HAVE_DECL_ENVIRON.
93325         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
93326         wrong claim that 'environ' is missing on some systems.
93327         * modules/execute (Depends-on): Add environ.
93328         * lib/execute.c (environ): Remove fallback declaration.
93329         * modules/pipe (Depends-on): Add environ.
93330         * lib/pipe.c (environ): Remove fallback declaration.
93331         * modules/setenv (Depends-on): Add environ.
93332         * lib/setenv.c (environ): Remove fallback declaration.
93333         * modules/unsetenv (Depends-on): Add environ.
93334         * lib/unsetenv.c (environ): Remove fallback declaration.
93335         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
93336         m4/environ.m4.
93337         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
93338         (gl_PREREQ_UNSETENV): Likewise.
93340 2008-02-24  Bruno Haible  <bruno@clisp.org>
93342         * doc/posix-functions/environ.texi: Document the MacOS X problem.
93344 2008-02-20  Bob Proulx  <bob@proulx.com>
93346         Enable use of older two part flavor 'git describe'.
93347         * build-aux/git-version-gen: If using the older two part flavor of
93348         git version then recreate the third part now present in the
93349         newer three part flavor of git describe.
93351 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
93353         * lib/fts.c (fts_build): Typo correction to comment.
93355 2008-02-17  Bruno Haible  <bruno@clisp.org>
93357         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
93358         generating no-op conflicts.
93360 2008-02-17  Bruno Haible  <bruno@clisp.org>
93362         Speed up by 10%.
93363         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
93364         result_entries, rather than an index-based loop.
93366 2008-02-17  Bruno Haible  <bruno@clisp.org>
93368         Speed up by 25%.
93369         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
93370         'hashcode_cached'.
93371         (entry_create): New function.
93372         (entry_hashcode): Use the cached hashcode if possible.
93373         (read_changelog_file, try_split_merged_entry): Use entry_create.
93375 2008-02-17  Bruno Haible  <bruno@clisp.org>
93377         Speed up from O(n^2) to O(n) for long ChangeLog files.
93378         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
93379         (read_changelog_file): Change implementation of entries_reversed list
93380         to rbtreehash.
93381         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
93383 2008-02-17  Bruno Haible  <bruno@clisp.org>
93385         New option --split-merged-entry.
93386         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
93387         (find_paragraph_end, try_split_merged_entry): New functions.
93388         (long_options): Add option --split-merged-entry.
93389         (usage): Document option --split-merged-entry.
93390         (main): Implement option --split-merged-entry.
93391         Reported by Eric Blake.
93393 2008-02-17  Bruno Haible  <bruno@clisp.org>
93395         * lib/git-merge-changelog.c: Include c-strstr.h.
93396         (main): Support the "git pull --rebase" situation.
93397         * modules/git-merge-changelog (Depends-on): Add c-strstr.
93398         Reported by Eric Blake.
93400 2008-02-16  Eric Blake  <ebb9@byu.net>
93402         Avoid doubling \ in common case of "c-maybe" quoting style.
93403         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
93404         eliding outer quotes.
93405         * lib/quotearg.h: Document this.
93406         * tests/test-quotearg.c (result_strings, inputs, results_g)
93407         (flag_results, locale_results): Test it by adding a new string to
93408         each test group.
93409         (compare_strings): Test new string.
93411 2008-02-13  Eric Blake  <ebb9@byu.net>
93413         Avoid trigraph quoting in default output.
93414         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
93415         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
93416         unless explicitly requested.
93417         * tests/test-quotearg.c (flag_results, main): Add additional tests.
93419 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
93421         Don't rely on signed integer overflowing to negative value.
93422         * lib/getugroups.c (getugroups): Include <limits.h>.
93423         Instead, compare against INT_MAX, and increment only if the test passes.
93425 2008-02-13  Jim Meyering  <meyering@redhat.com>
93426         and Eric Blake  <ebb9@byu.net>
93428         Avoid shadowing warning and compile errors on Linux.
93429         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
93430         forwarding macros on Linux.
93431         (dcgettext): Define a stub, for Linux.
93432         (results_g, main): Avoid warnings.
93434 2008-02-12  Eric Blake  <ebb9@byu.net>
93436         Silence warning in last patch.
93437         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
93439         Quotearg part 4: add tests, fix c-maybe colon quoting.
93440         * lib/quotearg.h: Improve documentation.
93441         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
93442         escapes when adding outer quotes.  When quoting trigraphs, use
93443         valid C notation.  When quoting NUL, omit extra characters if next
93444         character is not digit.  Alter prototype.
93445         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
93446         callers.
93447         * modules/quotearg-tests: New module.
93448         * tests/test-quotearg.c: New test.
93450 2008-02-07  Eric Blake  <ebb9@byu.net>
93452         Quotearg part 3: add flag to control outer quote elision.
93453         * lib/quotearg.h (c_maybe_quoting_style): New style.
93454         (enum quoting_flags): Better documentation of flags.
93455         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
93456         c-maybe style.
93457         (quotearg_buffer_restyled): Handle new flag to elide outer
93458         quotes.
93460         Quotearg part 2: add flag that can control NUL elision.
93461         * lib/quotearg.h (set_quoting_flags): New prototype.
93462         * lib/quotearg.c (struct quoting_options): Add flag field.
93463         (set_quoting_flags): New function.
93464         (quotearg_buffer_restyled): Add flags parameter.
93465         (quotearg_alloc_mem): Set the flag if length cannot be returned.
93466         (quotearg_n_options): Set the flag, since length cannot be
93467         returned.
93468         (quoting_options_from_style): Default flags correctly.
93470         Quotearg part 1: more wrappers, restore quotearg_char state.
93471         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
93472         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
93473         (quotearg_colon_mem): New wrappers.
93474         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
93475         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
93476         functions.
93477         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
93478         (quotearg_colon_mem): New functions.
93480 2008-02-11  Bruno Haible  <bruno@clisp.org>
93482         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
93483         library in the current directory: it does not work with parallel make.
93484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93486 2008-02-11  Bruno Haible  <bruno@clisp.org>
93488         * .gitattributes: New file.
93490 2008-02-11  Jim Meyering  <meyering@redhat.com>
93492         useless-if-before-free: Fix reversed exit values.
93493         * build-aux/useless-if-before-free: Use correct values
93494         for EXIT_MATCH and EXIT_NO_MATCH.
93496         * build-aux/useless-if-before-free: Close stdout carefully.
93498 2008-02-10  Bruno Haible  <bruno@clisp.org>
93500         New module 'git-merge-changelog'.
93501         * modules/git-merge-changelog: New file.
93502         * lib/git-merge-changelog.c: New file.
93504 2008-02-10  Jim Meyering  <meyering@redhat.com>
93506         useless-if-before-free: New option: --list (-l).
93508         useless-if-before-free: Don't exit immediately upon open failure.
93509         * build-aux/useless-if-before-free: Exit 2 for errors.
93510         Upon failure to open a file, don't exit immediately.
93511         Rather, just warn and continue with any remaining files.
93513 2008-02-10  Bruno Haible  <bruno@clisp.org>
93515         New abstract list operation 'node_set_value'.
93516         * lib/gl_list.h (gl_list_node_set_value): New function.
93517         (struct gl_list_implementation): New field node_set_value.
93518         * lib/gl_list.c (gl_list_node_set_value): New function.
93519         * lib/gl_array_list.c (gl_array_node_set_value): New function.
93520         (gl_array_list_implementation): Update.
93521         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
93522         (gl_carray_list_implementation): Update.
93523         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
93524         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93525         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93526         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
93527         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93528         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93529         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93530         Update.
93531         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93532         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
93533         (gl_sublist_list_implementation): Update.
93535 2008-02-10  Bruno Haible  <bruno@clisp.org>
93537         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
93538         Needed when ELEMENT is #defined to 'some_type *'.
93540 2008-02-10  Jim Meyering  <meyering@redhat.com>
93542         New script and module: useless-if-before-free
93543         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
93544         * build-aux/useless-if-before-free: New file.
93545         * modules/useless-if-before-free: New file.
93547         * build-aux/gitlog-to-changelog: Use committer date, not author date.
93549         xstrtol_error: Fix typo.
93550         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
93551         s/exit_failure/exit_status/.
93553 2008-02-09  Jim Meyering  <meyering@redhat.com>
93555         New script and module: gitlog-to-changelog
93556         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
93557         * modules/gitlog-to-changelog: New file.
93558         * build-aux/gitlog-to-changelog: New file.
93560 2008-02-08  Jim Meyering  <meyering@redhat.com>
93562         Avoid two "parameter unused" warnings.
93563         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
93564         Mark "st" as used.
93566         Use "git COMMAND", not "git-COMMAND".
93567         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
93568         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
93569         * build-aux/git-version-gen: Use "git status", not "git-status".
93571 2008-02-07  Bruno Haible  <bruno@clisp.org>
93573         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
93574         Avoids a crash on Windows Vista.
93575         Reported by Adam Strzelecki <ono@java.pl> via
93576         Simon Josefsson <simon@josefsson.org>.
93578 2008-02-06  Bruno Haible  <bruno@clisp.org>
93580         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
93581         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
93582         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
93583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
93584         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93586         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
93587         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
93588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93589         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93595         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
93596         left-adjust flag.
93597         * tests/test-snprintf-posix.h (test_function): Likewise.
93598         * tests/test-sprintf-posix.h (test_function): Likewise.
93599         * tests/test-vasprintf-posix.c (test_function): Likewise.
93600         * doc/posix-functions/fprintf.texi: Update.
93601         * doc/posix-functions/printf.texi: Update.
93602         * doc/posix-functions/snprintf.texi: Update.
93603         * doc/posix-functions/sprintf.texi: Update.
93604         * doc/posix-functions/vfprintf.texi: Update.
93605         * doc/posix-functions/vprintf.texi: Update.
93606         * doc/posix-functions/vsnprintf.texi: Update.
93607         * doc/posix-functions/vsprintf.texi: Update.
93608         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93610 2008-02-06  Bruno Haible  <bruno@clisp.org>
93612         Fix bug introduced on 2008-01-26.
93613         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
93615 2008-02-06  Bruno Haible  <bruno@clisp.org>
93617         Fix bug introduced on 2007-06-10.
93618         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
93619         !NEED_PRINTF_FLAG_ZERO.
93621 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
93623         getloadavg: use libperfstat on AIX5
93624         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
93626 2008-02-03  Bruno Haible  <bruno@clisp.org>
93628         * lib/diffseq.h: Add comments about required #includes.
93629         Reported by Michael Biggs <gnulib@doubleplum.net>.
93631 2008-02-01  Bruno Haible  <bruno@clisp.org>
93633         * users.txt: Add gnuit.
93635 2008-01-31  Bruno Haible  <bruno@clisp.org>
93637         * lib/md4.c (set_uint32): Mark as inline.
93638         * lib/md5.c (set_uint32): Likewise.
93639         * lib/sha1.c (set_uint32): Likewise.
93640         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
93641         * m4/md5.m4 (gl_MD5): Likewise.
93642         * m4/sha1.m4 (gl_SHA1): Likewise.
93644 2008-01-31  Jim Meyering  <meyering@redhat.com>
93646         Use "sizeof VAR", rather than a literal "4".
93647         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
93648         * lib/md4.c (md4_read_ctx): Likewise.
93649         * lib/sha1.c (sha1_read_ctx): Likewise.
93651 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93653         * tests/test-sha1.c: New file, based on test-md5.c.
93655         * modules/crypto/sha1-tests: New file.
93657 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93659         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
93661 2008-01-31  Jim Meyering  <meyering@redhat.com>
93663         Prefer "sizeof v" over the equivalent "4".
93664         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
93665         * lib/md5.c (set_uint32): Likewise.
93666         * lib/sha1.c (set_uint32): Likewise.
93668 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93670         * lib/sha1.c (set_uint32): Mark function as static.
93672 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93674         md2: clarify comments to say that alignment is not required.
93675         * lib/md2.h: Remove warning about alignment in comment.
93676         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93677         never been required.
93679 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93681         md4: adapt alignment constraint fix from sha1.
93682         * lib/md4.c (set_uint32): New function, from sha1.c
93683         (md4_read_ctx): Use it.
93684         (md4_finish_ctx): Doc fix.
93685         * lib/md4.h: Doc fix.
93687 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93689         md5: adapt alignment constraint fix from sha1.
93690         * lib/md5.c (set_uint32): New function, from sha1.c
93691         (md5_read_ctx): Use it.
93692         (md5_finish_ctx): Doc fix.
93693         * lib/md5.h: Doc fix.
93695 2008-01-30  Peter Palfrader  <weasel@debian.org>
93697         sha1: remove the result buffer alignment constraint
93698         * lib/sha1.c (set_uint32): New function.
93699         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93700         constraint.
93701         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93702         * lib/sha1.h: Likewise.
93704 2008-01-30  Andreas Schwab  <schwab@suse.de>
93705             Bruno Haible  <bruno@clisp.org>
93707         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
93708         correct definition of LDBL_MIN_EXP.
93710 2008-01-30  Karl Berry  <karl@gnu.org>
93712         * config/srclist-update: try to preserve x bit on updates.
93713         * config/srclistvars.sh: update for karl.
93715 2008-01-29  Jim Meyering  <meyering@redhat.com>
93717         vasnprintf.c: Avoid warning about unused label
93718         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
93719         "overflow" label definition and associated code with the
93720         same cpp condition that guards the sole use of that label.
93722 2008-01-26  Bruno Haible  <bruno@clisp.org>
93724         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
93725         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
93726         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
93727         * lib/isnanl-nolibm.h (isnanl): Likewise.
93728         Reported by Paul Eggert <eggert@cs.ucla.edu>.
93730 2008-01-26  Bruno Haible  <bruno@clisp.org>
93732         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
93733         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
93735 2008-01-26  Bruno Haible  <bruno@clisp.org>
93737         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
93738         GCC >= 4.0 built-in.
93739         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
93741 2008-01-26  Bruno Haible  <bruno@clisp.org>
93743         Rename isnan, applicable to 'double' only, to isnand.
93744         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
93745         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
93746         (configure.ac): Update.
93747         (Include): Replace "isnan.h" with "isnand.h".
93748         * m4/isnand.m4: Renamed from m4/isnan.m4.
93749         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
93750         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
93751         instead of isnan.c.
93752         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
93753         instead of HAVE_ISNAN_IN_LIBC.
93754         (isnand): Renamed from isnan.
93755         * lib/isnand.c: New file.
93756         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
93757         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
93758         (Makefile.am): Update.
93759         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
93760         Include isnand.h instead of isnan.h.
93761         (main): Test isnand instead of isnan.
93762         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
93763         isnan-nolibm.
93764         * modules/frexp (Depends-on): Likewise.
93765         * modules/frexp-tests (Depends-on): Likewise.
93766         * modules/frexp-nolibm (Depends-on): Likewise.
93767         * modules/frexp-nolibm-tests (Depends-on): Likewise.
93768         * modules/isfinite (Depends-on): Likewise.
93769         * modules/round-tests (Depends-on): Likewise.
93770         * modules/signbit (Depends-on): Likewise.
93771         * modules/signbit-tests (Depends-on): Likewise.
93772         * modules/snprintf-posix (Depends-on): Likewise.
93773         * modules/sprintf-posix (Depends-on): Likewise.
93774         * modules/trunc-tests (Depends-on): Likewise.
93775         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93776         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93777         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93778         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93779         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93780         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93781         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93782         * modules/vasnprintf-posix (Depends-on): Likewise.
93783         * modules/vasprintf-posix (Depends-on): Likewise.
93784         * modules/vfprintf-posix (Depends-on): Likewise.
93785         * modules/vsnprintf-posix (Depends-on): Likewise.
93786         * modules/vsprintf-posix (Depends-on): Likewise.
93787         * lib/frexp.c: Include isnand.h instead of isnan.h.
93788         (ISNAN): Set to isnand instead of isnan.
93789         * lib/isfinite.c: Include isnand.h instead of isnan.h.
93790         (gl_isfinited): Use isnand instead of isnan.
93791         * lib/signbitd.c: Include isnand.h instead of isnan.h.
93792         (gl_signbitd): Use isnand instead of isnan.
93793         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
93794         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
93795         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
93796         (main): Use isnand instead of isnan.
93797         * tests/test-round1.c: Include isnand.h.
93798         (main): Use isnand instead of isnan.
93799         * tests/test-round2.c: Include isnand.h instead of isnan.h.
93800         (ISNAN): Set to isnand instead of isnan.
93801         * tests/test-trunc1.c: Include isnand.h.
93802         (main): Use isnand instead of isnan.
93803         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
93804         (equal): Use isnand instead of isnan.
93805         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93806         isnand-nolibm.
93807         * NEWS: Mention the change.
93809 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93810             Bruno Haible  <bruno@clisp.org>
93812         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93813         the GCC builtins for signbits are present and set
93814         REPLACE_SIGNBIT_USING_GCC if so.
93815         * lib/math.in.h (signbit): Define using GCC builtins if
93816         REPLACE_SIGNBIT_USING_GCC is set.
93817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93818         REPLACE_SIGNBIT_USING_GCC.
93819         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93821 2008-01-25  Jim Meyering  <meyering@redhat.com>
93823         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93824         * lib/poll.c: Include <config.h>, not "config.h".
93825         * tests/test-getaddrinfo.c: Likewise.
93827 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93829         * modules/sockets-tests: New file.
93831 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93833         * modules/sockets: New module, can be used to call WSA_Startup and
93834         WSA_Cleanup when needed.
93836         * lib/sockets.h, lib/sockets.c: New files.
93838         * m4/sockets.m4: New file.
93840         * tests/test-sockets.c: New file.
93842 2008-01-19  Bruno Haible  <bruno@clisp.org>
93844         * doc/posix-headers: Renamed from doc/headers.
93845         * doc/posix-functions: Renamed from doc/functions.
93846         * doc/gnulib.texi: Update.
93848 2008-01-19  Bruno Haible  <bruno@clisp.org>
93850         * doc/glibc-functions/strcasestr.texi: Include contents of
93851         doc/functions/strcasestr.texi, fixing the list of platforms.
93852         * doc/functions/strcasestr.texi: Remove file.
93854 2008-01-19  Bruno Haible  <bruno@clisp.org>
93856         * doc/glibc-functions/memmem.texi: Include contents of
93857         doc/functions/memmem.texi.
93858         * doc/functions/memmem.texi: Remove file.
93860 2008-01-18  Bruno Haible  <bruno@clisp.org>
93862         * doc/glibc-functions/*.texi: New files.
93863         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93864         to use the new files.
93866 2008-01-17  Bruno Haible  <bruno@clisp.org>
93868         * tests/test-gethostname.c (main): Fix printf statement.
93870 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93872         * modules/gethostname-tests: New file.
93874         * tests/test-gethostname.c: New file.
93876 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93878         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93879         used by the UNAME case.  Reported by Bruno Haible
93880         <bruno@clisp.org>.
93882 2008-01-17  Eric Blake  <ebb9@byu.net>
93884         Convert c-strcasestr to be more efficient.
93885         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93886         (Depends-on): Add c-strcase, remove malloca, strnlen.
93887         * tests/test-c-strcasestr.c (main): Enhance test.
93888         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93890 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93892         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93893         Use it in creating po/Makevars.
93895 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93897         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93898         Applications that requires it should initialize libgcrypt
93899         manually.
93901 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93903         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93905 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93907         Fix problem with getdate on mingw32 reported by Simon Josefsson
93908         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93909         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93910         tzname", when deciding whether to declare tzname.
93911         * lib/strftime.c (tzname): Likewise.
93913 2008-01-15  Bruno Haible  <bruno@clisp.org>
93915         Work around a MacOS X 10.5 bug in frexpl().
93916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93917         * doc/functions/frexpl.texi: Document the bug.
93918         Reported by Elias Pipping <pipping@gentoo.org>.
93920 2008-01-14  Eric Blake  <ebb9@byu.net>
93922         Touch up previous patch.
93923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93924         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93926         Convert strcasestr module to use Two-Way algorithm.
93927         * modules/strcasestr-simple: New module, based on the old
93928         strcasestr, but with Two-Way rather than KMP.
93929         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93930         * lib/string.in.h (rpl_strcasestr): Declare.
93931         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93932         performance.
93933         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93934         * modules/string (Makefile.am): Support strcasestr.
93935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93936         * modules/strcasestr-tests (Depends-on): Check for alarm.
93937         * tests/test-strcasestr.c: Augment test.
93938         * lib/str-two-way.h: Clean up stray macro.
93939         * NEWS: Document new module.
93940         * MODULES.html.sh (string handling): Likewise.
93941         * doc/functions/strcasestr.texi: New file.
93942         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93943         here, since it is not a POSIX function.
93945 2008-01-14  Colin Watson  <cjwatson@debian.org>
93946             Bruno Haible  <bruno@clisp.org>
93948         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93949         works fine; if not, set REPLACE_STRSIGNAL.
93950         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93952         REPLACE_STRSIGNAL.
93953         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93954         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93955         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93957 2008-01-14  Bruno Haible  <bruno@clisp.org>
93959         * modules/strsignal (Include): Change to <string.h>.
93961 2008-01-14  Colin Watson  <cjwatson@debian.org>
93963         * modules/argp (Notice): Add a notice recommending to change
93964         XGETTEXT_OPTIONS.
93965         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93967 2008-01-13  Colin Watson  <cjwatson@debian.org>
93969         * modules/strsignal-tests: New file.
93970         * tests/test-strsignal.c: New file.
93972         * lib/strsignal.c: New file, from glibc with modifications.
93973         * lib/siglist.h: New file, from glibc with modifications.
93974         * lib/string.in.h (strsignal): New declaration.
93975         * m4/strsignal.m4: New file.
93976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93977         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93978         * modules/strsignal: New file.
93979         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93980         HAVE_DECL_STRSIGNAL.
93982 2008-01-13  Bruno Haible  <bruno@clisp.org>
93984         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93985         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93986         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93987         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93989 2008-01-13  Bruno Haible  <bruno@clisp.org>
93991         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93992         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93993         * lib/argp.h (__attribute__): Likewise.
93994         * lib/c-stack.c (__attribute__): Likewise.
93995         * lib/error.h (__attribute__): Likewise.
93996         * lib/fts.c (__attribute__): Likewise.
93997         * lib/openat.h (__attribute__): Likewise.
93998         * lib/stdio.in.h (__attribute__): Likewise.
93999         * lib/string.in.h (__attribute__): Likewise.
94000         * lib/utimens.c (__attribute__): Likewise.
94001         * lib/vasnprintf.h (__attribute__): Likewise.
94002         * lib/xalloc.h (__attribute__): Likewise.
94003         * lib/xprintf.h (__attribute__): Likewise.
94004         * lib/xstrtol.h (__attribute__): Likewise.
94005         * lib/xvasprintf.h (__attribute__): Likewise.
94007 2008-01-12  Bruno Haible  <bruno@clisp.org>
94009         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
94010         * doc/glibc-headers/a.out.texi: New file.
94011         * doc/glibc-headers/aliases.texi: New file.
94012         * doc/glibc-headers/alloca.texi: New file.
94013         * doc/glibc-headers/ar.texi: New file.
94014         * doc/glibc-headers/argp.texi: New file.
94015         * doc/glibc-headers/argz.texi: New file.
94016         * doc/glibc-headers/byteswap.texi: New file.
94017         * doc/glibc-headers/crypt.texi: New file.
94018         * doc/glibc-headers/endian.texi: New file.
94019         * doc/glibc-headers/envz.texi: New file.
94020         * doc/glibc-headers/err.texi: New file.
94021         * doc/glibc-headers/error.texi: New file.
94022         * doc/glibc-headers/execinfo.texi: New file.
94023         * doc/glibc-headers/fpu_control.texi: New file.
94024         * doc/glibc-headers/fstab.texi: New file.
94025         * doc/glibc-headers/fts.texi: New file.
94026         * doc/glibc-headers/getopt.texi: New file.
94027         * doc/glibc-headers/ieee754.texi: New file.
94028         * doc/glibc-headers/ifaddrs.texi: New file.
94029         * doc/glibc-headers/libintl.texi: New file.
94030         * doc/glibc-headers/mcheck.texi: New file.
94031         * doc/glibc-headers/mntent.texi: New file.
94032         * doc/glibc-headers/obstack.texi: New file.
94033         * doc/glibc-headers/paths.texi: New file.
94034         * doc/glibc-headers/printf.texi: New file.
94035         * doc/glibc-headers/pty.texi: New file.
94036         * doc/glibc-headers/resolv.texi: New file.
94037         * doc/glibc-headers/shadow.texi: New file.
94038         * doc/glibc-headers/sysexits.texi: New file.
94039         * doc/glibc-headers/ttyent.texi: New file.
94041 2008-01-12  Jim Meyering  <meyering@redhat.com>
94043         announce-gen: emit Gnulib's git-based version string.
94044         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
94045         New option --gnulib-version=V, where V is expected to be
94046         the output of running git describe in the gnulib directory.
94047         (get_tool_versions): Request feedback on xdelta.  I suspect it's
94048         not useful, and plan to stop publishing an xdelta file with each
94049         coreutils release.
94051         * build-aux/announce-gen: Also check for lzma-compressed files.
94053 2008-01-11  Bruno Haible  <bruno@clisp.org>
94055         * tests/test-memmem.c (main): Increase maximum allowed time.
94056         * tests/test-strstr.c (main): Likewise.
94058 2008-01-11  Bruno Haible  <bruno@clisp.org>
94060         * doc/functions/memmem.texi: Add more precisions about platforms.
94061         * doc/functions/strstr.texi: Likewise.
94063 2008-01-10  Eric Blake  <ebb9@byu.net>
94065         * m4/strstr.m4: Delete cruft from copy-n-paste.
94066         Reported by Bruno Haible.
94068 2008-01-10  Bruno Haible  <bruno@clisp.org>
94070         Make c-strstr rely on strstr.
94071         * lib/c-strstr.c: Don't include str-kmp.h.
94072         (c_strstr): Define in terms of strstr.
94073         * modules/c-strstr (Files): Remove lib/str-kmp.h.
94074         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
94076 2008-01-10  Bruno Haible  <bruno@clisp.org>
94078         * doc/gnulib.texi (String Functions in C Locale): New section.
94079         * doc/c-ctype.texi: New file.
94080         * doc/c-strcase.texi: New file.
94081         * doc/c-strcaseeq.texi: New file.
94082         * doc/c-strcasestr.texi: New file.
94083         * doc/c-strstr.texi: New file.
94084         * doc/c-strtod.texi: New file.
94085         * doc/c-strtold.texi: New file.
94087 2008-01-10  Eric Blake  <ebb9@byu.net>
94089         * lib/relocatable.h: Fix a comment.
94091 2008-01-10  Eric Blake  <ebb9@byu.net>
94093         Share two-way algorithm.
94094         * lib/str-two-way.h: New file, merged from...
94095         * lib/memmem.c: ...here...
94096         * lib/strstr.c: ...and here.
94097         * modules/memmem (Files): Use it.
94098         * modules/strstr (Files): Likewise.
94100         Avoid quadratic strstr implementations.
94101         * lib/strstr.c: New file.
94102         * m4/strstr.m4: Likewise.
94103         * modules/strstr: Likewise.
94104         * modules/strstr-tests: Likewise.
94105         * tests/test-strstr.c: Likewise.
94106         * lib/string.in.h (rpl_strstr): Declare.
94107         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
94108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
94109         * modules/string (Makefile.am): Likewise.
94110         * MODULES.html.sh (string handling): Mention new module.
94111         * doc/functions/strstr.texi (strstr): Document the bug.
94113 2008-01-10  Bruno Haible  <bruno@clisp.org>
94115         * lib/relocatable.h (relocate): State whether result is freshly
94116         allocated or not.
94117         * lib/relocatable.c (relocate): Return a freshly allocated string
94118         instead of a pointer to a privately held string.
94119         Reported by Sylvain Beucler <beuc@gnu.org>.
94121 2008-01-10  Colin Watson  <cjwatson@debian.org>
94123         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
94124         s/S_ISNLK/S_ISLNK/.
94126 2008-01-09  Bruno Haible  <bruno@clisp.org>
94128         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
94129         and other files.
94130         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
94131         if it's only a guess.
94132         * modules/memmem: Simplify by depending on memmem-simple.
94134 2008-01-09  Bruno Haible  <bruno@clisp.org>
94136         Work around OpenBSD 4.0 tdelete() bug.
94137         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
94138         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
94139         macros and don't redefine the enum values.
94140         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
94141         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
94142         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
94144 2008-01-09  Bruno Haible  <bruno@clisp.org>
94146         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
94147         (main): Don't perform the tests if setlocale did not install a UTF-8
94148         locale. Needed on OpenBSD 4.0.
94149         * modules/wcwidth-tests (Depends-on): Add localcharset.
94151 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94153         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
94154         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
94155         * NEWS: announce this.
94156         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
94158 2008-01-09  Simon Josefsson  <simon@josefsson.org>
94159         and Eric Blake  <ebb9@byu.net>
94161         Add memmem-simple module.
94162         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
94163         (gl_FUNC_MEMMEM): Separate performance from presence checks.
94164         * modules/memmem-simple: New file.
94165         * modules/memmem (Description): Tweak.
94166         * MODULES.html.sh (string handling): Mention new module.
94167         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
94168         addressed by memmem-simple.
94169         * NEWS: Document the difference.
94171 2008-01-09  Eric Blake  <ebb9@byu.net>
94173         Give gcc some memmem optimization hints.
94174         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
94175         (strcasestr): Declare as pure.
94176         * modules/memmem (Maintainer): Claim my implementation.
94178 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94180         Support AIX 6.1 and higher.
94181         * build-aux/config.libpath: Likewise.
94182         * build-aux/config.rpath: Likewise.
94184 2008-01-08  Jim Meyering  <meyering@redhat.com>
94185             Bruno Haible  <bruno@clisp.org>
94187         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
94188         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
94189         Reported by Peter Fales in
94190         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
94192 2008-01-08  Bruno Haible  <bruno@clisp.org>
94194         * modules/unictype/category-of (Depends-on): Add
94195         unictype/category-none.
94196         * modules/unictype/category-and-tests (Depends-on): Add
94197         unictype/category-{L,N,Lu,Nd}.
94198         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
94199         * modules/unictype/category-or-tests (Depends-on): Add
94200         unictype/category-{L,N}.
94201         * modules/unictype/category-name-tests (Depends-on): Add
94202         unictype/category-{Z,Nl}.
94203         Reported by Simon Josefsson.
94205 2008-01-08  Bruno Haible  <bruno@clisp.org>
94207         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
94208         convention better.
94209         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
94210         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
94211         Reported by Peter Miller <millerp@canb.auug.org.au>.
94213 2008-01-08  Eric Blake  <ebb9@byu.net>
94215         Rewrite memmem to guarantee linear complexity without malloc.
94216         * lib/memmem.c (memmem): Use Two-Way rather than
94217         Knuth-Morris-Pratt, to allow O(1) space usage.
94218         (critical_factorization, two_way_short_needle)
94219         (two_way_long_needle): New functions.
94220         (knuth_morris_pratt): Delete.
94221         * modules/memmem (Depends-on): No longer need malloca or stdbool.
94222         Add stdint.
94223         * tests/test-memmem.c (main): Add tests for periodic needle and
94224         sublinear performance.
94225         * doc/functions/memmem.texi (memmem): Document other deficiencies
94226         in cygwin and older glibc.
94228 2008-01-08  Bruno Haible  <bruno@clisp.org>
94230         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
94231         augmentation.
94233 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
94235         Add a configure time option: --disable-acl.
94236         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
94237         AC_ARG_ENABLE(acl).
94239 2008-01-06  Simon Josefsson  <simon@josefsson.org>
94241         * tests/test-localename.c: Don't include obsolete "setenv.h".
94243         * modules/localename-tests (Depends-on): Need unsetenv.
94245 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94247         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
94249 2008-01-06  Colin Watson  <cjwatson@debian.org>
94251         * users.txt: Add man-db.
94253 2008-01-07  Bruno Haible  <bruno@clisp.org>
94255         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
94256         previous section name.
94258 2008-01-07  Bruno Haible  <bruno@clisp.org>
94260         * lib/progname.c (set_program_name): Don't strip off a leading
94261         "lt-" prefix outside a .libs directory.
94262         Suggested by Paul Eggert.
94264 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
94265             Bruno Haible  <bruno@clisp.org>
94267         Improve memory cleanup in 'relocatable' module.
94268         * lib/relocatable.h (compute_curr_prefix): Change return type to
94269         'char *'.
94270         * lib/relocatable.c (compute_curr_prefix): Change return type to
94271         'char *'. Free curr_installdir after use.
94272         (relocate): Free curr_prefix_better after use.
94273         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
94275 2008-01-01  Bruno Haible  <bruno@clisp.org>
94277         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
94278         failure on older glibc systems.
94279         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94281 2008-01-05  Eric Blake  <ebb9@byu.net>
94283         Avoid quadratic system memmem.
94284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
94285         Reported by Ralf Wildenhues.
94287         Fix memmem test for mingw.
94288         * modules/memmem-tests (configure.ac): Check for alarm.
94289         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
94290         it.
94291         * doc/functions/memmem.texi: New file.
94292         * doc/gnulib.texi (Function Substitutes): Add memmem.
94293         Reported by Bruno Haible.
94295 2008-01-04  Bruno Haible  <bruno@clisp.org>
94297         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
94298         Require gl_HEADER_STRINGS_H_DEFAULTS, not
94299         gl_HEADER_STRING_H_DEFAULTS.
94301 2008-01-04  Eric Blake  <ebb9@byu.net>
94303         Shorten duration of memmem test.
94304         * tests/test-memmem.c (main): Use alarm to declare failure if test
94305         is taking too long.
94306         Reported by Ralf Wildenhues.
94308 2007-12-21  Simon Josefsson  <simon@josefsson.org>
94310         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
94311         string, needed by strerror.
94313 2008-01-03  Colin Watson  <cjwatson@debian.org>
94314             Bruno Haible  <bruno@clisp.org>
94316         * doc/gnulib-tool.texi (Localization): New section.
94318 2008-01-02  Bruno Haible  <bruno@clisp.org>
94320         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
94321         variables to 'unsigned char *' type.
94322         Reported by Paul Eggert.
94324 2008-01-02  Jim Meyering  <jim@meyering.net>
94326         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
94328 2007-12-31  Jim Meyering  <jim@meyering.net>
94330         Avoid use of private FTS type name.
94331         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
94333 2007-12-30  Karl Berry  <karl@gnu.org>
94335         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
94336         work around defect in Texinfo and/or the standalone Info browser.
94338 2007-12-30  Bruno Haible  <bruno@clisp.org>
94340         Unify 5 copies of the KMP code.
94341         * lib/str-kmp.h: New file.
94342         * lib/c-strcasestr.c: Include str-kmp.h.
94343         (knuth_morris_pratt): Remove function.
94344         (c_strcasestr): Update.
94345         * lib/c-strstr.c: Include str-kmp.h.
94346         (knuth_morris_pratt): Remove function.
94347         (c_strcasestr): Update.
94348         * lib/mbscasestr.c: Include str-kmp.h.
94349         (knuth_morris_pratt_unibyte): Remove function.
94350         * lib/mbsstr.c: Include str-kmp.h.
94351         (knuth_morris_pratt_unibyte): Remove function.
94352         * lib/strcasestr.c: Include str-kmp.h.
94353         (knuth_morris_pratt): Remove function.
94354         (strcasestr): Update.
94355         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
94356         * modules/c-strstr (Files): Likewise.
94357         * modules/mbscasestr (Files): Likewise.
94358         * modules/mbsstr (Files): Likewise.
94359         * modules/strcasestr (Files): Likewise.
94360         Suggested by Paul Eggert.
94362 2007-12-30  Bruno Haible  <bruno@clisp.org>
94364         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
94365         defined.
94367 2007-12-30  Bruno Haible  <bruno@clisp.org>
94369         * lib/xmalloca.h: Include xalloc.h.
94370         (xnmalloca): New macro.
94372 2007-12-30  Bruno Haible  <bruno@clisp.org>
94374         * lib/malloca.h (nmalloca): New macro.
94375         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
94376         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
94377         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
94378         knuth_morris_pratt_multibyte): Likewise.
94379         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
94380         knuth_morris_pratt_multibyte): Likewise.
94381         * lib/memmem.c (knuth_morris_pratt): Likewise.
94382         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
94384 2007-12-25  Bruno Haible  <bruno@clisp.org>
94386         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
94387         * lib/glob.c: Don't include openat.h.
94388         (link_exists2_p): Add back the code that deals with the
94389         !GLOB_ALTDIRFUNC case.
94390         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
94391         let it do the filename concatenation.
94392         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
94393         * modules/glob (Depends-on): Remove openat.
94395 2007-12-31  Bruno Haible  <bruno@clisp.org>
94397         * modules/dirfd (License): Change to LGPLv2+.
94398         Approved by Jim Meyering.
94400 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94402         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
94403         when multiplying M by sizeof (size_t).
94405 2007-12-10  Martin Lambers  <marlam@marlam.de>
94407         Override getpagesize on mingw.
94408         * lib/getpagesize.c: New file.
94409         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
94410         * modules/getpagesize (Files): Add lib/getpagesize.c.
94411         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
94412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
94413         REPLACE_GETPAGESIZE.
94414         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
94416 2007-12-25  Bruno Haible  <bruno@clisp.org>
94418         * modules/localcharset (Notice): New field.
94419         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
94420         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
94422 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94423             Bruno Haible  <bruno@clisp.org>
94425         Avoid using the syntax symbol() in formatted documentation.
94426         * MODULES.html.sh (func_module): When replacing symbol() with a
94427         hyperlink, remove the parentheses. Show an error if some remain.
94428         Recognize and render the '...' syntax.
94429         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
94430         Rework. Add paragraph about GCC's inlining.
94431         * doc/alloca.texi: Likewise.
94432         * doc/error.texi: Remove parentheses from symbol reference.
94433         * doc/gnulib-intro.texi: Likewise.
94434         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
94435         * modules/fnmatch (Description): Reword to say "the ... function".
94436         * modules/full-read (Description): Likewise.
94437         * modules/full-write (Description): Likewise.
94438         * modules/safe-read (Description): Likewise.
94439         * modules/safe-write (Description): Likewise.
94440         * modules/strchrnul (Description): Likewise.
94441         * modules/trim (Description): Likewise.
94442         * modules/error (Description): Remove parentheses from symbol
94443         references.
94444         * modules/verror (Description): Likewise.
94445         Reported by Karl Berry.
94447 2007-12-25  Bruno Haible  <bruno@clisp.org>
94449         Fixup after 2007-10-16 commit.
94450         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
94452 2007-12-24  Bruno Haible  <bruno@clisp.org>
94454         Make --enable-relocatable work with DESTDIR.
94455         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
94456         to compute installdir from destprog.
94457         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
94458         also set the RELOC_DESTDIR variable.
94459         Reported by Левашев Иван <octagram@bluebottle.com>.
94461 2007-12-24  Bruno Haible  <bruno@clisp.org>
94463         Fix link error due to xalloc_die().
94464         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
94465         of xreadlink.
94466         * lib/relocwrapper.c: Update comments.
94467         * build-aux/install-reloc: Remove xreadlink.c from file list.
94468         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
94469         xreadlink.c.
94470         Reported by Левашев Иван <octagram@bluebottle.com>.
94472 2007-12-24  Bruno Haible  <bruno@clisp.org>
94474         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
94475         * lib/setenv.h: Remove file.
94476         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
94477         lib/setenv.h.
94478         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
94479         (Depends-on): Add stdlib.
94480         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
94481         gl_FUNC_UNSETENV.
94482         (Include): Replace setenv.h with <stdlib.h>.
94483         * modules/unsetenv: New file.
94484         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
94485         * lib/unsetenv.c: Include <stdlib.h> first.
94486         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
94487         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
94488         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
94489         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
94490         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
94491         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
94493         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94494         * doc/functions/unsetenv.texi: Update.
94495         * modules/xsetenv (Depends-on): Add unsetenv.
94496         * modules/getdate (Depends-on): Likewise.
94497         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
94498         * lib/xsetenv.c: Don't include setenv.h.
94499         * lib/getdate.y: Likewise.
94500         * lib/relocwrapper.c: Likewise.
94501         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
94502         (Depends-on): Add stdlib.
94503         * NEWS: Mention the changes.
94504         Reported by Левашев Иван <octagram@bluebottle.com>.
94506 2007-12-23  Bruno Haible  <bruno@clisp.org>
94508         * lib/memmem.c (memmem): Use lowercase variable names. Tab
94509         indentation.
94511 2007-12-23  Bruno Haible  <bruno@clisp.org>
94513         * lib/c-strcasestr.c: Add more comments.
94514         * lib/c-strstr.c: Likewise.
94515         * lib/mbscasestr.c: Likewise.
94516         * lib/mbsstr.c: Likewise.
94517         * lib/strcasestr.c: Likewise.
94518         * lib/memmem.c: Likewise.
94520 2007-12-23  Bruno Haible  <bruno@clisp.org>
94522         * tests/test-memmem.c: Include <string.h> first.
94524 2007-12-22  Bruno Haible  <bruno@clisp.org>
94526         * gnulib-tool (func_create_testdir): Change $auxdir while generating
94527         the contents of $testsbase.
94528         Reported by Ralf Wildenhues.
94530 2007-12-22  Bruno Haible  <bruno@clisp.org>
94532         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
94533         two variables local_ldadd_before, local_ldadd_last.
94535 2007-12-20  Eric Blake  <ebb9@byu.net>
94537         Work around circular library issue when cross-compiling.
94538         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
94539         that progname.o does not need to pull in rpl_memcmp.
94541 2007-12-19  Eric Blake  <ebb9@byu.net>
94543         Fix memmem to avoid O(n^2) worst-case complexity.
94544         * lib/memmem.c (knuth_morris_pratt): New function.
94545         (memmem): Use it if first few naive iterations fail.
94546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
94547         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
94548         * modules/memchr (License): Likewise.
94549         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
94550         malloca.
94551         * tests/test-memmem.c: Rewrite, borrowing ideas from
94552         test-mbsstr1.c; the old version wouldn't even compile!
94553         * modules/memmem-tests: New file.
94554         * lib/string.in.h (rpl_memmem): Add declaration.
94555         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
94556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
94557         REPLACE_MEMMEM.
94559 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94561         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
94562         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
94563         before any system include files, and undef after them all.  This
94564         should fix a problem on VMS reported by John E. Malmberg in
94565         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
94567 2007-12-17  Eric Blake  <ebb9@byu.net>
94569         Revert addition of verify, for BSD/OS.
94570         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
94571         can't handle large files, for the sake of obsolete platforms.
94572         * modules/fseeko (Depends-on): Remove verify.
94573         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
94574         * doc/functions/ftello.texi (ftello): Likewise.
94575         * doc/functions/fgetpos.texi (fgetpos): Likewise.
94576         Reported by Larry Jones.
94578 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
94580         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
94581         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
94583 2007-12-17  Jim Meyering  <meyering@redhat.com>
94585         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
94586         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
94587         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
94588         * modules/getcwd (Depends-on): Add openat.
94589         Reported by Petr Salinger.
94591 2007-12-17  Bruno Haible  <bruno@clisp.org>
94593         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
94594         avoid a segmentation fault of the configure test on x86_64 systems.
94596 2007-12-15  Jim Meyering  <meyering@redhat.com>
94598         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
94600 2007-12-13  Eric Blake  <ebb9@byu.net>
94602         Another fseek test.
94603         * tests/test-fseek.c (main): Also test ungetc handling.
94604         * tests/test-fseeko.c (main): Likewise.
94605         * modules/fseeko (Depends-on): Add verify.
94606         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
94607         large.
94608         Reported by Larry Jones.
94610         Fix fseeko on mingw.
94611         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
94612         seek.
94614         Beef up fseek tests.
94615         * tests/test-fseek.c (main): Also test eof handling.
94616         * tests/test-fseeko.c (main): Likewise.
94617         Reported by Larry Jones.
94619 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
94621         Fix fseeko on BSD-based platforms.
94622         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
94623         successful seek.
94625 2007-12-12  Eric Blake  <ebb9@byu.net>
94627         Allow circular dependency of separate libtests.a
94628         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
94629         when use_libtests.
94631 2007-12-11  Eric Blake  <ebb9@byu.net>
94633         Fix bug with -0.0L in previous patch.
94634         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
94635         * tests/test-isnan.c (main): Also test on zeroes.
94636         * tests/test-isnanf.c (main): Likewise.
94637         * tests/test-isnanl.h (main): Likewise.
94639         Detect pseudo-denormals on x86 even when cross-compiling.
94640         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
94641         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
94642         invalid bit patterns that happen to satisfy ==.
94644         Avoid link failures with separate libtests.a.
94645         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
94646         last, to satisfy circular dependencies.
94648 2007-12-11  Eric Blake  <ebb9@byu.net>
94649         and Bruno Haible  <bruno@clisp.org>
94651         Fix OpenBSD 4.0 <float.h> handling of long double.
94652         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
94653         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
94654         * doc/headers/float.texi (float.h): Document OpenBSD bug.
94656 2007-12-11  Jim Meyering  <meyering@redhat.com>
94658         * users.txt: Add libvirt.
94660         Support versions of autoconf prior to 2.59c.
94661         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
94662         if it is not already defined.
94664 2007-12-09  Bruno Haible  <bruno@clisp.org>
94666         Let 'gnulib-tool --import' collect sources needed for the tests in
94667         tests/ rather than in lib/.
94668         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94669         argument. If true, add rules to generate libtests.a, and put libtests.a
94670         into $(LDADD). Consider source files in subdirectories and set
94671         uses_subdirs.
94672         (func_emit_initmacro_start, func_emit_initmacro_end,
94673         func_emit_initmacro_done): Pass all arguments explicitly.
94674         (func_import): Determine two module lists main_modules,
94675         testsrelated_modules. Determine use_libtests. Determine two variables
94676         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94677         instead of just sed_transform_lib_file. Determine two variables
94678         main_files and testsrelated_files. Compute 'files' as the union of
94679         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94680         func_add_or_update. In the generated gnulib-comp.m4, collect the
94681         object files for tests/ in different variables than those for lib/.
94682         Substitute LIBTESTS_LIBDEPS.
94683         (func_create_testdir): Combine the uses_subdirs results from
94684         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94686 2007-12-09  Bruno Haible  <bruno@clisp.org>
94688         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94689         the build-aux directory.
94691 2007-12-09  Bruno Haible  <bruno@clisp.org>
94693         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94694         introduced on 2006-09-09.
94696 2007-12-07  Jim Meyering  <meyering@redhat.com>
94698         Let these macros work also with autoconf-2.59.
94699         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94700         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94701         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94703 2007-12-06  Jim Meyering  <meyering@redhat.com>
94705         Avoid a configure-time syntax error in gl_FUNC_ACL.
94706         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94707         function in each branch, before testing the cache variable.
94709 2007-12-04  Eric Blake  <ebb9@byu.net>
94711         Make scripts executable.
94712         * build-aux/config.guess: Add execute permissions.
94713         * build-aux/config.sub: Likewise.
94714         * build-aux/gendocs.sh: Likewise.
94716         Fix frexp on mingw.
94717         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
94718         cross-compiling.
94719         * doc/functions/frexp.texi (frexp): Document the bug.
94721         Make cygwin fseeko check more reliable.
94722         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
94723         version numbers, rather than unrelated feature check.
94724         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
94725         * doc/functions/ftello.texi (ftello): Likewise.
94726         Reported by Bruno Haible.
94728         * m4/strerror.m4: Bump version number.
94730 2007-12-03  Bruno Haible  <bruno@clisp.org>
94732         * doc/functions/mprotect.texi: Mention the mingw problem.
94734 2007-12-03  Eric Blake  <ebb9@byu.net>
94736         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
94737         REPLACE_STRERROR is initialized before this macro.
94739 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94741         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
94742         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
94743         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
94744         put -lsec in even for programs other than 'ls'.  This fixes a problem
94745         for gettext reported by Bruno Haible in
94746         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
94747         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
94748         Add support for Solaris 10.  This isn't efficient, but should get the
94749         job done for now.
94751 2007-12-03  James Youngman  <jay@gnu.org>
94753         * doc/regexprops-generic.texi: change "an close-group" to "a
94754         close-group" and "illegal" to "not allowed".
94756 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94758         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
94759         pr_byname.h. Needed for the rare case when the maintainer has done
94760         "make maintainer-clean" in the source directory and then attempts a
94761         build outside the source directory.
94762         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
94763         scripts_byname.h.
94765 2007-12-02  Martin Lambers  <marlam@marlam.de>
94766             Bruno Haible  <bruno@clisp.org>
94768         * lib/getpagesize.h: Remove file.
94769         * lib/unistd.in.h: Include declaration of getpagesize here.
94770         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
94771         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
94772         HAVE_SYS_PARAM_H.
94773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
94774         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94775         * modules/getpagesize (Files): Remove lib/getpagesize.h.
94776         (Depends-on): Add unistd.
94777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
94778         (Include): Use <unistd.h> instead of getpagesize.h.
94779         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
94780         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94781         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
94782         gl_GETPAGESIZE invocation, already handled by module dependency.
94783         * lib/pagealign_alloc.c: Don't include getpagesize.h.
94785 2007-12-02  Bruno Haible  <bruno@clisp.org>
94787         * modules/strings-tests: New file.
94788         * tests/test-strings.c: New file.
94790         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
94791         * lib/strings.in.h: New file.
94792         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
94793         * m4/strings_h.m4: New file.
94794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
94795         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94796         * modules/strings: New file.
94797         * modules/string (Makefile.am): Update.
94798         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
94799         Reported by Karl Berry.
94801 2007-12-01  Eric Blake  <ebb9@byu.net>
94803         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
94804         accommodate fix in cygwin 1.5.25.
94806 2007-12-01  Jim Meyering  <meyering@redhat.com>
94808         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94809         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94810         that would inhibit utf8-optimization of a regexp containing line-
94811         or buffer-anchors, e.g., `^', `$'.
94813 2007-11-30  Bruno Haible  <bruno@clisp.org>
94815         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94816         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94817         glthread_recursive_lock_init.
94818         * lib/lock.c (glthread_recursive_lock_init)
94819         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94820         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94822 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94824         New function qset_acl, like set_acl but with syscall semantics.
94825         * lib/acl.h (qset_acl): New decl.
94826         * lib/acl.c (qset_acl): New function.
94827         (set_acl): Use new function.  Use more-consistent diagnostics.
94829 2007-11-28  Jim Meyering  <meyering@redhat.com>
94831         * modules/physmem (License): Change from GPL to LGPLv2+.
94833 2007-11-26  Bruno Haible  <bruno@clisp.org>
94835         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94836         'long double' type has excess precision.
94837         Reported by Jim Meyering in
94838         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94840 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94842         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94843         Sync from <http://gnu.org/licenses>.
94844         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94845         with license text from same location.
94846         * doc/maintain.texi, doc/standards.texi:  Sync from
94847         <http://savannah.gnu.org/projects/gnustandards>.
94849 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94850         and Jim Meyering  <meyering@redhat.com>
94852         Adjust getdate' grammar to accept a slightly more regular language.
94853         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94854         Before, the former was rejected.
94855         * lib/getdate.y (digits_to_date_time): New function, factored
94856         out of ...
94857         (number): ...here.  Just call digits_to_date_time.
94858         (hybrid): New non-terminal to handle an <unsigned number,
94859         signed relative offset> sequence consistently.
94861 2007-11-18  Jim Meyering  <meyering@redhat.com>
94863         Pull my changes from coreutils:
94864         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94865         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94866         use of $gnulib_tool_option_extras, so that it's separated from the
94867         preceding argument.
94869         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94870         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94871         parent destination directories before copying a file into place.
94873 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94875         bootstrap: work also with 4-argument variant of AC_INIT
94876         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94878 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94880         Port test-getaddrinfo to Solaris.
94881         Problem reported by Bruno Haible in
94882         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94883         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94884         explanation of setting 'hints'.
94885         Don't reject an implementation merely because it returns EAI_SERVICE.
94886         (EAI_SERVICE): Define to 0 if not defined.
94888 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94890         The license of gnu-make and posix-shell is now "GPLed build tool".
94891         * modules/gnu-make (License): Likewise.
94892         * modules/posix-shell (License): Likewise.
94894         New module posix-shell, for determining a POSIX shell
94895         or perhaps something that is close enough to a POSIX shell.
94896         * m4/posix-shell.m4: New file.
94897         * modules/posix-shell: New file.
94899         * MODULES.html.sh: Mention new module.
94901         New module gnu-make, for determining whether we're using GNU Make.
94902         * m4/gnu-make.m4: New file.
94903         * modules/gnu-make: New file.
94904         * MODULES.html.sh: Mention new module.
94906 2007-11-14  Jim Meyering  <meyering@redhat.com>
94908         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94909         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94910         use this macro to create a function _definition_.
94911         Remove useless "#undef ARGMATCH_DIE".
94913 2007-11-14  Bruno Haible  <bruno@clisp.org>
94915         * lib/config.charset: Update for OpenBSD 4.1.
94916         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94918 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94920         Document 64-bit #if problems in stdint.texi.
94921         * doc/headers/stdint.texi (stdint.h): Mention problems with
94922         64-bit-#if, and how to work around them.
94924         Don't insist on 'long long int' support in the preprocessor.  It
94925         breaks too many things.  For example, PRIdMAX still uses a 'long
94926         long int' format with the latest Sun compiler, even though
94927         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94928         preprocessor problem.  This causes the latest coreutils to dump
94929         core on Solaris 10 sparc with the Sun C compiler.
94930         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94931         the troublesome expressions at configure-time, not at #if-time.
94932         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94933         preprocessor.
94934         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94935         compile-time C checks, done at 'configure'-time.
94936         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94937         * modules/inttypes (Makefile): Substitute the new symbols that
94938         gl_INTTYPES_H now generates.
94939         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94941 2007-11-12  Bruno Haible  <bruno@clisp.org>
94943         Tests for Unicode character classification functions.
94945         * modules/unictype/bidicategory-byname-tests: New file.
94946         * modules/unictype/bidicategory-name-tests: New file.
94947         * modules/unictype/bidicategory-of-tests: New file.
94948         * modules/unictype/bidicategory-test-tests: New file.
94949         * modules/unictype/block-list-tests: New file.
94950         * modules/unictype/block-of-tests: New file.
94951         * modules/unictype/block-test-tests: New file.
94952         * modules/unictype/category-C-tests: New file.
94953         * modules/unictype/category-Cc-tests: New file.
94954         * modules/unictype/category-Cf-tests: New file.
94955         * modules/unictype/category-Cn-tests: New file.
94956         * modules/unictype/category-Co-tests: New file.
94957         * modules/unictype/category-Cs-tests: New file.
94958         * modules/unictype/category-L-tests: New file.
94959         * modules/unictype/category-Ll-tests: New file.
94960         * modules/unictype/category-Lm-tests: New file.
94961         * modules/unictype/category-Lo-tests: New file.
94962         * modules/unictype/category-Lt-tests: New file.
94963         * modules/unictype/category-Lu-tests: New file.
94964         * modules/unictype/category-M-tests: New file.
94965         * modules/unictype/category-Mc-tests: New file.
94966         * modules/unictype/category-Me-tests: New file.
94967         * modules/unictype/category-Mn-tests: New file.
94968         * modules/unictype/category-N-tests: New file.
94969         * modules/unictype/category-Nd-tests: New file.
94970         * modules/unictype/category-Nl-tests: New file.
94971         * modules/unictype/category-No-tests: New file.
94972         * modules/unictype/category-P-tests: New file.
94973         * modules/unictype/category-Pc-tests: New file.
94974         * modules/unictype/category-Pd-tests: New file.
94975         * modules/unictype/category-Pe-tests: New file.
94976         * modules/unictype/category-Pf-tests: New file.
94977         * modules/unictype/category-Pi-tests: New file.
94978         * modules/unictype/category-Po-tests: New file.
94979         * modules/unictype/category-Ps-tests: New file.
94980         * modules/unictype/category-S-tests: New file.
94981         * modules/unictype/category-Sc-tests: New file.
94982         * modules/unictype/category-Sk-tests: New file.
94983         * modules/unictype/category-Sm-tests: New file.
94984         * modules/unictype/category-So-tests: New file.
94985         * modules/unictype/category-Z-tests: New file.
94986         * modules/unictype/category-Zl-tests: New file.
94987         * modules/unictype/category-Zp-tests: New file.
94988         * modules/unictype/category-Zs-tests: New file.
94989         * modules/unictype/category-and-not-tests: New file.
94990         * modules/unictype/category-and-tests: New file.
94991         * modules/unictype/category-byname-tests: New file.
94992         * modules/unictype/category-name-tests: New file.
94993         * modules/unictype/category-none-tests: New file.
94994         * modules/unictype/category-of-tests: New file.
94995         * modules/unictype/category-or-tests: New file.
94996         * modules/unictype/category-test-withtable-tests: New file.
94997         * modules/unictype/combining-class-tests: New file.
94998         * modules/unictype/ctype-alnum-tests: New file.
94999         * modules/unictype/ctype-alpha-tests: New file.
95000         * modules/unictype/ctype-blank-tests: New file.
95001         * modules/unictype/ctype-cntrl-tests: New file.
95002         * modules/unictype/ctype-digit-tests: New file.
95003         * modules/unictype/ctype-graph-tests: New file.
95004         * modules/unictype/ctype-lower-tests: New file.
95005         * modules/unictype/ctype-print-tests: New file.
95006         * modules/unictype/ctype-punct-tests: New file.
95007         * modules/unictype/ctype-space-tests: New file.
95008         * modules/unictype/ctype-upper-tests: New file.
95009         * modules/unictype/ctype-xdigit-tests: New file.
95010         * modules/unictype/decimal-digit-tests: New file.
95011         * modules/unictype/digit-tests: New file.
95012         * modules/unictype/mirror-tests: New file.
95013         * modules/unictype/numeric-tests: New file.
95014         * modules/unictype/property-alphabetic-tests: New file.
95015         * modules/unictype/property-ascii-hex-digit-tests: New file.
95016         * modules/unictype/property-bidi-arabic-digit-tests: New file.
95017         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
95018         * modules/unictype/property-bidi-block-separator-tests: New file.
95019         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
95020         * modules/unictype/property-bidi-common-separator-tests: New file.
95021         * modules/unictype/property-bidi-control-tests: New file.
95022         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
95023         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
95024         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
95025         * modules/unictype/property-bidi-european-digit-tests: New file.
95026         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
95027         * modules/unictype/property-bidi-left-to-right-tests: New file.
95028         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
95029         * modules/unictype/property-bidi-other-neutral-tests: New file.
95030         * modules/unictype/property-bidi-pdf-tests: New file.
95031         * modules/unictype/property-bidi-segment-separator-tests: New file.
95032         * modules/unictype/property-bidi-whitespace-tests: New file.
95033         * modules/unictype/property-byname-tests: New file.
95034         * modules/unictype/property-combining-tests: New file.
95035         * modules/unictype/property-composite-tests: New file.
95036         * modules/unictype/property-currency-symbol-tests: New file.
95037         * modules/unictype/property-dash-tests: New file.
95038         * modules/unictype/property-decimal-digit-tests: New file.
95039         * modules/unictype/property-default-ignorable-code-point-tests: New file.
95040         * modules/unictype/property-deprecated-tests: New file.
95041         * modules/unictype/property-diacritic-tests: New file.
95042         * modules/unictype/property-extender-tests: New file.
95043         * modules/unictype/property-format-control-tests: New file.
95044         * modules/unictype/property-grapheme-base-tests: New file.
95045         * modules/unictype/property-grapheme-extend-tests: New file.
95046         * modules/unictype/property-grapheme-link-tests: New file.
95047         * modules/unictype/property-hex-digit-tests: New file.
95048         * modules/unictype/property-hyphen-tests: New file.
95049         * modules/unictype/property-id-continue-tests: New file.
95050         * modules/unictype/property-id-start-tests: New file.
95051         * modules/unictype/property-ideographic-tests: New file.
95052         * modules/unictype/property-ids-binary-operator-tests: New file.
95053         * modules/unictype/property-ids-trinary-operator-tests: New file.
95054         * modules/unictype/property-ignorable-control-tests: New file.
95055         * modules/unictype/property-iso-control-tests: New file.
95056         * modules/unictype/property-join-control-tests: New file.
95057         * modules/unictype/property-left-of-pair-tests: New file.
95058         * modules/unictype/property-line-separator-tests: New file.
95059         * modules/unictype/property-logical-order-exception-tests: New file.
95060         * modules/unictype/property-lowercase-tests: New file.
95061         * modules/unictype/property-math-tests: New file.
95062         * modules/unictype/property-non-break-tests: New file.
95063         * modules/unictype/property-not-a-character-tests: New file.
95064         * modules/unictype/property-numeric-tests: New file.
95065         * modules/unictype/property-other-alphabetic-tests: New file.
95066         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
95067         * modules/unictype/property-other-grapheme-extend-tests: New file.
95068         * modules/unictype/property-other-id-continue-tests: New file.
95069         * modules/unictype/property-other-id-start-tests: New file.
95070         * modules/unictype/property-other-lowercase-tests: New file.
95071         * modules/unictype/property-other-math-tests: New file.
95072         * modules/unictype/property-other-uppercase-tests: New file.
95073         * modules/unictype/property-paired-punctuation-tests: New file.
95074         * modules/unictype/property-paragraph-separator-tests: New file.
95075         * modules/unictype/property-pattern-syntax-tests: New file.
95076         * modules/unictype/property-pattern-white-space-tests: New file.
95077         * modules/unictype/property-private-use-tests: New file.
95078         * modules/unictype/property-punctuation-tests: New file.
95079         * modules/unictype/property-quotation-mark-tests: New file.
95080         * modules/unictype/property-radical-tests: New file.
95081         * modules/unictype/property-sentence-terminal-tests: New file.
95082         * modules/unictype/property-soft-dotted-tests: New file.
95083         * modules/unictype/property-space-tests: New file.
95084         * modules/unictype/property-terminal-punctuation-tests: New file.
95085         * modules/unictype/property-test-tests: New file.
95086         * modules/unictype/property-titlecase-tests: New file.
95087         * modules/unictype/property-unassigned-code-value-tests: New file.
95088         * modules/unictype/property-unified-ideograph-tests: New file.
95089         * modules/unictype/property-uppercase-tests: New file.
95090         * modules/unictype/property-variation-selector-tests: New file.
95091         * modules/unictype/property-white-space-tests: New file.
95092         * modules/unictype/property-xid-continue-tests: New file.
95093         * modules/unictype/property-xid-start-tests: New file.
95094         * modules/unictype/property-zero-width-tests: New file.
95095         * modules/unictype/scripts-tests: New file.
95096         * modules/unictype/syntax-c-ident-tests: New file.
95097         * modules/unictype/syntax-c-whitespace-tests: New file.
95098         * modules/unictype/syntax-java-ident-tests: New file.
95099         * modules/unictype/syntax-java-whitespace-tests: New file.
95100         * tests/unictype/test-bidi_byname.c: New file.
95101         * tests/unictype/test-bidi_name.c: New file.
95102         * tests/unictype/test-bidi_of.c: New file.
95103         * tests/unictype/test-bidi_test.c: New file.
95104         * tests/unictype/test-block_list.c: New file.
95105         * tests/unictype/test-block_of.c: New file.
95106         * tests/unictype/test-block_test.c: New file.
95107         * tests/unictype/test-categ_and.c: New file.
95108         * tests/unictype/test-categ_and_not.c: New file.
95109         * tests/unictype/test-categ_byname.c: New file.
95110         * tests/unictype/test-categ_name.c: New file.
95111         * tests/unictype/test-categ_none.c: New file.
95112         * tests/unictype/test-categ_of.c: New file.
95113         * tests/unictype/test-categ_or.c: New file.
95114         * tests/unictype/test-categ_test_withtable.c: New file.
95115         * tests/unictype/test-combining.c: New file.
95116         * tests/unictype/test-decdigit.c: New file.
95117         * tests/unictype/test-digit.c: New file.
95118         * tests/unictype/test-mirror.c: New file.
95119         * tests/unictype/test-numeric.c: New file.
95120         * tests/unictype/test-pr_byname.c: New file.
95121         * tests/unictype/test-pr_test.c: New file.
95122         * tests/unictype/test-predicate-part1.h: New file.
95123         * tests/unictype/test-predicate-part2.h: New file.
95124         * tests/unictype/test-scripts.c: New file.
95125         * tests/unictype/test-sy_c_ident.c: New file.
95126         * tests/unictype/test-sy_java_ident.c: New file.
95128         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
95129         for Unicode 5.0.0.
95130         * tests/unictype/test-categ_Cc.c: Likewise.
95131         * tests/unictype/test-categ_Cf.c: Likewise.
95132         * tests/unictype/test-categ_Cn.c: Likewise.
95133         * tests/unictype/test-categ_Co.c: Likewise.
95134         * tests/unictype/test-categ_Cs.c: Likewise.
95135         * tests/unictype/test-categ_L.c: Likewise.
95136         * tests/unictype/test-categ_Ll.c: Likewise.
95137         * tests/unictype/test-categ_Lm.c: Likewise.
95138         * tests/unictype/test-categ_Lo.c: Likewise.
95139         * tests/unictype/test-categ_Lt.c: Likewise.
95140         * tests/unictype/test-categ_Lu.c: Likewise.
95141         * tests/unictype/test-categ_M.c: Likewise.
95142         * tests/unictype/test-categ_Mc.c: Likewise.
95143         * tests/unictype/test-categ_Me.c: Likewise.
95144         * tests/unictype/test-categ_Mn.c: Likewise.
95145         * tests/unictype/test-categ_N.c: Likewise.
95146         * tests/unictype/test-categ_Nd.c: Likewise.
95147         * tests/unictype/test-categ_Nl.c: Likewise.
95148         * tests/unictype/test-categ_No.c: Likewise.
95149         * tests/unictype/test-categ_P.c: Likewise.
95150         * tests/unictype/test-categ_Pc.c: Likewise.
95151         * tests/unictype/test-categ_Pd.c: Likewise.
95152         * tests/unictype/test-categ_Pe.c: Likewise.
95153         * tests/unictype/test-categ_Pf.c: Likewise.
95154         * tests/unictype/test-categ_Pi.c: Likewise.
95155         * tests/unictype/test-categ_Po.c: Likewise.
95156         * tests/unictype/test-categ_Ps.c: Likewise.
95157         * tests/unictype/test-categ_S.c: Likewise.
95158         * tests/unictype/test-categ_Sc.c: Likewise.
95159         * tests/unictype/test-categ_Sk.c: Likewise.
95160         * tests/unictype/test-categ_Sm.c: Likewise.
95161         * tests/unictype/test-categ_So.c: Likewise.
95162         * tests/unictype/test-categ_Z.c: Likewise.
95163         * tests/unictype/test-categ_Zl.c: Likewise.
95164         * tests/unictype/test-categ_Zp.c: Likewise.
95165         * tests/unictype/test-categ_Zs.c: Likewise.
95166         * tests/unictype/test-ctype_alnum.c: Likewise.
95167         * tests/unictype/test-ctype_alpha.c: Likewise.
95168         * tests/unictype/test-ctype_blank.c: Likewise.
95169         * tests/unictype/test-ctype_cntrl.c: Likewise.
95170         * tests/unictype/test-ctype_digit.c: Likewise.
95171         * tests/unictype/test-ctype_graph.c: Likewise.
95172         * tests/unictype/test-ctype_lower.c: Likewise.
95173         * tests/unictype/test-ctype_print.c: Likewise.
95174         * tests/unictype/test-ctype_punct.c: Likewise.
95175         * tests/unictype/test-ctype_space.c: Likewise.
95176         * tests/unictype/test-ctype_upper.c: Likewise.
95177         * tests/unictype/test-ctype_xdigit.c: Likewise.
95178         * tests/unictype/test-decdigit.h: Likewise.
95179         * tests/unictype/test-digit.h: Likewise.
95180         * tests/unictype/test-numeric.h: Likewise.
95181         * tests/unictype/test-pr_alphabetic.c: Likewise.
95182         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
95183         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
95184         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
95185         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
95186         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
95187         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
95188         * tests/unictype/test-pr_bidi_control.c: Likewise.
95189         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
95190         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
95191         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
95192         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
95193         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
95194         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
95195         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
95196         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
95197         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
95198         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
95199         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
95200         * tests/unictype/test-pr_combining.c: Likewise.
95201         * tests/unictype/test-pr_composite.c: Likewise.
95202         * tests/unictype/test-pr_currency_symbol.c: Likewise.
95203         * tests/unictype/test-pr_dash.c: Likewise.
95204         * tests/unictype/test-pr_decimal_digit.c: Likewise.
95205         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
95206         * tests/unictype/test-pr_deprecated.c: Likewise.
95207         * tests/unictype/test-pr_diacritic.c: Likewise.
95208         * tests/unictype/test-pr_extender.c: Likewise.
95209         * tests/unictype/test-pr_format_control.c: Likewise.
95210         * tests/unictype/test-pr_grapheme_base.c: Likewise.
95211         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
95212         * tests/unictype/test-pr_grapheme_link.c: Likewise.
95213         * tests/unictype/test-pr_hex_digit.c: Likewise.
95214         * tests/unictype/test-pr_hyphen.c: Likewise.
95215         * tests/unictype/test-pr_id_continue.c: Likewise.
95216         * tests/unictype/test-pr_id_start.c: Likewise.
95217         * tests/unictype/test-pr_ideographic.c: Likewise.
95218         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
95219         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
95220         * tests/unictype/test-pr_ignorable_control.c: Likewise.
95221         * tests/unictype/test-pr_iso_control.c: Likewise.
95222         * tests/unictype/test-pr_join_control.c: Likewise.
95223         * tests/unictype/test-pr_left_of_pair.c: Likewise.
95224         * tests/unictype/test-pr_line_separator.c: Likewise.
95225         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
95226         * tests/unictype/test-pr_lowercase.c: Likewise.
95227         * tests/unictype/test-pr_math.c: Likewise.
95228         * tests/unictype/test-pr_non_break.c: Likewise.
95229         * tests/unictype/test-pr_not_a_character.c: Likewise.
95230         * tests/unictype/test-pr_numeric.c: Likewise.
95231         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
95232         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
95233         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
95234         * tests/unictype/test-pr_other_id_continue.c: Likewise.
95235         * tests/unictype/test-pr_other_id_start.c: Likewise.
95236         * tests/unictype/test-pr_other_lowercase.c: Likewise.
95237         * tests/unictype/test-pr_other_math.c: Likewise.
95238         * tests/unictype/test-pr_other_uppercase.c: Likewise.
95239         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
95240         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
95241         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
95242         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
95243         * tests/unictype/test-pr_private_use.c: Likewise.
95244         * tests/unictype/test-pr_punctuation.c: Likewise.
95245         * tests/unictype/test-pr_quotation_mark.c: Likewise.
95246         * tests/unictype/test-pr_radical.c: Likewise.
95247         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
95248         * tests/unictype/test-pr_soft_dotted.c: Likewise.
95249         * tests/unictype/test-pr_space.c: Likewise.
95250         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
95251         * tests/unictype/test-pr_titlecase.c: Likewise.
95252         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
95253         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
95254         * tests/unictype/test-pr_uppercase.c: Likewise.
95255         * tests/unictype/test-pr_variation_selector.c: Likewise.
95256         * tests/unictype/test-pr_white_space.c: Likewise.
95257         * tests/unictype/test-pr_xid_continue.c: Likewise.
95258         * tests/unictype/test-pr_xid_start.c: Likewise.
95259         * tests/unictype/test-pr_zero_width.c: Likewise.
95260         * tests/unictype/test-sy_c_whitespace.c: Likewise.
95261         * tests/unictype/test-sy_java_whitespace.c: Likewise.
95263 2007-11-12  Bruno Haible  <bruno@clisp.org>
95265         Unicode character classification functions.
95266         * lib/unictype.h: New file.
95267         * modules/unictype/base: New file.
95268         * modules/unictype/category-L: New file.
95269         * modules/unictype/category-Lu: New file.
95270         * modules/unictype/category-Ll: New file.
95271         * modules/unictype/category-Lt: New file.
95272         * modules/unictype/category-Lm: New file.
95273         * modules/unictype/category-Lo: New file.
95274         * modules/unictype/category-M: New file.
95275         * modules/unictype/category-Mn: New file.
95276         * modules/unictype/category-Mc: New file.
95277         * modules/unictype/category-Me: New file.
95278         * modules/unictype/category-N: New file.
95279         * modules/unictype/category-Nd: New file.
95280         * modules/unictype/category-Nl: New file.
95281         * modules/unictype/category-No: New file.
95282         * modules/unictype/category-P: New file.
95283         * modules/unictype/category-Pc: New file.
95284         * modules/unictype/category-Pd: New file.
95285         * modules/unictype/category-Ps: New file.
95286         * modules/unictype/category-Pe: New file.
95287         * modules/unictype/category-Pi: New file.
95288         * modules/unictype/category-Pf: New file.
95289         * modules/unictype/category-Po: New file.
95290         * modules/unictype/category-S: New file.
95291         * modules/unictype/category-Sm: New file.
95292         * modules/unictype/category-Sc: New file.
95293         * modules/unictype/category-Sk: New file.
95294         * modules/unictype/category-So: New file.
95295         * modules/unictype/category-Z: New file.
95296         * modules/unictype/category-Zs: New file.
95297         * modules/unictype/category-Zl: New file.
95298         * modules/unictype/category-Zp: New file.
95299         * modules/unictype/category-C: New file.
95300         * modules/unictype/category-Cc: New file.
95301         * modules/unictype/category-Cf: New file.
95302         * modules/unictype/category-Cs: New file.
95303         * modules/unictype/category-Co: New file.
95304         * modules/unictype/category-Cn: New file.
95305         * modules/unictype/category-or: New file.
95306         * modules/unictype/category-of: New file.
95307         * modules/unictype/category-test: New file.
95308         * modules/unictype/category-test-withtable: New file.
95309         * modules/unictype/category-byname: New file.
95310         * modules/unictype/category-none: New file.
95311         * modules/unictype/category-and: New file.
95312         * modules/unictype/category-and-not: New file.
95313         * modules/unictype/category-name: New file.
95314         * modules/unictype/combining-class: New file.
95315         * modules/unictype/category-all: New file.
95316         * modules/unictype/bidicategory-all: New file.
95317         * modules/unictype/bidicategory-byname: New file.
95318         * modules/unictype/bidicategory-name: New file.
95319         * modules/unictype/bidicategory-of: New file.
95320         * modules/unictype/bidicategory-test: New file.
95321         * modules/unictype/decimal-digit: New file.
95322         * modules/unictype/digit: New file.
95323         * modules/unictype/numeric: New file.
95324         * modules/unictype/mirror: New file.
95325         * modules/unictype/property-white-space: New file.
95326         * modules/unictype/property-alphabetic: New file.
95327         * modules/unictype/property-other-alphabetic: New file.
95328         * modules/unictype/property-not-a-character: New file.
95329         * modules/unictype/property-default-ignorable-code-point: New file.
95330         * modules/unictype/property-other-default-ignorable-code-point: New
95331         file.
95332         * modules/unictype/property-deprecated: New file.
95333         * modules/unictype/property-logical-order-exception: New file.
95334         * modules/unictype/property-variation-selector: New file.
95335         * modules/unictype/property-private-use: New file.
95336         * modules/unictype/property-unassigned-code-value: New file.
95337         * modules/unictype/property-uppercase: New file.
95338         * modules/unictype/property-other-uppercase: New file.
95339         * modules/unictype/property-lowercase: New file.
95340         * modules/unictype/property-other-lowercase: New file.
95341         * modules/unictype/property-titlecase: New file.
95342         * modules/unictype/property-soft-dotted: New file.
95343         * modules/unictype/property-id-start: New file.
95344         * modules/unictype/property-other-id-start: New file.
95345         * modules/unictype/property-id-continue: New file.
95346         * modules/unictype/property-other-id-continue: New file.
95347         * modules/unictype/property-xid-start: New file.
95348         * modules/unictype/property-xid-continue: New file.
95349         * modules/unictype/property-pattern-white-space: New file.
95350         * modules/unictype/property-pattern-syntax: New file.
95351         * modules/unictype/property-join-control: New file.
95352         * modules/unictype/property-grapheme-base: New file.
95353         * modules/unictype/property-grapheme-extend: New file.
95354         * modules/unictype/property-other-grapheme-extend: New file.
95355         * modules/unictype/property-grapheme-link: New file.
95356         * modules/unictype/property-bidi-control: New file.
95357         * modules/unictype/property-bidi-left-to-right: New file.
95358         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
95359         * modules/unictype/property-bidi-arabic-right-to-left: New file.
95360         * modules/unictype/property-bidi-european-digit: New file.
95361         * modules/unictype/property-bidi-eur-num-separator: New file.
95362         * modules/unictype/property-bidi-eur-num-terminator: New file.
95363         * modules/unictype/property-bidi-arabic-digit: New file.
95364         * modules/unictype/property-bidi-common-separator: New file.
95365         * modules/unictype/property-bidi-block-separator: New file.
95366         * modules/unictype/property-bidi-segment-separator: New file.
95367         * modules/unictype/property-bidi-whitespace: New file.
95368         * modules/unictype/property-bidi-non-spacing-mark: New file.
95369         * modules/unictype/property-bidi-boundary-neutral: New file.
95370         * modules/unictype/property-bidi-pdf: New file.
95371         * modules/unictype/property-bidi-embedding-or-override: New file.
95372         * modules/unictype/property-bidi-other-neutral: New file.
95373         * modules/unictype/property-hex-digit: New file.
95374         * modules/unictype/property-ascii-hex-digit: New file.
95375         * modules/unictype/property-ideographic: New file.
95376         * modules/unictype/property-unified-ideograph: New file.
95377         * modules/unictype/property-radical: New file.
95378         * modules/unictype/property-ids-binary-operator: New file.
95379         * modules/unictype/property-ids-trinary-operator: New file.
95380         * modules/unictype/property-zero-width: New file.
95381         * modules/unictype/property-space: New file.
95382         * modules/unictype/property-non-break: New file.
95383         * modules/unictype/property-iso-control: New file.
95384         * modules/unictype/property-format-control: New file.
95385         * modules/unictype/property-dash: New file.
95386         * modules/unictype/property-hyphen: New file.
95387         * modules/unictype/property-punctuation: New file.
95388         * modules/unictype/property-line-separator: New file.
95389         * modules/unictype/property-paragraph-separator: New file.
95390         * modules/unictype/property-quotation-mark: New file.
95391         * modules/unictype/property-sentence-terminal: New file.
95392         * modules/unictype/property-terminal-punctuation: New file.
95393         * modules/unictype/property-currency-symbol: New file.
95394         * modules/unictype/property-math: New file.
95395         * modules/unictype/property-other-math: New file.
95396         * modules/unictype/property-paired-punctuation: New file.
95397         * modules/unictype/property-left-of-pair: New file.
95398         * modules/unictype/property-combining: New file.
95399         * modules/unictype/property-composite: New file.
95400         * modules/unictype/property-decimal-digit: New file.
95401         * modules/unictype/property-numeric: New file.
95402         * modules/unictype/property-diacritic: New file.
95403         * modules/unictype/property-extender: New file.
95404         * modules/unictype/property-ignorable-control: New file.
95405         * modules/unictype/property-test: New file.
95406         * modules/unictype/property-byname: New file.
95407         * modules/unictype/property-all: New file.
95408         * modules/unictype/scripts: New file.
95409         * modules/unictype/scripts-all: New file.
95410         * modules/unictype/block-of: New file.
95411         * modules/unictype/block-test: New file.
95412         * modules/unictype/block-list: New file.
95413         * modules/unictype/block-all: New file.
95414         * modules/unictype/syntax-c-whitespace: New file.
95415         * modules/unictype/syntax-java-whitespace: New file.
95416         * modules/unictype/syntax-c-ident: New file.
95417         * modules/unictype/syntax-java-ident: New file.
95418         * modules/unictype/ctype-alnum: New file.
95419         * modules/unictype/ctype-alpha: New file.
95420         * modules/unictype/ctype-cntrl: New file.
95421         * modules/unictype/ctype-digit: New file.
95422         * modules/unictype/ctype-graph: New file.
95423         * modules/unictype/ctype-lower: New file.
95424         * modules/unictype/ctype-print: New file.
95425         * modules/unictype/ctype-punct: New file.
95426         * modules/unictype/ctype-space: New file.
95427         * modules/unictype/ctype-upper: New file.
95428         * modules/unictype/ctype-xdigit: New file.
95429         * modules/unictype/ctype-blank: New file.
95430         * lib/unictype/bidi_byname.c: New file.
95431         * lib/unictype/bidi_name.c: New file.
95432         * lib/unictype/bidi_of.c: New file.
95433         * lib/unictype/bidi_test.c: New file.
95434         * lib/unictype/bitmap.h: New file.
95435         * lib/unictype/block_test.c: New file.
95436         * lib/unictype/blocks.c: New file.
95437         * lib/unictype/categ_C.c: New file.
95438         * lib/unictype/categ_Cc.c: New file.
95439         * lib/unictype/categ_Cf.c: New file.
95440         * lib/unictype/categ_Cn.c: New file.
95441         * lib/unictype/categ_Co.c: New file.
95442         * lib/unictype/categ_Cs.c: New file.
95443         * lib/unictype/categ_L.c: New file.
95444         * lib/unictype/categ_Ll.c: New file.
95445         * lib/unictype/categ_Lm.c: New file.
95446         * lib/unictype/categ_Lo.c: New file.
95447         * lib/unictype/categ_Lt.c: New file.
95448         * lib/unictype/categ_Lu.c: New file.
95449         * lib/unictype/categ_M.c: New file.
95450         * lib/unictype/categ_Mc.c: New file.
95451         * lib/unictype/categ_Me.c: New file.
95452         * lib/unictype/categ_Mn.c: New file.
95453         * lib/unictype/categ_N.c: New file.
95454         * lib/unictype/categ_Nd.c: New file.
95455         * lib/unictype/categ_Nl.c: New file.
95456         * lib/unictype/categ_No.c: New file.
95457         * lib/unictype/categ_P.c: New file.
95458         * lib/unictype/categ_Pc.c: New file.
95459         * lib/unictype/categ_Pd.c: New file.
95460         * lib/unictype/categ_Pe.c: New file.
95461         * lib/unictype/categ_Pf.c: New file.
95462         * lib/unictype/categ_Pi.c: New file.
95463         * lib/unictype/categ_Po.c: New file.
95464         * lib/unictype/categ_Ps.c: New file.
95465         * lib/unictype/categ_S.c: New file.
95466         * lib/unictype/categ_Sc.c: New file.
95467         * lib/unictype/categ_Sk.c: New file.
95468         * lib/unictype/categ_Sm.c: New file.
95469         * lib/unictype/categ_So.c: New file.
95470         * lib/unictype/categ_Z.c: New file.
95471         * lib/unictype/categ_Zl.c: New file.
95472         * lib/unictype/categ_Zp.c: New file.
95473         * lib/unictype/categ_Zs.c: New file.
95474         * lib/unictype/categ_and.c: New file.
95475         * lib/unictype/categ_and_not.c: New file.
95476         * lib/unictype/categ_byname.c: New file.
95477         * lib/unictype/categ_name.c: New file.
95478         * lib/unictype/categ_none.c: New file.
95479         * lib/unictype/categ_of.c: New file.
95480         * lib/unictype/categ_or.c: New file.
95481         * lib/unictype/categ_test.c: New file.
95482         * lib/unictype/combining.c: New file.
95483         * lib/unictype/ctype_alnum.c: New file.
95484         * lib/unictype/ctype_alpha.c: New file.
95485         * lib/unictype/ctype_blank.c: New file.
95486         * lib/unictype/ctype_cntrl.c: New file.
95487         * lib/unictype/ctype_digit.c: New file.
95488         * lib/unictype/ctype_graph.c: New file.
95489         * lib/unictype/ctype_lower.c: New file.
95490         * lib/unictype/ctype_print.c: New file.
95491         * lib/unictype/ctype_punct.c: New file.
95492         * lib/unictype/ctype_space.c: New file.
95493         * lib/unictype/ctype_upper.c: New file.
95494         * lib/unictype/ctype_xdigit.c: New file.
95495         * lib/unictype/decdigit.c: New file.
95496         * lib/unictype/digit.c: New file.
95497         * lib/unictype/identsyntaxmap.h: New file.
95498         * lib/unictype/mirror.c: New file.
95499         * lib/unictype/numeric.c: New file.
95500         * lib/unictype/pr_alphabetic.c: New file.
95501         * lib/unictype/pr_ascii_hex_digit.c: New file.
95502         * lib/unictype/pr_bidi_arabic_digit.c: New file.
95503         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
95504         * lib/unictype/pr_bidi_block_separator.c: New file.
95505         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
95506         * lib/unictype/pr_bidi_common_separator.c: New file.
95507         * lib/unictype/pr_bidi_control.c: New file.
95508         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
95509         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
95510         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
95511         * lib/unictype/pr_bidi_european_digit.c: New file.
95512         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
95513         * lib/unictype/pr_bidi_left_to_right.c: New file.
95514         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
95515         * lib/unictype/pr_bidi_other_neutral.c: New file.
95516         * lib/unictype/pr_bidi_pdf.c: New file.
95517         * lib/unictype/pr_bidi_segment_separator.c: New file.
95518         * lib/unictype/pr_bidi_whitespace.c: New file.
95519         * lib/unictype/pr_byname.c: New file.
95520         * lib/unictype/pr_byname.gperf: New file.
95521         * lib/unictype/pr_combining.c: New file.
95522         * lib/unictype/pr_composite.c: New file.
95523         * lib/unictype/pr_currency_symbol.c: New file.
95524         * lib/unictype/pr_dash.c: New file.
95525         * lib/unictype/pr_decimal_digit.c: New file.
95526         * lib/unictype/pr_default_ignorable_code_point.c: New file.
95527         * lib/unictype/pr_deprecated.c: New file.
95528         * lib/unictype/pr_diacritic.c: New file.
95529         * lib/unictype/pr_extender.c: New file.
95530         * lib/unictype/pr_format_control.c: New file.
95531         * lib/unictype/pr_grapheme_base.c: New file.
95532         * lib/unictype/pr_grapheme_extend.c: New file.
95533         * lib/unictype/pr_grapheme_link.c: New file.
95534         * lib/unictype/pr_hex_digit.c: New file.
95535         * lib/unictype/pr_hyphen.c: New file.
95536         * lib/unictype/pr_id_continue.c: New file.
95537         * lib/unictype/pr_id_start.c: New file.
95538         * lib/unictype/pr_ideographic.c: New file.
95539         * lib/unictype/pr_ids_binary_operator.c: New file.
95540         * lib/unictype/pr_ids_trinary_operator.c: New file.
95541         * lib/unictype/pr_ignorable_control.c: New file.
95542         * lib/unictype/pr_iso_control.c: New file.
95543         * lib/unictype/pr_join_control.c: New file.
95544         * lib/unictype/pr_left_of_pair.c: New file.
95545         * lib/unictype/pr_line_separator.c: New file.
95546         * lib/unictype/pr_logical_order_exception.c: New file.
95547         * lib/unictype/pr_lowercase.c: New file.
95548         * lib/unictype/pr_math.c: New file.
95549         * lib/unictype/pr_non_break.c: New file.
95550         * lib/unictype/pr_not_a_character.c: New file.
95551         * lib/unictype/pr_numeric.c: New file.
95552         * lib/unictype/pr_other_alphabetic.c: New file.
95553         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
95554         * lib/unictype/pr_other_grapheme_extend.c: New file.
95555         * lib/unictype/pr_other_id_continue.c: New file.
95556         * lib/unictype/pr_other_id_start.c: New file.
95557         * lib/unictype/pr_other_lowercase.c: New file.
95558         * lib/unictype/pr_other_math.c: New file.
95559         * lib/unictype/pr_other_uppercase.c: New file.
95560         * lib/unictype/pr_paired_punctuation.c: New file.
95561         * lib/unictype/pr_paragraph_separator.c: New file.
95562         * lib/unictype/pr_pattern_syntax.c: New file.
95563         * lib/unictype/pr_pattern_white_space.c: New file.
95564         * lib/unictype/pr_private_use.c: New file.
95565         * lib/unictype/pr_punctuation.c: New file.
95566         * lib/unictype/pr_quotation_mark.c: New file.
95567         * lib/unictype/pr_radical.c: New file.
95568         * lib/unictype/pr_sentence_terminal.c: New file.
95569         * lib/unictype/pr_soft_dotted.c: New file.
95570         * lib/unictype/pr_space.c: New file.
95571         * lib/unictype/pr_terminal_punctuation.c: New file.
95572         * lib/unictype/pr_test.c: New file.
95573         * lib/unictype/pr_titlecase.c: New file.
95574         * lib/unictype/pr_unassigned_code_value.c: New file.
95575         * lib/unictype/pr_unified_ideograph.c: New file.
95576         * lib/unictype/pr_uppercase.c: New file.
95577         * lib/unictype/pr_variation_selector.c: New file.
95578         * lib/unictype/pr_white_space.c: New file.
95579         * lib/unictype/pr_xid_continue.c: New file.
95580         * lib/unictype/pr_xid_start.c: New file.
95581         * lib/unictype/pr_zero_width.c: New file.
95582         * lib/unictype/scripts.c: New file.
95583         * lib/unictype/sy_c_ident.c: New file.
95584         * lib/unictype/sy_c_whitespace.c: New file.
95585         * lib/unictype/sy_java_ident.c: New file.
95586         * lib/unictype/sy_java_whitespace.c: New file.
95588         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
95589         Unicode 5.0.0.
95590         * lib/unictype/blocks.h: Likewise.
95591         * lib/unictype/categ_C.h: Likewise.
95592         * lib/unictype/categ_Cc.h: Likewise.
95593         * lib/unictype/categ_Cf.h: Likewise.
95594         * lib/unictype/categ_Cn.h: Likewise.
95595         * lib/unictype/categ_Co.h: Likewise.
95596         * lib/unictype/categ_Cs.h: Likewise.
95597         * lib/unictype/categ_L.h: Likewise.
95598         * lib/unictype/categ_Ll.h: Likewise.
95599         * lib/unictype/categ_Lm.h: Likewise.
95600         * lib/unictype/categ_Lo.h: Likewise.
95601         * lib/unictype/categ_Lt.h: Likewise.
95602         * lib/unictype/categ_Lu.h: Likewise.
95603         * lib/unictype/categ_M.h: Likewise.
95604         * lib/unictype/categ_Mc.h: Likewise.
95605         * lib/unictype/categ_Me.h: Likewise.
95606         * lib/unictype/categ_Mn.h: Likewise.
95607         * lib/unictype/categ_N.h: Likewise.
95608         * lib/unictype/categ_Nd.h: Likewise.
95609         * lib/unictype/categ_Nl.h: Likewise.
95610         * lib/unictype/categ_No.h: Likewise.
95611         * lib/unictype/categ_P.h: Likewise.
95612         * lib/unictype/categ_Pc.h: Likewise.
95613         * lib/unictype/categ_Pd.h: Likewise.
95614         * lib/unictype/categ_Pe.h: Likewise.
95615         * lib/unictype/categ_Pf.h: Likewise.
95616         * lib/unictype/categ_Pi.h: Likewise.
95617         * lib/unictype/categ_Po.h: Likewise.
95618         * lib/unictype/categ_Ps.h: Likewise.
95619         * lib/unictype/categ_S.h: Likewise.
95620         * lib/unictype/categ_Sc.h: Likewise.
95621         * lib/unictype/categ_Sk.h: Likewise.
95622         * lib/unictype/categ_Sm.h: Likewise.
95623         * lib/unictype/categ_So.h: Likewise.
95624         * lib/unictype/categ_Z.h: Likewise.
95625         * lib/unictype/categ_Zl.h: Likewise.
95626         * lib/unictype/categ_Zp.h: Likewise.
95627         * lib/unictype/categ_Zs.h: Likewise.
95628         * lib/unictype/categ_of.h: Likewise.
95629         * lib/unictype/combining.h: Likewise.
95630         * lib/unictype/ctype_alnum.h: Likewise.
95631         * lib/unictype/ctype_alpha.h: Likewise.
95632         * lib/unictype/ctype_blank.h: Likewise.
95633         * lib/unictype/ctype_cntrl.h: Likewise.
95634         * lib/unictype/ctype_digit.h: Likewise.
95635         * lib/unictype/ctype_graph.h: Likewise.
95636         * lib/unictype/ctype_lower.h: Likewise.
95637         * lib/unictype/ctype_print.h: Likewise.
95638         * lib/unictype/ctype_punct.h: Likewise.
95639         * lib/unictype/ctype_space.h: Likewise.
95640         * lib/unictype/ctype_upper.h: Likewise.
95641         * lib/unictype/ctype_xdigit.h: Likewise.
95642         * lib/unictype/decdigit.h: Likewise.
95643         * lib/unictype/digit.h: Likewise.
95644         * lib/unictype/mirror.h: Likewise.
95645         * lib/unictype/numeric.h: Likewise.
95646         * lib/unictype/pr_alphabetic.h: Likewise.
95647         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
95648         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
95649         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
95650         * lib/unictype/pr_bidi_block_separator.h: Likewise.
95651         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
95652         * lib/unictype/pr_bidi_common_separator.h: Likewise.
95653         * lib/unictype/pr_bidi_control.h: Likewise.
95654         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
95655         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
95656         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
95657         * lib/unictype/pr_bidi_european_digit.h: Likewise.
95658         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
95659         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
95660         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
95661         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
95662         * lib/unictype/pr_bidi_pdf.h: Likewise.
95663         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
95664         * lib/unictype/pr_bidi_whitespace.h: Likewise.
95665         * lib/unictype/pr_combining.h: Likewise.
95666         * lib/unictype/pr_composite.h: Likewise.
95667         * lib/unictype/pr_currency_symbol.h: Likewise.
95668         * lib/unictype/pr_dash.h: Likewise.
95669         * lib/unictype/pr_decimal_digit.h: Likewise.
95670         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95671         * lib/unictype/pr_deprecated.h: Likewise.
95672         * lib/unictype/pr_diacritic.h: Likewise.
95673         * lib/unictype/pr_extender.h: Likewise.
95674         * lib/unictype/pr_format_control.h: Likewise.
95675         * lib/unictype/pr_grapheme_base.h: Likewise.
95676         * lib/unictype/pr_grapheme_extend.h: Likewise.
95677         * lib/unictype/pr_grapheme_link.h: Likewise.
95678         * lib/unictype/pr_hex_digit.h: Likewise.
95679         * lib/unictype/pr_hyphen.h: Likewise.
95680         * lib/unictype/pr_id_continue.h: Likewise.
95681         * lib/unictype/pr_id_start.h: Likewise.
95682         * lib/unictype/pr_ideographic.h: Likewise.
95683         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95684         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95685         * lib/unictype/pr_ignorable_control.h: Likewise.
95686         * lib/unictype/pr_iso_control.h: Likewise.
95687         * lib/unictype/pr_join_control.h: Likewise.
95688         * lib/unictype/pr_left_of_pair.h: Likewise.
95689         * lib/unictype/pr_line_separator.h: Likewise.
95690         * lib/unictype/pr_logical_order_exception.h: Likewise.
95691         * lib/unictype/pr_lowercase.h: Likewise.
95692         * lib/unictype/pr_math.h: Likewise.
95693         * lib/unictype/pr_non_break.h: Likewise.
95694         * lib/unictype/pr_not_a_character.h: Likewise.
95695         * lib/unictype/pr_numeric.h: Likewise.
95696         * lib/unictype/pr_other_alphabetic.h: Likewise.
95697         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95698         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95699         * lib/unictype/pr_other_id_continue.h: Likewise.
95700         * lib/unictype/pr_other_id_start.h: Likewise.
95701         * lib/unictype/pr_other_lowercase.h: Likewise.
95702         * lib/unictype/pr_other_math.h: Likewise.
95703         * lib/unictype/pr_other_uppercase.h: Likewise.
95704         * lib/unictype/pr_paired_punctuation.h: Likewise.
95705         * lib/unictype/pr_paragraph_separator.h: Likewise.
95706         * lib/unictype/pr_pattern_syntax.h: Likewise.
95707         * lib/unictype/pr_pattern_white_space.h: Likewise.
95708         * lib/unictype/pr_private_use.h: Likewise.
95709         * lib/unictype/pr_punctuation.h: Likewise.
95710         * lib/unictype/pr_quotation_mark.h: Likewise.
95711         * lib/unictype/pr_radical.h: Likewise.
95712         * lib/unictype/pr_sentence_terminal.h: Likewise.
95713         * lib/unictype/pr_soft_dotted.h: Likewise.
95714         * lib/unictype/pr_space.h: Likewise.
95715         * lib/unictype/pr_terminal_punctuation.h: Likewise.
95716         * lib/unictype/pr_titlecase.h: Likewise.
95717         * lib/unictype/pr_unassigned_code_value.h: Likewise.
95718         * lib/unictype/pr_unified_ideograph.h: Likewise.
95719         * lib/unictype/pr_uppercase.h: Likewise.
95720         * lib/unictype/pr_variation_selector.h: Likewise.
95721         * lib/unictype/pr_white_space.h: Likewise.
95722         * lib/unictype/pr_xid_continue.h: Likewise.
95723         * lib/unictype/pr_xid_start.h: Likewise.
95724         * lib/unictype/pr_zero_width.h: Likewise.
95725         * lib/unictype/scripts.h: Likewise.
95726         * lib/unictype/scripts_byname.gperf: Likewise.
95727         * lib/unictype/sy_c_ident.h: Likewise.
95728         * lib/unictype/sy_c_whitespace.h: Likewise.
95729         * lib/unictype/sy_java_ident.h: Likewise.
95730         * lib/unictype/sy_java_whitespace.h: Likewise.
95732         * lib/unictype/Makefile: New file.
95733         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
95734         glibc.
95735         * lib/unictype/3level.h: New file, copied from glibc.
95736         * lib/unictype/3levelbit.h: New file.
95738 2007-11-11  Bruno Haible  <bruno@clisp.org>
95740         * modules/gperf: New file.
95741         * modules/iconv_open (Depends-on): Add it.
95742         (Makefile.am): Remove the GPERF definition.
95744 2007-11-11  Bruno Haible  <bruno@clisp.org>
95746         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
95747         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
95749 2007-11-11  Bruno Haible  <bruno@clisp.org>
95751         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
95752         (usage): Remove function.
95754 2007-11-11  Bruno Haible  <bruno@clisp.org>
95756         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
95757         gl_FUNC_CEILF_LIBS.
95758         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
95759         gl_FUNC_CEIL_LIBS.
95760         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
95761         gl_FUNC_CEILL_LIBS.
95762         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
95763         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
95764         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
95766 2007-11-11  Bruno Haible  <bruno@clisp.org>
95768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
95769         roundf were declared but do not exist on functions.
95770         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
95771         roundl were declared but do not exist on functions.
95772         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
95773         HAVE_FLOORL_AND_CEILL, respectively.
95774         Needed for Sun C on Solaris 10.
95776 2007-11-11  Bruno Haible  <bruno@clisp.org>
95778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
95779         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
95780         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
95781         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
95782         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
95783         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
95784         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
95785         HAVE_DECL_ROUNDF.
95786         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
95787         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
95788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
95789         of HAVE_DECL_ROUND*.
95790         * modules/math (Makefile.am): Update.
95792 2007-11-10  Bruno Haible  <bruno@clisp.org>
95794         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
95795         ptrdiff_t as m4/intl.m4.
95797 2007-11-10  Jim Meyering  <meyering@redhat.com>
95799         Avoid link failure for the argmatch test.
95800         * tests/test-argmatch.c (usage): Define function to avoid a link
95801         failure: argmatch_die requires a usage function.
95803 2007-11-09  Bruno Haible  <bruno@clisp.org>
95805         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95806         * doc/functions/vsnprintf.texi: Likewise.
95807         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95808         with a size argument < 2.
95810 2007-11-09  Bruno Haible  <bruno@clisp.org>
95812         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95813         buffer. Fixes an inefficiency introduced on 2007-11-03.
95815 2007-11-09  Bruno Haible  <bruno@clisp.org>
95817         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95818         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95820 2007-11-08  Jim Meyering  <meyering@redhat.com>
95822         Change cache variable name prefix "jm_" to "gl_" everywhere.
95823         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95824         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95825         * m4/uptime.m4: s/gl_/jm_/
95827 2007-11-07  Bruno Haible  <bruno@clisp.org>
95829         Update to GNU gettext 0.17.
95830         * m4/intl.m4: Update to GNU gettext 0.17.
95831         * m4/po.m4: Likewise.
95832         * modules/gettext (Files): Remove m4/ulonglong.m4.
95833         (configure.ac): Require gettext infrastructure from version 0.17.
95835 2007-11-06  Bruno Haible  <bruno@clisp.org>
95837         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95838         symbolic values are not defined in a public header.
95839         * lib/freadable.c (freadable) [QNX]: Likewise.
95840         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95841         * lib/freading.c (freading) [QNX]: Likewise.
95842         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95843         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95844         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95845         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95846         Reported by Alain Magloire.
95848         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95850 2007-11-05  Bruno Haible  <bruno@clisp.org>
95852         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95853         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95854         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95855         Reported by Eric Blake.
95857 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95858             Bruno Haible  <bruno@clisp.org>
95860         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95861         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95862         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95863         (malloc): Undefine also before including <stdlib.h>.
95864         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95865         Needed on OSF/1 4.0.
95867 2007-11-05  Jim Meyering  <meyering@redhat.com>
95869         git-version-gen: sync from coreutils.
95870         * build-aux/git-version-gen: Add comments.
95871         Change the first '-' to '.' in the snapshot version string,
95872         e.g., 6.9-377-08144 -> 6.9.377-08144
95873         Remove first parameter.
95874         Don't declare a version "-dirty" merely because a time
95875         stamp has changed.
95877 2007-11-04  Bruno Haible  <bruno@clisp.org>
95879         * lib/lock.h: Protect all macro definitions containing an 'if'
95880         statement through a "do { ... } while (0)".
95881         * lib/tls.h: Likewise.
95883 2007-11-04  Bruno Haible  <bruno@clisp.org>
95885         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95887 2007-11-04  Bruno Haible  <bruno@clisp.org>
95889         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95890         * modules/fprintf-posix (Depends-on): Add nocrash.
95891         * modules/snprintf-posix (Depends-on): Likewise.
95892         * modules/sprintf-posix (Depends-on): Likewise.
95893         * modules/vasnprintf-posix (Depends-on): Likewise.
95894         * modules/vasprintf-posix (Depends-on): Likewise.
95895         * modules/vfprintf-posix (Depends-on): Likewise.
95896         * modules/vsnprintf-posix (Depends-on): Likewise.
95897         * modules/vsprintf-posix (Depends-on): Likewise.
95898         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95899         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95900         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95901         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95902         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95903         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95904         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95906 2007-11-04  Bruno Haible  <bruno@clisp.org>
95908         * modules/nocrash: New file.
95909         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95910         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95912 2007-11-04  Bruno Haible  <bruno@clisp.org>
95914         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95915         precision handling.
95916         * tests/test-vasprintf-posix.c (test_function): Likewise.
95917         * tests/test-snprintf-posix.h (test_function): Likewise.
95918         * tests/test-sprintf-posix.h (test_function): Likewise.
95920         Fix *printf behaviour for large precisions on mingw and BeOS.
95921         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95922         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95924         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95925         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95926         gl_PRINTF_PRECISION and test its result. Invoke
95927         gl_PREREQ_VASNPRINTF_PRECISION.
95928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95935         * doc/functions/fprintf.texi: Update.
95936         * doc/functions/printf.texi: Update.
95937         * doc/functions/snprintf.texi: Update.
95938         * doc/functions/sprintf.texi: Update.
95939         * doc/functions/vfprintf.texi: Update.
95940         * doc/functions/vprintf.texi: Update.
95941         * doc/functions/vsnprintf.texi: Update.
95942         * doc/functions/vsprintf.texi: Update.
95944 2007-11-04  Bruno Haible  <bruno@clisp.org>
95946         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95948 2007-11-04  Bruno Haible  <bruno@clisp.org>
95950         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95951         Reported by Sylvain Beucler <beuc@gnu.org>.
95953 2007-11-03  Bruno Haible  <bruno@clisp.org>
95955         * tests/test-fprintf-posix2.sh: New file.
95956         * tests/test-fprintf-posix2.c: New file.
95957         * modules/fprintf-posix-tests (Files): Add them.
95958         (TESTS): Add test-fprintf-posix2.sh.
95959         (configure.ac): Check for getrlimit and setrlimit.
95960         (check_PROGRAMS): Add test-fprintf-posix2.
95962         * tests/test-printf-posix2.sh: New file.
95963         * tests/test-printf-posix2.c: New file.
95964         * modules/printf-posix-tests (Files): Add them.
95965         (TESTS): Add test-printf-posix2.sh.
95966         (configure.ac): Check for getrlimit and setrlimit.
95967         (check_PROGRAMS): Add test-printf-posix2.
95969         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95970         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95971         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95972         (decode_double): New function, copied from decode_long_double.
95973         (scale10_round_decimal_decoded): New function, extracted from
95974         scale10_round_decimal_long_double.
95975         (scale10_round_decimal_long_double): Use it.
95976         (scale10_round_decimal_double): New function.
95977         (floorlog10): New function.
95978         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95980         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95982         gl_PRINTF_ENOMEM and test its result. Invoke
95983         gl_PREREQ_VASNPRINTF_ENOMEM.
95984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95990         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95991         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95992         * modules/snprintf-posix (Depends-on): Likewise.
95993         * modules/sprintf-posix (Depends-on): Likewise.
95994         * modules/vasnprintf-posix (Depends-on): Likewise.
95995         * modules/vasprintf-posix (Depends-on): Likewise.
95996         * modules/vfprintf-posix (Depends-on): Likewise.
95997         * modules/vsnprintf-posix (Depends-on): Likewise.
95998         * modules/vsprintf-posix (Depends-on): Likewise.
95999         * doc/functions/fprintf.texi: Update.
96000         * doc/functions/printf.texi: Update.
96001         * doc/functions/snprintf.texi: Update.
96002         * doc/functions/sprintf.texi: Update.
96003         * doc/functions/vfprintf.texi: Update.
96004         * doc/functions/vprintf.texi: Update.
96005         * doc/functions/vsnprintf.texi: Update.
96006         * doc/functions/vsprintf.texi: Update.
96008 2007-11-03  Bruno Haible  <bruno@clisp.org>
96010         * modules/frexp-nolibm-tests: New file.
96012         * modules/frexp-nolibm: New file.
96013         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
96015 2007-11-03  Bruno Haible  <bruno@clisp.org>
96017         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
96018         value is C99 compliant.
96019         Needed for OSF/1 5.1.
96021 2007-11-03  Bruno Haible  <bruno@clisp.org>
96023         Fix out-of-memory handling of vasnprintf.
96024         * lib/printf-parse.c: Include <errno.h>.
96025         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
96026         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
96027         is already set.
96029 2007-11-02  Eric Blake  <ebb9@byu.net>
96031         Fix tests on cygwin.
96032         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
96034 2007-11-01  Bruno Haible  <bruno@clisp.org>
96036         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
96037         warning.
96038         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
96039         needed for POSIX compatibility.
96041 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
96043         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
96044         for compatibility with GNU.
96046 2007-11-01  Bruno Haible  <bruno@clisp.org>
96048         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
96049         (putenv): Renamed from rpl_putenv. Change argument type from
96050         'const char *' to 'char *'.
96051         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
96052         of defining putenv in config.h, just set REPLACE_PUTENV.
96053         * modules/putenv (Depends-on): Add stdlib.
96054         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96055         (Include): Use <stdlib.h>.
96056         * lib/stdlib.in.h (putenv): New declaration.
96057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
96058         REPLACE_PUTENV.
96059         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
96060         REPLACE_PUTENV.
96061         Needed for MacOS X 10.5.0.
96062         Reported by Peter O'Gorman <peter@pogma.com>.
96064 2007-11-01  Jim Meyering  <meyering@redhat.com>
96066         Treat an empty date string exactly like "0".
96067         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
96068         if the remaining date string (to be parsed) is empty, use "0".
96069         Reported by Mischa Molhoek and discussed in this thread:
96070         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
96072 2007-10-31  Bruno Haible  <bruno@clisp.org>
96074         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
96075         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
96076         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
96077         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
96078         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
96079         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
96081 2007-10-31  Bruno Haible  <bruno@clisp.org>
96083         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
96084         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
96085         (AC_TYPE_LONG_LONG_INT): Use it.
96086         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
96087         it as well.
96088         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
96089         to m4/longlong.m4.
96090         * modules/stdint (Files): Remove m4/ulonglong.m4.
96091         * modules/strtoull (Files): Use m4/longlong.m4 instead of
96092         m4/ulonglong.m4.
96093         * modules/strtoumax (Files): Likewise.
96095 2007-10-30  Bruno Haible  <bruno@clisp.org>
96097         * modules/xvasprintf-posix: New file.
96098         Suggested by Eric Blake.
96100 2007-10-30  Bruno Haible  <bruno@clisp.org>
96102         * modules/xprintf-posix-tests: New file.
96103         * tests/test-xprintf-posix.sh: New file.
96104         * tests/test-xprintf-posix.c: New file.
96105         * tests/test-xfprintf-posix.c: New file.
96107         * modules/xprintf-posix: New file.
96109 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96111         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
96112         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
96113         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
96115 2007-10-29  Bruno Haible  <bruno@clisp.org>
96117         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
96118         contain the special marker '_cv_'.
96119         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
96120         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
96121         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
96122         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
96123         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
96124         Reported by Ralf Wildenhues.
96126 2007-10-29  Bruno Haible  <bruno@clisp.org>
96128         * gnulib-tool (func_import): When --lgpl is not specified, set
96129         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
96130         GPLv3.
96131         Reported by Simon Josefsson.
96133 2007-10-28  Bruno Haible  <bruno@clisp.org>
96135         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
96136         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
96137         HAVE_DECL_ISFINITE.
96138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96139         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
96140         HAVE_DECL_ISFINITE.
96142 2007-10-28  Bruno Haible  <bruno@clisp.org>
96144         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
96145         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
96147 2007-10-28  Bruno Haible  <bruno@clisp.org>
96149         Fix link errors with Sun C 5.0 on Solaris 10.
96150         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
96151         function is declared but not present in the compiler's libm.
96152         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
96153         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
96154         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
96155         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
96156         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
96157         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
96158         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
96159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96160         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
96161         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
96162         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
96163         HAVE_DECL_FLOORL.
96165 2007-10-28  Bruno Haible  <bruno@clisp.org>
96167         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
96168         gl_FUNC_FLOORL. Cache the result.
96169         (gl_FUNC_FLOORL): Use it.
96170         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
96171         gl_FUNC_CEILL. Cache the result.
96172         (gl_FUNC_CEILL): Use it.
96174         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
96175         gl_FUNC_FLOOR. Cache the result.
96176         (gl_FUNC_FLOOR): Use it.
96177         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
96178         gl_FUNC_CEIL. Cache the result.
96179         (gl_FUNC_CEIL): Use it.
96181         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
96182         gl_FUNC_FLOORF. Cache the result.
96183         (gl_FUNC_FLOORF): Use it.
96184         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
96185         gl_FUNC_CEILF. Cache the result.
96186         (gl_FUNC_CEILF): Use it.
96188 2007-10-28  Bruno Haible  <bruno@clisp.org>
96190         * gnulib-tool: Allow specifying the LGPL version number through
96191         --lgpl=2 or --lgpl=3.
96192         (func_usage): Document --lgpl with argument.
96193         Handle --lgpl=... arguments.
96194         (func_import): Recognize also gl_LGPL calls with an argument. When
96195         --lgpl=2 is used and the module's license is just LGPL, report an
96196         error. Set sed_transform_lib_file according to the lgpl variable. In
96197         the generated files, use --lgpl or gl_LGPL invocations with argument,
96198         if necessary.
96199         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
96200         an LGPv2+ license.
96201         * doc/gnulib-tool.texi (Modified imports): Update explanation of
96202         gl_LGPL macro.
96204 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96205             Bruno Haible  <bruno@clisp.org>
96207         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
96208         (u16_uctomb_aux): Likewise.
96209         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
96210         !HAVE_INLINE.
96211         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
96213 2007-10-28  Bruno Haible  <bruno@clisp.org>
96215         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
96216         Invoke AM_GETTEXT_OPTION if it exists.
96217         * modules/vasprintf: Likewise.
96218         * modules/verror: Likewise.
96219         * modules/xprintf: Likewise.
96220         * modules/xvasprintf: Likewise.
96222 2007-10-27  Ben Pfaff  <blp@gnu.org>
96224         * lib/math.in.h: Define isfinite macro and prototypes for
96225         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
96226         implementations.
96227         * m4/math_h.m4: New substitutions for isfinite module.
96228         * lib/isfinite.c: New file.
96229         * m4/isfinite.m4: New file.
96230         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
96231         * modules/isfinite: New file.
96232         * modules/isfinite-tests: New file.
96233         * tests/tests-isfinite.c: New file.
96234         * doc/functions/isfinite.texi: Mention isfinite module.
96235         * MODULES.html.sh: Mention new module.
96237 2007-10-27  Ben Pfaff  <blp@gnu.org>
96239         Ralf Wildenhues reported that Tru64 4.0D declares the round
96240         functions but does not have definitions.
96241         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
96242         cannot be found in any library, set the output variable to
96243         "missing" instead of "".
96244         * m4/round.m4: Also use our substitute if we cannot find round in
96245         any library, even if it is declared.
96246         * m4/roundf.m4: Likewise for roundf.
96247         * m4/roundl.m4: Likewise for roundl.
96248         * lib/math.in.h: Undefine roundf, round, roundl before defining
96249         their replacements, to allow for hypothetical systems where these
96250         may be defined as macros but not available in libraries.
96252 2007-10-27  Bruno Haible  <bruno@clisp.org>
96254         * doc/gnulib.texi: Invoke @firstparagraphindent.
96255         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
96256         changes in gnulib.
96257         (Source changes): New section.
96259 2007-10-26  Bruno Haible  <bruno@clisp.org>
96261         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
96262         borrowed from autoconf.
96264 2007-10-26  Bruno Haible  <bruno@clisp.org>
96266         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
96267         strerror returned the empty string. Needed on HP-UX 11.00.
96269 2007-10-24  Micah Cowan  <micah@cowan.name>
96271         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
96272         * build-aux/bootstrap: Remove support for now-unnecessary option,
96273         --cvs-user, and envvars CVS_USER, CVS_RSH.
96275 2007-10-24  Jim Meyering  <meyering@redhat.com>
96277         Avoid diagnostics from sha1sum when there is no cached checksum.
96278         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
96279         if the po.s1 file hasn't been created yet.
96281         * build-aux/bootstrap: Sync from coreutils:
96282         2007-10-24  Jim Meyering  <meyering@redhat.com>
96283         Get gnulib from the git repository, not from an obsolete cvs one.
96284         * build-aux/bootstrap: Suggestion from Micah Cowan.
96285         2007-10-04  Jim Meyering  <jim@meyering.net>
96286         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
96287         (update_po_files): Work also when there are no .po files in po/.
96289 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
96291         * README: Append ".git" to git and cg examples.
96292         Problem reported by Benoit Sigoure.
96294 2007-10-23  Micah Cowan  <micah@cowan.name>
96296         * users.txt: Add wget.
96298 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96300         Fix linking of some unistdio tests on FreeBSD.
96301         * modules/unistdio/u16-vsnprintf-tests
96302         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
96303         * modules/unistdio/u16-vsprintf-tests
96304         (test_u16_vsnprintf1_LDADD): Likewise.
96305         * modules/unistdio/u32-vsnprintf-tests
96306         (test_u32_vsnprintf1_LDADD): Likewise.
96307         * modules/unistdio/u32-vsprintf-tests
96308         (test_u32_vsprintf1_LDADD): Likewise.
96309         * modules/unistdio/u8-vsnprintf-tests
96310         (test_u8_vsnprintf1_LDADD): Likewise.
96311         * modules/unistdio/u8-vsprintf-tests
96312         (test_u8_vsprintf1_LDADD): Likewise.
96313         * modules/unistdio/ulc-vsnprintf-tests
96314         (test_ulc_vsnprintf1_LDADD): Likewise.
96315         * modules/unistdio/ulc-vsprintf-tests
96316         (test_ulc_vsprintf1_LDADD): Likewise.
96318         Fix linking of some uniconv tests on FreeBSD.
96319         * modules/uniconv/u16-conv-from-enc-tests
96320         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
96321         * modules/uniconv/u16-conv-to-enc-tests
96322         (test_u16_conv_to_enc_LDADD): Likewise.
96323         * modules/uniconv/u16-strconv-from-enc-tests
96324         (test_u16_strconv_from_enc_LDADD): Likewise.
96325         * modules/uniconv/u16-strconv-to-enc-tests
96326         (test_u16_strconv_to_enc_LDADD): Likewise.
96327         * modules/uniconv/u32-conv-from-enc-tests
96328         (test_u32_conv_from_enc_LDADD): Likewise.
96329         * modules/uniconv/u32-conv-to-enc-tests
96330         (test_u32_conv_to_enc_LDADD): Likewise.
96331         * modules/uniconv/u32-strconv-from-enc-tests
96332         (test_u32_strconv_from_enc_LDADD): Likewise.
96333         * modules/uniconv/u32-strconv-to-enc-tests
96334         (test_u32_strconv_to_enc_LDADD): Likewise.
96335         * modules/uniconv/u8-conv-from-enc-tests
96336         (test_u8_conv_from_enc_LDADD): Likewise.
96337         * modules/uniconv/u8-conv-to-enc-tests
96338         (test_u8_conv_to_enc_LDADD): Likewise.
96339         * modules/uniconv/u8-strconv-from-enc-tests
96340         (test_u8_strconv_from_enc_LDADD): Likewise.
96341         * modules/uniconv/u8-strconv-to-enc-tests
96342         (test_u8_strconv_to_enc_LDADD): Likewise.
96344 2007-10-22  Bruno Haible  <bruno@clisp.org>
96346         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
96347         size.
96349 2007-10-22  Eric Blake  <ebb9@byu.net>
96351         Tweak x*printf documentation.
96352         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
96353         variable name and comments.
96354         Suggested by Bruno Haible.
96356 2007-10-22  Bruno Haible  <bruno@clisp.org>
96358         * lib/acl.c (copy_acl): Fix file name in comment.
96360 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96362         Fix Tru64 problem with stdbool.h.
96363         * lib/stdbool.in.h (false, true):
96364         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
96365         Don't declare as an enum in this situation; it runs afoul of Tru64.
96366         Problem reported by Steven M. Schweda in
96367         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
96369 2007-10-22  Eric Blake  <ebb9@byu.net>
96371         Also wrap vf?printf.
96372         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
96373         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
96374         (xvprintf, xvfprintf): New functions.
96376 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96378         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
96379         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
96381         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
96382         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
96384 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96386         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
96387         by Bruno Haible.
96389 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96391         * lib/getloadavg.c
96392         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
96393         Undef `sys' after including sys/table.h, for Tru64 4.0D.
96395         * tests/test-i-ring.c: Work for C89.
96397 2007-10-22  Bruno Haible  <bruno@clisp.org>
96399         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
96400         -1u, in preprocessor expression, so that we don't test for the bug
96401         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
96402         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
96404 2007-10-22  Eric Blake  <ebb9@byu.net>
96406         * tests/test-yesno.sh: Silence stderr during test.
96408 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96410         * modules/crypto/gc-camellia: New file.
96412         * m4/gc-camellia.m4: New file.
96414         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
96416         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
96418 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96420         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
96421         --help to stdout.  Reported by sms@antinode.org (Steven
96422         M. Schweda).
96424 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96426         * users.txt: Fix link to libksba.
96428 2007-10-21  Ben Pfaff  <blp@gnu.org>
96430         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
96431         round.c roundf implementation that depends on floorf and ceilf to
96432         be tested unconditionally.
96434 2007-10-21  Ben Pfaff  <blp@gnu.org>
96436         * m4/check-libm-func.m4: Removed.
96437         * m4/check-math-lib.m4: New file.
96438         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
96439         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
96440         definition and lack of AC_LIBOBJ([roundf]).
96441         * m4/roundl.m4: Ditto, and similarly for roundl.
96442         * modules/round: Reference new m4 file.
96443         * modules/roundf: Ditto.
96444         * modules/roundl: Ditto.
96445         * tests/test-round2.c (main): Use ROUND instead of round.
96446         Bug report from Bruno Haible.
96448 2007-10-21  Bruno Haible  <bruno@clisp.org>
96450         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
96451         context.
96453 2007-10-21  Bruno Haible  <bruno@clisp.org>
96455         * tests/test-wcwidth.c (main): Allow negative result for some control
96456         characters.
96458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
96459         Needed on OSF/1 5.1.
96461 2007-10-21  Bruno Haible  <bruno@clisp.org>
96463         * tests/test-floorf1.c: Include isnanf.h.
96464         (main): Use isnanf() instead of isnan().
96465         * tests/test-ceilf1.c: Include isnanf.h.
96466         (main): Use isnanf() instead of isnan().
96467         * tests/test-truncf1.c: Include isnanf.h.
96468         (main): Use isnanf() instead of isnan().
96469         * tests/test-roundf1.c: Include isnanf.h.
96470         (main): Use isnanf() instead of isnan().
96472 2007-10-21  Eric Blake  <ebb9@byu.net>
96474         * users.txt: Update URL for m4.
96476 2007-10-21  Bruno Haible  <bruno@clisp.org>
96478         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
96480 2007-10-21  Bruno Haible  <bruno@clisp.org>
96482         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
96483         Git's management files if the CVS files are not present.
96485 2007-10-20  Bruno Haible  <bruno@clisp.org>
96487         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
96488         gcc-3.4.x.
96490 2007-10-20  Ben Pfaff  <blp@gnu.org>
96492         * lib/math.in.h: Declare round, roundf, roundl if we are providing
96493         implementations.
96494         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
96495         * lib/round.c: New file.
96496         * lib/roundf.c: New file.
96497         * lib/roundl.c: New file.
96498         * m4/round.m4: New file.
96499         * m4/roundf.m4: New file.
96500         * m4/roundl.m4: New file.
96501         * m4/check-libm-func-m4: New file.
96502         * modules/math: Replace round, roundf, roundl related @VARS@ in
96503         math.in.h.
96504         * modules/round: New file.
96505         * modules/round-tests: New file.
96506         * modules/roundf: New file.
96507         * modules/roundf-tests: New file.
96508         * modules/roundl: New file.
96509         * modules/roundl-tests: New file.
96510         * tests/test-round1.c: New file.
96511         * tests/test-round2.c: New file.
96512         * tests/test-roundf1.c: New file.
96513         * tests/test-roundf2.c: New file.
96514         * tests/test-roundl.c: New file.
96515         * doc/functions/round.texi: Mention round module.
96516         * doc/functions/roundf.texi: Mention roundf module.
96517         * doc/functions/roundl.texi: Mention roundl module.
96518         * MODULES.html.sh: Mention new modules.
96519         Thanks to Bruno Haible for suggestions.
96521 2007-10-20  Jim Meyering  <meyering@redhat.com>
96523         * lib/xprintf.c: Include <config.h> unconditionally.
96525         Change xprintf's license to GPL.
96526         * modules/xprintf (License): s/LGPL/GPL/, since this module
96527         depends on modules (exit and exitfail) which are GPL.
96528         Suggestion from Bruno Haible.
96530         xprintf fixes.
96531         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
96532         Use a clearer diagnostic.
96533         Patch from Bruno Haible.
96535 2007-10-20  Bruno Haible  <bruno@clisp.org>
96537         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
96538         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
96539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96541 2007-10-20  Bruno Haible  <bruno@clisp.org>
96543         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
96544         precision in the comparison result > x - 1 or similar.
96545         * tests/test-ceilf2.c (correct_result_p): Likewise.
96546         * tests/test-truncf2.c (correct_result_p): Likewise.
96547         * tests/test-trunc2.c (correct_result_p): Likewise.
96548         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96550 2007-10-20  Bruno Haible  <bruno@clisp.org>
96552         * modules/ceil: New file.
96553         * m4/ceil.m4: New file.
96554         * doc/functions/ceil.texi: Mention the 'ceil' module.
96556 2007-10-20  Bruno Haible  <bruno@clisp.org>
96558         * modules/floor: New file.
96559         * m4/floor.m4: New file.
96560         * doc/functions/floor.texi: Mention the 'floor' module.
96562 2007-10-20  Bruno Haible  <bruno@clisp.org>
96564         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
96565         of %a.
96566         * modules/floorf-tests (Depends-on): Likewise.
96567         * modules/truncf-tests (Depends-on): Likewise.
96568         * modules/trunc-tests (Depends-on): Likewise.
96569         Reported by Ben Pfaff.
96571 2007-10-19  Jim Meyering  <meyering@redhat.com>
96573         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
96574         Don't bother testing specific errno values.  Just test ferror.
96576         New module: xprintf
96577         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
96579 2007-10-19  Bruno Haible  <bruno@clisp.org>
96581         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
96582         syntax.
96583         * modules/javaexec (Makefile.am): Likewise.
96584         * modules/relocatable-prog (Makefile.am): Likewise.
96585         Suggested by Jim Meyering.
96587 2007-10-18  Bruno Haible  <bruno@clisp.org>
96589         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
96590         Reported by Jim Meyering.
96592 2007-10-18  Eric Blake  <ebb9@byu.net>
96594         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
96596 2007-10-18  Bruno Haible  <bruno@clisp.org>
96598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
96599         the format string into writable memory. Needed in Fortify conditions.
96601 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
96602             Bruno Haible  <bruno@clisp.org>
96604         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
96605         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
96606         * modules/trim (Depends-on): Add mbchar.
96607         (configure.ac): Add gl_FUNC_MBRTOWC.
96608         (Makefile.am): Augment lib_SOURCES.
96610 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96612         Modify glob.c to use fstatat and dirfd, to simplify it.
96613         Suggested by Eric Blake.
96614         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
96615         Don't include <stdbool.h>; not used.
96616         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
96617         (link_exists_p): Simplify implementation, since we can now assume
96618         dirfd and fstatat.
96619         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
96621 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96623         * gnulib-tool (func_get_dependencies): Fix sed script to
96624         match only tests.
96626 2007-10-17  Bruno Haible  <bruno@clisp.org>
96628         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
96629         allow locale names without encoding suffix.
96630         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96631         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96633 2007-10-16  Bruno Haible  <bruno@clisp.org>
96635         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
96636         * lib/getgroups.c (getgroups): Likewise.
96637         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
96639 2007-10-16  Bruno Haible  <bruno@clisp.org>
96641         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
96642         * modules/malloc-posix (License): Likewise.
96643         * modules/realloc-posix (License): Likewise.
96644         * modules/calloc-posix (License): Likewise.
96645         * modules/intprops (License): Change from GPL to LGPL, with
96646         Paul Eggert's approval.
96648 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96650         Merge glibc changes into lib/glob.c.
96652         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
96653         2007-10-15 04:59:03 UTC.  Here are the changes:
96655         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
96657         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
96659         * lib/glob.c: Add some branch prediction throughout.
96661         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
96663         [BZ #5103]
96664         * lib/glob.c (glob): Recognize patterns starting \/.
96666         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96668         [BZ #3996]
96669         * lib/glob.c (attribute_hidden): Define if not defined.
96670         (glob): Unescape dirname, filename or username when needed and not
96671         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96672         is NULL.  Handle unescaped [ in pattern without closing ].
96673         Don't pass GLOB_CHECK down to recursive glob for directories.
96674         (__glob_pattern_type): New function.
96675         (__glob_pattern_p): Implement using __glob_pattern_type.
96676         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96677         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96678         Remove unreachable code.
96680         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96682         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96683         explain why there are no leaks.
96685         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96687         [BZ #3253]
96688         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96689         time, rather allocate increasingly bigger arrays of pointers, if
96690         possible with alloca, if too large with malloc.
96692 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96694         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96695         Problem reported by H.Merijn Brand in
96696         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96697         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96698         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96700 2007-10-15  Bruno Haible  <bruno@clisp.org>
96702         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96703         with explicit rpl_ prefix.
96704         * lib/fopen.c (fopen): Likewise.
96705         * lib/freopen.c (freopen): Likewise.
96706         * lib/iconv.c (iconv): Likewise.
96707         * lib/iconv_close.c (iconv_close): Likewise.
96709 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96711         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
96713 2007-10-15  Bruno Haible  <bruno@clisp.org>
96715         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
96716         <stddef.h> instead of <stdlib.h> since we only need NULL.
96717         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96719 2007-10-15  Bruno Haible  <bruno@clisp.org>
96721         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
96722         Replace paragraph talking about LIBOBJS.
96723         Reported by Colin Watson <cjwatson@debian.org>.
96725 2007-10-15  Bruno Haible  <bruno@clisp.org>
96727         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
96728         <stdlib.h> before using NULL.
96730 2007-10-15  Simon Josefsson  <simon@josefsson.org>
96732         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
96733         Reported by Albert Chin <china@thewrittenword.com>.
96735 2007-10-14  Bruno Haible  <bruno@clisp.org>
96737         * modules/iconv_open-utf-tests: New file.
96738         * tests/test-iconv-utf.c: New file.
96740         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
96741         * modules/iconv_open-utf: New file.
96742         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
96743         (iconv, iconv_close): New declarations.
96744         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
96745         be defined.
96746         (iconv_open): Add special handling of conversion between UTF-8 and
96747         UTF-{16,32}{BE,LE}.
96748         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
96749         * lib/iconv_close.c: New file.
96750         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
96751         gl_FUNC_ICONV_OPEN.
96752         (gl_FUNC_ICONV_OPEN): Use it.
96753         (gl_FUNC_ICONV_OPEN_UTF): New macro.
96754         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
96755         and REPLACE_ICONV_UTF.
96756         * modules/iconv_open (Depends-on): Add c-strcase.
96757         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
96758         ICONV_CONST.
96759         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
96761 2007-10-13  Albert Chin  <china@thewrittenword.com>
96762             Bruno Haible  <bruno@clisp.org>
96764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
96765         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
96767 2007-10-13  Bruno Haible  <bruno@clisp.org>
96769         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
96770         defined, use the ISO C99 inline semantics.
96771         * lib/argp.h (ARGP_EI): Likewise.
96773 2007-10-13  Bruno Haible  <bruno@clisp.org>
96775         Handle 'inline' change in gcc 4.3.0.
96776         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
96777         argp_fmtstream_write, argp_fmtstream_set_lmargin,
96778         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
96779         argp_fmtstream_point): Disable 'extern' declaration if the function
96780         definition is going to be provided inline.
96781         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
96782         semantics, not the ISO C99 inline semantics.
96783         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
96784         'extern' declaration if the function definition is going to be provided
96785         inline.
96786         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
96787         the GNU C inline semantics, not the ISO C99 inline semantics. With
96788         GCC 4.2, avoid a warning.
96790 2007-10-13  Bruno Haible  <bruno@clisp.org>
96792         * lib/freading.h (freading): Enable the use of __freading for
96793         glibc >= 2.7.
96794         * lib/freading.c (freading): Likewise.
96796 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96798         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
96799         "warning: C99 inline functions are not supported; using GNU89".
96801 2007-10-12  Bruno Haible  <bruno@clisp.org>
96803         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
96804         of 2.
96805         * tests/test-ceilf2.c: New file.
96806         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96808         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96809         * modules/ceilf-tests: Update.
96811 2007-10-12  Bruno Haible  <bruno@clisp.org>
96813         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96814         of 2.
96815         * tests/test-floorf2.c: New file.
96816         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96818         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96819         * modules/floorf-tests: Update.
96821 2007-10-12  Bruno Haible  <bruno@clisp.org>
96823         * tests/test-trunc2.c: New file.
96824         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96826         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96827         * modules/trunc-tests: Update.
96829 2007-10-12  Bruno Haible  <bruno@clisp.org>
96831         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96832         of 2.
96833         * tests/test-truncf2.c: New file.
96834         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96836         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96837         * modules/truncf-tests: Update.
96839 2007-10-11  Eric Blake  <ebb9@byu.net>
96841         Don't claim strerror is broken on Interix.
96842         * doc/functions/strerror.texi (strerror): Known broken systems are
96843         now Solaris 8, and not Interix.
96844         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96845         Interix on cross-compile.
96846         Reported by Martin Koeppe in
96847         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96849 2007-10-11  Bruno Haible  <bruno@clisp.org>
96851         * modules/i-ring-tests: New file.
96852         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96853         instead of assert.
96855 2007-10-11  Bruno Haible  <bruno@clisp.org>
96857         * modules/filenamecat-tests: New file.
96858         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96859         * lib/filenamecat.c: Remove test code.
96861 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96863         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96865         * lib/strerror.c: Include <string.h> always, to test interface,
96866         and to remove the need for the dummy.
96867         Include intprops.h to compute width instead of doing it ourselves
96868         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96869         (strerror): Define it to return NULL if there's no system strerror.
96870         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96871         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96872         ancient pre-strerror Unix systems well any more.  Saying "unknown
96873         system error" is enough.
96874         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96875         simpler strerror.c implementation.
96876         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96877         Simplify the tests to reflect the simpler strerror implementation.
96878         * modules/strerror (Depends-on): Add intprops.
96880 2007-10-09  Eric Blake  <ebb9@byu.net>
96882         Silence test-fpending.
96883         * modules/fpending-tests (Files): Add wrapper script.
96884         * tests/test-fpending.sh: New file.
96886 2007-10-09  Bruno Haible  <bruno@clisp.org>
96888         * MODULES.html.sh (func_module): Don't create a hyperlink for
96889         function names like 'printf_frexp'.
96890         (Misc): Add crc, memxor.
96891         (Characteristics of floating types): New section.
96892         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96893         isnanf-nolibm, signbit, trunc, truncf, truncl.
96894         (Enhancements for ISO C 99 functions): New subsection Input/output.
96895         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96896         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96897         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96898         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96899         (Enhancements for POSIX:2001 functions): Add chdir-long.
96900         (File system functions): Add areadlink, chdir-safer, read-file.
96901         Remove cycle-check.
96902         (File system as inode set): New section.
96903         (Date and time): Add gethrxtime.
96904         (Multithreading): Add openmp.
96905         (Internationalization functions): Add localename.
96906         (Unicode string functions): Add unistr/u*-mbsnlen.
96907         (Support for maintaining and releasing projects): Add git-version-gen.
96908         (Lone files): Remove directories.
96910 2007-10-08  Ben Pfaff  <blp@gnu.org>
96912         * lib/xmalloca.h: Fix typo in comment.
96914 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96916         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96917         when avoiding problems with integer overflow.  Use a portable test
96918         instead.
96920 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96922         * modules/dummy (License): Change to LGPLv2+.
96923         * modules/float (License): Likewise
96924         * modules/realloc (License): Likewise
96925         * modules/stdlib (License): Likewise
96927 2007-10-07  Bruno Haible  <bruno@clisp.org>
96929         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96930         * floor.c (TWO_MANT_DIG): Likewise.
96931         * ceil.c (TWO_MANT_DIG): Likewise.
96932         Reported by Ben Pfaff.
96934 2007-10-07  Bruno Haible  <bruno@clisp.org>
96936         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96937         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96938         * lib/frexp.c (FUNC): Likewise.
96939         * lib/printf-frexp.h (printf_frexp): Likewise.
96940         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96941         * lib/printf-frexp.c (FUNC): Likewise.
96942         Suggested by Jim Meyering.
96944 2007-10-07  Jim Meyering  <meyering@redhat.com>
96946         Make xnanosleep's integer overflow test more robust.
96947         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96948         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96950 2007-10-07  Bruno Haible  <bruno@clisp.org>
96952         * NEWS: Mention the license change.
96954         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96955         abbreviations in the modules files.
96957         Change copyright notice from GPLv2+ to GPLv3+.
96958         * README: Change copyright notice.
96959         * MODULES.html.sh: Likewise.
96960         * build-aux/bootstrap.conf: Likewise.
96961         * build-aux/config.libpath: Likewise.
96962         * build-aux/csharpcomp.sh.in: Likewise.
96963         * build-aux/csharpexec.sh.in: Likewise.
96964         * build-aux/install-reloc: Likewise.
96965         * build-aux/javacomp.sh.in: Likewise.
96966         * build-aux/javaexec.sh.in: Likewise.
96967         * build-aux/ldd.sh.in: Likewise.
96968         * build-aux/reloc-ldflags: Likewise.
96969         * build-aux/relocatable.sh.in: Likewise.
96970         * build-aux/x-to-1.in: Likewise.
96971         * check-module: Likewise.
96972         * config/srclistvars.sh: Likewise.
96973         * gnulib-tool: Likewise.
96974         * lib/acl-internal.h: Likewise.
96975         * lib/acl.c: Likewise.
96976         * lib/acl.h: Likewise.
96977         * lib/acl_entries.c: Likewise.
96978         * lib/areadlink-with-size.c: Likewise.
96979         * lib/areadlink.c: Likewise.
96980         * lib/areadlink.h: Likewise.
96981         * lib/argmatch.c: Likewise.
96982         * lib/argmatch.h: Likewise.
96983         * lib/argp-ba.c: Likewise.
96984         * lib/argp-eexst.c: Likewise.
96985         * lib/argp-fmtstream.c: Likewise.
96986         * lib/argp-fmtstream.h: Likewise.
96987         * lib/argp-fs-xinl.c: Likewise.
96988         * lib/argp-help.c: Likewise.
96989         * lib/argp-namefrob.h: Likewise.
96990         * lib/argp-parse.c: Likewise.
96991         * lib/argp-pin.c: Likewise.
96992         * lib/argp-pv.c: Likewise.
96993         * lib/argp-pvh.c: Likewise.
96994         * lib/argp-xinl.c: Likewise.
96995         * lib/argp.h: Likewise.
96996         * lib/at-func.c: Likewise.
96997         * lib/atanl.c: Likewise.
96998         * lib/backupfile.c: Likewise.
96999         * lib/backupfile.h: Likewise.
97000         * lib/basename.c: Likewise.
97001         * lib/binary-io.h: Likewise.
97002         * lib/byteswap.in.h: Likewise.
97003         * lib/c-stack.c: Likewise.
97004         * lib/c-stack.h: Likewise.
97005         * lib/c-strcasestr.c: Likewise.
97006         * lib/c-strcasestr.h: Likewise.
97007         * lib/c-strstr.c: Likewise.
97008         * lib/c-strstr.h: Likewise.
97009         * lib/c-strtod.c: Likewise.
97010         * lib/calloc.c: Likewise.
97011         * lib/canon-host.c: Likewise.
97012         * lib/canon-host.h: Likewise.
97013         * lib/canonicalize-lgpl.c: Likewise.
97014         * lib/canonicalize.c: Likewise.
97015         * lib/canonicalize.h: Likewise.
97016         * lib/ceil.c: Likewise.
97017         * lib/ceilf.c: Likewise.
97018         * lib/ceill.c: Likewise.
97019         * lib/chdir-long.c: Likewise.
97020         * lib/chdir-long.h: Likewise.
97021         * lib/chdir-safer.c: Likewise.
97022         * lib/chdir-safer.h: Likewise.
97023         * lib/chown.c: Likewise.
97024         * lib/classpath.c: Likewise.
97025         * lib/classpath.h: Likewise.
97026         * lib/clean-temp.c: Likewise.
97027         * lib/clean-temp.h: Likewise.
97028         * lib/cloexec.c: Likewise.
97029         * lib/close-stream.c: Likewise.
97030         * lib/closein.c: Likewise.
97031         * lib/closein.h: Likewise.
97032         * lib/closeout.c: Likewise.
97033         * lib/closeout.h: Likewise.
97034         * lib/concat-filename.c: Likewise.
97035         * lib/copy-file.c: Likewise.
97036         * lib/copy-file.h: Likewise.
97037         * lib/count-one-bits.h: Likewise.
97038         * lib/crc.c: Likewise.
97039         * lib/crc.h: Likewise.
97040         * lib/creat-safer.c: Likewise.
97041         * lib/csharpcomp.c: Likewise.
97042         * lib/csharpcomp.h: Likewise.
97043         * lib/csharpexec.c: Likewise.
97044         * lib/csharpexec.h: Likewise.
97045         * lib/cycle-check.c: Likewise.
97046         * lib/cycle-check.h: Likewise.
97047         * lib/diacrit.c: Likewise.
97048         * lib/diacrit.h: Likewise.
97049         * lib/diffseq.h: Likewise.
97050         * lib/dirchownmod.c: Likewise.
97051         * lib/dirent.in.h: Likewise.
97052         * lib/dirfd.c: Likewise.
97053         * lib/dirfd.h: Likewise.
97054         * lib/dirname.c: Likewise.
97055         * lib/dirname.h: Likewise.
97056         * lib/dummy.c: Likewise.
97057         * lib/dup-safer.c: Likewise.
97058         * lib/dup2.c: Likewise.
97059         * lib/eealloc.h: Likewise.
97060         * lib/error.c: Likewise.
97061         * lib/error.h: Likewise.
97062         * lib/euidaccess.c: Likewise.
97063         * lib/exclude.c: Likewise.
97064         * lib/exclude.h: Likewise.
97065         * lib/execute.c: Likewise.
97066         * lib/execute.h: Likewise.
97067         * lib/exitfail.c: Likewise.
97068         * lib/exitfail.h: Likewise.
97069         * lib/expl.c: Likewise.
97070         * lib/fatal-signal.c: Likewise.
97071         * lib/fatal-signal.h: Likewise.
97072         * lib/fbufmode.c: Likewise.
97073         * lib/fbufmode.h: Likewise.
97074         * lib/fchdir.c: Likewise.
97075         * lib/fchmodat.c: Likewise.
97076         * lib/fchownat.c: Likewise.
97077         * lib/fcntl--.h: Likewise.
97078         * lib/fcntl-safer.h: Likewise.
97079         * lib/fcntl.in.h: Likewise.
97080         * lib/fd-safer.c: Likewise.
97081         * lib/fflush.c: Likewise.
97082         * lib/file-has-acl.c: Likewise.
97083         * lib/file-set.c: Likewise.
97084         * lib/file-type.c: Likewise.
97085         * lib/file-type.h: Likewise.
97086         * lib/fileblocks.c: Likewise.
97087         * lib/filemode.c: Likewise.
97088         * lib/filemode.h: Likewise.
97089         * lib/filename.h: Likewise.
97090         * lib/filenamecat.c: Likewise.
97091         * lib/filenamecat.h: Likewise.
97092         * lib/findprog.c: Likewise.
97093         * lib/findprog.h: Likewise.
97094         * lib/float.in.h: Likewise.
97095         * lib/floor.c: Likewise.
97096         * lib/floorf.c: Likewise.
97097         * lib/floorl.c: Likewise.
97098         * lib/fopen-safer.c: Likewise.
97099         * lib/fopen.c: Likewise.
97100         * lib/fpending.c: Likewise.
97101         * lib/fpending.h: Likewise.
97102         * lib/fprintf.c: Likewise.
97103         * lib/fprintftime.h: Likewise.
97104         * lib/fpucw.h: Likewise.
97105         * lib/fpurge.c: Likewise.
97106         * lib/fpurge.h: Likewise.
97107         * lib/freadable.c: Likewise.
97108         * lib/freadable.h: Likewise.
97109         * lib/freadahead.c: Likewise.
97110         * lib/freadahead.h: Likewise.
97111         * lib/freading.c: Likewise.
97112         * lib/freading.h: Likewise.
97113         * lib/free.c: Likewise.
97114         * lib/freopen.c: Likewise.
97115         * lib/frexp.c: Likewise.
97116         * lib/frexpl.c: Likewise.
97117         * lib/fseek.c: Likewise.
97118         * lib/fseterr.c: Likewise.
97119         * lib/fseterr.h: Likewise.
97120         * lib/fstatat.c: Likewise.
97121         * lib/fstrcmp.c: Likewise.
97122         * lib/fstrcmp.h: Likewise.
97123         * lib/fsusage.c: Likewise.
97124         * lib/fsusage.h: Likewise.
97125         * lib/ftell.c: Likewise.
97126         * lib/ftello.c: Likewise.
97127         * lib/fts-cycle.c: Likewise.
97128         * lib/fts.c: Likewise.
97129         * lib/fts_.h: Likewise.
97130         * lib/full-read.c: Likewise.
97131         * lib/full-read.h: Likewise.
97132         * lib/full-write.c: Likewise.
97133         * lib/full-write.h: Likewise.
97134         * lib/fwritable.c: Likewise.
97135         * lib/fwritable.h: Likewise.
97136         * lib/fwriteerror.c: Likewise.
97137         * lib/fwriteerror.h: Likewise.
97138         * lib/fwriting.c: Likewise.
97139         * lib/fwriting.h: Likewise.
97140         * lib/gcd.c: Likewise.
97141         * lib/gcd.h: Likewise.
97142         * lib/getcwd.c: Likewise.
97143         * lib/getdate.h: Likewise.
97144         * lib/getdate.y: Likewise.
97145         * lib/getdomainname.c: Likewise.
97146         * lib/getdomainname.h: Likewise.
97147         * lib/getgroups.c: Likewise.
97148         * lib/gethostname.c: Likewise.
97149         * lib/gethrxtime.c: Likewise.
97150         * lib/gethrxtime.h: Likewise.
97151         * lib/getloadavg.c: Likewise.
97152         * lib/getndelim2.c: Likewise.
97153         * lib/getndelim2.h: Likewise.
97154         * lib/getnline.c: Likewise.
97155         * lib/getnline.h: Likewise.
97156         * lib/getopt.c: Likewise.
97157         * lib/getopt.in.h: Likewise.
97158         * lib/getopt1.c: Likewise.
97159         * lib/getopt_int.h: Likewise.
97160         * lib/getpagesize.h: Likewise.
97161         * lib/getsubopt.c: Likewise.
97162         * lib/gettime.c: Likewise.
97163         * lib/getugroups.c: Likewise.
97164         * lib/getugroups.h: Likewise.
97165         * lib/getusershell.c: Likewise.
97166         * lib/gl_anyavltree_list1.h: Likewise.
97167         * lib/gl_anyavltree_list2.h: Likewise.
97168         * lib/gl_anyhash_list1.h: Likewise.
97169         * lib/gl_anyhash_list2.h: Likewise.
97170         * lib/gl_anylinked_list1.h: Likewise.
97171         * lib/gl_anylinked_list2.h: Likewise.
97172         * lib/gl_anyrbtree_list1.h: Likewise.
97173         * lib/gl_anyrbtree_list2.h: Likewise.
97174         * lib/gl_anytree_list1.h: Likewise.
97175         * lib/gl_anytree_list2.h: Likewise.
97176         * lib/gl_anytree_oset.h: Likewise.
97177         * lib/gl_anytreehash_list1.h: Likewise.
97178         * lib/gl_anytreehash_list2.h: Likewise.
97179         * lib/gl_array_list.c: Likewise.
97180         * lib/gl_array_list.h: Likewise.
97181         * lib/gl_array_oset.c: Likewise.
97182         * lib/gl_array_oset.h: Likewise.
97183         * lib/gl_avltree_list.c: Likewise.
97184         * lib/gl_avltree_list.h: Likewise.
97185         * lib/gl_avltree_oset.c: Likewise.
97186         * lib/gl_avltree_oset.h: Likewise.
97187         * lib/gl_avltreehash_list.c: Likewise.
97188         * lib/gl_avltreehash_list.h: Likewise.
97189         * lib/gl_carray_list.c: Likewise.
97190         * lib/gl_carray_list.h: Likewise.
97191         * lib/gl_linked_list.c: Likewise.
97192         * lib/gl_linked_list.h: Likewise.
97193         * lib/gl_linkedhash_list.c: Likewise.
97194         * lib/gl_linkedhash_list.h: Likewise.
97195         * lib/gl_list.c: Likewise.
97196         * lib/gl_list.h: Likewise.
97197         * lib/gl_oset.c: Likewise.
97198         * lib/gl_oset.h: Likewise.
97199         * lib/gl_rbtree_list.c: Likewise.
97200         * lib/gl_rbtree_list.h: Likewise.
97201         * lib/gl_rbtree_oset.c: Likewise.
97202         * lib/gl_rbtree_oset.h: Likewise.
97203         * lib/gl_rbtreehash_list.c: Likewise.
97204         * lib/gl_rbtreehash_list.h: Likewise.
97205         * lib/gl_sublist.c: Likewise.
97206         * lib/gl_sublist.h: Likewise.
97207         * lib/group-member.c: Likewise.
97208         * lib/group-member.h: Likewise.
97209         * lib/hard-locale.c: Likewise.
97210         * lib/hard-locale.h: Likewise.
97211         * lib/hash-pjw.c: Likewise.
97212         * lib/hash-pjw.h: Likewise.
97213         * lib/hash-triple.c: Likewise.
97214         * lib/hash.c: Likewise.
97215         * lib/hash.h: Likewise.
97216         * lib/human.c: Likewise.
97217         * lib/human.h: Likewise.
97218         * lib/i-ring.c: Likewise.
97219         * lib/i-ring.h: Likewise.
97220         * lib/idcache.c: Likewise.
97221         * lib/imaxabs.c: Likewise.
97222         * lib/imaxdiv.c: Likewise.
97223         * lib/inet_pton.c: Likewise.
97224         * lib/inet_pton.h: Likewise.
97225         * lib/intprops.h: Likewise.
97226         * lib/inttostr.c: Likewise.
97227         * lib/inttostr.h: Likewise.
97228         * lib/inttypes.in.h: Likewise.
97229         * lib/isapipe.c: Likewise.
97230         * lib/isdir.c: Likewise.
97231         * lib/isnan.c: Likewise.
97232         * lib/isnan.h: Likewise.
97233         * lib/isnanf.c: Likewise.
97234         * lib/isnanf.h: Likewise.
97235         * lib/isnanl-nolibm.h: Likewise.
97236         * lib/isnanl.c: Likewise.
97237         * lib/isnanl.h: Likewise.
97238         * lib/javacomp.c: Likewise.
97239         * lib/javacomp.h: Likewise.
97240         * lib/javaexec.c: Likewise.
97241         * lib/javaexec.h: Likewise.
97242         * lib/javaversion.c: Likewise.
97243         * lib/javaversion.h: Likewise.
97244         * lib/javaversion.java: Likewise.
97245         * lib/lbrkprop.h: Likewise.
97246         * lib/lchmod.h: Likewise.
97247         * lib/lchown.c: Likewise.
97248         * lib/ldexpl.c: Likewise.
97249         * lib/linebreak.c: Likewise.
97250         * lib/linebreak.h: Likewise.
97251         * lib/linebuffer.c: Likewise.
97252         * lib/linebuffer.h: Likewise.
97253         * lib/locale.in.h: Likewise.
97254         * lib/logl.c: Likewise.
97255         * lib/long-options.c: Likewise.
97256         * lib/long-options.h: Likewise.
97257         * lib/lstat.c: Likewise.
97258         * lib/lstat.h: Likewise.
97259         * lib/math.in.h: Likewise.
97260         * lib/mbchar.c: Likewise.
97261         * lib/mbchar.h: Likewise.
97262         * lib/mbfile.h: Likewise.
97263         * lib/mbiter.h: Likewise.
97264         * lib/mbscasecmp.c: Likewise.
97265         * lib/mbscasestr.c: Likewise.
97266         * lib/mbschr.c: Likewise.
97267         * lib/mbscspn.c: Likewise.
97268         * lib/mbslen.c: Likewise.
97269         * lib/mbsncasecmp.c: Likewise.
97270         * lib/mbsnlen.c: Likewise.
97271         * lib/mbspbrk.c: Likewise.
97272         * lib/mbspcasecmp.c: Likewise.
97273         * lib/mbsrchr.c: Likewise.
97274         * lib/mbssep.c: Likewise.
97275         * lib/mbsspn.c: Likewise.
97276         * lib/mbsstr.c: Likewise.
97277         * lib/mbstok_r.c: Likewise.
97278         * lib/mbswidth.c: Likewise.
97279         * lib/mbswidth.h: Likewise.
97280         * lib/mbuiter.h: Likewise.
97281         * lib/memcasecmp.c: Likewise.
97282         * lib/memcasecmp.h: Likewise.
97283         * lib/memchr.c: Likewise.
97284         * lib/memcmp.c: Likewise.
97285         * lib/memcoll.c: Likewise.
97286         * lib/memcoll.h: Likewise.
97287         * lib/memcpy.c: Likewise.
97288         * lib/memrchr.c: Likewise.
97289         * lib/mkancesdirs.c: Likewise.
97290         * lib/mkdir-p.c: Likewise.
97291         * lib/mkdir-p.h: Likewise.
97292         * lib/mkdir.c: Likewise.
97293         * lib/mkdirat.c: Likewise.
97294         * lib/mkdtemp.c: Likewise.
97295         * lib/mkstemp-safer.c: Likewise.
97296         * lib/mkstemp.c: Likewise.
97297         * lib/modechange.c: Likewise.
97298         * lib/modechange.h: Likewise.
97299         * lib/mountlist.c: Likewise.
97300         * lib/mountlist.h: Likewise.
97301         * lib/mpsort.c: Likewise.
97302         * lib/nanosleep.c: Likewise.
97303         * lib/obstack.c: Likewise.
97304         * lib/obstack.h: Likewise.
97305         * lib/open-safer.c: Likewise.
97306         * lib/open.c: Likewise.
97307         * lib/openat-die.c: Likewise.
97308         * lib/openat-priv.h: Likewise.
97309         * lib/openat-proc.c: Likewise.
97310         * lib/openat.c: Likewise.
97311         * lib/openat.h: Likewise.
97312         * lib/pagealign_alloc.c: Likewise.
97313         * lib/pagealign_alloc.h: Likewise.
97314         * lib/physmem.c: Likewise.
97315         * lib/physmem.h: Likewise.
97316         * lib/pipe-safer.c: Likewise.
97317         * lib/pipe.c: Likewise.
97318         * lib/pipe.h: Likewise.
97319         * lib/posixtm.c: Likewise.
97320         * lib/posixtm.h: Likewise.
97321         * lib/posixver.c: Likewise.
97322         * lib/printf-frexp.c: Likewise.
97323         * lib/printf-frexp.h: Likewise.
97324         * lib/printf-frexpl.c: Likewise.
97325         * lib/printf-frexpl.h: Likewise.
97326         * lib/printf.c: Likewise.
97327         * lib/progname.c: Likewise.
97328         * lib/progname.h: Likewise.
97329         * lib/progreloc.c: Likewise.
97330         * lib/putenv.c: Likewise.
97331         * lib/quote.c: Likewise.
97332         * lib/quote.h: Likewise.
97333         * lib/quotearg.c: Likewise.
97334         * lib/quotearg.h: Likewise.
97335         * lib/raise.c: Likewise.
97336         * lib/readline.c: Likewise.
97337         * lib/readline.h: Likewise.
97338         * lib/readlink.c: Likewise.
97339         * lib/readtokens.c: Likewise.
97340         * lib/readtokens.h: Likewise.
97341         * lib/readtokens0.c: Likewise.
97342         * lib/readtokens0.h: Likewise.
97343         * lib/readutmp.c: Likewise.
97344         * lib/readutmp.h: Likewise.
97345         * lib/realloc.c: Likewise.
97346         * lib/relocwrapper.c: Likewise.
97347         * lib/rename-dest-slash.c: Likewise.
97348         * lib/rename.c: Likewise.
97349         * lib/rmdir.c: Likewise.
97350         * lib/rpmatch.c: Likewise.
97351         * lib/safe-read.c: Likewise.
97352         * lib/safe-read.h: Likewise.
97353         * lib/safe-write.c: Likewise.
97354         * lib/safe-write.h: Likewise.
97355         * lib/same-inode.h: Likewise.
97356         * lib/same.c: Likewise.
97357         * lib/same.h: Likewise.
97358         * lib/save-cwd.c: Likewise.
97359         * lib/save-cwd.h: Likewise.
97360         * lib/savedir.c: Likewise.
97361         * lib/savedir.h: Likewise.
97362         * lib/savewd.c: Likewise.
97363         * lib/savewd.h: Likewise.
97364         * lib/search.in.h: Likewise.
97365         * lib/setenv.c: Likewise.
97366         * lib/setenv.h: Likewise.
97367         * lib/settime.c: Likewise.
97368         * lib/sh-quote.c: Likewise.
97369         * lib/sh-quote.h: Likewise.
97370         * lib/sig2str.c: Likewise.
97371         * lib/sig2str.h: Likewise.
97372         * lib/signal.in.h: Likewise.
97373         * lib/signbitd.c: Likewise.
97374         * lib/signbitf.c: Likewise.
97375         * lib/signbitl.c: Likewise.
97376         * lib/sigprocmask.c: Likewise.
97377         * lib/sincosl.c: Likewise.
97378         * lib/sleep.c: Likewise.
97379         * lib/sprintf.c: Likewise.
97380         * lib/sqrtl.c: Likewise.
97381         * lib/stat-time.h: Likewise.
97382         * lib/stdio--.h: Likewise.
97383         * lib/stdio-safer.h: Likewise.
97384         * lib/stdlib--.h: Likewise.
97385         * lib/stdlib-safer.h: Likewise.
97386         * lib/stdlib.in.h: Likewise.
97387         * lib/stpcpy.c: Likewise.
97388         * lib/stpncpy.c: Likewise.
97389         * lib/strchrnul.c: Likewise.
97390         * lib/strcspn.c: Likewise.
97391         * lib/strerror.c: Likewise.
97392         * lib/strftime.c: Likewise.
97393         * lib/strftime.h: Likewise.
97394         * lib/striconveh.c: Likewise.
97395         * lib/striconveh.h: Likewise.
97396         * lib/striconveha.c: Likewise.
97397         * lib/striconveha.h: Likewise.
97398         * lib/stripslash.c: Likewise.
97399         * lib/strnlen1.c: Likewise.
97400         * lib/strnlen1.h: Likewise.
97401         * lib/strtod.c: Likewise.
97402         * lib/strtoimax.c: Likewise.
97403         * lib/strtok_r.c: Likewise.
97404         * lib/strtol.c: Likewise.
97405         * lib/strtoll.c: Likewise.
97406         * lib/strtoul.c: Likewise.
97407         * lib/strtoull.c: Likewise.
97408         * lib/sysexits.in.h: Likewise.
97409         * lib/tempname.c: Likewise.
97410         * lib/tempname.h: Likewise.
97411         * lib/timespec.h: Likewise.
97412         * lib/tls.c: Likewise.
97413         * lib/tls.h: Likewise.
97414         * lib/tmpdir.c: Likewise.
97415         * lib/tmpdir.h: Likewise.
97416         * lib/tmpfile-safer.c: Likewise.
97417         * lib/tmpfile.c: Likewise.
97418         * lib/trigl.c: Likewise.
97419         * lib/trigl.h: Likewise.
97420         * lib/trim.c: Likewise.
97421         * lib/trim.h: Likewise.
97422         * lib/trunc.c: Likewise.
97423         * lib/truncf.c: Likewise.
97424         * lib/truncl.c: Likewise.
97425         * lib/tsearch.c: Likewise.
97426         * lib/unicodeio.c: Likewise.
97427         * lib/unicodeio.h: Likewise.
97428         * lib/unistd--.h: Likewise.
97429         * lib/unistd-safer.h: Likewise.
97430         * lib/unistdio/ulc-fprintf.c: Likewise.
97431         * lib/unistdio/ulc-vfprintf.c: Likewise.
97432         * lib/unlinkdir.c: Likewise.
97433         * lib/unlinkdir.h: Likewise.
97434         * lib/unlocked-io.h: Likewise.
97435         * lib/unsetenv.c: Likewise.
97436         * lib/userspec.c: Likewise.
97437         * lib/utime.c: Likewise.
97438         * lib/utimecmp.c: Likewise.
97439         * lib/utimecmp.h: Likewise.
97440         * lib/utimens.c: Likewise.
97441         * lib/verify.h: Likewise.
97442         * lib/verror.c: Likewise.
97443         * lib/verror.h: Likewise.
97444         * lib/version-etc-fsf.c: Likewise.
97445         * lib/version-etc.c: Likewise.
97446         * lib/version-etc.h: Likewise.
97447         * lib/vfprintf.c: Likewise.
97448         * lib/vprintf.c: Likewise.
97449         * lib/vsprintf.c: Likewise.
97450         * lib/w32spawn.h: Likewise.
97451         * lib/wait-process.c: Likewise.
97452         * lib/wait-process.h: Likewise.
97453         * lib/wcwidth.c: Likewise.
97454         * lib/write-any-file.c: Likewise.
97455         * lib/xalloc-die.c: Likewise.
97456         * lib/xalloc.h: Likewise.
97457         * lib/xasprintf.c: Likewise.
97458         * lib/xgetcwd.c: Likewise.
97459         * lib/xgetcwd.h: Likewise.
97460         * lib/xgetdomainname.c: Likewise.
97461         * lib/xgetdomainname.h: Likewise.
97462         * lib/xgethostname.c: Likewise.
97463         * lib/xmalloc.c: Likewise.
97464         * lib/xmalloca.c: Likewise.
97465         * lib/xmalloca.h: Likewise.
97466         * lib/xmemcoll.c: Likewise.
97467         * lib/xnanosleep.c: Likewise.
97468         * lib/xreadlink.c: Likewise.
97469         * lib/xreadlink.h: Likewise.
97470         * lib/xsetenv.c: Likewise.
97471         * lib/xsetenv.h: Likewise.
97472         * lib/xstriconv.c: Likewise.
97473         * lib/xstriconv.h: Likewise.
97474         * lib/xstrndup.c: Likewise.
97475         * lib/xstrndup.h: Likewise.
97476         * lib/xstrtod.c: Likewise.
97477         * lib/xstrtod.h: Likewise.
97478         * lib/xstrtol-error.c: Likewise.
97479         * lib/xstrtol.c: Likewise.
97480         * lib/xstrtol.h: Likewise.
97481         * lib/xtime.h: Likewise.
97482         * lib/xvasprintf.c: Likewise.
97483         * lib/xvasprintf.h: Likewise.
97484         * lib/yesno.c: Likewise.
97485         * lib/yesno.h: Likewise.
97486         * posix-modules: Likewise.
97487         * tests/test-alloca-opt.c: Likewise.
97488         * tests/test-arcfour.c: Likewise.
97489         * tests/test-arctwo.c: Likewise.
97490         * tests/test-argmatch.c: Likewise.
97491         * tests/test-argp-2.sh: Likewise.
97492         * tests/test-argp.c: Likewise.
97493         * tests/test-arpa_inet.c: Likewise.
97494         * tests/test-array_list.c: Likewise.
97495         * tests/test-array_oset.c: Likewise.
97496         * tests/test-atexit.c: Likewise.
97497         * tests/test-avltree_list.c: Likewise.
97498         * tests/test-avltree_oset.c: Likewise.
97499         * tests/test-avltreehash_list.c: Likewise.
97500         * tests/test-base64.c: Likewise.
97501         * tests/test-binary-io.c: Likewise.
97502         * tests/test-byteswap.c: Likewise.
97503         * tests/test-c-ctype.c: Likewise.
97504         * tests/test-c-strcasecmp.c: Likewise.
97505         * tests/test-c-strcasestr.c: Likewise.
97506         * tests/test-c-strncasecmp.c: Likewise.
97507         * tests/test-c-strstr.c: Likewise.
97508         * tests/test-canonicalize-lgpl.c: Likewise.
97509         * tests/test-canonicalize.c: Likewise.
97510         * tests/test-carray_list.c: Likewise.
97511         * tests/test-ceilf.c: Likewise.
97512         * tests/test-ceill.c: Likewise.
97513         * tests/test-count-one-bits.c: Likewise.
97514         * tests/test-crc.c: Likewise.
97515         * tests/test-dirname.c: Likewise.
97516         * tests/test-fbufmode.c: Likewise.
97517         * tests/test-fcntl.c: Likewise.
97518         * tests/test-fflush.c: Likewise.
97519         * tests/test-floorf.c: Likewise.
97520         * tests/test-floorl.c: Likewise.
97521         * tests/test-fopen.c: Likewise.
97522         * tests/test-fprintf-posix.c: Likewise.
97523         * tests/test-fprintf-posix.h: Likewise.
97524         * tests/test-fpurge.c: Likewise.
97525         * tests/test-freadable.c: Likewise.
97526         * tests/test-freadahead.c: Likewise.
97527         * tests/test-freading.c: Likewise.
97528         * tests/test-freopen.c: Likewise.
97529         * tests/test-frexp.c: Likewise.
97530         * tests/test-frexpl.c: Likewise.
97531         * tests/test-fseek.c: Likewise.
97532         * tests/test-fseeko.c: Likewise.
97533         * tests/test-fseterr.c: Likewise.
97534         * tests/test-fstrcmp.c: Likewise.
97535         * tests/test-ftell.c: Likewise.
97536         * tests/test-ftello.c: Likewise.
97537         * tests/test-fwritable.c: Likewise.
97538         * tests/test-fwriting.c: Likewise.
97539         * tests/test-getaddrinfo.c: Likewise.
97540         * tests/test-getpass.c: Likewise.
97541         * tests/test-gettimeofday.c: Likewise.
97542         * tests/test-hmac-md5.c: Likewise.
97543         * tests/test-hmac-sha1.c: Likewise.
97544         * tests/test-iconv.c: Likewise.
97545         * tests/test-iconvme.c: Likewise.
97546         * tests/test-inttypes.c: Likewise.
97547         * tests/test-isnan.c: Likewise.
97548         * tests/test-isnanf.c: Likewise.
97549         * tests/test-isnanl-nolibm.c: Likewise.
97550         * tests/test-isnanl.c: Likewise.
97551         * tests/test-isnanl.h: Likewise.
97552         * tests/test-ldexpl.c: Likewise.
97553         * tests/test-linked_list.c: Likewise.
97554         * tests/test-linkedhash_list.c: Likewise.
97555         * tests/test-locale.c: Likewise.
97556         * tests/test-localename.c: Likewise.
97557         * tests/test-lock.c: Likewise.
97558         * tests/test-lseek.c: Likewise.
97559         * tests/test-malloca.c: Likewise.
97560         * tests/test-math.c: Likewise.
97561         * tests/test-mbscasecmp.c: Likewise.
97562         * tests/test-mbscasestr1.c: Likewise.
97563         * tests/test-mbscasestr2.c: Likewise.
97564         * tests/test-mbscasestr3.c: Likewise.
97565         * tests/test-mbscasestr4.c: Likewise.
97566         * tests/test-mbschr.c: Likewise.
97567         * tests/test-mbscspn.c: Likewise.
97568         * tests/test-mbsncasecmp.c: Likewise.
97569         * tests/test-mbspbrk.c: Likewise.
97570         * tests/test-mbspcasecmp.c: Likewise.
97571         * tests/test-mbsrchr.c: Likewise.
97572         * tests/test-mbsspn.c: Likewise.
97573         * tests/test-mbsstr1.c: Likewise.
97574         * tests/test-mbsstr2.c: Likewise.
97575         * tests/test-mbsstr3.c: Likewise.
97576         * tests/test-md5.c: Likewise.
97577         * tests/test-memmem.c: Likewise.
97578         * tests/test-netinet_in.c: Likewise.
97579         * tests/test-open.c: Likewise.
97580         * tests/test-printf-frexp.c: Likewise.
97581         * tests/test-printf-frexpl.c: Likewise.
97582         * tests/test-printf-posix.c: Likewise.
97583         * tests/test-printf-posix.h: Likewise.
97584         * tests/test-rbtree_list.c: Likewise.
97585         * tests/test-rbtree_oset.c: Likewise.
97586         * tests/test-rbtreehash_list.c: Likewise.
97587         * tests/test-read-file.c: Likewise.
97588         * tests/test-rijndael.c: Likewise.
97589         * tests/test-search.c: Likewise.
97590         * tests/test-signbit.c: Likewise.
97591         * tests/test-sleep.c: Likewise.
97592         * tests/test-snprintf-posix.c: Likewise.
97593         * tests/test-snprintf-posix.h: Likewise.
97594         * tests/test-snprintf.c: Likewise.
97595         * tests/test-sprintf-posix.c: Likewise.
97596         * tests/test-sprintf-posix.h: Likewise.
97597         * tests/test-stat-time.c: Likewise.
97598         * tests/test-stdbool.c: Likewise.
97599         * tests/test-stdint.c: Likewise.
97600         * tests/test-stdio.c: Likewise.
97601         * tests/test-stdlib.c: Likewise.
97602         * tests/test-stpncpy.c: Likewise.
97603         * tests/test-strcasestr.c: Likewise.
97604         * tests/test-striconv.c: Likewise.
97605         * tests/test-striconveh.c: Likewise.
97606         * tests/test-striconveha.c: Likewise.
97607         * tests/test-string.c: Likewise.
97608         * tests/test-sys_select.c: Likewise.
97609         * tests/test-sys_socket.c: Likewise.
97610         * tests/test-sys_stat.c: Likewise.
97611         * tests/test-sys_time.c: Likewise.
97612         * tests/test-sysexits.c: Likewise.
97613         * tests/test-time.c: Likewise.
97614         * tests/test-tls.c: Likewise.
97615         * tests/test-trunc.c: Likewise.
97616         * tests/test-truncf.c: Likewise.
97617         * tests/test-truncl.c: Likewise.
97618         * tests/test-unistd.c: Likewise.
97619         * tests/test-vasnprintf-posix.c: Likewise.
97620         * tests/test-vasnprintf-posix2.c: Likewise.
97621         * tests/test-vasnprintf.c: Likewise.
97622         * tests/test-vasprintf-posix.c: Likewise.
97623         * tests/test-vasprintf.c: Likewise.
97624         * tests/test-verify.c: Likewise.
97625         * tests/test-vfprintf-posix.c: Likewise.
97626         * tests/test-vprintf-posix.c: Likewise.
97627         * tests/test-vsnprintf-posix.c: Likewise.
97628         * tests/test-vsnprintf.c: Likewise.
97629         * tests/test-vsprintf-posix.c: Likewise.
97630         * tests/test-wchar.c: Likewise.
97631         * tests/test-wctype.c: Likewise.
97632         * tests/test-wcwidth.c: Likewise.
97633         * tests/test-xstrtol.c: Likewise.
97634         * tests/test-xvasprintf.c: Likewise.
97635         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
97636         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
97637         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
97638         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
97639         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
97640         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
97641         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
97642         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
97643         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
97644         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
97645         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
97646         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
97647         * tests/uniname/test-uninames.c: Likewise.
97648         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
97649         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
97650         * tests/unistdio/test-u16-printf1.h: Likewise.
97651         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
97652         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
97653         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
97654         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
97655         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
97656         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
97657         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
97658         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
97659         * tests/unistdio/test-u32-printf1.h: Likewise.
97660         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
97661         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
97662         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
97663         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
97664         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
97665         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
97666         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97667         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97668         * tests/unistdio/test-u8-printf1.h: Likewise.
97669         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97670         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97671         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97672         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97673         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97674         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97675         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97676         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97677         * tests/unistdio/test-ulc-printf1.h: Likewise.
97678         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97679         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97680         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97681         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97682         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97683         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97684         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97685         * tests/uniwidth/test-u16-width.c: Likewise.
97686         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97687         * tests/uniwidth/test-u32-width.c: Likewise.
97688         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97689         * tests/uniwidth/test-u8-width.c: Likewise.
97690         * tests/uniwidth/test-uc_width.c: Likewise.
97691         * config/srclist-update: Likewise.
97692         (fixlicense): Update to GPLv3+.
97694         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97695         * tests/test-tsearch.c: Change copyright notice.
97697         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97698         * lib/c-strcaseeq.h: Change copyright notice.
97699         * lib/streq.h: Likewise.
97700         * lib/uniconv.h: Likewise.
97701         * lib/uniconv/u-conv-from-enc.h: Likewise.
97702         * lib/uniconv/u-conv-to-enc.h: Likewise.
97703         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97704         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97705         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97706         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97707         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
97708         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
97709         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
97710         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
97711         * lib/uniconv/u32-conv-from-enc.c: Likewise.
97712         * lib/uniconv/u32-conv-to-enc.c: Likewise.
97713         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
97714         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
97715         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
97716         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
97717         * lib/uniconv/u8-conv-from-enc.c: Likewise.
97718         * lib/uniconv/u8-conv-to-enc.c: Likewise.
97719         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
97720         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
97721         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
97722         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
97723         * lib/uniname.h: Likewise.
97724         * lib/uniname/uniname.c: Likewise.
97725         * lib/unistdio.h: Likewise.
97726         * lib/unistdio/u-asnprintf.h: Likewise.
97727         * lib/unistdio/u-asprintf.h: Likewise.
97728         * lib/unistdio/u-printf-args.c: Likewise.
97729         * lib/unistdio/u-printf-args.h: Likewise.
97730         * lib/unistdio/u-printf-parse.h: Likewise.
97731         * lib/unistdio/u-snprintf.h: Likewise.
97732         * lib/unistdio/u-sprintf.h: Likewise.
97733         * lib/unistdio/u-vasprintf.h: Likewise.
97734         * lib/unistdio/u-vsnprintf.h: Likewise.
97735         * lib/unistdio/u-vsprintf.h: Likewise.
97736         * lib/unistdio/u16-asnprintf.c: Likewise.
97737         * lib/unistdio/u16-asprintf.c: Likewise.
97738         * lib/unistdio/u16-printf-parse.c: Likewise.
97739         * lib/unistdio/u16-snprintf.c: Likewise.
97740         * lib/unistdio/u16-sprintf.c: Likewise.
97741         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
97742         * lib/unistdio/u16-u16-asprintf.c: Likewise.
97743         * lib/unistdio/u16-u16-snprintf.c: Likewise.
97744         * lib/unistdio/u16-u16-sprintf.c: Likewise.
97745         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
97746         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
97747         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
97748         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
97749         * lib/unistdio/u16-vasnprintf.c: Likewise.
97750         * lib/unistdio/u16-vasprintf.c: Likewise.
97751         * lib/unistdio/u16-vsnprintf.c: Likewise.
97752         * lib/unistdio/u16-vsprintf.c: Likewise.
97753         * lib/unistdio/u32-asnprintf.c: Likewise.
97754         * lib/unistdio/u32-asprintf.c: Likewise.
97755         * lib/unistdio/u32-printf-parse.c: Likewise.
97756         * lib/unistdio/u32-snprintf.c: Likewise.
97757         * lib/unistdio/u32-sprintf.c: Likewise.
97758         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
97759         * lib/unistdio/u32-u32-asprintf.c: Likewise.
97760         * lib/unistdio/u32-u32-snprintf.c: Likewise.
97761         * lib/unistdio/u32-u32-sprintf.c: Likewise.
97762         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
97763         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
97764         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
97765         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
97766         * lib/unistdio/u32-vasnprintf.c: Likewise.
97767         * lib/unistdio/u32-vasprintf.c: Likewise.
97768         * lib/unistdio/u32-vsnprintf.c: Likewise.
97769         * lib/unistdio/u32-vsprintf.c: Likewise.
97770         * lib/unistdio/u8-asnprintf.c: Likewise.
97771         * lib/unistdio/u8-asprintf.c: Likewise.
97772         * lib/unistdio/u8-printf-parse.c: Likewise.
97773         * lib/unistdio/u8-snprintf.c: Likewise.
97774         * lib/unistdio/u8-sprintf.c: Likewise.
97775         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
97776         * lib/unistdio/u8-u8-asprintf.c: Likewise.
97777         * lib/unistdio/u8-u8-snprintf.c: Likewise.
97778         * lib/unistdio/u8-u8-sprintf.c: Likewise.
97779         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
97780         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
97781         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
97782         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
97783         * lib/unistdio/u8-vasnprintf.c: Likewise.
97784         * lib/unistdio/u8-vasprintf.c: Likewise.
97785         * lib/unistdio/u8-vsnprintf.c: Likewise.
97786         * lib/unistdio/u8-vsprintf.c: Likewise.
97787         * lib/unistdio/ulc-asnprintf.c: Likewise.
97788         * lib/unistdio/ulc-asprintf.c: Likewise.
97789         * lib/unistdio/ulc-printf-parse.c: Likewise.
97790         * lib/unistdio/ulc-snprintf.c: Likewise.
97791         * lib/unistdio/ulc-sprintf.c: Likewise.
97792         * lib/unistdio/ulc-vasnprintf.c: Likewise.
97793         * lib/unistdio/ulc-vasprintf.c: Likewise.
97794         * lib/unistdio/ulc-vsnprintf.c: Likewise.
97795         * lib/unistdio/ulc-vsprintf.c: Likewise.
97796         * lib/unistr.h: Likewise.
97797         * lib/unistr/u-cpy-alloc.h: Likewise.
97798         * lib/unistr/u-cpy.h: Likewise.
97799         * lib/unistr/u-endswith.h: Likewise.
97800         * lib/unistr/u-move.h: Likewise.
97801         * lib/unistr/u-set.h: Likewise.
97802         * lib/unistr/u-startswith.h: Likewise.
97803         * lib/unistr/u-stpcpy.h: Likewise.
97804         * lib/unistr/u-stpncpy.h: Likewise.
97805         * lib/unistr/u-strcat.h: Likewise.
97806         * lib/unistr/u-strcpy.h: Likewise.
97807         * lib/unistr/u-strcspn.h: Likewise.
97808         * lib/unistr/u-strdup.h: Likewise.
97809         * lib/unistr/u-strlen.h: Likewise.
97810         * lib/unistr/u-strncat.h: Likewise.
97811         * lib/unistr/u-strncpy.h: Likewise.
97812         * lib/unistr/u-strnlen.h: Likewise.
97813         * lib/unistr/u-strpbrk.h: Likewise.
97814         * lib/unistr/u-strspn.h: Likewise.
97815         * lib/unistr/u-strstr.h: Likewise.
97816         * lib/unistr/u-strtok.h: Likewise.
97817         * lib/unistr/u16-check.c: Likewise.
97818         * lib/unistr/u16-chr.c: Likewise.
97819         * lib/unistr/u16-cmp.c: Likewise.
97820         * lib/unistr/u16-cpy-alloc.c: Likewise.
97821         * lib/unistr/u16-cpy.c: Likewise.
97822         * lib/unistr/u16-endswith.c: Likewise.
97823         * lib/unistr/u16-mblen.c: Likewise.
97824         * lib/unistr/u16-mbsnlen.c: Likewise.
97825         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97826         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97827         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97828         * lib/unistr/u16-mbtouc.c: Likewise.
97829         * lib/unistr/u16-mbtoucr.c: Likewise.
97830         * lib/unistr/u16-move.c: Likewise.
97831         * lib/unistr/u16-next.c: Likewise.
97832         * lib/unistr/u16-prev.c: Likewise.
97833         * lib/unistr/u16-set.c: Likewise.
97834         * lib/unistr/u16-startswith.c: Likewise.
97835         * lib/unistr/u16-stpcpy.c: Likewise.
97836         * lib/unistr/u16-stpncpy.c: Likewise.
97837         * lib/unistr/u16-strcat.c: Likewise.
97838         * lib/unistr/u16-strchr.c: Likewise.
97839         * lib/unistr/u16-strcmp.c: Likewise.
97840         * lib/unistr/u16-strcpy.c: Likewise.
97841         * lib/unistr/u16-strcspn.c: Likewise.
97842         * lib/unistr/u16-strdup.c: Likewise.
97843         * lib/unistr/u16-strlen.c: Likewise.
97844         * lib/unistr/u16-strmblen.c: Likewise.
97845         * lib/unistr/u16-strmbtouc.c: Likewise.
97846         * lib/unistr/u16-strncat.c: Likewise.
97847         * lib/unistr/u16-strncmp.c: Likewise.
97848         * lib/unistr/u16-strncpy.c: Likewise.
97849         * lib/unistr/u16-strnlen.c: Likewise.
97850         * lib/unistr/u16-strpbrk.c: Likewise.
97851         * lib/unistr/u16-strrchr.c: Likewise.
97852         * lib/unistr/u16-strspn.c: Likewise.
97853         * lib/unistr/u16-strstr.c: Likewise.
97854         * lib/unistr/u16-strtok.c: Likewise.
97855         * lib/unistr/u16-to-u32.c: Likewise.
97856         * lib/unistr/u16-to-u8.c: Likewise.
97857         * lib/unistr/u16-uctomb-aux.c: Likewise.
97858         * lib/unistr/u16-uctomb.c: Likewise.
97859         * lib/unistr/u32-check.c: Likewise.
97860         * lib/unistr/u32-chr.c: Likewise.
97861         * lib/unistr/u32-cmp.c: Likewise.
97862         * lib/unistr/u32-cpy-alloc.c: Likewise.
97863         * lib/unistr/u32-cpy.c: Likewise.
97864         * lib/unistr/u32-endswith.c: Likewise.
97865         * lib/unistr/u32-mblen.c: Likewise.
97866         * lib/unistr/u32-mbsnlen.c: Likewise.
97867         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97868         * lib/unistr/u32-mbtouc.c: Likewise.
97869         * lib/unistr/u32-mbtoucr.c: Likewise.
97870         * lib/unistr/u32-move.c: Likewise.
97871         * lib/unistr/u32-next.c: Likewise.
97872         * lib/unistr/u32-prev.c: Likewise.
97873         * lib/unistr/u32-set.c: Likewise.
97874         * lib/unistr/u32-startswith.c: Likewise.
97875         * lib/unistr/u32-stpcpy.c: Likewise.
97876         * lib/unistr/u32-stpncpy.c: Likewise.
97877         * lib/unistr/u32-strcat.c: Likewise.
97878         * lib/unistr/u32-strchr.c: Likewise.
97879         * lib/unistr/u32-strcmp.c: Likewise.
97880         * lib/unistr/u32-strcpy.c: Likewise.
97881         * lib/unistr/u32-strcspn.c: Likewise.
97882         * lib/unistr/u32-strdup.c: Likewise.
97883         * lib/unistr/u32-strlen.c: Likewise.
97884         * lib/unistr/u32-strmblen.c: Likewise.
97885         * lib/unistr/u32-strmbtouc.c: Likewise.
97886         * lib/unistr/u32-strncat.c: Likewise.
97887         * lib/unistr/u32-strncmp.c: Likewise.
97888         * lib/unistr/u32-strncpy.c: Likewise.
97889         * lib/unistr/u32-strnlen.c: Likewise.
97890         * lib/unistr/u32-strpbrk.c: Likewise.
97891         * lib/unistr/u32-strrchr.c: Likewise.
97892         * lib/unistr/u32-strspn.c: Likewise.
97893         * lib/unistr/u32-strstr.c: Likewise.
97894         * lib/unistr/u32-strtok.c: Likewise.
97895         * lib/unistr/u32-to-u16.c: Likewise.
97896         * lib/unistr/u32-to-u8.c: Likewise.
97897         * lib/unistr/u32-uctomb.c: Likewise.
97898         * lib/unistr/u8-check.c: Likewise.
97899         * lib/unistr/u8-chr.c: Likewise.
97900         * lib/unistr/u8-cmp.c: Likewise.
97901         * lib/unistr/u8-cpy-alloc.c: Likewise.
97902         * lib/unistr/u8-cpy.c: Likewise.
97903         * lib/unistr/u8-endswith.c: Likewise.
97904         * lib/unistr/u8-mblen.c: Likewise.
97905         * lib/unistr/u8-mbsnlen.c: Likewise.
97906         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97907         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97908         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97909         * lib/unistr/u8-mbtouc.c: Likewise.
97910         * lib/unistr/u8-mbtoucr.c: Likewise.
97911         * lib/unistr/u8-move.c: Likewise.
97912         * lib/unistr/u8-next.c: Likewise.
97913         * lib/unistr/u8-prev.c: Likewise.
97914         * lib/unistr/u8-set.c: Likewise.
97915         * lib/unistr/u8-startswith.c: Likewise.
97916         * lib/unistr/u8-stpcpy.c: Likewise.
97917         * lib/unistr/u8-stpncpy.c: Likewise.
97918         * lib/unistr/u8-strcat.c: Likewise.
97919         * lib/unistr/u8-strchr.c: Likewise.
97920         * lib/unistr/u8-strcmp.c: Likewise.
97921         * lib/unistr/u8-strcpy.c: Likewise.
97922         * lib/unistr/u8-strcspn.c: Likewise.
97923         * lib/unistr/u8-strdup.c: Likewise.
97924         * lib/unistr/u8-strlen.c: Likewise.
97925         * lib/unistr/u8-strmblen.c: Likewise.
97926         * lib/unistr/u8-strmbtouc.c: Likewise.
97927         * lib/unistr/u8-strncat.c: Likewise.
97928         * lib/unistr/u8-strncmp.c: Likewise.
97929         * lib/unistr/u8-strncpy.c: Likewise.
97930         * lib/unistr/u8-strnlen.c: Likewise.
97931         * lib/unistr/u8-strpbrk.c: Likewise.
97932         * lib/unistr/u8-strrchr.c: Likewise.
97933         * lib/unistr/u8-strspn.c: Likewise.
97934         * lib/unistr/u8-strstr.c: Likewise.
97935         * lib/unistr/u8-strtok.c: Likewise.
97936         * lib/unistr/u8-to-u16.c: Likewise.
97937         * lib/unistr/u8-to-u32.c: Likewise.
97938         * lib/unistr/u8-uctomb-aux.c: Likewise.
97939         * lib/unistr/u8-uctomb.c: Likewise.
97940         * lib/unitypes.h: Likewise.
97941         * lib/uniwidth.h: Likewise.
97942         * lib/uniwidth/cjk.h: Likewise.
97943         * lib/uniwidth/u16-strwidth.c: Likewise.
97944         * lib/uniwidth/u16-width.c: Likewise.
97945         * lib/uniwidth/u32-strwidth.c: Likewise.
97946         * lib/uniwidth/u32-width.c: Likewise.
97947         * lib/uniwidth/u8-strwidth.c: Likewise.
97948         * lib/uniwidth/u8-width.c: Likewise.
97949         * lib/uniwidth/width.c: Likewise.
97951 2007-10-07  Bruno Haible  <bruno@clisp.org>
97953         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97954         The file is still under LGPL (see modules/inttypes).
97956 2007-10-06  Bruno Haible  <bruno@clisp.org>
97958         * modules/trunc (Dependencies): Add 'extensions'.
97959         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97960         Reported by Ben Pfaff <blp@gnu.org>.
97962 2007-10-06  Bruno Haible  <bruno@clisp.org>
97964         * modules/freopen-tests: New file.
97965         * tests/test-freopen.c: New file.
97967         * modules/fopen-tests: New file.
97968         * tests/test-fopen.c: New file.
97970         * modules/fopen: New file.
97971         * lib/fopen.c: New file.
97972         * m4/fopen.m4: New file.
97973         * modules/freopen: New file.
97974         * lib/freopen.c: New file.
97975         * m4/freopen.m4: New file.
97976         * lib/stdio.in.h (fopen, freopen): New declarations.
97977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97978         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97979         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97980         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97981         * doc/functions/fopen.texi: Mention the 'fopen' module.
97982         * doc/functions/freopen.texi: Mention the 'freopen' module.
97984 2007-10-06  Bruno Haible  <bruno@clisp.org>
97986         * modules/open-tests: New file.
97987         * tests/test-open.c: New file.
97989         * modules/open: New file.
97990         * lib/open.c: New file.
97991         * m4/open.m4: New file.
97992         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97993         lib/open.c does.
97994         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97995         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97996         macros.
97997         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97998         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97999         REPLACE_OPEN.
98000         * doc/functions/open.texi: Mention the 'open' module.
98002 2007-10-04  Bruno Haible  <bruno@clisp.org>
98004         * modules/ceill-tests: New file.
98005         * tests/test-ceill.c: New file.
98007         * modules/ceill: New file.
98008         * lib/ceill.c: Replace entire file.
98009         * m4/ceill.m4: New file.
98010         * lib/math.in.h (ceill): Replace declaration.
98011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
98012         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
98013         * doc/functions/ceill.texi: Mention the 'ceill' module.
98014         * modules/mathl (Files): Remove lib/ceill.c.
98015         (Depends-on): Add ceill.
98017 2007-10-04  Bruno Haible  <bruno@clisp.org>
98019         * modules/ceilf-tests: New file.
98020         * tests/test-ceilf.c: New file.
98022         * modules/ceilf: New file.
98023         * lib/ceil.c: New file.
98024         * lib/ceilf.c: New file.
98025         * m4/ceilf.m4: New file.
98026         * lib/math.in.h (ceilf): New declaration.
98027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
98028         HAVE_DECL_CEILF.
98029         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
98030         HAVE_DECL_CEILF.
98031         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
98033 2007-10-04  Bruno Haible  <bruno@clisp.org>
98035         * modules/floorl-tests: New file.
98036         * tests/test-floorl.c: New file.
98038         * modules/floorl: New file.
98039         * lib/floorl.c: Replace entire file.
98040         * m4/floorl.m4: New file.
98041         * lib/math.in.h (floorl): Replace declaration.
98042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
98043         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
98044         * doc/functions/floorl.texi: Mention the 'floorl' module.
98045         * modules/mathl (Files): Remove lib/floorl.c.
98046         (Depends-on): Add floorl.
98048 2007-10-04  Bruno Haible  <bruno@clisp.org>
98050         * modules/floorf-tests: New file.
98051         * tests/test-floorf.c: New file.
98053         * modules/floorf: New file.
98054         * lib/floor.c: New file.
98055         * lib/floorf.c: New file.
98056         * m4/floorf.m4: New file.
98057         * lib/math.in.h (floorf): New declaration.
98058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
98059         HAVE_DECL_FLOORF.
98060         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
98061         HAVE_DECL_FLOORF.
98062         * doc/functions/floorf.texi: Mention the 'floorf' module.
98064 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
98065             Bruno Haible  <bruno@clisp.org>
98067         Advertise for the Git server instead of the CVS server.
98068         * doc/gnulib-intro.texi (Steady Development): Mention the Git
98069         repository instead of the CVS one.
98070         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
98071         about all VCS systems generically.
98072         * doc/gnulib.texi (Introduction): Capitalize `Git'.
98074 2007-10-04  Bruno Haible  <bruno@clisp.org>
98076         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
98077         means.
98078         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
98080 2007-10-04  Bruno Haible  <bruno@clisp.org>
98082         * modules/truncl-tests: New file.
98083         * tests/test-truncl.c: New file.
98085         * modules/truncl: New file.
98086         * lib/truncl.c: New file.
98087         * m4/truncl.m4: New file.
98088         * lib/math.in.h (truncl): New declaration.
98089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
98090         HAVE_DECL_TRUNCL.
98091         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
98092         HAVE_DECL_TRUNCL.
98093         * doc/functions/truncl.texi: Mention the 'truncl' module.
98095 2007-10-04  Bruno Haible  <bruno@clisp.org>
98097         * modules/truncf-tests: New file.
98098         * tests/test-truncf.c: New file.
98100         * modules/truncf: New file.
98101         * lib/trunc.c: Make paramerizable through USE_* macros.
98102         * lib/truncf.c: New file.
98103         * m4/truncf.m4: New file.
98104         * lib/math.in.h (truncf): New declaration.
98105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
98106         HAVE_DECL_TRUNCF.
98107         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
98108         HAVE_DECL_TRUNCF.
98109         * doc/functions/truncf.texi: Mention the 'truncf' module.
98111 2007-10-03  Bruno Haible  <bruno@clisp.org>
98113         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
98114         augmentation also for tests modules.
98115         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
98116         * modules/atexit-tests (Makefile.am): Likewise.
98117         * modules/binary-io-tests (Makefile.am): Likewise.
98118         * modules/c-strcase-tests (Makefile.am): Likewise.
98119         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
98120         * modules/canonicalize-tests (Makefile.am): Likewise.
98121         * modules/closein-tests (Makefile.am): Likewise.
98122         * modules/fprintf-posix-tests (Makefile.am): Likewise.
98123         * modules/freadahead-tests (Makefile.am): Likewise.
98124         * modules/fseek-tests (Makefile.am): Likewise.
98125         * modules/fseeko-tests (Makefile.am): Likewise.
98126         * modules/ftell-tests (Makefile.am): Likewise.
98127         * modules/ftello-tests (Makefile.am): Likewise.
98128         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
98129         * modules/isnanl-tests (Makefile.am): Likewise.
98130         * modules/lseek-tests (Makefile.am): Likewise.
98131         * modules/mbscasecmp-tests (Makefile.am): Likewise.
98132         * modules/mbscasestr-tests (Makefile.am): Likewise.
98133         * modules/mbschr-tests (Makefile.am): Likewise.
98134         * modules/mbscspn-tests (Makefile.am): Likewise.
98135         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98136         * modules/mbspbrk-tests (Makefile.am): Likewise.
98137         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
98138         * modules/mbsrchr-tests (Makefile.am): Likewise.
98139         * modules/mbsspn-tests (Makefile.am): Likewise.
98140         * modules/mbsstr-tests (Makefile.am): Likewise.
98141         * modules/printf-posix-tests (Makefile.am): Likewise.
98142         * modules/snprintf-posix-tests (Makefile.am): Likewise.
98143         * modules/sprintf-posix-tests (Makefile.am): Likewise.
98144         * modules/tsearch-tests (Makefile.am): Likewise.
98145         * modules/uniname/uniname-tests (Makefile.am): Likewise.
98146         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
98147         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
98148         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
98149         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
98150         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
98151         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
98152         * modules/vprintf-posix-tests (Makefile.am): Likewise.
98153         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
98154         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
98155         * modules/xstrtoimax-tests (Makefile.am): Likewise.
98156         * modules/xstrtol-tests (Makefile.am): Likewise.
98157         * modules/xstrtoumax-tests (Makefile.am): Likewise.
98158         * modules/yesno-tests (Makefile.am): Likewise.
98160 2007-10-03  Bruno Haible  <bruno@clisp.org>
98162         * modules/trunc-tests: New file.
98163         * tests/test-trunc.c: New file.
98165         * modules/trunc: New file.
98166         * lib/trunc.c: New file.
98167         * m4/trunc.m4: New file.
98168         * lib/math.in.h (trunc): New declaration.
98169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
98170         HAVE_DECL_TRUNC.
98171         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
98172         HAVE_DECL_TRUNC.
98173         * doc/functions/trunc.texi: Mention the 'trunc' module.
98175 2007-10-03  Bruno Haible  <bruno@clisp.org>
98177         * tests/test-fpending.c: New file, mostly copied
98178         from coreutils/lib/t-fpending.c.
98179         * modules/fpending-tests: New file.
98181 2007-10-03  Bruno Haible  <bruno@clisp.org>
98183         Port the stdio extensions to QNX (untested).
98184         * lib/fseterr.c (fseterr): Add support for QNX.
98185         * lib/fbufmode.c (fbufmode): Likewise.
98186         * lib/freadable.c (freadable): Likewise.
98187         * lib/fwritable.c (fwritable): Likewise.
98188         * lib/freading.c (freading): Likewise.
98189         * lib/fwriting.c (fwriting): Likewise.
98190         * lib/freadahead.c (freadahed): Likewise.
98191         * lib/fpurge.c (fpurge): Likewise.
98192         * lib/fseeko.c (rpl_fseeko): Likewise.
98194 2007-10-03  Bruno Haible  <bruno@clisp.org>
98195             Jim Meyering  <jim@meyering.net>
98196             Eric Blake  <ebb9@byu.net>
98198         * doc/relocatable.texi: Use @command instead of @program.
98200 2007-10-02  Jim Meyering  <jim@meyering.net>
98202         Perform one more "_.h" -> ".in.h" substitution.
98203         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
98204         instead of unistd_.h here, too.
98206 2007-10-01  Bruno Haible  <bruno@clisp.org>
98208         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
98209         Needed for the alloca-opt module.
98211 2007-09-30  Bruno Haible  <bruno@clisp.org>
98213         * lib/alloca.in.h: Renamed from lib/alloca_.h.
98214         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
98215         alloca_.h.
98216         * lib/argz.in.h: Renamed from lib/argz_.h.
98217         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
98218         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
98219         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
98220         byteswap_.h.
98221         * lib/dirent.in.h: Renamed from lib/dirent_.h.
98222         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
98223         dirent_.h.
98224         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
98225         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
98226         fcntl_.h.
98227         * lib/float.in.h: Renamed from lib/float_.h.
98228         * modules/float (Files, Makefile.am): Use float.in.h instead of
98229         float_.h.
98230         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
98231         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
98232         fnmatch_.h.
98233         * lib/getopt.in.h: Renamed from lib/getopt_.h.
98234         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
98235         getopt_.h.
98236         * lib/glob.in.h: Renamed from lib/glob_.h.
98237         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
98238         * lib/iconv.in.h: Renamed from lib/iconv_.h.
98239         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
98240         iconv_.h.
98241         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
98242         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
98243         inttypes_.h.
98244         * lib/locale.in.h: Renamed from lib/locale_.h.
98245         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
98246         locale_.h.
98247         * lib/math.in.h: Renamed from lib/math_.h.
98248         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
98249         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
98250         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
98251         of netinet_in_.h. Add dependency.
98252         * lib/poll.in.h: Renamed from lib/poll_.h.
98253         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
98254         * lib/search.in.h: Renamed from lib/search_.h.
98255         * modules/search (Files, Makefile.am): Use search.in.h instead of
98256         search_.h.
98257         * lib/signal.in.h: Renamed from lib/signal_.h.
98258         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
98259         _signal.h.
98260         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
98261         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
98262         stdbool_.h.
98263         * lib/stdint.in.h: Renamed from lib/stdint_.h.
98264         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
98265         stdint_.h.
98266         * lib/stdio.in.h: Renamed from lib/stdio_.h.
98267         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
98268         stdio_.h.
98269         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
98270         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
98271         stdlib_.h.
98272         * lib/string.in.h: Renamed from lib/string_.h.
98273         * modules/string (Files, Makefile.am): Use string.in.h instead of
98274         string_.h.
98275         * doc/gnulib-tool.texi (Initial import): Update.
98276         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
98277         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
98278         of sys_select_.h. Add dependency.
98279         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
98280         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
98281         of sys_socket_.h.
98282         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
98283         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
98284         sys_stat_.h.
98285         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
98286         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
98287         sys_time_.h.
98288         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
98289         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
98290         sysexits_.h.
98291         * lib/time.in.h: Renamed from lib/time_.h.
98292         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
98293         * lib/unistd.in.h: Renamed from lib/unistd_.h.
98294         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
98295         unistd_.h.
98296         * lib/wchar.in.h: Renamed from lib/wchar_.h.
98297         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
98298         wchar_.h.
98299         * lib/wctype.in.h: Renamed from lib/wctype_.h.
98300         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
98301         wctype_.h.
98302         * build-aux/bootstrap (slurp): Update.
98303         * lib/.cppi-disable: Update.
98305 2007-09-30  Bruno Haible  <bruno@clisp.org>
98307         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
98308         Needed on BeOS.
98310 2007-09-30  Bruno Haible  <bruno@clisp.org>
98312         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
98314 2007-09-29  Bruno Haible  <bruno@clisp.org>
98316         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
98318 2007-09-29  Bruno Haible  <bruno@clisp.org>
98320         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
98321         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
98322         * build-aux/install-reloc: Compile also areadlink.c.
98323         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
98325 2007-09-29  Bruno Haible  <bruno@clisp.org>
98327         * gnulib-tool (func_emit_initmacro_done): Indentation.
98329 2007-09-29  Bruno Haible  <bruno@clisp.org>
98331         * README: Add CVS checkout update instructions.
98332         Info from Bob Proulx <bob@proulx.com>.
98334 2007-09-28  Eric Blake  <ebb9@byu.net>
98336         Provide move-if-change.
98337         * build-aux/move-if-change: New file, based on best practice
98338         rather than any canonical upstream location.
98340 2007-09-28  Jim Meyering  <jim@meyering.net>
98342         Fix canonicalize loop-detection corner case.
98343         Do not attempt to stat the symlink values stored via seen_triple.
98344         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
98345         on linux-2.6.18, (but not 2.6.22).
98346         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
98347         triple_compare.  The former compares dev,ino,filename, while the latter
98348         would actually stat dirname(filename) when dev and ino were equal.
98349         * lib/hash-triple.c: Install <string.h>.
98350         (STREQ): Define.
98351         (triple_compare_ino_str): New function.
98352         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
98354 2007-09-28  Eric Blake  <ebb9@byu.net>
98356         Enforce that AC_REPLACE_FUNCS files exist.
98357         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
98358         override check for typos.
98360         Fix test-closein on Solaris 10.
98361         * tests/test-closein.c (main): Don't assume stdin can be inherited
98362         closed on all systems.
98363         * tests/test-closein.sh: Likewise.
98364         Reported by Piotr Tarnowski.
98366 2007-09-28  Jim Meyering  <jim@meyering.net>
98368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
98370 2007-09-27  Jim Meyering  <jim@meyering.net>
98372         canonicalize: Avoid a false-positive cycle failure.
98373         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
98374         Sort.  Remove cycle-check.
98375         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
98376         not cycle-check.h.
98377         (seen_triple): New function.
98378         (canonicalize_filename_mode): Use it instead of cycle-check.
98379         * tests/test-canonicalize.c: Add a test for this bug.
98380         * tests/test-canonicalize.sh: Set up and run the test.
98382         New module, file-set, from coreutils.
98383         * modules/file-set: Define it.
98384         * lib/file-set.c, lib/file-set.h: Implement.
98386         New module, hash-triple, from coreutils.
98387         * modules/hash-triple: Define it.
98388         * lib/hash-triple.c, lib/hash-triple.h: Implement.
98390 2007-09-25  Eric Blake  <ebb9@byu.net>
98392         Fix strerror on Interix.
98393         * lib/string_.h (strerror): Declare replacement.
98394         * doc/functions/strerror.texi (strerror): Document the Interix
98395         shortcoming.
98396         * modules/string (Makefile.am): Support new hooks.
98397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
98398         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
98399         gl_FUNC_STRERROR_SEPARATE.
98400         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
98401         * lib/strerror.c (rpl_strerror): Provide replacement.
98402         * modules/strerror (Depends-on): Add string.
98403         (configure.ac): Detect use of module.
98404         * tests/test-strerror.c: New file.
98405         * modules/strerror-tests: New test module.
98406         * modules/argp (Depends-on): Add strerror.
98407         * modules/error (Depends-on): Likewise.
98408         Reported by Martin Koeppe.
98410 2007-09-24  Bruno Haible  <bruno@clisp.org>
98412         * README: Update git instructions.
98414 2007-09-24  Eric Blake  <ebb9@byu.net>
98416         Revert fpending breakage from 2007-09-08.
98417         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
98418         __fpending.c.
98420 2007-09-24  Jim Meyering  <jim@meyering.net>
98422         filenamecat.c: Add a test.
98423         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
98424         showing how the function works when DIR is the empty string.
98426 2007-09-21  Simon Josefsson  <simon@josefsson.org>
98428         * tests/test-canonicalize.sh: Turn on executable bit.
98430 2007-09-19  Eric Blake  <ebb9@byu.net>
98432         * README: Update CVS instructions.
98434 2007-09-18  Bruno Haible  <bruno@clisp.org>
98436         * modules/areadlink: New file.
98437         * lib/areadlink.h (areadlink): New declaration.
98438         * lib/areadlink.c: New file, based on lib/xreadlink.c.
98440 2007-09-17  Jim Meyering  <jim@meyering.net>
98442         * lib/savewd.c (ESTALE) [!defined]: Define.
98443         Reported to be required on Interix by Martin Koeppe.
98445 2007-09-17  Bruno Haible  <bruno@clisp.org>
98447         * gnulib-tool (func_version): Use $version.
98449 2007-09-16  Bruno Haible  <bruno@clisp.org>
98451         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
98452         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
98453         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
98454         Reported by Greg Schafer <gschafer@zip.com.au>.
98456 2007-09-15  Bruno Haible  <bruno@clisp.org>
98458         * gnulib-tool (sed): Try a little harder to make bash understand the
98459         alias.
98460         Reported by Bruce Korb <bruce.korb@gmail.com>.
98462 2007-09-13  Eric Blake  <ebb9@byu.net>
98464         * ChangeLog: Remove conflict markers.
98466 2007-09-13  Simon Josefsson  <simon@josefsson.org>
98468         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
98469         Reported by Bruno Haible <bruno@clisp.org>.
98471 2007-09-12  Bruno Haible  <bruno@clisp.org>
98473         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
98474         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
98475         is not defined.
98477 2007-09-12  Eric Blake  <ebb9@byu.net>
98479         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
98480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
98481         Autoconf definition.
98482         * modules/euidaccess (Depends-on): Add extensions, for
98483         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
98484         * modules/fnmatch (Depends-on): Likewise.
98485         * modules/getaddrinfo (Depends-on): Likewise.
98486         * modules/getdelim (Depends-on): Likewise.
98487         * modules/getline (Depends-on): Likewise.
98488         * modules/getsubopt (Depends-on): Likewise.
98489         * modules/gettext (Depends-on): Likewise.
98490         * modules/group-member (Depends-on): Likewise.
98491         * modules/mbchar (Depends-on): Likewise.
98492         * modules/memmem (Depends-on): Likewise.
98493         * modules/mempcpy (Depends-on): Likewise.
98494         * modules/memrchr (Depends-on): Likewise.
98495         * modules/pagealign_alloc (Depends-on): Likewise.
98496         * modules/readutmp (Depends-on): Likewise.
98497         * modules/stpcpy (Depends-on): Likewise.
98498         * modules/stpncpy (Depends-on): Likewise.
98499         * modules/strchrnul (Depends-on): Likewise.
98500         * modules/strndup (Depends-on): Likewise.
98501         * modules/strsep (Depends-on): Likewise.
98502         * modules/strverscmp (Depends-on): Likewise.
98503         * modules/vasprintf (Depends-on): Likewise.
98504         * modules/wcwidth (Depends-on): Likewise.
98505         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
98506         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
98507         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
98508         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
98509         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98510         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98511         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
98512         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98513         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
98514         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
98515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
98516         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
98517         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
98518         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
98519         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
98520         * m4/readutmp.m4 (gl_READUTMP): Likewise.
98521         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
98522         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
98523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98524         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
98525         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
98526         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
98527         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
98528         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
98529         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
98530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98531         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
98532         so that lock.m4 can be used in gettext without extensions module.
98534 2007-09-11  Bruno Haible  <bruno@clisp.org>
98536         * m4/isc-posix.m4: Remove file.
98537         Suggested by Eric Blake.
98539 2007-09-11  Eric Blake  <ebb9@byu.net>
98541         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
98543 2007-09-10  Bruno Haible  <bruno@clisp.org>
98545         * posix-modules: Fix typo in error message.
98546         Reported by Matt <mkraai@beckman.com>.
98548 2007-09-09  Bruno Haible  <bruno@clisp.org>
98550         * doc/functions/getdelim.texi: Update list of platforms lacking the
98551         function.
98552         * doc/functions/getline.texi: Likewise.
98554 2007-09-09  Jim Meyering  <jim@meyering.net>
98556         * lib/hash.c (hash_initialize): Detect calloc failure.
98557         Reported by Bruno Haible.
98559 2007-09-09  Bruno Haible  <bruno@clisp.org>
98561         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
98562         malloc or realloc fails.
98564 2007-09-09  Bruno Haible  <bruno@clisp.org>
98566         * modules/getcwd (Depends-on): Add malloc-posix.
98567         * modules/glob (Depends-on): Likewise.
98568         * modules/putenv (Depends-on): Likewise.
98569         * modules/strdup (Depends-on): Likewise.
98570         * modules/getdelim (Depends-on): Add realloc-posix.
98571         * modules/read-file (Depends-on): Likewise.
98573 2007-09-09  Bruno Haible  <bruno@clisp.org>
98575         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
98576         (gl_FUNC_MALLOC_POSIX): Require it.
98577         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
98578         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
98579         * modules/realloc (Files): Add m4/malloc.m4.
98580         * modules/calloc (Files): Likewise.
98582 2007-09-09  Bruno Haible  <bruno@clisp.org>
98584         * modules/malloc-posix: New file.
98585         * modules/malloc (Depends-on): Add malloc-posix.
98586         * lib/malloc.c: Include errno.h.
98587         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
98588         and a POSIX-compatible malloc into a single function. Set ENOMEM
98589         when returning NULL.
98590         * m4/malloc.m4: New file.
98591         * doc/functions/malloc.texi: Mention the malloc-posix module.
98592         * lib/stdlib_.h (malloc): New declaration.
98593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98594         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
98595         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
98596         and HAVE_MALLOC_POSIX.
98598 2007-09-09  Bruno Haible  <bruno@clisp.org>
98600         * modules/realloc-posix: New file.
98601         * modules/realloc (Depends-on): Add realloc-posix.
98602         * lib/realloc.c: Include errno.h.
98603         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
98604         and a POSIX-compatible realloc into a single function. Set ENOMEM
98605         when returning NULL.
98606         * m4/realloc.m4: New file.
98607         * doc/functions/realloc.texi: Mention the realloc-posix module.
98608         * lib/stdlib_.h (realloc): New declaration.
98609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98610         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
98611         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
98612         and HAVE_REALLOC_POSIX.
98614 2007-09-09  Bruno Haible  <bruno@clisp.org>
98616         * modules/calloc-posix: New file.
98617         * modules/calloc (Depends-on): Add calloc-posix.
98618         * lib/calloc.c: Include errno.h.
98619         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
98620         and a POSIX-compatible calloc into a single function. Set ENOMEM
98621         when returning NULL.
98622         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
98623         * doc/functions/calloc.texi: Mention the calloc-posix module.
98624         * lib/stdlib_.h (calloc): New declaration.
98625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98626         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
98627         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
98628         and HAVE_CALLOC_POSIX.
98630 2007-09-09  Bruno Haible  <bruno@clisp.org>
98632         Allow for modules to show an arbitrary notice.
98633         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
98634         * gnulib-tool: New option --extract-notice.
98635         (func_usage): Document it.
98636         (sed_extract_prog): Update.
98637         (func_get_notice): New function.
98638         (func_modules_notice): New function.
98639         (func_import, func_create_testdir): Invoke it.
98640         Suggested by Jim Meyering.
98642 2007-09-09  Bruno Haible  <bruno@clisp.org>
98644         * gnulib-tool: New options --verbose, --quiet.
98645         (func_usage): Document them.
98646         (verbose): New variable.
98647         (func_execute_command): New function.
98648         (func_import): Don't show the module list and the file list if
98649         $verbose < 0.
98650         (func_create_testdir): Likewise. Use func_execute_command.
98651         (func_create_megatestdir): Use func_execute_command.
98653 2007-09-08  Bruno Haible  <bruno@clisp.org>
98655         * gnulib-tool (func_import): Prefer rsync over wget when available,
98656         for fetching the PO files.
98658 2007-09-08  Bruno Haible  <bruno@clisp.org>
98660         * posix-modules: New file. Portions copied from gnulib-tool.
98661         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
98663 2007-09-08  Jim Meyering  <jim@meyering.net>
98665         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
98666         * lib/fpending.h: Rename from __fpending.h.
98667         * lib/fpending.c: Rename from __fpending.c.
98668         Include "fpending.h", not "__fpending.h".
98669         * lib/__fpending.h, lib/__fpending.c: Remove files.
98670         * modules/fpending (Files): Reflect new file names.
98671         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98673 2007-09-08  Bruno Haible  <bruno@clisp.org>
98675         * m4/inttypes-h.m4: Remove stub file.
98677 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98679         * doc/headers/stdint.texi: Discuss #include_next issue.
98681 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98683         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98685 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98687         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98688         in variable name.
98690 2007-09-03  Jim Meyering  <jim@meyering.net>
98692         New module: git-version-gen.
98693         * modules/git-version-gen: New file.
98695         Import changes from coreutils for bootstrap script.
98697         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98699         bootstrap: uses rsync to download the .po files
98700         * build-aux/bootstrap (po_download_command_format): New global.
98701         (download_po_files): Use rsync.
98702         (update_po_files): Don't remove .po files after download,
98703         so future rsync runs can take advantage of the copies.
98705         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98707         Solve the unnecessary-.po-file-regeneration problem once and for all.
98708         * build-aux/bootstrap (download_po_files): New function, renamed from
98709         get_translations.  Now, downloads, but doesn't update LINGUAS.
98710         (update_po_files): New function.
98712         bootstrap: Ignore more.
98713         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
98714         uniwidth to e.g., lib/.gitignore.
98715         (slurp): Handle the sys_stat_.h -> sys mapping, too.
98717         * build-aux/bootstrap: New setting: vc_ignore.
98718         (insert_sorted_if_absent): Create $file if absent.
98719         Adapt to new, possibly empty, list: $vc_ignore.
98721         bootstrap: generate more ignorable names
98722         * build-aux/bootstrap (slurp): When generating ignorable names,
98723         also map .sin to .sed, .gperf to .c, and .y to .c.
98725 2007-09-03  Jim Meyering  <jim@meyering.net>
98727         * build-aux/git-version-gen: New file, from coreutils.  For details, see
98728         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
98730 2007-09-02  Bruno Haible  <bruno@clisp.org>
98732         Fix mis-recognition of 'mcs' on QNX 6.
98733         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
98734         output contains the string "Mono".
98735         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
98736         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
98738 2007-09-01  Bruno Haible  <bruno@clisp.org>
98740         Fix collision between uniwidth/* and linebreak modules.
98741         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
98742         u32_width): Remove declarations.
98743         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
98744         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
98745         streq3, streq2, streq1, streq0): Remove functions.
98746         (STREQ): Remove macro.
98747         (is_cjk_encoding): Remove function.
98748         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
98749         (uc_width, u8_width, u16_width, u32_width): Remove functions.
98750         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
98751         * NEWS: Document the change.
98753 2007-09-01  Bruno Haible  <bruno@clisp.org>
98755         * lib/streq.h: Add double-inclusion guard.
98757 2007-09-01  Karl Berry  <karl@gnu.org>
98759         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
98761 2007-08-28  Jim Meyering  <jim@meyering.net>
98763         Rename mreadlink_with_size to areadlink_with_size.
98764         * NEWS: Document the change.
98765         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
98766         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
98767         * lib/mreadlink.h: Rename this to...
98768         * lib/areadlink.h: ...this.
98769         * modules/mreadlink-with-size: Rename this to...
98770         * modules/areadlink-with-size: ...this.
98771         * lib/canonicalize.c: Reflect the renaming.
98772         * modules/canonicalize: Likewise.
98774 2007-08-26  Bruno Haible  <bruno@clisp.org>
98776         * gnulib-tool (func_import): When deciding which files to remove,
98777         consider also dangling symbolic links.
98778         Reported by Eric Blake.
98780 2007-08-26  Bruno Haible  <bruno@clisp.org>
98782         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
98784 2007-08-23  Simon Josefsson  <simon@josefsson.org>
98786         * lib/readline.c: Don't include getline.h, the prototype is now
98787         found in stdio.h.
98789 2007-08-23  Jim Meyering  <jim@meyering.net>
98791         Getdelim touchup.
98792         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
98793         around the funlockfile call, since funlockfile never sets errno.
98794         Don't set errno upon failed realloc.
98796 2007-08-22  Eric Blake  <ebb9@byu.net>
98798         Getline touchups.
98799         * lib/getdelim.c (getdelim): Revert regression that required *n to
98800         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
98801         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
98802         getdelim, rather than whether implementation is missing.
98803         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
98804         * lib/stdio_.h (getline): Also declare if replacement is
98805         required.
98806         * doc/functions/getdelim.texi: New file.
98807         * doc/functions/getline.texi: Likewise.
98808         * doc/gnulib.texi (Function Substitutes): Add new files.
98809         Reported by Bruno Haible.
98811 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98813         * users.txt: Add Guile.
98815 2007-08-22  Eric Blake  <ebb9@byu.net>
98817         * tests/test-getdelim.c (main): Use remove, not unlink.
98818         * tests/test-getline.c (main): Likewise.
98820         Move getline and getdelim into stdio.h, per POSIX 200x.
98821         * modules/getline (Files): Remove getline.h.
98822         (Depends-on): Add stdio.
98823         (configure.ac): Add module indicator.
98824         * modules/getdelim (Files): Remove getdelim.h.
98825         (Depends-on): Add stdio.
98826         (configure.ac): Add module indicator.
98827         * modules/stdio (Makefile.am): Work with new indicators.
98828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98829         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98830         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98831         * lib/getdelim.h: Delete.
98832         * lib/getline.h: Delete.
98833         * lib/stdio_.h (getdelim, getline): Declare.
98834         * modules/getdelim-tests: New module.
98835         * modules/getline-tests: Likewise.
98836         * tests/test-getdelim.c: New file.
98837         * tests/test-getline.c: Likewise.
98838         * NEWS: Document the change.
98839         * lib/getline.c: Update choice of header.
98840         * lib/csharpcomp.c: Likewise.
98841         * lib/getpass.c: Likewise.
98842         * lib/javacomp.c: Likewise.
98843         * lib/javaversion.c: Likewise.
98844         * lib/yesno.c: Likewise.
98845         * lib/getdelim.c: Likewise.
98846         (getdelim): Set errno on failure, and avoid memory leak.
98848 2007-08-19  Bruno Haible  <bruno@clisp.org>
98850         * modules/closein (Depends-on): Add freadahead.
98851         * lib/closein.c: Include freadahead.h.
98852         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98853         is zero.
98855 2007-08-19  Bruno Haible  <bruno@clisp.org>
98857         * modules/freadahead-tests: New file.
98858         * tests/test-freadahead.sh: New file.
98859         * tests/test-freadahead.c: New file.
98861         * modules/freadahead: New file.
98862         * lib/freadahead.h: New file.
98863         * lib/freadahead.c: New file.
98864         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98865         fbufmode, fpurge, freadable, fwritable.
98867 2007-08-19  Eric Blake  <ebb9@byu.net>
98869         Test yesno in combination with closein.
98870         * lib/yesno.c (yesno): Document use of stdin.
98871         * modules/yesno-tests (Files): New module.
98872         * tests/test-yesno.c (main): New file.
98873         * tests/test-yesno.sh: Likewise.
98875 2007-08-19  Bruno Haible  <bruno@clisp.org>
98877         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98878         * lib/fseeko.c (rpl_fseeko): Likewise.
98879         * lib/fseterr.c (fseterr): Likewise.
98881 2007-08-19  Bruno Haible  <bruno@clisp.org>
98883         * tests/test-lseek.c (main): Disable a test for BeOS.
98884         * doc/functions/lseek.texi: Document the BeOS bug.
98886 2007-08-19  Bruno Haible  <bruno@clisp.org>
98887             Eric Blake  <ebb9@byu.net>
98889         * lib/lseek.c: Include <sys/stat.h>.
98890         (rpl_lseek): Add workaround code also for Unix platforms.
98891         Needed for BeOS.
98892         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98893         * doc/functions/lseek.texi: Document BeOS definiency.
98895 2007-08-18  Bruno Haible  <bruno@clisp.org>
98897         * modules/fstrcmp-tests: New file.
98898         * tests/test-fstrcmp.c: New file.
98900 2007-08-18  Bruno Haible  <bruno@clisp.org>
98902         * modules/fstrcmp: New file, from GNU gettext with modifications.
98903         * lib/fstrcmp.h: New file, from GNU gettext.
98904         * lib/fstrcmp.c: New file, from GNU gettext.
98905         * MODULES.html.sh (String handling): Add fstrcmp.
98907 2007-08-18  Bruno Haible  <bruno@clisp.org>
98909         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98910         'bool'.
98911         (diag, compareseq): Remove const from the ctxt argument.
98912         (USE_HEURISTIC): Undefine at the end.
98914 2007-08-18  Jim Meyering  <jim@meyering.net>
98916         New file: lib/idcache.h
98917         * NEWS: Mention the addition.
98918         * modules/idcache (Files): Add lib/idcache.h
98919         * lib/idcache.c: Include "idcache.h".
98920         Don't include <sys/types.h>.
98921         Add a FIXME comment.
98922         Move file-scoped "static" declarations to the top.
98923         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98925 2007-08-17  Bruno Haible  <bruno@clisp.org>
98926         and Paul Eggert  <eggert@cs.ucla.edu>
98928         * MODULES.html.sh: Add diffseq.
98929         * modules/diffseq: New file.
98930         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98931         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98933 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98935         Import changes from coreutils for bootstrap script.
98937         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98939         * build-aux/bootstrap (slurp): Work even in environments where
98940         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98941         current code does not slurp files whose names start with ".", and
98942         this looks like it might be a troublesome area.
98944         2007-07-11  Jim Meyering  <jim@meyering.net>
98946         If there's a GPL vN copyright comment, require that N == 3.
98948         2007-07-08  Jim Meyering  <jim@meyering.net>
98950         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98951         * build-aux/bootstrap (mam_template): Move definition out of loop.
98953         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98955         * build-aux/bootstrap (symlink_to_dir): Rename function from
98956         symlink_to_gnulib.  Add a directory parameter.  Update all
98957         callers.
98958         (cp_mark_as_generated): Also check for -- and link to -- files in
98959         gl/.
98961         2007-07-08  Jim Meyering  <jim@meyering.net>
98963         Adapt to deeper hierarchy in gnulib.
98964         * build-aux/bootstrap (symlink_to_dir): If the destination
98965         directory doesn't exist, create it. This is required at least for
98966         "lib/uniwidth/cjk.h".
98968         2007-05-15  Jim Meyering  <jim@meyering.net>
98970         * build-aux/bootstrap: Now that generated Makefile.am files
98971         are no longer under version control, they must be created at
98972         bootstrap time.
98974 2007-08-14  Ben Pfaff  <blp@gnu.org>
98976         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98978 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98980         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98981         given the changes below.
98982         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98983         even on hosts that have padding bits beyond the supported 64.
98985 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98987         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98988         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98989         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98990         depends on it.
98991         (xstrtol_error): Remove.
98992         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98993         but with a different signature.
98994         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98995         * lib/xstrtol-error.c: Include exitfail.h.
98996         (xstrtol_fatal): New function, with a different signature from the
98997         old xstrtol_error, so that the caller need not worry about passing
98998         in an exit status, or about storage management of the option argument.
98999         (xstrtol_error): Now a static function.  Redo signature to
99000         implement xstrtol_fatal.  Output the correct number of hyphens in
99001         front of the option so that the caller need not worry about
99002         storage management.
99003         (N_): New macro.
99004         (_): Remove; not used now.
99005         * modules/xstrtol: Depend on getopt.
99006         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
99007         of old STRTOL_FATAL_ERROR macro.
99008         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
99009         of test program.
99010         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
99011         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
99013 2007-08-08  Eric Blake  <ebb9@byu.net>
99015         * lib/xstrtol-error.c: Add missing include.
99017         Move xstrtol messages into gnulib domain, when --pobase is used.
99018         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
99019         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
99020         * modules/xstrtol (Files): Distribute new file.
99021         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
99022         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
99023         * tests/test-xstrtol.c: ...into new file.
99024         * tests/test-xstrtoul.c: Also test xstrtoul.
99025         * tests/test-xstrtoimax.c: Also test xstrtoimax.
99026         * tests/test-xstrtoumax.c: Also test xstrtoumax.
99027         * tests/test-xstrtol.sh: Drive the tests.
99028         * tests/test-xstrtoimax.sh: Likewise.
99029         * tests/test-xstrtoumax.sh: Likewise.
99030         * modules/xstrtol-tests: New module.
99031         * modules/xstrtoimax-tests: Likewise.
99032         * modules/xstrtoumax-tests: Likewise.
99034 2007-08-08  Jim Meyering  <jim@meyering.net>
99036         New function: mfile_name_concat.
99037         * lib/filenamecat.c (mfile_name_concat): New function, just like
99038         file_name_concat, but return NULL upon failure rather than exiting
99039         with a diagnostic.
99040         * lib/filenamecat.h: Declare it.
99042 2007-08-07  Bruno Haible  <bruno@clisp.org>
99044         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
99045         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
99046         warning from gcc.
99047         Reported by Eric Blake.
99049 2007-08-07  Simon Josefsson  <simon@josefsson.org>
99051         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
99052         * modules/crypto/arcfour (License): Likewise.
99053         * modules/crypto/des-tests (License): Likewise.
99054         * modules/crypto/gc-arctwo-tests (License): Likewise.
99055         * modules/crypto/gc-des-tests (License): Likewise.
99056         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
99057         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
99058         * modules/crypto/gc-md2-tests (License): Likewise.
99059         * modules/crypto/gc-md4-tests (License): Likewise.
99060         * modules/crypto/gc-md5-tests (License): Likewise.
99061         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
99062         * modules/crypto/gc-rijndael-tests (License): Likewise.
99063         * modules/crypto/gc-sha1-tests (License): Likewise.
99064         * modules/crypto/gc-tests (License): Likewise.
99065         * modules/crypto/hmac-md5 (License): Likewise.
99066         * modules/crypto/hmac-sha1 (License): Likewise.
99067         * modules/crypto/md2-tests (License): Likewise.
99068         * modules/crypto/md4-tests (License): Likewise.
99069         * modules/crypto/md5 (License): Likewise.
99070         * modules/crypto/rijndael (License): Likewise.
99071         * modules/crypto/sha1 (License): Likewise.
99072         * modules/memxor (License): Likewise.
99074 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99075         and Bruno Haible  <bruno@clisp.org>
99077         * NEWS: Describe interface changes to human, xstrtol.
99078         * lib/human.h: Include <xstrtol.h>.
99079         (human_options): Return enum strtol_error, not int.  Remove
99080         bool arg; take int * instead.
99081         * lib/human.c: Don't include "gettext.h".
99082         (_): Remove; no longer used.
99083         Don't include <xstrtol.h>, since human.h does it.
99084         (human_options): Adjust to abovementioned interface changes.
99085         Do not report error to stderr; that's now the caller's
99086         responsibility.
99087         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
99088         interface change.
99089         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
99090         Str, Argument_type_string.  All uses changed.  Put " argument"
99091         in diagnostics to make them clearer.  Change wording of suffix
99092         message for clarity.
99093         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
99094         Argument_type_string.
99095         (STRTOL_FATAL_WARN): Remove; no longer used.
99096         * modules/human (Depends-on): Remove gettext-h.
99098 2007-08-06  Simon Josefsson  <simon@josefsson.org>
99100         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
99102 2007-07-31  Bruno Haible  <bruno@clisp.org>
99104         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
99105         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
99106         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
99108 2007-07-31  Bruno Haible  <bruno@clisp.org>
99110         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
99111         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
99113 2007-07-30  Bruno Haible  <bruno@clisp.org>
99115         * modules/base64 (License): Use the synonymous term "LGPLv2+".
99116         * modules/c-ctype (License): Likewise.
99117         * modules/c-strcase (License): Likewise.
99118         * modules/check-version (License): Likewise.
99119         * modules/iconv (License): Likewise.
99120         * modules/iconv_open (License): Likewise.
99121         * modules/read-file (License): Likewise.
99122         * modules/striconv (License): Likewise.
99123         * modules/strverscmp (License): Likewise.
99124         * modules/vasprintf (License): Likewise.
99125         * modules/crypto/des (License): Likewise.
99126         * modules/crypto/gc (License): Likewise.
99127         * modules/crypto/gc-arcfour (License): Likewise.
99128         * modules/crypto/gc-arctwo (License): Likewise.
99129         * modules/crypto/gc-des (License): Likewise.
99130         * modules/crypto/gc-hmac-md5 (License): Likewise.
99131         * modules/crypto/gc-hmac-sha1 (License): Likewise.
99132         * modules/crypto/gc-md2 (License): Likewise.
99133         * modules/crypto/gc-md4 (License): Likewise.
99134         * modules/crypto/gc-md5 (License): Likewise.
99135         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
99136         * modules/crypto/gc-random (License): Likewise.
99137         * modules/crypto/gc-rijndael (License): Likewise.
99138         * modules/crypto/gc-sha1 (License): Likewise.
99139         * modules/crypto/md2 (License): Likewise.
99140         * modules/crypto/md4 (License): Likewise.
99142 2007-07-30  Jim Meyering  <jim@meyering.net>
99144         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
99145         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
99146         it has valid stat data.  This bug would cause du not to count the
99147         sizes of inaccessible directories.
99148         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
99149         in <http://bugzilla.redhat.com/250077>.
99151 2007-07-25  Peter O'Gorman  <peter@pogma.com>
99152             Bruno Haible  <bruno@clisp.org>
99154         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
99155         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
99156         #include_next, gives a diagnostic about it, but reports no error in
99157         the exit code.
99158         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
99160 2007-07-24  Ben Pfaff  <blp@gnu.org>
99162         Improve name: "count-one-bits" is better than "popcount".
99163         * MODULES.html.sh: Update name.
99164         * lib/popcount.h: Renamed lib/count-one-bits.h.
99165         (popcount): Renamed count_one_bits.
99166         (popcountl): Renamed count_one_bits_l.
99167         (popcountll): Renamed count_one_bits_ll.
99168         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
99169         * modules/popcount: Renamed module/count-one-bits.
99170         * modules/popcount-tests: Renamed module/count-one-bits-tests.
99171         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
99173 2007-07-23  Ben Pfaff  <blp@gnu.org>
99175         * lib/popcount.h (popcount32): Reduce size of constants, to allow
99176         better code generation, and add U to large constants to avoid
99177         warnings, in non-GCC case.
99178         Suggested by Bruno Haible.
99180 2007-07-23  Ben Pfaff  <blp@gnu.org>
99182         * lib/popcount.h: Use verify_true instead of if...abort.
99183         * modules/popcount: Depend on verify module.
99184         Suggested by Jim Meyering.
99186 2007-07-23  Bruno Haible  <bruno@clisp.org>
99188         * gnulib-tool (func_import): Create a .cvsignore file also when the
99189         directory is not yet in CVS but the toplevel directory is. When
99190         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
99191         Reported by Karl Berry.
99193 2007-07-22  Ben Pfaff  <blp@gnu.org>
99195         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
99196         case.
99197         Suggested by Eric Blake.
99199 2007-07-22  Ben Pfaff  <blp@gnu.org>
99201         New module: popcount.
99202         * MODULES.html.sh: Add popcount.
99203         * modules/popcount: New file.
99204         * modules/popcount-tests: New file.
99205         * tests/test-popcount.c: New file.
99206         * lib/popcount.h: New file.
99207         * m4/popcount.m4: New file.
99209 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99211         * build-aux/announce-gen: Update to GPLv3.
99213         * build-aux/config.guess: Update from config.
99215 2007-07-21  Bruno Haible  <bruno@clisp.org>
99217         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
99218         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
99220 2007-07-20  Jim Meyering  <jim@meyering.net>
99222         * check-module: Diagnose a self-dependency.
99224 2007-07-19  Bruno Haible  <bruno@clisp.org>
99226         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
99227         empty.
99228         Reported by Eric Blake.
99230 2007-07-18  Bruno Haible  <bruno@clisp.org>
99232         * gnulib-tool: New options --po-base, --po-domain.
99233         (func_usage): Document them.
99234         (pobase, po_domain): New variables.
99235         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
99236         DEFAULT_TEXT_DOMAIN.
99237         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
99238         (func_import): Consider pobase and po_domain. Create a po/ directory.
99239         (func_create_testdir): Set pobase and po_domain to empty.
99240         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
99241         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
99243 2007-07-18  Bruno Haible  <bruno@clisp.org>
99245         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99246         EXTRA_DIST augmentation for files in build-aux/.
99248 2007-07-16  Bruno Haible  <bruno@clisp.org>
99250         * modules/lseek (License): Use the synonymous term "LGPLv2+".
99251         * modules/getdelim (License): Likewise.
99253 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99255         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
99256         * modules/d-type (License): Likewise.
99257         * modules/extensions (License): Likewise.
99258         * modules/fnmatch (License): Likewise.
99259         * modules/fseeko (License): Likewise.
99260         * modules/getaddrinfo (License): Likewise.
99261         * modules/getline (License): Likewise.
99262         * modules/getlogin_r (License): Likewise.
99263         * modules/getpass (License): Likewise.
99264         * modules/gettimeofday (License): Likewise.
99265         * modules/glob (License): Likewise.
99266         * modules/inet_ntop (License): Likewise.
99267         * modules/malloc (License): Likewise.
99268         * modules/malloca (License): Likewise.
99269         * modules/memmem (License): Likewise.
99270         * modules/mempcpy (License): Likewise.
99271         * modules/memset (License): Likewise.
99272         * modules/minmax (License): Likewise.
99273         * modules/mktime (License): Likewise.
99274         * modules/netinet_in (License): Likewise.
99275         * modules/pathmax (License): Likewise.
99276         * modules/poll (License): Likewise.
99277         * modules/regex (License): Likewise.
99278         * modules/snprintf (License): Likewise.
99279         * modules/stdbool (License): Likewise.
99280         * modules/stdint (License): Likewise.
99281         * modules/stdio (License): Likewise.
99282         * modules/strcase (License): Likewise.
99283         * modules/strcasestr (License): Likewise.
99284         * modules/strdup (License): Likewise.
99285         * modules/string (License): Likewise.
99286         * modules/strndup (License): Likewise.
99287         * modules/strnlen (License): Likewise.
99288         * modules/strpbrk (License): Likewise.
99289         * modules/strptime (License): Likewise.
99290         * modules/strsep (License): Likewise.
99291         * modules/sys_select (License): Likewise.
99292         * modules/sys_socket (License): Likewise.
99293         * modules/sys_stat (License): Likewise.
99294         * modules/sys_time (License): Likewise.
99295         * modules/time (License): Likewise.
99296         * modules/time_r (License): Likewise.
99297         * modules/timegm (License): Likewise.
99298         * modules/unistd (License): Likewise.
99299         * modules/vsnprintf (License): Likewise.
99300         * modules/wctype (License): Likewise.
99302 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99304         * modules/argz (License): LGPLv2+.
99306 2007-07-15  Karl Berry  <karl@gnu.org>
99308         * doc/gnulib.texi: revise node structure per new fdl.texi.
99310 2007-07-14  Bruno Haible  <bruno@clisp.org>
99312         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
99313         the output file.
99314         * lib/uniname/uninames.h: Regenerated.
99316 2007-07-14  Karl Berry  <karl@gnu.org>
99318         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
99319         omitting sectioning and index commands.
99321 2007-07-13  Bruno Haible  <bruno@clisp.org>
99323         New gnulib-tool option --more-symlinks.
99324         * gnulib-tool (func_usage): Document --more-symlinks.
99325         (do_copyrights): New variable.
99326         Recognize option --more-symlinks.
99327         (func_import): Don't add a copyright notice transform to
99328         sed_transform_lib_file if do_copyrights is empty.
99330 2007-07-13  Bruno Haible  <bruno@clisp.org>
99332         * lib/vasnprintf.c (decimal_point_char): Define also if
99333         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
99334         && !NEED_PRINTF_DIRECTIVE_A.
99335         Reported by Clemens Koller <clemens.koller@anagramm.de> via
99336         Gary V. Vaughan <gary@gnu.org>.
99338 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
99340         * lib/inttypes_.h: Undo previous change, since it was fixed
99341         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
99343 2007-07-13  Bruno Haible  <bruno@clisp.org>
99345         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
99346         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
99348 2007-07-13  Jim Meyering  <jim@meyering.net>
99350         df: Don't fail for Tru64's "file-on-file mount".
99351         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
99352         so we fall through and use statfs instead.  Details here:
99353         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
99354         Reported by Albert Chin.
99356 2007-07-13  Bruno Haible  <bruno@clisp.org>
99358         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
99359         * modules/configmake (License): Likewise.
99360         * modules/gettext (License): Likewise.
99361         * modules/gettext-h (License): Likewise.
99362         * modules/include_next (License): Likewise.
99363         * modules/link-warning (License): Likewise.
99364         * modules/localcharset (License): Likewise.
99365         * modules/localename (License): Likewise.
99366         * modules/lock (License): Likewise.
99367         * modules/relocatable-lib-lgpl (License): Likewise.
99368         * modules/size_max (License): Likewise.
99369         * modules/vasnprintf (License): Likewise.
99370         * modules/wchar (License): Likewise.
99371         * modules/xsize (License): Likewise.
99373 2007-07-13  Bruno Haible  <bruno@clisp.org>
99375         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
99376         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
99378 2007-07-12  Bruno Haible  <bruno@clisp.org>
99380         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
99381         in the modules files.
99383 2007-07-11  Karl Berry  <karl@gnu.org>
99385         * MODULES.html.sh (func_module): use
99386          sed -e '\|^'"${includefile}"'$|d'
99387          instead of /.../d, to avoid errors on $includefile's containing /.
99389 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99391         * gnulib-tool (func_import): Avoid duplication of --avoid
99392         statements
99393         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
99394         names to `_' in variable names.
99396 2007-07-10  Eric Blake  <ebb9@byu.net>
99398         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
99399         * NEWS: Document this change.
99401 2007-07-08  Bruno Haible  <bruno@clisp.org>
99403         Update to Unicode 5.0.
99404         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
99405         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
99406         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
99407         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
99408         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
99409         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
99410         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
99411         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
99412         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
99413         U+10A3F, U+1D242..U+1D244.
99414         (nonspacing_table_ind): Update.
99415         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
99416         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
99418 2007-07-08  Bruno Haible  <bruno@clisp.org>
99420         Update to Unicode 5.0.
99421         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
99422         code transform. Extend the name index field of unicode_name_to_code and
99423         unicode_code_to_name from 16 to 24 bits.
99424         * lib/uniname/uniname.c (unicode_character_name,
99425         unicode_name_character): Add the range 0x12xxx to the code transform.
99426         * lib/uniname/uninames.h: Regenerated.
99427         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
99429 2007-07-07  Bruno Haible  <bruno@clisp.org>
99431         * modules/wcwidth-tests: New file.
99432         * tests/test-wcwidth.c: New file.
99434         Work around MacOS X wcwidth() bug.
99435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
99436         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
99437         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
99438         original wcwidth in non-UTF-8 locales.
99439         * modules/wcwidth (Depends-on): Add localcharset, streq,
99440         uniwidth/width.
99441         * doc/functions/wcwidth.texi: Update.
99443 2007-07-07  Bruno Haible  <bruno@clisp.org>
99445         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
99446         (wcwidth): New declaration.
99447         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
99448         macros.
99449         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
99450         here. Prepare for creating <wchar.h> unconditionally.
99451         * modules/wchar (Depends-on): Add link-warning.
99452         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
99453         REPLACE_WCWIDTH, and GL_LINK_WARNING.
99454         * lib/wcwidth.h: Remove file.
99455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
99456         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
99457         * modules/wcwidth (Files): Remove lib/wcwidth.h.
99458         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
99459         (Include): Replace wcwidth.h with <wchar.h>.
99460         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
99461         * lib/mbchar.h: Don't include wcwidth.h.
99462         * lib/mbswidth.c: Likewise.
99463         * NEWS: Mention the change.
99465 2007-07-07  Bruno Haible  <bruno@clisp.org>
99467         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
99468         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
99469         definition with an external declaration.
99470         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
99471         defined as a function. Remove AC_C_INLINE requirement.
99472         * modules/wcwidth (Files): Add lib/wcwidth.c.
99473         (Makefile.am): Remove redundant statement.
99475 2007-07-07  Bruno Haible  <bruno@clisp.org>
99477         * MODULES.html.sh (Unicode string functions): Add the new modules.
99479         * tests/uniwidth/test-u32-strwidth.c: New file.
99480         * modules/uniwidth/u32-strwidth-tests: New file.
99482         * lib/uniwidth/u32-strwidth.c: New file.
99483         * modules/uniwidth/u32-strwidth: New file.
99485         * tests/uniwidth/test-u16-strwidth.c: New file.
99486         * modules/uniwidth/u16-strwidth-tests: New file.
99488         * lib/uniwidth/u16-strwidth.c: New file.
99489         * modules/uniwidth/u16-strwidth: New file.
99491         * tests/uniwidth/test-u8-strwidth.c: New file.
99492         * modules/uniwidth/u8-strwidth-tests: New file.
99494         * lib/uniwidth/u8-strwidth.c: New file.
99495         * modules/uniwidth/u8-strwidth: New file.
99497         * tests/uniwidth/test-u32-width.c: New file.
99498         * modules/uniwidth/u32-width-tests: New file.
99500         * lib/uniwidth/u32-width.c: New file.
99501         * modules/uniwidth/u32-width: New file.
99503         * tests/uniwidth/test-u16-width.c: New file.
99504         * modules/uniwidth/u16-width-tests: New file.
99506         * lib/uniwidth/u16-width.c: New file.
99507         * modules/uniwidth/u16-width: New file.
99509         * tests/uniwidth/test-u8-width.c: New file.
99510         * modules/uniwidth/u8-width-tests: New file.
99512         * lib/uniwidth/u8-width.c: New file.
99513         * modules/uniwidth/u8-width: New file.
99515         * tests/uniwidth/test-uc_width.c: New file.
99516         * modules/uniwidth/width-tests: New file.
99518         * lib/uniwidth/width.c: New file, from GNU libiconv.
99519         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
99520         * modules/uniwidth/width: New file.
99522         * lib/uniwidth.h: New file, from GNU libiconv.
99523         * modules/uniwidth/base: New file.
99525 2007-07-07  Bruno Haible  <bruno@clisp.org>
99527         * lib/uniname.h: New file, from GNU gettext.
99528         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
99529         * lib/uniname/uninames.h: New file, from GNU gettext.
99530         * lib/uniname/uniname.c: New file, from GNU gettext.
99531         * tests/uniname/test-uninames.sh: New file.
99532         * tests/uniname/test-uninames.c: New file, from GNU gettext.
99533         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
99534         * modules/uniname/base: New file.
99535         * modules/uniname/uniname: New file.
99536         * modules/uniname/uniname-tests: New file.
99537         * MODULES.html.sh (Unicode string functions): Add the new modules.
99539 2007-07-06  Bruno Haible  <bruno@clisp.org>
99541         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
99543 2007-07-06  Bruno Haible  <bruno@clisp.org>
99545         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
99546         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
99547         includes <cygwin/sys_time.h> which includes <sys/select.h> which
99548         include <sys/time.h>.
99549         Reported by Eric Blake.
99551 2007-07-06  Eric Blake  <ebb9@byu.net>
99553         Fix testing canonicalize on cygwin.
99554         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99555         Revert patch from 2007-06-19.
99556         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
99557         canonicalize module is also in use.
99558         * tests/test-canonicalize.c: New file.
99559         * tests/test-canonicalize.sh: Likewise.
99560         * modules/canonicalize-tests: Likewise.
99562 2007-07-06  Jim Meyering  <jim@meyering.net>
99564         * lib/getugroups.c (getugroups): Detect getgrent failure.
99565         Adjust comment to reflect reality: this function may return -1.
99567 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
99569         * build-aux/bootstrap (TP_URL,get_translations): Update to use
99570         the new TP address.
99571         (usage): Fix typo
99572         (gnulib_mk): New variable.
99574 2007-07-05  Jim Meyering  <jim@meyering.net>
99576         Don't let endgrent clobber errno, no matter how improbable.
99577         * lib/getugroups.c (getugroups): Save and restore errno around
99578         endgrent call.
99580         Close the group DB even when failing with 2^31 or more members.
99581         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
99583 2007-07-04  Jim Meyering  <jim@meyering.net>
99585         * lib/getugroups.h: New file.
99586         * lib/getugroups.c: Include "getugroups.h".
99587         Remove uses of "register" keyword.
99588         Move local variable, "cp", down into scope where used.
99589         Give "username" parameter the "const" attribute.
99590         * modules/getugroups (Files): Add lib/getugroups.h
99592 2007-07-04  Karl Berry  <karl@gnu.org>
99594         * MODULES.html.sh (func_all_modules): Complete rename of
99595         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
99597 2007-07-02  Bruno Haible  <bruno@clisp.org>
99599         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
99600         mode, when inttypes.h comes from gnulib.
99601         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99603 2007-07-02  Simon Josefsson  <simon@josefsson.org>
99605         * NEWS: Mention lgpl module name change.
99607         * modules/lgpl-2.1: Renamed from lgpl.
99609         * NEWS: Mention gpl module name change.
99611         * modules/gpl-3.0: New file, based on gpl-2.0.
99613         * modules/gpl-2.0: Renamed from gpl.
99615         * modules/gpl: Fix filename, doc/gpl.texi is now found at
99616         doc/gpl-2.0.texi.
99618 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99620         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
99621         #define __STDC_LIMIT_MACROS temporarily while including
99622         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99623         Problem reported by Joel E. Denny in
99624         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
99626 2007-07-01  Bruno Haible  <bruno@clisp.org>
99628         * lib/unistdio.h: New file.
99629         * lib/unistdio/u-asnprintf.h: New file.
99630         * lib/unistdio/u-asprintf.h: New file.
99631         * lib/unistdio/u-printf-args.c: New file.
99632         * lib/unistdio/u-printf-args.h: New file.
99633         * lib/unistdio/u-printf-parse.h: New file.
99634         * lib/unistdio/u-snprintf.h: New file.
99635         * lib/unistdio/u-sprintf.h: New file.
99636         * lib/unistdio/u-vasprintf.h: New file.
99637         * lib/unistdio/u-vsnprintf.h: New file.
99638         * lib/unistdio/u-vsprintf.h: New file.
99639         * lib/unistdio/ulc-asnprintf.c: New file.
99640         * lib/unistdio/ulc-asprintf.c: New file.
99641         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
99642         * lib/unistdio/ulc-printf-parse.c: New file.
99643         * lib/unistdio/ulc-snprintf.c: New file.
99644         * lib/unistdio/ulc-sprintf.c: New file.
99645         * lib/unistdio/ulc-vasnprintf.c: New file.
99646         * lib/unistdio/ulc-vasprintf.c: New file.
99647         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
99648         * lib/unistdio/ulc-vsnprintf.c: New file.
99649         * lib/unistdio/ulc-vsprintf.c: New file.
99650         * lib/unistdio/u8-asnprintf.c: New file.
99651         * lib/unistdio/u8-asprintf.c: New file.
99652         * lib/unistdio/u8-printf-parse.c: New file.
99653         * lib/unistdio/u8-snprintf.c: New file.
99654         * lib/unistdio/u8-sprintf.c: New file.
99655         * lib/unistdio/u8-vasnprintf.c: New file.
99656         * lib/unistdio/u8-vasprintf.c: New file.
99657         * lib/unistdio/u8-vsnprintf.c: New file.
99658         * lib/unistdio/u8-vsprintf.c: New file.
99659         * lib/unistdio/u8-u8-asnprintf.c: New file.
99660         * lib/unistdio/u8-u8-asprintf.c: New file.
99661         * lib/unistdio/u8-u8-snprintf.c: New file.
99662         * lib/unistdio/u8-u8-sprintf.c: New file.
99663         * lib/unistdio/u8-u8-vasnprintf.c: New file.
99664         * lib/unistdio/u8-u8-vasprintf.c: New file.
99665         * lib/unistdio/u8-u8-vsnprintf.c: New file.
99666         * lib/unistdio/u8-u8-vsprintf.c: New file.
99667         * lib/unistdio/u16-asnprintf.c: New file.
99668         * lib/unistdio/u16-asprintf.c: New file.
99669         * lib/unistdio/u16-printf-parse.c: New file.
99670         * lib/unistdio/u16-snprintf.c: New file.
99671         * lib/unistdio/u16-sprintf.c: New file.
99672         * lib/unistdio/u16-vasnprintf.c: New file.
99673         * lib/unistdio/u16-vasprintf.c: New file.
99674         * lib/unistdio/u16-vsnprintf.c: New file.
99675         * lib/unistdio/u16-vsprintf.c: New file.
99676         * lib/unistdio/u16-u16-asnprintf.c: New file.
99677         * lib/unistdio/u16-u16-asprintf.c: New file.
99678         * lib/unistdio/u16-u16-snprintf.c: New file.
99679         * lib/unistdio/u16-u16-sprintf.c: New file.
99680         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99681         * lib/unistdio/u16-u16-vasprintf.c: New file.
99682         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99683         * lib/unistdio/u16-u16-vsprintf.c: New file.
99684         * lib/unistdio/u32-asnprintf.c: New file.
99685         * lib/unistdio/u32-asprintf.c: New file.
99686         * lib/unistdio/u32-printf-parse.c: New file.
99687         * lib/unistdio/u32-snprintf.c: New file.
99688         * lib/unistdio/u32-sprintf.c: New file.
99689         * lib/unistdio/u32-vasnprintf.c: New file.
99690         * lib/unistdio/u32-vasprintf.c: New file.
99691         * lib/unistdio/u32-vsnprintf.c: New file.
99692         * lib/unistdio/u32-vsprintf.c: New file.
99693         * lib/unistdio/u32-u32-asnprintf.c: New file.
99694         * lib/unistdio/u32-u32-asprintf.c: New file.
99695         * lib/unistdio/u32-u32-snprintf.c: New file.
99696         * lib/unistdio/u32-u32-sprintf.c: New file.
99697         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99698         * lib/unistdio/u32-u32-vasprintf.c: New file.
99699         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99700         * lib/unistdio/u32-u32-vsprintf.c: New file.
99701         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99702         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99703         * tests/unistdio/test-ulc-printf1.h: New file.
99704         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99705         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99706         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99707         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
99708         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
99709         * tests/unistdio/test-ulc-vasprintf1.c: New file.
99710         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
99711         * tests/unistdio/test-ulc-vsprintf1.c: New file.
99712         * tests/unistdio/test-u8-asnprintf1.c: New file.
99713         * tests/unistdio/test-u8-asnprintf1.h: New file.
99714         * tests/unistdio/test-u8-printf1.h: New file.
99715         * tests/unistdio/test-u8-vasnprintf1.c: New file.
99716         * tests/unistdio/test-u8-vasnprintf2.c: New file.
99717         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
99718         * tests/unistdio/test-u8-vasnprintf3.c: New file.
99719         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
99720         * tests/unistdio/test-u8-vasprintf1.c: New file.
99721         * tests/unistdio/test-u8-vsnprintf1.c: New file.
99722         * tests/unistdio/test-u8-vsprintf1.c: New file.
99723         * tests/unistdio/test-u16-asnprintf1.c: New file.
99724         * tests/unistdio/test-u16-asnprintf1.h: New file.
99725         * tests/unistdio/test-u16-printf1.h: New file.
99726         * tests/unistdio/test-u16-vasnprintf1.c: New file.
99727         * tests/unistdio/test-u16-vasnprintf2.c: New file.
99728         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
99729         * tests/unistdio/test-u16-vasnprintf3.c: New file.
99730         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
99731         * tests/unistdio/test-u16-vasprintf1.c: New file.
99732         * tests/unistdio/test-u16-vsnprintf1.c: New file.
99733         * tests/unistdio/test-u16-vsprintf1.c: New file.
99734         * tests/unistdio/test-u32-asnprintf1.c: New file.
99735         * tests/unistdio/test-u32-asnprintf1.h: New file.
99736         * tests/unistdio/test-u32-printf1.h: New file.
99737         * tests/unistdio/test-u32-vasnprintf1.c: New file.
99738         * tests/unistdio/test-u32-vasnprintf2.c: New file.
99739         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
99740         * tests/unistdio/test-u32-vasnprintf3.c: New file.
99741         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
99742         * tests/unistdio/test-u32-vasprintf1.c: New file.
99743         * tests/unistdio/test-u32-vsnprintf1.c: New file.
99744         * tests/unistdio/test-u32-vsprintf1.c: New file.
99745         * modules/unistdio/base: New file.
99746         * modules/unistdio/u-printf-args: New file.
99747         * modules/unistdio/ulc-asnprintf: New file.
99748         * modules/unistdio/ulc-asprintf: New file.
99749         * modules/unistdio/ulc-fprintf: New file.
99750         * modules/unistdio/ulc-printf-parse: New file.
99751         * modules/unistdio/ulc-snprintf: New file.
99752         * modules/unistdio/ulc-sprintf: New file.
99753         * modules/unistdio/ulc-vasnprintf: New file.
99754         * modules/unistdio/ulc-vasprintf: New file.
99755         * modules/unistdio/ulc-vfprintf: New file.
99756         * modules/unistdio/ulc-vsnprintf: New file.
99757         * modules/unistdio/ulc-vsprintf: New file.
99758         * modules/unistdio/u8-asnprintf: New file.
99759         * modules/unistdio/u8-asprintf: New file.
99760         * modules/unistdio/u8-printf-parse: New file.
99761         * modules/unistdio/u8-snprintf: New file.
99762         * modules/unistdio/u8-sprintf: New file.
99763         * modules/unistdio/u8-vasnprintf: New file.
99764         * modules/unistdio/u8-vasprintf: New file.
99765         * modules/unistdio/u8-vsnprintf: New file.
99766         * modules/unistdio/u8-vsprintf: New file.
99767         * modules/unistdio/u8-u8-asnprintf: New file.
99768         * modules/unistdio/u8-u8-asprintf: New file.
99769         * modules/unistdio/u8-u8-snprintf: New file.
99770         * modules/unistdio/u8-u8-sprintf: New file.
99771         * modules/unistdio/u8-u8-vasnprintf: New file.
99772         * modules/unistdio/u8-u8-vasprintf: New file.
99773         * modules/unistdio/u8-u8-vsnprintf: New file.
99774         * modules/unistdio/u8-u8-vsprintf: New file.
99775         * modules/unistdio/u16-asnprintf: New file.
99776         * modules/unistdio/u16-asprintf: New file.
99777         * modules/unistdio/u16-printf-parse: New file.
99778         * modules/unistdio/u16-snprintf: New file.
99779         * modules/unistdio/u16-sprintf: New file.
99780         * modules/unistdio/u16-vasnprintf: New file.
99781         * modules/unistdio/u16-vasprintf: New file.
99782         * modules/unistdio/u16-vsnprintf: New file.
99783         * modules/unistdio/u16-vsprintf: New file.
99784         * modules/unistdio/u16-u16-asnprintf: New file.
99785         * modules/unistdio/u16-u16-asprintf: New file.
99786         * modules/unistdio/u16-u16-snprintf: New file.
99787         * modules/unistdio/u16-u16-sprintf: New file.
99788         * modules/unistdio/u16-u16-vasnprintf: New file.
99789         * modules/unistdio/u16-u16-vasprintf: New file.
99790         * modules/unistdio/u16-u16-vsnprintf: New file.
99791         * modules/unistdio/u16-u16-vsprintf: New file.
99792         * modules/unistdio/u32-asnprintf: New file.
99793         * modules/unistdio/u32-asprintf: New file.
99794         * modules/unistdio/u32-printf-parse: New file.
99795         * modules/unistdio/u32-snprintf: New file.
99796         * modules/unistdio/u32-sprintf: New file.
99797         * modules/unistdio/u32-vasnprintf: New file.
99798         * modules/unistdio/u32-vasprintf: New file.
99799         * modules/unistdio/u32-vsnprintf: New file.
99800         * modules/unistdio/u32-vsprintf: New file.
99801         * modules/unistdio/u32-u32-asnprintf: New file.
99802         * modules/unistdio/u32-u32-asprintf: New file.
99803         * modules/unistdio/u32-u32-snprintf: New file.
99804         * modules/unistdio/u32-u32-sprintf: New file.
99805         * modules/unistdio/u32-u32-vasnprintf: New file.
99806         * modules/unistdio/u32-u32-vasprintf: New file.
99807         * modules/unistdio/u32-u32-vsnprintf: New file.
99808         * modules/unistdio/u32-u32-vsprintf: New file.
99809         * modules/unistdio/ulc-asnprintf-tests: New file.
99810         * modules/unistdio/ulc-vasnprintf-tests: New file.
99811         * modules/unistdio/ulc-vasprintf-tests: New file.
99812         * modules/unistdio/ulc-vsnprintf-tests: New file.
99813         * modules/unistdio/ulc-vsprintf-tests: New file.
99814         * modules/unistdio/u8-asnprintf-tests: New file.
99815         * modules/unistdio/u8-vasnprintf-tests: New file.
99816         * modules/unistdio/u8-vasprintf-tests: New file.
99817         * modules/unistdio/u8-vsnprintf-tests: New file.
99818         * modules/unistdio/u8-vsprintf-tests: New file.
99819         * modules/unistdio/u16-asnprintf-tests: New file.
99820         * modules/unistdio/u16-vasnprintf-tests: New file.
99821         * modules/unistdio/u16-vasprintf-tests: New file.
99822         * modules/unistdio/u16-vsnprintf-tests: New file.
99823         * modules/unistdio/u16-vsprintf-tests: New file.
99824         * modules/unistdio/u32-asnprintf-tests: New file.
99825         * modules/unistdio/u32-vasnprintf-tests: New file.
99826         * modules/unistdio/u32-vasprintf-tests: New file.
99827         * modules/unistdio/u32-vsnprintf-tests: New file.
99828         * modules/unistdio/u32-vsprintf-tests: New file.
99829         * MODULES.html.sh (Unicode string functions): Add the new modules.
99831 2007-07-01  Bruno Haible  <bruno@clisp.org>
99833         * lib/sprintf.c (sprintf): Limit the available length estimation,
99834         to avoid address wraparound.
99835         * lib/vsprintf.c (vsprintf): Likewise.
99836         * modules/sprintf-posix (Dependencies): Add stdint.
99837         * modules/vsprintf-posix (Dependencies): Likewise.
99839 2007-07-01  Bruno Haible  <bruno@clisp.org>
99841         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99842         Windows PATH as well. Conservative double-quoting. Comments.
99844 2007-07-01  Bruno Haible  <bruno@clisp.org>
99845             Eric Blake  <ebb9@byu.net>
99846             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99848         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99849         empty components in $PATH, denoting '.'.
99851 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99853         * gnulib-tool: Fix indentation.
99854         (func_create_megatestdir): Likewise.
99855         Report by Bruno Haible.
99857 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99859         Sync from Automake.
99860         * build-aux/gnupload: Fix shell portability issues with for loops.
99861         Report by Karl Berry.
99863 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99865         * build-aux/maint.mk (POURL): Use translationproject.org.
99867 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99868             Bruno Haible  <bruno@clisp.org>
99870         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99871         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99872         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99873         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99874         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99876 2007-06-27  Bruno Haible  <bruno@clisp.org>
99878         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99879         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99881 2007-06-26  Karl Berry  <karl@gnu.org>
99883         * MODULES.html.sh: remove xreadlink-with-size.
99885 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99887         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99888         method that I hope also handles the double-include problem noted
99889         by Bruno Haible in
99890         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99892 2007-06-23  Bruno Haible  <bruno@clisp.org>
99894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99895         Don't let the 'mostlyclean' target fail if the last subdirectory could
99896         not be removed.
99897         Reported by Karl Berry.
99899 2007-06-23  Bruno Haible  <bruno@clisp.org>
99901         * gnulib-tool (echo): Add a speedier workaround for ksh.
99902         * tests/test-echo.sh: Likewise.
99904 2007-06-23  Bruno Haible  <bruno@clisp.org>
99906         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99907         * tests/test-echo.sh: Likewise.
99909 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99911         * gnulib-tool (IFS): Initialize early, so we don't set it to
99912         empty later.
99913         (self_abspathname): Rewrite algorithm to set it, reindent.
99914         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99915         (func_create_megatestdir): Merge some sed scripts.
99917 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99919         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99920         exposed by Sun Studio 11 cc on Solaris 8.
99922 2007-06-22  Bruno Haible  <bruno@clisp.org>
99924         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99925         backslashes.
99926         * tests/test-echo.sh: New file.
99928 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99930         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99931         simplify `sed_replace_build_aux' scripts, they are portable but
99932         echoing them with `echo' is not.
99933         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99935 2007-06-21  Karl Berry  <karl@gnu.org>
99937         * config/srclist.txt: guess we can't handle the licenses via
99938         srclist at the moment.
99940 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99942         * MODULES.html.sh: Add include_next.
99943         * modules/include_next: New file.
99945 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99947         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99948         INCLUDE_NEXT.
99949         (gl_CHECK_NEXT_HEADERS): New macro.
99950         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99951         the obsolescent gl_ABSOLUTE_HEADER.
99952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99953         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99954         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99955         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99956         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99957         * m4/math_h.m4 (gl_MATH_H): Likewise.
99958         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99959         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99960         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99961         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99962         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99963         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99964         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99965         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99968         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99969         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99970         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99971         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99972         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99973         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99974         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99975         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99976         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99977         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99978         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99979         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99980         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99981         * lib/float_.h: Likewise.
99982         * lib/inttypes_.h: Likewise.
99983         * lib/math_.h: Likewise.
99984         * lib/search_.h: Likewise.
99985         * lib/signal_.h: Likewise.
99986         * lib/stdint_.h: Likewise.
99987         * lib/stdio_.h: Likewise.
99988         * lib/stdlib_.h: Likewise.
99989         * lib/string_.h: Likewise.
99990         * lib/sys_stat_.h: Likewise.
99991         * lib/sys_time_.h: Likewise.
99992         * lib/time_.h: Likewise.
99993         * lib/unistd_.h: Likewise.
99994         * lib/wchar_.h: Likewise.
99995         * lib/wctype_.h: Likewise.
99996         * lib/dirent_.h: Likewise.
99997         * lib/iconv_.h: Likewise.
99998         * lib/locale_.h: Likewise.
99999         * lib/netinet_in_.h: Likewise.
100000         * lib/sys_select_.h: Likewise.
100001         * lib/sys_socket_.h: Likewise.
100002         * lib/sysexits_.h: Likewise.
100003         * modules/fcntl (Depends-on): Depend on include_next, not
100004         absolute_header.
100005         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
100006         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
100007         * modules/fchdir: Likewise.
100008         * modules/float: Likewise.
100009         * modules/iconv_open: Likewise.
100010         * modules/inttypes: Likewise.
100011         * modules/locale: Likewise.
100012         * modules/math: Likewise.
100013         * modules/netinet_in: Likewise.
100014         * modules/search: Likewise.
100015         * modules/signal: Likewise.
100016         * modules/stdint: Likewise.
100017         * modules/stdio: Likewise.
100018         * modules/stdlib: Likewise.
100019         * modules/string: Likewise.
100020         * modules/sys_select: Likewise.
100021         * modules/sys_socket: Likewise.
100022         * modules/sys_stat: Likewise.
100023         * modules/sys_time: Likewise.
100024         * modules/sysexits: Likewise.
100025         * modules/time: Likewise.
100026         * modules/unistd: Likewise.
100027         * modules/wchar: Likewise.
100028         * modules/wctype: Likewise.
100029         * modules/sys_stat: Change maintainer to "all".
100030         * modules/unistd: Likewise.
100032 2007-06-20  Karl Berry  <karl@gnu.org>
100034         * config/srclist.txt: track www changes in license files.
100036 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
100038         * build-aux/bootstrap: Remove stray dot.
100039         Make sure build_aux settings are honored when linking
100040         gnulib_extra_files.
100042 2007-06-19  Eric Blake  <ebb9@byu.net>
100044         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
100045         Allow compilation on cygwin.
100047 2007-06-19  Jim Meyering  <jim@meyering.net>
100049         xreadlink-with-size: Remove module.  No longer used.
100050         Ex-callers now use xreadlink or mreadlink-with-size.
100051         * modules/xreadlink-with-size: Remove module.
100052         * lib/xreadlink-with-size.c: Remove file.
100053         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
100054         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
100055         just before the function definition *is* accurate.
100057         Eliminate one way canonicalize_filename_mode could exit.
100058         * lib/canonicalize.c (canonicalize_filename_mode):
100059         Use mreadlink_with_size, not xreadlink_with_size.
100061 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
100063         Detect porting problems to FreeBSD/arm, which has time_t wider than
100064         long int.  Original problem reported for GNU diff by Xin Li in
100065         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
100066         * modules/getdate (Depends-on): Add intprops, verify.
100067         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
100068         is an integer type no wider than long int.
100070 2007-06-18  Jim Meyering  <jim@meyering.net>
100072         New module: mreadlink-with-size.
100073         * MODULES.html.sh: Add mreadlink-with-size.
100074         * modules/mreadlink-with-size: New module
100075         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
100076         not xreadlink-with-size.
100077         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
100079 2007-06-16  Bruno Haible  <bruno@clisp.org>
100081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
100082         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
100083         Reported by Gary V. Vaughan <gary@gnu.org>.
100085 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
100087         Revamp lchown so that it lives in unistd.h where it belongs.
100088         * lib/lchown.h: Remove.
100089         * lib/dirchownmod.c: Don't include lib/lchown.h.
100090         * lib/fchownat.c: Likewise.
100091         * lib/openat.c: Likewise.
100092         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
100093         does not follow symlinks.
100094         (EOPNOTSUPP): Define if not defined.
100095         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
100096         is defined to 0.
100097         (lchown): New decl.
100098         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
100099         Do not check for lchown decl.
100100         Set REPLACE_LCHOWN.
100101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
100102         REPLACE_LCHOWN.
100103         * modules/chown: Make it clear it follows symlinks.
100104         * modules/lchown: Make it clear it doesn't follow symlinks.
100105         (Files): Remove lib/lchown.h
100106         (Depends-on): Add unistd.
100107         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
100108         (Include): Include <unistd.h>, not "lchown.h".
100109         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
100110         REPLACE_LCHOWN.
100112 2007-06-15  Jim Meyering  <jim@meyering.net>
100114         Change license (GPL to LGPL) of fsusage and dependents.
100115         * modules/fsusage (License): Change to LGPL.
100116         * modules/full-read (License): Likewise.
100117         * modules/full-write (License): Likewise.
100118         * modules/safe-read (License): Likewise.
100119         * modules/safe-write (License): Likewise.
100121 2007-06-14  Ben Pfaff  <blp@gnu.org>
100123         Missing part of allocsa -> malloca transition.
100124         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
100125         gl_MALLOCA.
100127 2007-06-12  Bruno Haible  <bruno@clisp.org>
100129         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
100130         to ia64, x86_64, i386.
100131         Reported by Eric Blake.
100133 2007-06-12  Bruno Haible  <bruno@clisp.org>
100135         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
100136         cross-compiling to x86_64.
100138 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
100140         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
100141         glitch reported by Ralf Wildenhues in
100142         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
100144         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
100145         Vin Shelton.
100147 2007-06-11  Bruno Haible  <bruno@clisp.org>
100149         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
100150         replacement string.
100151         Reported by Eric Blake.
100153 2007-06-10  Bruno Haible  <bruno@clisp.org>
100155         Prepare vasnprintf code for use with Unicode strings.
100156         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
100157         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
100158         TYPE_U32_STRING.
100159         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
100160         a_u32_string variants.
100161         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100162         * lib/printf-args.c: Don't include config.h and the specification
100163         header if PRINTF_FETCHARGS is already defined.
100164         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100165         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
100166         TYPE_U16_STRING, TYPE_U32_STRING.
100167         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
100168         u16_directive, u16_directives, u32_directive, u32_directives): New
100169         types.
100170         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
100171         New declarations.
100172         * lib/printf-parse.c: Don't include config.h and the specification
100173         header if PRINTF_PARSE is already defined. Eliminate the set of
100174         parameters for WIDE_CHAR_VERSION; the user of this file must provide
100175         them now. Include c-ctype.h.
100176         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
100177         directive and CHAR_T_ONLY_ASCII.
100178         * lib/vasnprintf.c: Don't include config.h and the specification header
100179         if VASNPRINTF is already defined.
100180         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
100181         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
100182         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
100183         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
100184         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
100185         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
100186         code accordingly.
100187         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
100188         pad_ourselves also in this case, with the 'c' and 's' directives, and
100189         with a different notion of "width".
100190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
100192 2007-06-10  Bruno Haible  <bruno@clisp.org>
100194         * modules/unistr/u32-mbsnlen: New file.
100195         * lib/unistr/u32-mbsnlen.c: New file.
100197         * modules/unistr/u16-mbsnlen: New file.
100198         * lib/unistr/u16-mbsnlen.c: New file.
100200         * modules/unistr/u8-mbsnlen: New file.
100201         * lib/unistr/u8-mbsnlen.c: New file.
100203         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
100204         declarations.
100206 2007-06-10  Bruno Haible  <bruno@clisp.org>
100208         * lib/string_.h (mbsnlen): New declaration.
100209         * lib/mbsnlen.c: New file.
100210         * m4/mbsnlen.m4: New file.
100211         * modules/mbsnlen: New file.
100212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
100213         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
100214         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
100216 2007-06-10  Bruno Haible  <bruno@clisp.org>
100218         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
100220 2007-06-10  Bruno Haible  <bruno@clisp.org>
100222         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
100223         * lib/mbuiter.h: Likewise.
100225 2007-06-10  Bruno Haible  <bruno@clisp.org>
100227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
100228         declaration.
100230 2007-06-10  Karl Berry  <karl@gnu.org>
100232         * config/srclist.txt: remove gettext entries, Bruno prefers
100233         to update individually.
100235 2007-06-10  Bruno Haible  <bruno@clisp.org>
100237         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
100238         'maxlen'. Ensure only length + width bytes are allocated, not
100239         length + 1 + width.
100241 2007-06-09  Bruno Haible  <bruno@clisp.org>
100243         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
100244         (CHAR_T): Remove macro.
100245         (VASNPRINTF): Update.
100247 2007-06-09  Bruno Haible  <bruno@clisp.org>
100249         * MODULES.html.sh (Unicode string functions): Add the new modules.
100251         * modules/uniconv/u32-conv-to-enc: New file.
100252         * lib/uniconv/u32-conv-to-enc.c: New file.
100253         * modules/uniconv/u32-conv-to-enc-tests: New file.
100254         * tests/uniconv/test-u32-conv-to-enc.c: New file.
100256         * modules/uniconv/u16-conv-to-enc: New file.
100257         * lib/uniconv/u16-conv-to-enc.c: New file.
100258         * lib/uniconv/u-conv-to-enc.h: New file.
100259         * modules/uniconv/u16-conv-to-enc-tests: New file.
100260         * tests/uniconv/test-u16-conv-to-enc.c: New file.
100262         * modules/uniconv/u8-conv-to-enc: New file.
100263         * lib/uniconv/u8-conv-to-enc.c: New file.
100264         * modules/uniconv/u8-conv-to-enc-tests: New file.
100265         * tests/uniconv/test-u8-conv-to-enc.c: New file.
100267         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
100268         u32_conv_to_encoding): New declarations.
100270 2007-06-09  Bruno Haible  <bruno@clisp.org>
100272         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
100274 2007-06-09  Bruno Haible  <bruno@clisp.org>
100276         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
100277         * modules/malloca: Renamed from modules/allocsa, updated.
100278         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
100279         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
100280         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
100281         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
100282         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
100283         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
100284         * modules/xmalloca: Renamed from modules/xallocsa, updated.
100285         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
100286         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
100287         * modules/c-strcasestr (Depends-on): Update.
100288         * lib/c-strcasestr.c: Update.
100289         * modules/c-strstr (Depends-on): Update.
100290         * lib/c-strstr.c: Update.
100291         * modules/canonicalize-lgpl (Depends-on): Update.
100292         * lib/canonicalize-lgpl.c: Update.
100293         * modules/clean-temp (Depends-on): Update.
100294         * lib/clean-temp.c: Update.
100295         * modules/csharpcomp (Depends-on): Update.
100296         * lib/csharpcomp.c: Update.
100297         * modules/csharpexec (Depends-on): Update.
100298         * lib/csharpexec.c: Update.
100299         * modules/javacomp (Depends-on): Update.
100300         * lib/javacomp.c: Update.
100301         * modules/javaexec (Depends-on): Update.
100302         * lib/javaexec.c: Update.
100303         * modules/mbscasestr (Depends-on): Update.
100304         * lib/mbscasestr.c: Update.
100305         * modules/mbsstr (Depends-on): Update.
100306         * lib/mbsstr.c: Update.
100307         * modules/setenv (Depends-on): Update.
100308         * lib/setenv.c: Update.
100309         * modules/strcasestr (Depends-on): Update.
100310         * lib/strcasestr.c: Update.
100311         * modules/striconveha (Depends-on): Update.
100312         * lib/striconveha.c: Update.
100313         * modules/relocatable-prog-wrapper (Files): Update.
100314         * lib/relocwrapper.c: Update.
100315         * build-aux/install-reloc: Update.
100316         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
100318 2007-06-08  Bruno Haible  <bruno@clisp.org>
100320         Port to uClibc.
100321         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
100322         * lib/fpurge.c (fpurge): Likewise.
100323         * lib/freading.c (freading): Likewise.
100324         * lib/fseeko.c (rpl_fseeko): Likewise.
100325         * lib/fseterr.c (fseterr): Likewise.
100326         * lib/fwriting.c (fwriting): Likewise.
100327         * tests/test-fflush.c (main): Avoid a failure on uClibc.
100329 2007-06-08  Bruno Haible  <bruno@clisp.org>
100331         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
100332         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
100333         * modules/gettext (Files): Add m4/intlmacosx.m4.
100335 2007-06-07  Bruno Haible  <bruno@clisp.org>
100337         * modules/localename-tests: New file.
100338         * tests/test-localename.c: New file.
100340         New module 'localename'.
100341         * lib/localename.h: New file.
100342         * lib/localename.c: New file, from GNU gettext.
100343         * m4/localename.m4: New file.
100344         * modules/localename: New file.
100346 2007-06-07  Bruno Haible  <bruno@clisp.org>
100348         Work around the lack of <wchar.h> on some builds of uClibc.
100349         * doc/headers/wchar.texi: Update.
100350         * lib/wchar_.h: Include <wchar.h> only if it exists.
100351         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
100352         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
100353         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
100354         doesn't exist.
100355         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
100356         * modules/mbfile (Depends-on): Add wchar.
100357         * modules/mbiter (Depends-on): Likewise.
100358         * modules/mbuiter (Depends-on): Likewise.
100359         Reported by Simon Josefsson.
100361 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100363         Work around problem reported by Steven M. Schweda in
100364         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
100365         Tru64 5.1B with the Compaq compiler environment installed declares
100366         an 'isblank' function but does not define it in the C library.
100367         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
100368         * lib/regex_internal.h (isblank): Likewise.
100369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
100370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100372 2007-06-05  Bruno Haible  <bruno@clisp.org>
100374         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
100375         ia64.
100376         * modules/printf-safe: New file.
100377         * modules/fprintf-posix (Depends-on): Add printf-safe.
100378         * modules/printf-posix (Depends-on): Likewise.
100379         * modules/snprintf-posix (Depends-on): Likewise.
100380         * modules/sprintf-posix (Depends-on): Likewise.
100381         * modules/vasnprintf-posix (Depends-on): Likewise.
100382         * modules/vasprintf-posix (Depends-on): Likewise.
100383         * modules/vfprintf-posix (Depends-on): Likewise.
100384         * modules/vprintf-posix (Depends-on): Likewise.
100385         * modules/vsnprintf-posix (Depends-on): Likewise.
100386         * modules/vsprintf-posix (Depends-on): Likewise.
100387         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
100388         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
100389         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
100390         "no" on i386, x86_64, ia64.
100391         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
100392         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100393         on i386, x86_64, ia64.
100394         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
100395         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100396         on i386, x86_64, ia64.
100397         * tests/test-vasnprintf-posix.c: Include float.h.
100398         (LDBL80_WORDS): New macro.
100399         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100400         on i386, x86_64, ia64.
100401         * tests/test-vasprintf-posix.c: Include float.h.
100402         (LDBL80_WORDS): New macro.
100403         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100404         on i386, x86_64, ia64.
100405         * tests/test-snprintf-posix.c: Include float.h.
100406         * tests/test-sprintf-posix.c: Likewise.
100407         * tests/test-vsnprintf-posix.c: Likewise.
100408         * tests/test-vsprintf-posix.c: Likewise.
100410 2007-06-05  Bruno Haible  <bruno@clisp.org>
100412         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
100413         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
100414         non-IEEE numbers on i386, x86_64, ia64.
100415         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
100416         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
100417         * tests/test-isnanl.h: Include float.h.
100418         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
100420 2007-06-05  Bruno Haible  <bruno@clisp.org>
100422         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
100423         also the %a / %A. Handle the %a / %A code before this extra handling.
100425 2007-06-05  Bruno Haible  <bruno@clisp.org>
100427         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
100428         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
100430 2007-06-05  Bruno Haible  <bruno@clisp.org>
100432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
100433         typo in variable name.
100435 2007-06-05  Eric Blake  <ebb9@byu.net>
100437         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
100438         Reported by Simon Josefsson.
100440 2007-06-04  Bruno Haible  <bruno@clisp.org>
100442         Avoid test failures on some PowerPC platforms.
100443         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
100444         Define differently for PowerPC.
100445         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
100446         Reported by Gary V. Vaughan <gary@gnu.org>.
100448 2007-06-02  Bruno Haible  <bruno@clisp.org>
100450         Fix test-stdint failure on FreeBSD/ia64.
100451         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
100452         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
100453         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
100454         * doc/headers/stdint.texi: Update.
100456 2007-06-01  Bruno Haible  <bruno@clisp.org>
100458         * tests/test-binary-io.c (main): Pass a third argument to open().
100459         Reported by Gary V. Vaughan <gary@gnu.org>.
100461 2007-06-01  Bruno Haible  <bruno@clisp.org>
100463         * doc/functions/frexpl.texi: Update for mingw.
100465 2007-06-01  Bruno Haible  <bruno@clisp.org>
100467         * tests/test-lseek.c (main): Disable test of errno for invalid third
100468         argument.
100469         * doc/functions/lseek.texi: Update.
100470         Reported by Gary V. Vaughan <gary@gnu.org>.
100472 2007-05-28  Bruno Haible  <bruno@clisp.org>
100474         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
100476 2007-05-31  Eric Blake  <ebb9@byu.net>
100478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
100479         cross compiling.
100481 2007-05-30  Eric Blake  <ebb9@byu.net>
100482         and Bruno Haible  <bruno@clisp.org>
100484         Work around mingw test failures exposed by m4-1.4.9b.
100485         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
100486         * tests/test-unistd.c: Disable uid_t and git_t tests for the
100487         moment.
100489 2007-05-30  Bruno Haible  <bruno@clisp.org>
100491         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
100492         assuming that they are closed. Needed on HP-UX 11.
100494 2007-05-29  Bruno Haible  <bruno@clisp.org>
100496         Fix a problem with #include_next.
100497         * lib/dirent_.h: Split the double-inclusion guard.
100498         * lib/fcntl_.h: Likewise.
100499         * lib/float_.h: Likewise.
100500         * lib/iconv_.h: Likewise.
100501         * lib/inttypes_.h: Likewise.
100502         * lib/locale_.h: Likewise.
100503         * lib/math_.h: Likewise.
100504         * lib/netinet_in_.h: Likewise.
100505         * lib/search_.h: Likewise.
100506         * lib/signal_.h: Likewise.
100507         * lib/stdint_.h: Likewise.
100508         * lib/stdio_.h: Likewise.
100509         * lib/stdlib_.h: Likewise.
100510         * lib/string_.h: Likewise.
100511         * lib/sys_select_.h: Likewise.
100512         * lib/sys_socket_.h: Likewise.
100513         * lib/sys_stat_.h: Likewise.
100514         * lib/sys_time_.h: Likewise.
100515         * lib/sysexits_.h: Likewise.
100516         * lib/time_.h: Likewise.
100517         * lib/unistd_.h: Likewise.
100518         * lib/wchar_.h: Likewise.
100519         * lib/wctype_.h: Likewise.
100521 2007-05-29  Bruno Haible  <bruno@clisp.org>
100523         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
100524         for the moment.
100526 2007-05-29  Bruno Haible  <bruno@clisp.org>
100528         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
100529         invocation.
100530         Reported by Eric Blake.
100532 2007-05-29  Bruno Haible  <bruno@clisp.org>
100534         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
100535         compiling case.
100537 2007-05-29  Eric Blake  <ebb9@byu.net>
100538             Bruno Haible  <bruno@clisp.org>
100540         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
100541         cross compiles.
100543 2007-05-28  Eric Blake  <ebb9@byu.net>
100545         * modules/closein-tests (test_closein_LDADD): Support test on
100546         cygwin with libtool.
100548 2007-05-28  Bruno Haible  <bruno@clisp.org>
100550         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
100551         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100552         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100553         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100554         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100555         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100556         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100557         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100558         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100560 2007-05-28  Eric Blake  <ebb9@byu.net>
100562         Unconditionally include <config.h> in unit tests.
100563         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
100564         * tests/test-allocsa.c, tests/test-arcfour.c,
100565         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
100566         tests/test-array_list.c, tests/test-array_oset.c,
100567         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
100568         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
100569         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
100570         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
100571         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
100572         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
100573         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
100574         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
100575         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
100576         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
100577         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
100578         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
100579         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
100580         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
100581         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
100582         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
100583         test-md5.c, test-memmem.c, test-printf-posix.c,
100584         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
100585         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
100586         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
100587         test-strcasestr.c, test-striconv.c, test-striconveh.c,
100588         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
100589         test-vasnprintf-posix2.c, test-vasnprintf.c,
100590         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
100591         test-vfprintf-posix.c, test-vprintf-posix.c,
100592         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
100593         test-xvasprintf.c: Likewise.
100595 2007-05-28  Bruno Haible  <bruno@clisp.org>
100597         * gnulib-tool (func_import): Remember the --with-tests command-line
100598         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
100599         Reported by Eric Blake.
100601 2007-05-28  Bruno Haible  <bruno@clisp.org>
100603         * modules/ftell-tests: New file.
100604         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
100605         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
100607         * lib/ftell.c: New file.
100608         * modules/ftell: New file.
100609         * m4/ftell.m4: New file.
100610         * doc/functions/ftell.texi: Update.
100611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
100612         REPLACE_FTELL.
100613         * lib/stdio_.h (rpl_ftell): New declaration.
100614         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
100615         REPLACE_FTELL.
100617 2007-05-28  Eric Blake  <ebb9@byu.net>
100619         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
100621 2007-05-28  Bruno Haible  <bruno@clisp.org>
100623         * modules/fseek-tests: New file.
100624         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
100625         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
100627         * lib/fseek.c: New file.
100628         * modules/fseek: New file.
100629         * m4/fseek.m4: New file.
100630         * doc/functions/fseek.texi: Update.
100631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
100632         REPLACE_FSEEK.
100633         * lib/stdio_.h (rpl_fseek): New declaration.
100634         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
100635         REPLACE_FSEEK.
100637 2007-05-28  Bruno Haible  <bruno@clisp.org>
100639         * lib/stdio_.h (fflush): More comments.
100641 2007-05-28  Bruno Haible  <bruno@clisp.org>
100643         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
100644         runtime test.
100646 2007-05-28  Eric Blake  <ebb9@byu.net>
100648         Improve lseek module.
100649         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
100650         * lib/unistd_.h (lseek): Scale back link warning message.
100651         * tests/test-lseek.c: Beef up test.
100652         * tests/test-lseek.sh: Exercise more facets of lseek.
100653         Reported by Bruno Haible.
100655 2007-05-28  Bruno Haible  <bruno@clisp.org>
100657         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
100658         to define.
100660 2007-05-27  Bruno Haible  <bruno@clisp.org>
100662         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
100664 2007-05-27  Bruno Haible  <bruno@clisp.org>
100666         * modules/openmp: New file.
100667         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100668         Noah Misch.
100670 2007-05-26  Bruno Haible  <bruno@clisp.org>
100672         * modules/chdir-long (Depends-on): Add fchdir.
100673         * modules/chdir-safer (Depends-on): Likewise.
100674         * modules/fts (Depends-on): Likewise.
100675         * modules/fts-lgpl (Depends-on): Likewise.
100676         * modules/openat (Depends-on): Likewise.
100677         * modules/savewd (Depends-on): Likewise.
100679 2007-05-24  Eric Blake  <ebb9@byu.net>
100681         Fix lseek on mingw.
100682         * modules/lseek: New module.
100683         * m4/lseek.m4: New file.
100684         * lib/lseek.c: New file.
100685         * modules/lseek-tests: New file.
100686         * tests/test-lseek.c: New file.
100687         * tests/test-lseek.sh: New file.
100688         * MODULES.html.sh: Document lseek module.
100689         * modules/fflush (Depends-on): Add lseek, fseeko.
100690         * modules/fseeko (Depends-on): Likewise.
100691         * modules/ftello (Depends-on): Likewise.
100692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100693         broken.
100694         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100695         broken.
100696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100697         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100698         * lib/ftello.c (rpl_ftello): Likewise.
100699         * tests/test-fseeko.c (main): Test this.
100700         * tests/test-fseeko.sh: Likewise.
100701         * tests/test-ftello.c (main): Likewise.
100702         * tests/test-ftello.sh: Likewise.
100703         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100704         implies replacing fseek.
100705         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100706         HAVE_FTELLO.
100707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
100708         * modules/unistd (Makefile.am): Likewise.
100709         * lib/unistd_.h (lseek): Declare a replacement.
100710         * doc/functions/lseek.texi (lseek): Document this fix.
100711         * doc/functions/fseek.texi (fseek): Likewise.
100712         * doc/functions/ftell.texi (ftell): Likewise.
100714 2007-05-24  Bruno Haible  <bruno@clisp.org>
100716         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
100717         in the printed representation of a NaN.
100718         * tests/test-vasprintf-posix.c (test_function): Likewise.
100719         * tests/test-snprintf-posix.h (test_function): Likewise.
100720         * tests/test-sprintf-posix.h (test_function): Likewise.
100721         Reported by Eric Blake.
100723 2007-05-23  Eric Blake  <ebb9@byu.net>
100725         Fix fseeko/ftello on cygwin 1.5.24.
100726         * doc/functions/fseeko.texi (fseeko): Document the fix.
100727         * doc/functions/ftello.texi (ftello): Document the fix.
100728         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
100729         * doc/functions/stdout.text (stdout): New file.
100730         * doc/functions/stderr.text (stderr): New file.
100731         * doc/gnulib.texi (Function Substitutes): Use new files.
100732         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
100733         prior to 1.7.0.
100734         * tests/test-ftello.c (main): Likewise for ftello.
100735         * tests/test-fseeko.sh: New file.
100736         * tests/test-ftello.sh: New file.
100737         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
100738         with seekable stdin.
100739         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
100740         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
100741         (gl_REPLACE_FSEEKO): New macro.
100742         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
100743         * modules/fseeko (Files): Distribute fseeko.c.
100744         * modules/ftello (Files): Distribute ftello.c.
100745         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
100746         mode.
100747         * lib/ftello.c (rpl_ftello): New file.
100748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
100749         fseeko, ftello.
100750         (gl_STDIN_LARGE_OFFSET): New macro.
100751         * modules/stdio (Makefile.am): Perform the replacement.
100752         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
100754 2007-05-23  Bruno Haible  <bruno@clisp.org>
100756         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
100757         GNULIB_POSIXCHECK is defined.
100759 2007-05-21  Bruno Haible  <bruno@clisp.org>
100761         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
100762         Check also the output for NaN arguments. When cross-compiling, guess
100763         no on IRIX.
100764         * lib/vasnprintf.c: Update comments.
100765         * tests/test-vasnprintf-posix.c (strisnan): New function.
100766         (test_function): Use it.
100767         * tests/test-vasprintf-posix.c (strisnan): New function.
100768         (test_function): Use it.
100769         * tests/test-snprintf-posix.h (strisnan): New function.
100770         (test_function): Use it.
100771         * tests/test-sprintf-posix.h (strisnan): New function.
100772         (test_function): Use it.
100773         Reported by Eric Blake.
100775 2007-05-20  Bruno Haible  <bruno@clisp.org>
100777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
100778         numbers that fails on BeOS.
100779         * doc/functions/frexpl.texi: Update.
100781 2007-05-20  Jim Meyering  <jim@meyering.net>
100783         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
100784         forced upon us by glibc-2.6.
100786 2007-05-20  Bruno Haible  <bruno@clisp.org>
100788         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
100789         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
100790         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
100791         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
100792         NEED_PRINTF_INFINITE.
100793         (is_infinitel): New function.
100794         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
100795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
100796         gl_PREREQ_VASNPRINTF_INFINITE.
100797         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
100798         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100799         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
100800         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
100801         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
100802         gl_PREREQ_VASNPRINTF_INFINITE.
100803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100804         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100805         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100806         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100810         * doc/functions/fprintf.texi: Update.
100811         * doc/functions/printf.texi: Update.
100812         * doc/functions/snprintf.texi: Update.
100813         * doc/functions/sprintf.texi: Update.
100814         * doc/functions/vfprintf.texi: Update.
100815         * doc/functions/vprintf.texi: Update.
100816         * doc/functions/vsnprintf.texi: Update.
100817         * doc/functions/vsprintf.texi: Update.
100819 2007-05-20  Bruno Haible  <bruno@clisp.org>
100821         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100822         was not found in libc.
100823         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100825 2007-05-20  Bruno Haible  <bruno@clisp.org>
100827         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100828         printed as "-nan" instead of "nan".
100829         * tests/test-vasprintf-posix.c (test_function): Likewise.
100830         * tests/test-snprintf-posix.h (test_function): Likewise.
100831         * tests/test-sprintf-posix.h (test_function): Likewise.
100832         Needed for HP-UX 11.
100834 2007-05-20  Jim Meyering  <jim@meyering.net>
100836         Fix buggy test for the fchownat-deref bug.
100837         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100838         symlink required for the run-test.  Without it, this test would
100839         always declare that fchownat doesn't work, and client code would
100840         unnecessarily use the replacement function with fixed libc.
100841         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100842         Reported by Greg Schafer.
100844 2007-05-19  Bruno Haible  <bruno@clisp.org>
100846         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100847         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100848         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100849         Needed for IRIX 6.5 and Solaris 2.5.1.
100851 2007-05-19  Bruno Haible  <bruno@clisp.org>
100853         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100854         (test_function): Skip tests involving -0.0 on platforms where
100855         -0.0 = 0.0.
100856         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100857         (test_function): Skip tests involving -0.0 on platforms where
100858         -0.0 = 0.0.
100859         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100860         (test_function): Skip tests involving -0.0 on platforms where
100861         -0.0 = 0.0.
100862         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100863         (test_function): Skip tests involving -0.0 on platforms where
100864         -0.0 = 0.0.
100865         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100866         tests.
100867         * tests/test-printf-posix.h (test_function): Likewise.
100868         * tests/test-printf-posix.output: Remove all -0.0 related results.
100869         Needed for IRIX 6.5.
100871 2007-05-19  Bruno Haible  <bruno@clisp.org>
100873         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100874         printed as "nan0x7fffffff" instead of "nan".
100875         * tests/test-vasprintf-posix.c (test_function): Likewise.
100876         * tests/test-snprintf-posix.h (test_function): Likewise.
100877         * tests/test-sprintf-posix.h (test_function): Likewise.
100878         * tests/test-fprintf-posix.h (NaN): Remove macro.
100879         (test_function): Remove all NaN related tests.
100880         * tests/test-printf-posix.h (NaN): Remove macro.
100881         (test_function): Remove all NaN related tests.
100882         * tests/test-printf-posix.output: Remove all NaN related results.
100883         Needed for IRIX 6.5.
100885 2007-05-19  Bruno Haible  <bruno@clisp.org>
100887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100890 2007-05-19  Bruno Haible  <bruno@clisp.org>
100892         * lib/float_.h: New file.
100893         * m4/float_h.m4: New file.
100894         * modules/float: New file.
100895         * modules/isnanl (Dependencies): Add float.
100896         * modules/isnanl-nolibm (Dependencies): Likewise.
100897         * modules/mathl (Dependencies): Likewise.
100898         * modules/printf-frexpl (Dependencies): Likewise.
100899         * modules/signbit (Dependencies): Likewise.
100900         * modules/vasnprintf (Dependencies): Likewise.
100901         * doc/headers/float.texi: Update.
100903 2007-05-19  Jim Meyering  <jim@meyering.net>
100905         * lib/utimens.c (gl_futimens): Rename from futimens,
100906         now that glibc-2.6 declares futimens.
100907         * lib/utimens.h: Likewise.
100909 2007-05-19  Bruno Haible  <bruno@clisp.org>
100911         Avoid test failures on mingw.
100912         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100913         * tests/test-printf-posix.sh: Likewise.
100914         * tests/test-vfprintf-posix.sh: Likewise.
100915         * tests/test-vprintf-posix.sh: Likewise.
100917 2007-05-19  Bruno Haible  <bruno@clisp.org>
100919         Fix *printf result for NaN, Inf, -0.0 on mingw.
100920         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100921         * lib/vasnprintf.c: Include math.h and isnan.h.
100922         (is_infinite_or_zero): New function.
100923         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100924         values in the %f, %F, %e, %E, %g, %G directives.
100925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100927         gl_PRINTF_INFINITE and test its result. Invoke
100928         gl_PREREQ_VASNPRINTF_INFINITE.
100929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100936         * doc/functions/fprintf.texi: Update.
100937         * doc/functions/printf.texi: Update.
100938         * doc/functions/snprintf.texi: Update.
100939         * doc/functions/sprintf.texi: Update.
100940         * doc/functions/vfprintf.texi: Update.
100941         * doc/functions/vprintf.texi: Update.
100942         * doc/functions/vsnprintf.texi: Update.
100943         * doc/functions/vsprintf.texi: Update.
100945 2007-05-19  Bruno Haible  <bruno@clisp.org>
100947         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100948         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100949         Instead of multiplying with 10^k, set extra_zeroes to k.
100950         (scale10_round_long_double): Remove function.
100952 2007-05-18  Bruno Haible  <bruno@clisp.org>
100954         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100955         introduced on 2007-05-06.
100957 2007-05-18  Bruno Haible  <bruno@clisp.org>
100959         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100960         %g directives.
100961         * tests/test-vasprintf-posix.c (test_function): Likewise.
100962         * tests/test-snprintf-posix.h (test_function): Likewise.
100963         * tests/test-sprintf-posix.h (test_function): Likewise.
100965 2007-05-18  Bruno Haible  <bruno@clisp.org>
100967         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100968         (strmatch): New function.
100969         (test_function): Test the %f directive on numbers of various exponents.
100970         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100971         (strmatch): New function.
100972         (test_function): Test the %f directive on numbers of various exponents.
100973         * tests/test-snprintf-posix.h (strmatch): New function.
100974         (test_function): Test the %f directive on numbers of various exponents.
100975         * tests/test-sprintf-posix.h (strmatch): New function.
100976         (test_function): Test the %f directive on numbers of various exponents.
100977         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100978         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100979         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100980         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100982 2007-05-18  Bruno Haible  <bruno@clisp.org>
100984         Add support for 'long double' number output.
100985         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100986         * lib/vasnprintf.c: Include math.h and float+.h.
100987         (mp_limb_t): New type.
100988         (GMP_LIMB_BITS): New macro.
100989         (mp_twolimb_t): New type.
100990         (GMP_TWOLIMB_BITS): New macro.
100991         (mpn_t): New type.
100992         (multiply, divide, convert_to_decimal, decode_long_double,
100993         scale10_round_long_double, scale10_round_decimal_long_double,
100994         floorlog10l): New functions.
100995         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100996         for the %f, %F, %e, %E, %g, %G directives.
100997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100998         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100999         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
101000         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
101001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101008         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
101009         * modules/snprintf-posix (Depends-on): Likewise.
101010         * modules/sprintf-posix (Depends-on): Likewise.
101011         * modules/vasnprintf-posix (Depends-on): Likewise.
101012         * modules/vasprintf-posix (Depends-on): Likewise.
101013         * modules/vfprintf-posix (Depends-on): Likewise.
101014         * modules/vsnprintf-posix (Depends-on): Likewise.
101015         * modules/vsprintf-posix (Depends-on): Likewise.
101016         * modules/vasnprintf (Files): Add lib/float+.h.
101017         * doc/functions/fprintf.texi: Update.
101018         * doc/functions/printf.texi: Update.
101019         * doc/functions/snprintf.texi: Update.
101020         * doc/functions/sprintf.texi: Update.
101021         * doc/functions/vfprintf.texi: Update.
101022         * doc/functions/vprintf.texi: Update.
101023         * doc/functions/vsnprintf.texi: Update.
101024         * doc/functions/vsprintf.texi: Update.
101026 2007-05-18  Bruno Haible  <bruno@clisp.org>
101028         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
101030 2007-05-18  Bruno Haible  <bruno@clisp.org>
101032         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
101033         for printing 64-bit integers. Needed for mingw.
101035 2007-05-18  Bruno Haible  <bruno@clisp.org>
101037         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101038         gl_FUNC_FREXPL_WORKS.
101039         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
101041 2007-05-18  Bruno Haible  <bruno@clisp.org>
101043         * modules/frexpl-nolibm-tests: New file.
101045         * modules/frexpl-nolibm: New file.
101046         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
101048 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101050         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
101051         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101052         GCC 4.2, which otherwise issues a lot of warnings.
101053         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
101054         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
101055         Likewise.
101056         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
101057         * modules/iconv_open (iconv.h): Likewise.
101058         * modules/locale (locale.h): Likewise.
101059         * modules/netinet_in (netinet/in.h): Likewise.
101060         * modules/sys_select (sys_select.h): Likewise.
101061         * modules/sys_socket (sys/socket.h): Likewise.
101062         * modules/sys_stat (sys/stat.h): Likewise.
101063         * modules/sysexits (sysexits.h): Likewise.
101064         * modules/unistd (unistd.h): Likewise.
101066 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101068         * modules/closein-tests (Makefile.am): Distribute
101069         `test-closein.sh'.
101071 2007-05-17  Bruno Haible  <bruno@clisp.org>
101073         * tests/test-printf-posix.output: Renamed from
101074         tests/test-fprintf-posix.out.
101075         * modules/fprintf-posix-tests: Update.
101076         * modules/printf-posix-tests: Update.
101077         * modules/vfprintf-posix-tests: Update.
101078         * modules/vprintf-posix-tests: Update.
101079         * tests/test-fprintf-posix.sh: Update.
101080         * tests/test-printf-posix.sh: Update.
101081         * tests/test-vfprintf-posix.sh: Update.
101082         * tests/test-vprintf-posix.sh: Update.
101083         Reported by Ralf Wildenhues.
101085 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101087         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
101088         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101089         GCC 4.2, which otherwise issues a lot of warnings.
101090         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
101091         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
101092         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
101093         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
101094         it should no longer be needed.
101095         * lib/string_.h: Likewise.
101096         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
101097         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
101098         * modules/inttypes (inttypes.h): Likewise.
101099         * modules/math (math.h): Likewise.
101100         * modules/search (search.h): Likewise.
101101         * modules/signal (signal.h): Likewise.
101102         * modules/stdint (stdint.h): Likewise.
101103         * modules/stdio (stdio.h): Likewise.
101104         * modules/stdlib (stdlib.h): Likewise.
101105         * modules/string (string.h): Likewise.
101106         * modules/sys_time (sys/time.h): Likewise.
101107         * modules/time (time.h): Likewise.
101108         * modules/wchar (wchar.h): Likewise.
101109         * modules/wctype (wtype.h): Likewise.
101111 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
101113         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
101115 2007-05-13  Bruno Haible  <bruno@clisp.org>
101117         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
101118         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101119         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
101120         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
101121         (gl_PREREQ_STRTOK_R): Don't require it here.
101123 2007-05-13  Bruno Haible  <bruno@clisp.org>
101125         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
101126         when used in C++ mode.
101128 2007-05-12  Bruno Haible  <bruno@clisp.org>
101130         * lib/linebuffer.h: Tweak doc.
101131         * lib/linebuffer.c: Likewise.
101133 2007-05-12  James Youngman  <jay@gnu.org>
101135         * lib/linebuffer.c (readlinebuffer_delim): New function,
101136         like readlinebuffer, but use a caller-specified delimiter.
101137         (readlinebuffer): Just call readlinebuffer_delim with '\n'
101138         as the delimiter.
101139         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
101141 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
101143         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
101144         * modules/openat (Files): Remove openat-die.c.
101145         (Depends-on): Add openat-die.
101146         * modules/openat-die: New module.
101148 2007-05-06  Bruno Haible  <bruno@clisp.org>
101150         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
101151         Update with info about Cygwin.
101152         * doc/functions/fprintf.texi: Update.
101153         * doc/functions/printf.texi: Update.
101154         * doc/functions/snprintf.texi: Update.
101155         * doc/functions/sprintf.texi: Update.
101156         * doc/functions/vfprintf.texi: Update.
101157         * doc/functions/vprintf.texi: Update.
101158         * doc/functions/vsnprintf.texi: Update.
101159         * doc/functions/vsprintf.texi: Update.
101160         Reported by Eric Blake.
101162 2007-05-06  Bruno Haible  <bruno@clisp.org>
101164         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
101165         padding ourselves for the floating-point directives.
101166         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
101167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
101168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101169         gl_PRINTF_FLAG_ZERO and test its result. Invoke
101170         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
101171         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101177         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101178         * tests/test-snprintf-posix.h (test_function): Also check the width
101179         and some flags in the %f directive.
101180         * tests/test-sprintf-posix.h (test_function): Likewise.
101181         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101182         * tests/test-vasprintf-posix.c (test_function): Likewise.
101183         * doc/functions/fprintf.texi: Update.
101184         * doc/functions/printf.texi: Update.
101185         * doc/functions/snprintf.texi: Update.
101186         * doc/functions/sprintf.texi: Update.
101187         * doc/functions/vfprintf.texi: Update.
101188         * doc/functions/vprintf.texi: Update.
101189         * doc/functions/vsnprintf.texi: Update.
101190         * doc/functions/vsprintf.texi: Update.
101192 2007-05-06  Bruno Haible  <bruno@clisp.org>
101194         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
101195         pass the ' flag character to sprintf or snprintf.
101196         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
101197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
101198         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101199         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
101200         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
101201         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101202         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101205         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101206         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101207         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101208         * tests/test-snprintf-posix.h (test_function): Also check the grouping
101209         flag.
101210         * tests/test-sprintf-posix.h (test_function): Likewise.
101211         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101212         * tests/test-vasprintf-posix.c (test_function): Likewise.
101213         * doc/functions/fprintf.texi: Update.
101214         * doc/functions/printf.texi: Update.
101215         * doc/functions/snprintf.texi: Update.
101216         * doc/functions/sprintf.texi: Update.
101217         * doc/functions/vfprintf.texi: Update.
101218         * doc/functions/vprintf.texi: Update.
101219         * doc/functions/vsnprintf.texi: Update.
101220         * doc/functions/vsprintf.texi: Update.
101222 2007-05-01  Bruno Haible  <bruno@clisp.org>
101224         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
101226 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
101228         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
101229         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
101231 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101233         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
101234         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
101235         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
101237 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
101239         * lib/argp-help.c (struct hol_entry): New member `ord'.
101240         (HOL_ENTRY_PTRCMP): Use ord for comparison
101241         (hol_sort): Initialize ord.
101243 2007-05-01  Bruno Haible  <bruno@clisp.org>
101245         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
101246         Reported by Eric Blake.
101247         * doc/gnulib.texi (Function Substitutes): Update.
101249 2007-05-01  Bruno Haible  <bruno@clisp.org>
101251         * doc/functions.texi: Remove file, now redundant through
101252         doc/functions/*.texi.
101254 2007-05-01  Bruno Haible  <bruno@clisp.org>
101256         * modules/argp (Depends-on): Add sleep.
101258 2007-05-01  Bruno Haible  <bruno@clisp.org>
101260         * modules/sleep-tests: New file.
101261         * tests/test-sleep.c: New file.
101263         * modules/sleep: New file.
101264         * lib/sleep.c: New file.
101265         * m4/sleep.m4: New file.
101266         * lib/unistd_.h (sleep): New declaration.
101267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
101268         HAVE_SLEEP.
101269         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
101270         * doc/functions/sleep.texi: Document the sleep module.
101272 2007-05-01  Bruno Haible  <bruno@clisp.org>
101274         * lib/sigprocmask.h: Remove file.
101275         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
101276         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
101277         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
101278         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
101279         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
101280         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
101281         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
101282         HAVE_SIGSET_T as a shell variable.
101283         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
101284         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
101285         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
101286         (Depends-on): Add signal. Remove verify.
101287         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
101288         (Include): Mention <signal.h> instead of sigprocmask.h.
101289         * NEWS: Mention the change.
101290         * lib/fatal-signal.c: Don't include sigprocmask.h.
101292 2007-05-01  Bruno Haible  <bruno@clisp.org>
101294         * modules/signal: New file.
101295         * lib/signal_.h: New file.
101296         * m4/signal_h.m4: New file.
101298 2007-05-01  Bruno Haible  <bruno@clisp.org>
101300         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
101301         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
101302         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
101303         HAVE_WCTYPE_CTMP_BUG into wctype.h.
101305 2007-05-01  Bruno Haible  <bruno@clisp.org>
101307         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
101308         configure time.
101309         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
101310         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
101311         * modules/sys_stat (Makefile.am): Substitute their values into
101312         sys/stat.h.
101314 2007-05-01  Bruno Haible  <bruno@clisp.org>
101316         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
101317         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
101318         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
101320 2007-05-01  Bruno Haible  <bruno@clisp.org>
101322         * doc/header/assert.texi: Undo last change: don't mention the gnulib
101323         'assert' module here.
101325 2007-05-01  Bruno Haible  <bruno@clisp.org>
101327         * doc/functions/*.texi: New files.
101328         * doc/functions/google-ranking.txt: New file.
101329         * doc/gnulib.texi (Function Substitutes): New chapter.
101330         (ctime, inet_ntoa): Remove sections.
101331         * doc/ctime.texi: Remove file.
101332         * doc/inet_ntoa.texi: Remove file.
101333         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
101334         dependencies.
101335         (%.info): New rule, specifying a --reference-limit.
101337 2007-05-01  Bruno Haible  <bruno@clisp.org>
101339         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
101341 2007-05-01  Bruno Haible  <bruno@clisp.org>
101343         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
101344         the portability of 'mkdir' to mingw systems.
101346 2007-05-01  Bruno Haible  <bruno@clisp.org>
101348         * doc/headers/google-ranking.txt: New file.
101350 2007-04-30  Eric Blake  <ebb9@byu.net>
101352         Prefer fseeko to fseek.
101353         * modules/getpass (Depends-on): Add fseeko.
101354         * lib/getpass.c (getpass): Use fseeko, not fseek.
101356 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
101358         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
101359         assumes the sorting is stable, while most qsort implementations
101360         are not.  Use argument addresses to ensure they never compare as
101361         equal.
101363         * tests/test-argp-2.sh (usage-indent test): Fix output
101364         (func_compare): Restore diff options
101365         * tests/test-argp.c: Restore #include "progname.h"
101367 2007-04-29  Bruno Haible  <bruno@clisp.org>
101369         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
101370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101371         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
101372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101373         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
101374         (configure.ac): Define CHECK_SNPRINTF_POSIX.
101375         (TESTS, check_PROGRAMS): Add test-snprintf.
101376         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
101377         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
101378         (TESTS, check_PROGRAMS): Add test-vsnprintf.
101379         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
101380         assertions that fail on HP-UX, OSF/1, or IRIX.
101381         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
101383 2007-04-29  Bruno Haible  <bruno@clisp.org>
101385         * MODULES.html.sh (posix_functions): Remove 'contents'.
101387 2007-04-29  Karl Berry  <karl@gnu.org>
101389         * config/srclist.txt (gendocs_template_min): new entry.
101391 2007-04-29  Bruno Haible  <bruno@clisp.org>
101393         Work around fpurge bug on BSD systems.
101394         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
101395         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
101396         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
101397         fpurge to rpl_fpurge if the system already has this function.
101398         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
101399         the case where the system already has this function. Correct invariants
101400         on BSD systems.
101401         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
101402         BSD systems.
101404 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
101406         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
101407         proposed by Sven Verdoolaege.
101409         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
101410         options.
101411         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
101412         (usage and help tests): Update
101414 2007-04-29  Bruno Haible  <bruno@clisp.org>
101416         * tests/test-fflush.c (main): Use a file of size 17, not 10.
101417         Print more information in case of failure. Disable a test on BeOS.
101419 2007-04-29  Bruno Haible  <bruno@clisp.org>
101421         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
101422         This helps debugging on systems on which no gdb is available.
101424 2007-04-29  Bruno Haible  <bruno@clisp.org>
101426         * lib/freading.h: Improve comments.
101427         * lib/fwriting.h: Likewise.
101428         * tests/test-freading.c (main): Don't check freading immediately after
101429         repositioning. Needed for glibc.
101431 2007-04-29  Bruno Haible  <bruno@clisp.org>
101433         * lib/freading.c (freading): Trivial simplification.
101435 2007-04-28  Bruno Haible  <bruno@clisp.org>
101437         * tests/test-fwriting.c (main): Also test the interaction between
101438         fflush and fwriting.
101439         * modules/fwriting-tests (Depends-on): Add fflush.
101441         * tests/test-freading.c (main): Also test the interaction between
101442         fflush and freading.
101443         * modules/freading-tests (Depends-on): Add fflush.
101445 2007-04-28  Bruno Haible  <bruno@clisp.org>
101447         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
101448         fseeko and ftello.
101449         Suggested by Eric Blake.
101451 2007-04-28  Jim Meyering  <jim@meyering.net>
101453         Avoid false-negative in gl_STDINT_H's C99 conformance test.
101454         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
101455         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
101457 2007-04-27  Eric Blake  <ebb9@byu.net>
101459         * doc/headers/assert.texi (assert.h): Document assert module use.
101461 2007-04-27  Bruno Haible  <bruno@clisp.org>
101463         * doc/headers/*.texi: New files.
101464         * doc/gnulib.texi (Header File Substitutes): New chapter.
101465         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
101466         dependencies.
101467         (standards.info ,standards.html, standards.dvi): Update dependencies.
101468         (mostlyclean, clean): New targets.
101470 2007-04-27  Bruno Haible  <bruno@clisp.org>
101472         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
101473         * modules/sysexits (Files, Makefile.am): Update.
101475         * lib/sys_socket_.h: Renamed from lib/socket_.h.
101476         * modules/sys_socket (Files, Makefile.am): Update.
101478         * lib/sys_stat_.h: Renamed from lib/stat_.h.
101479         * modules/sys_stat (Files, Makefile.am): Update.
101481 2007-04-27  Eric Blake  <ebb9@byu.net>
101483         * lib/freading.h: Improve comments.
101484         * lib/fwriting.h: Likewise.
101485         * lib/fflush.c: Likewise.
101487         Fix closein for mingw.
101488         * modules/closein-tests: Add tests for closein.
101489         * tests/test-closein.c: New file.
101490         * tests/test-closein.sh: Likewise.
101491         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
101492         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
101494 2007-04-27  Bruno Haible  <bruno@clisp.org>
101496         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
101497         version is < 6.
101498         * lib/math_.h [__DECC]: Likewise.
101499         * lib/stdio_.h [__DECC]: Likewise.
101500         * lib/stdlib_.h [__DECC]: Likewise.
101501         * lib/string_.h [__DECC]: Likewise.
101502         * lib/time_.h [__DECC]: Likewise.
101503         * lib/wchar_.h [__DECC]: Likewise.
101504         * lib/wctype_.h [__DECC]: Likewise.
101506 2007-04-27  Bruno Haible  <bruno@clisp.org>
101508         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
101510 2007-04-27  Bruno Haible  <bruno@clisp.org>
101512         * lib/fflush.c: Add comments.
101513         * modules/fpurge-tests (Depends-on): Add fflush.
101514         * modules/freadable-tests (Depends-on): Likewise.
101515         * modules/fwritable-tests (Depends-on): Likewise.
101517 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
101519         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
101520         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
101521         Report by Bruno Haible <bruno@clisp.org>.
101523 2007-04-26  Eric Blake  <ebb9@byu.net>
101525         Fix fflush on mingw.
101526         * modules/fflush (Depends-on): Add freading.
101527         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
101528         but unread data.
101530 2007-04-26  Eric Blake  <ebb9@byu.net>
101531         and Bruno Haible  <bruno@clisp.org>
101533         Implement freading and fwriting.
101534         * lib/freading.c: New file.
101535         * lib/freading.h: Likewise.
101536         * m4/freading.m4: Likewise.
101537         * modules/freading: Likewise.
101538         * modules/freading-tests: Likewise.
101539         * tests/test-freading.c: Likewise.
101540         * lib/fwriting.c: New file.
101541         * lib/fwriting.h: Likewise.
101542         * m4/fwriting.m4: Likewise.
101543         * modules/fwriting: Likewise.
101544         * modules/fwriting-tests: Likewise.
101545         * tests/test-fwriting.c: Likewise.
101546         * MODULES.html.sh (File stream based Input/Output): Mention them.
101548 2007-04-26  Bruno Haible  <bruno@clisp.org>
101550         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
101551         'long' when we assume it.
101552         Suggested by Eric Blake.
101554 2007-04-26  Bruno Haible  <bruno@clisp.org>
101556         Ensure fseeko, ftello are declared on glibc systems.
101557         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
101558         * modules/fseeko (configure.ac-early): Likewise.
101559         * modules/ftello (configure.ac-early): Likewise.
101560         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
101561         AC_FUNC_FSEEKO for this.
101562         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
101563         (gl_CHECK_FSEEKO): Remove macro.
101565 2007-04-26  Bruno Haible  <bruno@clisp.org>
101567         * tests/test-fflush.c (main): Also check the ftell result after
101568         fflush and fseek/fseeko.
101569         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
101570         file descriptor position cache in the stream.
101571         * lib/fseeko.c (rpl_fseeko): Likewise.
101573 2007-04-26  Bruno Haible  <bruno@clisp.org>
101575         * modules/fflush-tests (Depends-on): Add fseeko.
101577 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
101578             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101580         * lib/argz_.h: ensure error_t definition is obtained in same
101581         mechanism system argz.h would have.
101582         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
101583         argz facilities are known bad.  Err on the side of caution if
101584         cross-compiling.
101586 2007-04-25  Eric Blake  <ebb9@byu.net>
101588         * lib/fpurge.c (includes): Use stdlib.h for free.
101589         * tests/test-fflush.c (main): Also test fflush-fseeko.
101591 2007-04-25  Bruno Haible  <bruno@clisp.org>
101593         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
101594         * lib/fseeko.c: New file.
101595         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
101596         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
101597         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
101598         gl_FUNC_FSEEKO.
101599         (gl_FUNC_FSEEKO): Invoke it.
101600         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
101601         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
101602         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
101604 2007-04-25  Bruno Haible  <bruno@clisp.org>
101606         * modules/fflush (Depends-on): Add ftello.
101608 2007-04-25  Bruno Haible  <bruno@clisp.org>
101610         * modules/ftello-tests: New file.
101611         * tests/test-ftello.c: New file.
101613         * modules/ftello: New file.
101614         * m4/ftello.m4: New file.
101615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
101616         HAVE_FTELLO.
101617         * lib/stdio_.h (ftello): New declaration.
101618         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
101619         HAVE_FTELLO.
101621 2007-04-25  Bruno Haible  <bruno@clisp.org>
101623         * modules/fseeko-tests: New file.
101624         * tests/test-fseeko.c: New file.
101626         * modules/fseeko: New file.
101627         * m4/fseeko.m4: New file.
101628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
101629         HAVE_FSEEKO.
101630         * lib/stdio_.h (fseeko): New declaration.
101631         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
101632         HAVE_FSEEKO.
101634 2007-04-25  Bruno Haible  <bruno@clisp.org>
101636         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
101638 2007-04-25  Bruno Haible  <bruno@clisp.org>
101640         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
101641         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
101642         * tests/test-unistd.c: Likewise.
101643         * tests/test-fcntl.c: Likewise.
101645 2007-04-23  Eric Blake  <ebb9@byu.net>
101647         * lib/fflush.c: Fix missing include.
101648         Reported by Bruno Haible.
101650 2007-04-23  Bruno Haible  <bruno@clisp.org>
101652         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
101653         Reported by Eric Blake.
101655 2007-04-23  Bruno Haible  <bruno@clisp.org>
101657         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
101659 2007-04-23  Bruno Haible  <bruno@clisp.org>
101661         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
101663 2007-04-23  Bruno Haible  <bruno@clisp.org>
101665         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
101666         Needed on HP-UX 11.
101668 2007-04-16  Eric Blake  <ebb9@byu.net>
101670         Make fflush rely on fpurge.
101671         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101672         open coding all variants.
101673         * modules/fflush (Depends-on): Add fpurge and unistd.
101674         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101675         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101677         Fix --with-tests compilation on cygwin.
101678         * modules/argmatch-tests (Makefile.am): List gnulib library first
101679         in LDADD.
101680         * modules/argp-tests (Makefile.am): Likewise.
101681         * modules/array-list-tests (Makefile.am): Likewise.
101682         * modules/array-oset-tests (Makefile.am): Likewise.
101683         * modules/avltree-list-tests (Makefile.am): Likewise.
101684         * modules/avltree-oset-tests (Makefile.am): Likewise.
101685         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101686         * modules/carray-list-tests (Makefile.am): Likewise.
101687         * modules/dirname-tests (Makefile.am): Likewise.
101688         * modules/frexp-tests (Makefile.am): Likewise.
101689         * modules/isnanl-tests (Makefile.am): Likewise.
101690         * modules/linked-list-tests (Makefile.am): Likewise.
101691         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101692         * modules/lock-tests (Makefile.am): Likewise.
101693         * modules/rbtree-list-tests (Makefile.am): Likewise.
101694         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101695         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101696         * modules/tls-tests (Makefile.am): Likewise.
101697         * modules/tsearch-tests (Makefile.am): Likewise.
101698         * modules/xvasprintf-tests (Makefile.am): Likewise.
101700         Fix fpurge for cygwin.
101701         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101702         value.
101703         * modules/fpurge-tests (Depends-on): Clean up trash.
101705 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101707         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
101709         * m4/autobuild.m4: Re-indent.
101711 2007-04-13  Bruno Haible  <bruno@clisp.org>
101713         * modules/fpurge-tests: New file.
101714         * tests/test-fpurge.c: New file.
101716         * modules/fpurge: New file.
101717         * lib/fpurge.h: New file.
101718         * lib/fpurge.c: New file.
101719         * m4/fpurge.m4: New file.
101721 2007-04-13  Bruno Haible  <bruno@clisp.org>
101723         * modules/fbufmode-tests: New file.
101724         * tests/test-fbufmode.c: New file.
101726         * modules/fbufmode: New file.
101727         * lib/fbufmode.h: New file.
101728         * lib/fbufmode.c: New file.
101729         * m4/fbufmode.m4: New file.
101731 2007-04-13  Bruno Haible  <bruno@clisp.org>
101733         * modules/fwritable-tests: New file.
101734         * tests/test-fwritable.c: New file.
101736         * modules/fwritable: New file.
101737         * lib/fwritable.h: New file.
101738         * lib/fwritable.c: New file.
101739         * m4/fwritable.m4: New file.
101741 2007-04-13  Bruno Haible  <bruno@clisp.org>
101743         * modules/freadable-tests: New file.
101744         * tests/test-freadable.c: New file.
101746         * modules/freadable: New file.
101747         * lib/freadable.h: New file.
101748         * lib/freadable.c: New file.
101749         * m4/freadable.m4: New file.
101751 2007-04-13  Bruno Haible  <bruno@clisp.org>
101753         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
101754         MOSTLYCLEANFILES.
101756 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101758         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
101759         gzip bootstrap.conf to avoid dragging in i18n machinery.
101760         (gnulib_tool_option): Use it.
101762 2007-04-13  Bruno Haible  <bruno@clisp.org>
101764         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
101765         %F directives.
101766         * tests/test-vasprintf-posix.c (test_function): Likewise.
101767         * tests/test-snprintf-posix.h (test_function): Likewise.
101768         * tests/test-sprintf-posix.h (test_function): Likewise.
101769         * tests/test-fprintf-posix.h (test_function): Likewise.
101770         * tests/test-printf-posix.h (test_function): Likewise.
101771         * tests/test-fprintf-posix.out: Likewise.
101773 2007-04-13  Bruno Haible  <bruno@clisp.org>
101775         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
101776         * modules/tls-tests (configure.ac): Likewise.
101777         Reported by Arto C. Nirkko <anirkko@insel.ch>.
101779 2007-04-13  Bruno Haible  <bruno@clisp.org>
101781         * lib/tls.c (glthread_tls_get): Fix return type.
101782         Patch by Arto C. Nirkko <anirkko@insel.ch>.
101784 2007-04-12  Eric Blake  <ebb9@byu.net>
101786         * modules/gettime (Depends-on): Remove gettime.
101787         Reported by Dmitry V. Levin.
101789 2007-04-12  Bruno Haible  <bruno@clisp.org>
101791         * modules/fflush (Include): Mention <stdio.h>.
101792         * modules/strtoimax (Include): Mention <inttypes.h>.
101793         * modules/strtoumax (Include): Likewise.
101795 2007-04-12  Eric Blake  <ebb9@byu.net>
101797         * .cvsignore: New file.
101798         * .gitignore: Likewise.
101800 2007-04-12  Bruno Haible  <bruno@clisp.org>
101802         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
101803         not before, since $(LDADD) often contains libgnu.a.
101804         * modules/striconv-tests (test_striconv_LDADD): Likewise.
101805         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101806         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101807         Needed on Cygwin.
101809 2007-04-12  Eric Blake  <ebb9@byu.net>
101811         Work around glibc's failure to flush stdin on fclose.
101812         * lib/closein.c (close_stdin): Flush stdin before closing.
101814         Work around glibc's failure to reset seekable stdin on exit.
101815         * modules/closein: New module.
101816         * lib/closein.c: New file.
101817         * lib/closein.h: Likewise.
101818         * m4/closein.m4: Likewise.
101819         * MODULES.html.sh (File stream based Input/Output): Document it.
101821 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101823         * gnulib-tool: Rename generated 'autobuild' script to
101824         'do-autobuild' in --create-megatestdir output.
101826         * doc/gnulib.texi (Build robot for gnulib): Fix.
101828 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101830         * modules/sysexits (Depends-on): Add absolute-header.
101832 2007-04-12  Eric Blake  <ebb9@byu.net>
101834         No need to preserve errno on success.
101835         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101836         Reported by Bruno Haible.
101838 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101840         * MODULES.html.sh (Support for maintaining and releasing
101841         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101843 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101845         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101847 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101849         * modules/autobuild: New module.
101851         * m4/autobuild.m4: New file.
101853 2007-04-11  Bruno Haible  <bruno@clisp.org>
101855         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101856         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101860         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101861         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101862         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101863         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101864         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
101866         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101867         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
101869         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101870         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101871         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
101872         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101873         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
101875         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101876         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101878         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101879         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101881         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101882         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101883         Reported by Eric Blake.
101885 2007-04-11  Bruno Haible  <bruno@clisp.org>
101887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101889 2007-04-10  Bruno Haible  <bruno@clisp.org>
101891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101892         for NaN and Infinity. Needed on FreeBSD 6.1.
101893         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101894         regarding results for "%010a" of Infinity and NaN.
101895         * tests/test-vasprintf-posix.c (test_function): Likewise.
101896         * tests/test-snprintf-posix.h (test_function): Likewise.
101897         * tests/test-sprintf-posix.h (test_function): Likewise.
101898         * tests/test-fprintf-posix.h (test_function): Likewise.
101899         * tests/test-printf-posix.h (test_function): Likewise.
101900         * tests/test-fprintf-posix.out: Likewise.
101902 2007-04-10  Bruno Haible  <bruno@clisp.org>
101904         * modules/locale-tests: New file.
101905         * tests/test-locale.c: New file.
101907         * modules/locale: New file.
101908         * lib/locale_.h: New file.
101909         * m4/locale_h.m4: New file.
101911 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101912             Bruno Haible  <bruno@clisp.org>
101914         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101915         be determined, test for availability of the copysignf, copysign,
101916         copysignl functions.
101917         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101918         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101919         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101921 2007-04-09  Eric Blake  <ebb9@byu.net>
101923         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101924         * modules/stdio (Makefile.am): Support fflush.
101925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101926         * modules/fflush: New file.
101927         * lib/fflush.c: Likewise.
101928         * m4/fflush.m4: Likewise.
101929         * modules/fflush-tests: New test.
101930         * tests/test-fflush.c: Likewise.
101931         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101933 2007-04-06  Bruno Haible  <bruno@clisp.org>
101935         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101936         (VASNPRINTF): Use signbit for faster determination whether to print a
101937         minus sign.
101938         * modules/vasnprintf (Files): Remove lib/float+.h.
101939         * modules/fprintf-posix (Depends-on): Add signbit.
101940         * modules/snprintf-posix (Depends-on): Likewise.
101941         * modules/sprintf-posix (Depends-on): Likewise.
101942         * modules/vasnprintf-posix (Depends-on): Likewise.
101943         * modules/vasprintf-posix (Depends-on): Likewise.
101944         * modules/vfprintf-posix (Depends-on): Likewise.
101945         * modules/vsnprintf-posix (Depends-on): Likewise.
101946         * modules/vsprintf-posix (Depends-on): Likewise.
101948 2007-04-06  Bruno Haible  <bruno@clisp.org>
101950         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101951         * tests/test-frexpl.c (main): Likewise.
101952         * tests/test-ldexpl.c (main): Likewise.
101953         * modules/frexp-tests (Depends-on): Add signbit.
101954         * modules/frexpl-tests (Depdends-on): Likewise.
101955         * modules/ldexpl-tests (Depdends-on): Likewise.
101957 2007-04-06  Bruno Haible  <bruno@clisp.org>
101959         * modules/signbit-tests: New file.
101960         * tests/test-signbit.c: New file.
101962         * modules/signbit: New file.
101963         * lib/signbitf.c: New file.
101964         * lib/signbitd.c: New file.
101965         * lib/signbitl.c: New file.
101966         * m4/signbit.m4: New file.
101967         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101968         (signbit): New macro.
101969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101970         REPLACE_SIGNBIT.
101971         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101972         REPLACE_FREXPL into math.h.
101974 2007-04-06  Bruno Haible  <bruno@clisp.org>
101976         * modules/isnanf-nolibm-tests: New file.
101977         * tests/test-isnanf.c: New file.
101979         * modules/isnanf-nolibm: New file.
101980         * lib/isnanf.h: New file.
101981         * lib/isnanf.c: New file.
101982         * lib/isnan.c: Consider the USE_FLOAT macro.
101983         * m4/isnanf.m4: New file.
101985 2007-04-06  Bruno Haible  <bruno@clisp.org>
101987         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101988         (Link): New section.
101990         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101992 2007-04-06  Bruno Haible  <bruno@clisp.org>
101994         Assume the 'long double' type.
101995         * m4/longdouble.m4: Remove file.
101996         * config/srclist.txt: Don't mention longdouble.m4.
101997         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101998         * lib/float+.h: Likewise.
101999         * lib/frexp.c: Likewise.
102000         * lib/printf-args.h: Likewise.
102001         * lib/printf-args.c: Likewise.
102002         * lib/printf-frexp.c: Likewise.
102003         * lib/printf-parse.c: Likewise.
102004         * lib/vasnprintf.c: Likewise.
102005         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
102006         * m4/intl.m4: Likewise.
102007         * m4/isnanl.m4: Likewise.
102008         * m4/printf.m4: Likewise.
102009         * m4/printf-frexpl.m4: Likewise.
102010         * m4/vasnprintf.m4: Likewise.
102011         * modules/allocsa (Files): Remove m4/longdouble.m4.
102012         * modules/gettext (Files): Likewise.
102013         * modules/relocatable-prog-wrapper (Files): Likewise.
102014         * modules/vasnprintf (Files): Likewise.
102015         * modules/isnanl (Files): Likewise.
102016         (Include): Simplify.
102017         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
102018         (Include): Simplify.
102019         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
102020         (Include): Simplify.
102021         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
102022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102023         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
102024         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102025         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102026         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102027         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
102028         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102029         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102030         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102031         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
102032         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102033         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
102034         * tests/test-isnanl.c: Likewise.
102035         * tests/test-snprintf-posix.h: Likewise.
102036         * tests/test-sprintf-posix.h: Likewise.
102037         * tests/test-vasnprintf-posix.c: Likewise.
102038         * tests/test-vasnprintf-posix2.c: Likewise.
102039         * tests/test-vasprintf-posix.c: Likewise.
102041 2007-04-06  Bruno Haible  <bruno@clisp.org>
102043         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
102044         * lib/math_.h [__DECC]: Include the overridden include file through
102045         #include_next, outside the double-inclusion guard.
102046         * lib/stdio_.h [__DECC]: Likewise.
102047         * lib/stdlib_.h [__DECC]: Likewise.
102048         * lib/string_.h [__DECC]: Likewise.
102049         * lib/time_.h [__DECC]: Likewise.
102050         * lib/wchar_.h [__DECC]: Likewise.
102051         * lib/wctype_.h [__DECC]: Likewise.
102052         * lib/inttypes_.h [__DECC]: Likewise.
102053         Reported by Albert Chin <china@thewrittenword.com> in
102054         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
102056 2007-04-04  Eric Blake  <ebb9@byu.net>
102058         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
102059         1.5.x.
102061 2007-04-04  Bruno Haible  <bruno@clisp.org>
102063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
102064         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
102066 2007-04-04  Bruno Haible  <bruno@clisp.org>
102068         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
102069         results for "%010a" of Infinity and NaN.
102070         * tests/test-vasprintf-posix.c (test_function): Likewise.
102071         * tests/test-snprintf-posix.h (test_function): Likewise.
102072         * tests/test-sprintf-posix.h (test_function): Likewise.
102073         * tests/test-fprintf-posix.h (test_function): Remove these tests.
102074         * tests/test-printf-posix.h (test_function): Likewise.
102075         * tests/test-fprintf-posix.out: Update.
102076         Needed for FreeBSD 6.1.
102078 2007-04-04  Bruno Haible  <bruno@clisp.org>
102080         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
102081         directly used by the gnulib modules nor by gnulib-tool.
102083 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102085         * DEPENDENCIES: Give overall description of version dependency
102086         desirability.  Use more-typical names for apps.
102087         Add shell, coreutils, diffutils, grep, tar, gzip.
102089 2007-04-04  Simon Josefsson  <simon@josefsson.org>
102091         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
102093 2007-04-04  Karl Berry  <karl@gnu.org>
102095         * MODULES.html.sh (func_module): missing '.
102097 2007-04-03  Bruno Haible  <bruno@clisp.org>
102099         * modules/argmatch-tests (Makefile.am): New variable
102100         test_argmatch_LDADD.
102101         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
102102         * modules/array-list-tests (Makefile.am): New variable
102103         test_array_list_LDADD.
102104         * modules/array-oset-tests (Makefile.am): New variable
102105         test_array_oset_LDADD.
102106         * modules/avltree-list-tests (Makefile.am): New variable
102107         test_avltree_list_LDADD.
102108         * modules/avltree-oset-tests (Makefile.am): New variable
102109         test_avltree_oset_LDADD.
102110         * modules/avltreehash-list-tests (Makefile.am): New variable
102111         test_avltreehash_list_LDADD.
102112         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
102113         test_canonicalize_lgpl_LDADD.
102114         * modules/carray-list-tests (Makefile.am): New variable
102115         test_carray_list_LDADD.
102116         * modules/dirname-tests (Makefile.am): New variable
102117         test_dirname_LDADD.
102118         * modules/linked-list-tests (Makefile.am): New variable
102119         test_linked_list_LDADD.
102120         * modules/linkedhash-list-tests (Makefile.am): New variable
102121         test_linkedhash_list_LDADD.
102122         * modules/rbtree-list-tests (Makefile.am): New variable
102123         test_rbtree_list_LDADD.
102124         * modules/rbtree-oset-tests (Makefile.am): New variable
102125         test_rbtree_oset_LDADD.
102126         * modules/rbtreehash-list-tests (Makefile.am): New variable
102127         test_rbtreehash_list_LDADD.
102128         * modules/xvasprintf-tests (Makefile.am): New variable
102129         test_xvasprintf_LDADD.
102130         Reported by Eric Blake.
102132 2007-04-03  Eric Blake  <ebb9@byu.net>
102134         * DEPENDENCIES: Weaken m4 requirements.
102136 2007-04-03  Bruno Haible  <bruno@clisp.org>
102138         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
102139         * modules/isnanl-tests (configure.ac): Likewise.
102141 2007-04-03  Ben Pfaff  <blp@gnu.org>
102143         * modules/iconv_open: Add $(srcdir)/ to source directory
102144         references in Makefile fragments that call gperf, to fix VPATH
102145         builds.
102147 2007-04-03  Bruno Haible  <bruno@clisp.org>
102149         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
102150         * lib/ldexpl.c: Undo last change.
102152 2007-04-03  Bruno Haible  <bruno@clisp.org>
102154         * modules/printf-frexpl (Depends-on): Undo last change.
102155         (Files): Add m4/ldexpl.m4.
102157 2007-04-03  Bruno Haible  <bruno@clisp.org>
102159         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
102160         * modules/isnanl (Link): New section.
102162         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
102163         * modules/frexp (Link): New section.
102165         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
102166         * modules/frexpl (Link): New section.
102168         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
102169         * modules/ldexpl (Link): New section.
102171 2007-04-03  Bruno Haible  <bruno@clisp.org>
102173         * modules/TEMPLATE-EXTENDED: New file.
102174         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
102176 2007-04-03  Bruno Haible  <bruno@clisp.org>
102178         * DEPENDENCIES: New file.
102179         Suggested by Simon Josefsson.
102181 2007-04-03  Bruno Haible  <bruno@clisp.org>
102183         * doc/gnulib.texi: Escape @.
102185 2007-04-03  James Youngman  <jay@gnu.org>
102186         and Paul Eggert  <eggert@cs.ucla.edu>
102188         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
102189         birthtime on all systems that have birthtime, not just those which
102190         use st_birthtimensec rather than st_birthtim.  Putting zero in
102191         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
102192         that the birth time is not available for files on an NFS mount.
102194 2007-04-03  Simon Josefsson  <simon@josefsson.org>
102196         * modules/memxor: Move back from crypto/, suggested by Bruno.
102197         * modules/crypto/hmac-sha1: Fix memxor dependency.
102199         * modules/crypto/gc: Moved from ../.
102201 2007-04-02  Eric Blake  <ebb9@byu.net>
102203         * lib/ldexpl.c (includes): Avoid libm.
102205         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
102207 2007-04-02  Bruno Haible  <bruno@clisp.org>
102209         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
102210         on IRIX.
102212 2007-04-02  Bruno Haible  <bruno@clisp.org>
102214         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
102215         x86 or x86_64 platforms running MacOS X.
102216         Reported by Ryan Schmidt <@ryandesign.com>.
102218 2007-04-02  Bruno Haible  <bruno@clisp.org>
102220         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
102221         i386.
102223 2007-04-01  Simon Josefsson  <simon@josefsson.org>
102225         * modules/crypto/arcfour: Moved from ../.
102226         * modules/crypto/arcfour-tests: Moved from ../.
102227         * modules/crypto/arctwo: Moved from ../.
102228         * modules/crypto/arctwo-tests: Moved from ../.
102229         * modules/crypto/des: Moved from ../.
102230         * modules/crypto/des-tests: Moved from ../.
102231         * modules/crypto/gc-arcfour: Moved from ../.
102232         * modules/crypto/gc-arcfour-tests: Moved from ../.
102233         * modules/crypto/gc-arctwo: Moved from ../.
102234         * modules/crypto/gc-arctwo-tests: Moved from ../.
102235         * modules/crypto/gc-des: Moved from ../.
102236         * modules/crypto/gc-des-tests: Moved from ../.
102237         * modules/crypto/gc-hmac-md5: Moved from ../.
102238         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
102239         * modules/crypto/gc-hmac-sha1: Moved from ../.
102240         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
102241         * modules/crypto/gc-md2: Moved from ../.
102242         * modules/crypto/gc-md2-tests: Moved from ../.
102243         * modules/crypto/gc-md4: Moved from ../.
102244         * modules/crypto/gc-md4-tests: Moved from ../.
102245         * modules/crypto/gc-md5: Moved from ../.
102246         * modules/crypto/gc-md5-tests: Moved from ../.
102247         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
102248         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
102249         * modules/crypto/gc-random: Moved from ../.
102250         * modules/crypto/gc-rijndael: Moved from ../.
102251         * modules/crypto/gc-rijndael-tests: Moved from ../.
102252         * modules/crypto/gc-sha1: Moved from ../.
102253         * modules/crypto/gc-sha1-tests: Moved from ../.
102254         * modules/crypto/gc-tests: Moved from ../.
102255         * modules/crypto/hmac-md5: Moved from ../.
102256         * modules/crypto/hmac-md5-tests: Moved from ../.
102257         * modules/crypto/hmac-sha1: Moved from ../.
102258         * modules/crypto/hmac-sha1-tests: Moved from ../.
102259         * modules/crypto/md2: Moved from ../.
102260         * modules/crypto/md2-tests: Moved from ../.
102261         * modules/crypto/md4: Moved from ../.
102262         * modules/crypto/md4-tests: Moved from ../.
102263         * modules/crypto/md5: Moved from ../.
102264         * modules/crypto/md5-tests: Moved from ../.
102265         * modules/crypto/memxor: Moved from ../.
102266         * modules/crypto/rijndael: Moved from ../.
102267         * modules/crypto/rijndael-tests: Moved from ../.
102268         * modules/crypto/sha1: Moved from ../.
102270 2007-03-30  James Youngman  <jay@gnu.org>
102272         * tests/test-stat-time.c (prepare_test): use chmod() rather than
102273         rename() to change the ctime of a file (because ctime is unaffected
102274         by rename on jfs2 on AIX 5.1).
102275         (main): Start by doing cleanup, in case a previous run failed leaving
102276         test files behind.
102278 2007-03-31  Bruno Haible  <bruno@clisp.org>
102280         Support old proprietary implementations of iconv.
102281         * modules/iconv_open: New file.
102282         * lib/iconv_.h: New file.
102283         * m4/iconv_h.m4: New file.
102284         * lib/iconv_open.c: New file.
102285         * lib/iconv_open-aix.gperf: New file.
102286         * lib/iconv_open-hpux.gperf: New file.
102287         * lib/iconv_open-irix.gperf: New file.
102288         * lib/iconv_open-osf.gperf: New file.
102289         * m4/iconv_open.m4: New file.
102290         * modules/linebreak (Depends-on): Add iconv_open.
102291         * modules/striconv (Depends-on): Likewise.
102292         * modules/striconveh (Depends-on): Likewise.
102293         * modules/unicodeio (Depends-on): Likewise.
102294         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
102295         (iconv_t)(-1).
102296         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
102297         conversion if cd is (iconv_t)(-1).
102298         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
102299         is not possible.
102301 2007-03-31  Bruno Haible  <bruno@clisp.org>
102303         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102304         work on Solaris either. Protect also second use of "autodetect_jp".
102306 2007-03-31  Bruno Haible  <bruno@clisp.org>
102308         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
102309         the function is not present.
102311 2007-03-31  Bruno Haible  <bruno@clisp.org>
102313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
102314         the function is not present.
102316 2007-03-31  Bruno Haible  <bruno@clisp.org>
102318         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
102319         a bug in HP-UX iconv_open().
102321 2007-03-31  Bruno Haible  <bruno@clisp.org>
102323         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
102324         (Mathematics <math.h>): New section, add fpieee.
102325         (Input/output <stdio.h>): Add fseterr.
102326         (Mathematics <math.h>): New section, add printf-frexp.
102327         (Container data structures): Add sublist.
102328         (Core language properties): Add fpucw, inline.
102329         (Functions for greatest-width integer types <inttypes.h>): Add
102330         imaxabs, imaxdiv, inttypes.
102331         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
102332         isnanl-nolibm, ldexp.
102333         (Mathematics <math.h>): New section, add printf-frexpl.
102334         (Support for systems lacking POSIX:2001): Add fprintf-posix,
102335         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
102336         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
102337         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
102338         (Unicode string functions): Add unistr/u*-mbtoucr.
102339         (Java): Add javacomp-script, javaexec-script.
102340         (C#): Add csharpcomp-script, csharpexec-script.
102341         (Support for building libraries and executables): Add havelib,
102342         relocatable-*.
102343         (Support for maintaining and releasing projects): Renamed from
102344         'Support for maintaining and release projects'. Add announce-gen.
102346 2007-03-31  Bruno Haible  <bruno@clisp.org>
102348         * README: Talk primarily about git.
102349         (git and CVS): Renamed from CVS.
102350         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
102351         gnulib is available through git.
102352         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
102354 2007-03-30  Bruno Haible  <bruno@clisp.org>
102356         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
102357         * lib/poll_.h: Likewise.
102358         * lib/stat_.h: Likewise.
102359         * lib/sys_time_.h: Likewise.
102360         * lib/sysexit_.h: Likewise.
102361         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
102362         * lib/stdbool_.h: Likewise.
102363         * lib/byteswap_.h: Add double-inclusion guard.
102365 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
102367         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
102369 2007-03-30  Karl Berry  <karl@gnu.org>
102371         * config/srclist-update: double space after USA in the license
102372         substitution, since that's how it's usually (?) written.
102374 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
102376         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
102377         reported by Bruno Haible.
102379 2007-03-29  Bruno Haible  <bruno@clisp.org>
102381         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
102382         a bug in AIX iconv().
102384 2007-03-29  Bruno Haible  <bruno@clisp.org>
102386         * modules/ldexpl-tests: New file.
102387         * tests/test-ldexpl.c: New file.
102389 2007-03-29  Bruno Haible  <bruno@clisp.org>
102391         * lib/ldexpl.c: Include fpucw.h.
102392         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
102393         multiplication.
102394         * modules/ldexpl (Depends-on): Add fpucw.
102396 2007-03-29  Bruno Haible  <bruno@clisp.org>
102398         * modules/ldexpl: New file.
102399         * m4/ldexpl.m4: New file.
102400         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
102401         set.
102402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
102403         REPLACE_LDEXPL.
102404         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
102405         REPLACE_LDEXPL.
102406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
102407         gl_FUNC_LDEXPL_WORKS.
102408         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
102409         * modules/mathl (Files): Remove lib/ldexpl.c.
102410         (Depends-on): Add ldexpl.
102412 2007-03-29  Bruno Haible  <bruno@clisp.org>
102414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
102416 2007-03-29  Bruno Haible  <bruno@clisp.org>
102418         * tests/test-striconveh.c (main): Don't assume that a direct conversion
102419         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
102420         and possibly also HP-UX.
102421         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102422         work on AIX, IRIX, HP-UX, OSF/1.
102423         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
102424         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
102425         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
102426         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
102427         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
102428         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
102430 2007-03-29  Bruno Haible  <bruno@clisp.org>
102432         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
102434 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102436         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
102437         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
102439 2007-03-29  Eric Blake  <ebb9@byu.net>
102441         * lib/acl-internal.h: Remove redundant include.
102442         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
102443         Cygwin when a file is locked.
102445 2007-03-29  Bruno Haible  <bruno@clisp.org>
102447         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
102448         file.
102449         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
102451 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102453         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
102454         try to remove a parent directory if the child couldn't be removed
102455         (except for the first rmdir, which could fail because the child
102456         doesn't exist).  Problem reported by Jeff Blaine in
102457         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
102459 2007-03-28  Bruno Haible  <bruno@clisp.org>
102461         * lib/striconveh.c (utf8conv_carefully): New function.
102462         (mem_cd_iconveh_internal): Invoke it.
102464 2007-03-28  Bruno Haible  <bruno@clisp.org>
102466         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
102467         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
102468         input.
102469         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
102470         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
102471         unistr/u8-uctomb.
102473 2007-03-28  Bruno Haible  <bruno@clisp.org>
102475         * modules/unistr/u8-mbtoucr: New file.
102476         * lib/unistr/u8-mbtoucr.c: New file.
102477         * modules/unistr/u16-mbtoucr: New file.
102478         * lib/unistr/u16-mbtoucr.c: New file.
102479         * modules/unistr/u16-mbtoucr: New file.
102480         * lib/unistr/u16-mbtoucr.c: New file.
102481         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
102483 2007-03-27  Simon Josefsson  <simon@josefsson.org>
102484             Bruno Haible  <bruno@clisp.org>
102486         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
102487         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
102488         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
102490         * m4/stdio_h.m4: Add stubs for vasprintf too.
102492         * modules/stdio: Support vasprintf in sed command.
102494         * modules/vasprintf: Depend on stdio for prototypes.  Remove
102495         vasprintf.h.  Add stdio module indicator.
102497         * lib/stdio_.h: Declare asprintf and vasprintf, based on
102498         vasprintf.h.
102500         * lib/vasprintf.h: File removed.
102502         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
102503         * lib/vasprintf.c: Ditto.
102504         * lib/xvasprintf.c: Ditto.
102505         * tests/test-vasprintf-posix.c: Ditto.
102506         * tests/test-vasprintf.c: Ditto.
102508 2007-03-27  Bruno Haible  <bruno@clisp.org>
102510         Make vasnprintf multithread-safe.
102511         * lib/vasnprintf.c (decimal_point_char): New function.
102512         (VASNPRINTF): Use it.
102513         Suggested by Simon Josefsson.
102515 2007-03-27  Eric Blake  <ebb9@byu.net>
102517         Support sub-second birthtime on cygwin.
102518         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
102519         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
102520         (get_stat_birthtime): Also work with st_birthtim.
102522 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
102524         * lib/stat-time.h (USE_BIRTHTIME): Remove.
102525         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
102526         (get_stat_birthtime_ns): Do not try to use "spare" fields.
102527         (get_stat_birthtime_ns): Simplify compile-time tests.
102528         (get_stat_birthtime): Change the API to look like
102529         get_stat_mtime etc., except return a negative tv_nsec on error.
102530         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
102531         Don't check for "spare" fields.
102532         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
102533         or for struct stat.st_birthtime, as these tests aren't used.
102534         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
102536 2007-03-27  Bruno Haible  <bruno@clisp.org>
102538         * lib/stat-time.h: Include <sys/stat.h>.
102540 2007-03-27  James Youngman  <jay@gnu.org>
102542         * lib/stat-time.h (get_stat_birthtime): New function for
102543           retrieving st_birthtime as provided by UFS2 (hence *BSD).
102544         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
102545           and its variants.
102546         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
102547         * modules/stat-time-test: New file.
102548         * tests/test-stat-time.c: New test, devised by Bruno Haible.
102550 2007-03-26  Bruno Haible  <bruno@clisp.org>
102552         Better support of signalling NaNs.
102553         * lib/atanl.c: Include isnanl.h.
102554         (atanl): Perform test for NaN at the beginning of the function and
102555         through a call to isnanl.
102556         * lib/cosl.c: Include isnanl.h.
102557         (cosl): Perform test for NaN at the beginning of the function and
102558         through a call to isnanl.
102559         * lib/ldexpl.c: Include isnanl.h.
102560         (ldexpl): Perform test for NaN through a call to isnanl.
102561         * lib/logl.c: Include isnanl.h.
102562         (logl): Perform test for NaN at the beginning of the function and
102563         through a call to isnanl.
102564         * lib/sinl.c: Include isnanl.h.
102565         (sinl): Perform test for NaN at the beginning of the function and
102566         through a call to isnanl.
102567         * lib/sqrtl.c: Include isnanl.h.
102568         (sqrtl): Perform test for NaN at the beginning of the function and
102569         through a call to isnanl.
102570         * lib/tanl.c: Include isnanl.h.
102571         (tanl): Perform test for NaN at the beginning of the function and
102572         through a call to isnanl.
102573         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
102574         * modules/mathl (Depends-on): Add isnanl.
102576 2007-03-26  Eric Blake  <ebb9@byu.net>
102578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
102579         regression in logic sense of previous patch.
102581 2007-03-26  Bruno Haible  <bruno@clisp.org>
102583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
102584         unportable shell command "if ! ...".
102585         Reported by Ralf Wildenhues.
102587 2007-03-25  Bruno Haible  <bruno@clisp.org>
102589         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
102590         <sysexits.h> file, and only add EX_CONFIG.
102591         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
102592         absolute file name and whether it is sufficient. Substitute also
102593         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
102594         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
102595         ABSOLUTE_SYSEXITS_H into sysexits.h.
102597 2007-03-25  Bruno Haible  <bruno@clisp.org>
102599         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
102600         hints is NULL.
102602 2007-03-25  Bruno Haible  <bruno@clisp.org>
102604         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
102605         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
102607 2007-03-25  Bruno Haible  <bruno@clisp.org>
102609         * lib/vasnprintf.c: Include langinfo.h.
102610         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
102611         multithread-safe.
102612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
102613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
102614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
102620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102621         Reported by Simon Josefsson.
102623 2007-03-25  Bruno Haible  <bruno@clisp.org>
102625         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
102626         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
102627         * modules/vasnprintf (Depends-on): Add stdint.
102629 2007-03-25  Bruno Haible  <bruno@clisp.org>
102631         * modules/fpieee: New file.
102632         * m4/fpieee.m4: New file.
102633         * modules/isnan-nolibm (Depends-on): Add fpieee.
102634         * modules/isnanl-nolibm (Depends-on): Add fpieee.
102635         * modules/isnanl (Depends-on): Add fpieee.
102637 2007-03-25  Bruno Haible  <bruno@clisp.org>
102639         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
102641 2007-03-25  Bruno Haible  <bruno@clisp.org>
102643         Avoid test failures on IRIX 6.5.
102644         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
102645         (main): Use it.
102646         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
102647         macros.
102648         (main): Use them.
102650 2007-03-25  Bruno Haible  <bruno@clisp.org>
102652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
102653         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
102654         exists but doesn't work.
102655         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
102656         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
102657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
102658         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
102659         math.h.
102661 2007-03-25  Bruno Haible  <bruno@clisp.org>
102663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
102664         returns inf. Needed on IRIX 6.5.
102666 2007-03-25  Bruno Haible  <bruno@clisp.org>
102668         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102669         (main): Use isnanl instead of x != x idiom.
102670         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102672         * tests/test-frexp.c: Include isnan.h.
102673         (main): Use isnan instead of x != x idiom.
102674         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102676 2007-03-25  Bruno Haible  <bruno@clisp.org>
102678         * tests/test-frexp.c (NaN): New function/macro.
102679         (main): Use it instead of 0.0 / 0.0.
102680         * tests/test-isnan.c (NaN): New function/macro.
102681         (main): Use it instead of 0.0 / 0.0.
102682         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102683         (test_function): Use it instead of 0.0 / 0.0.
102684         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102685         (test_function): Use it instead of 0.0 / 0.0.
102686         * tests/test-snprintf-posix.h (NaN): New function/macro.
102687         (test_function): Use it instead of 0.0 / 0.0.
102688         * tests/test-sprintf-posix.h (NaN): New function/macro.
102689         (test_function): Use it instead of 0.0 / 0.0.
102690         * tests/test-fprintf-posix.h (NaN): New function/macro.
102691         (test_function): Use it instead of 0.0 / 0.0.
102692         * tests/test-printf-posix.h (NaN): New function/macro.
102693         (test_function): Use it instead of 0.0 / 0.0.
102695         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102697 2007-03-25  Bruno Haible  <bruno@clisp.org>
102699         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102701 2007-03-25  Bruno Haible  <bruno@clisp.org>
102703         * lib/regexec.c (merge_state_with_log): Make static.
102705 2007-03-25  Bruno Haible  <bruno@clisp.org>
102707         * lib/trigl.c (kernel_rem_pio2): Make static.
102709 2007-03-25  Bruno Haible  <bruno@clisp.org>
102711         * lib/sincosl.c (sincosl_table): Make static.
102713 2007-03-25  Bruno Haible  <bruno@clisp.org>
102715         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
102716         if the compiler does not support C99.
102718 2007-03-25  Bruno Haible  <bruno@clisp.org>
102720         * modules/time (Makefile.am): Ensure all rule action lines start with a
102721         tab.
102723 2007-03-24  Bruno Haible  <bruno@clisp.org>
102725         * modules/tsearch-tests: New file.
102726         * tests/test-tsearch.sh: New file.
102727         * tests/test-tsearch.c: New file, mostly copied from glibc.
102729         * modules/search-tests: New file.
102730         * tests/test-search.c: New file.
102732         * modules/search: New file.
102733         * lib/search_.h: New file, incorporating lib/tsearch.h.
102734         * m4/search_h.m4: New file.
102735         * lib/tsearch.h: Remove file.
102736         * lib/tsearch.c: Include search.h instead of tsearch.h.
102737         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
102738         HAVE_TSEARCH.
102739         * modules/tsearch (Files): Remove lib/tsearch.h.
102740         (Depends-on): Add search.
102741         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
102742         (Include): Change tsearch.h into search.h.
102744 2007-03-24  Bruno Haible  <bruno@clisp.org>
102746         * modules/fpucw: New file.
102747         * lib/fpucw.h: New file.
102748         * lib/frexp.c: Include fpucw.h.
102749         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102750         (FUNC): Use them.
102751         * lib/printf-frexp.c: Include fpucw.h.
102752         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102753         (FUNC): Use them.
102754         * lib/vasnprintf.c: Include fpucw.h.
102755         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
102756         'long double' calculations.
102757         * tests/test-frexpl.c: Include fpucw.h.
102758         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102759         * tests/test-printf-frexpl.c: Include fpucw.h.
102760         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102761         * modules/frexpl (Depends-on): Add fpucw.
102762         * modules/printf-frexpl (Depends-on): Likewise.
102763         * modules/fprintf-posix (Depends-on): Likewise.
102764         * modules/snprintf-posix (Depends-on): Likewise.
102765         * modules/sprintf-posix (Depends-on): Likewise.
102766         * modules/vasnprintf-posix (Depends-on): Likewise.
102767         * modules/vasprintf-posix (Depends-on): Likewise.
102768         * modules/vfprintf-posix (Depends-on): Likewise.
102769         * modules/vsnprintf-posix (Depends-on): Likewise.
102770         * modules/vsprintf-posix (Depends-on): Likewise.
102771         * modules/frexpl-tests (Depends-on): Likewise.
102772         * modules/printf-frexpl-tests (Depends-on): Likewise.
102774 2007-03-24  Bruno Haible  <bruno@clisp.org>
102776         * lib/float+.h: New file.
102777         * lib/isnan.c: Include float+.h.
102778         (SIZE): New macro.
102779         (FUNC): Compare only SIZE bytes of the value.
102780         * lib/vasnprintf.c: Include float+.h.
102781         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
102782         SIZEOF_LDBL or SIZEOF_DBL bytes.
102783         * modules/isnan-nolibm (Files): Add lib/float+.h.
102784         * modules/isnanl-nolibm (Files): Add lib/float+.h.
102785         * modules/isnanl (Files): Add lib/float+.h.
102786         * modules/vasnprintf (Files): Add lib/float+.h.
102788 2007-03-24  Bruno Haible  <bruno@clisp.org>
102790         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
102791         include isnanl-nolibm.h.
102793 2007-03-24  Bruno Haible  <bruno@clisp.org>
102795         * tests/test-read-file.c (main): Don't produce spurious output for
102796         expected situations. Make the test fail if it encountered unexpected
102797         results.
102799 2007-03-24  Bruno Haible  <bruno@clisp.org>
102801         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
102802         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
102804 2007-03-24  Bruno Haible  <bruno@clisp.org>
102806         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102808 2007-03-24  Bruno Haible  <bruno@clisp.org>
102810         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102811         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102813         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102814         * modules/utf8-ucs4: Turn into a symbolic link to module
102815         unistr/u8-mbtouc.
102817         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102818         utf8-ucs4-unsafe.
102819         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102820         unistr/u8-mbtouc-unsafe.
102822         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102823         * modules/utf16-ucs4: Turn into a symbolic link to module
102824         unistr/u16-mbtouc.
102826         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102827         utf16-ucs4-unsafe.
102828         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102829         unistr/u16-mbtouc-unsafe.
102831         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102832         * modules/ucs4-utf8: Turn into a symbolic link to module
102833         unistr/u8-ubtomb.
102835         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102836         * modules/ucs4-utf16: Turn into a symbolic link to module
102837         unistr/u16-ubtomb.
102839 2007-03-24  Bruno Haible  <bruno@clisp.org>
102841         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102842         Enable the function only if HAVE_INLINE.
102843         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102844         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102845         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102846         Enable the function only if HAVE_INLINE.
102847         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102848         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102849         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102850         Enable the function only if HAVE_INLINE.
102851         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102852         Enable the function only if HAVE_INLINE.
102853         * modules/utf8-ucs4: Update.
102854         * modules/utf8-ucs4-unsafe: Update.
102855         * modules/utf16-ucs4: Update.
102856         * modules/utf16-ucs4-unsafe: Update.
102857         * modules/ucs4-utf8: Update.
102858         * modules/ucs4-utf16: Update.
102860 2007-03-24  Bruno Haible  <bruno@clisp.org>
102862         * lib/utf8-ucs4.h: Remove file.
102863         * lib/utf8-ucs4-unsafe.h: Remove file.
102864         * lib/utf16-ucs4.h: Remove file.
102865         * lib/utf16-ucs4-unsafe.h: Remove file.
102866         * lib/ucs4-utf8.h: Remove file.
102867         * lib/ucs4-utf16.h: Remove file.
102868         * lib/unistr.h: Include their previous contents.
102869         * m4/utf-ucs4.m4: Remove file.
102870         * m4/ucs4-utf.m4: Remove file.
102871         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102872         (Depends-on): Add unistr/base.
102873         (configure.ac): Remove gl_UTF_UCS4.
102874         (Makefile.am): Update.
102875         (Include): Change to unistr.h.
102876         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102877         (Depends-on): Add unistr/base.
102878         (configure.ac): Remove gl_UTF_UCS4.
102879         (Makefile.am): Update.
102880         (Include): Change to unistr.h.
102881         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102882         (Depends-on): Add unistr/base.
102883         (configure.ac): Remove gl_UTF_UCS4.
102884         (Makefile.am): Update.
102885         (Include): Change to unistr.h.
102886         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102887         (Depends-on): Add unistr/base.
102888         (configure.ac): Remove gl_UTF_UCS4.
102889         (Makefile.am): Update.
102890         (Include): Change to unistr.h.
102891         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102892         (Depends-on): Add unistr/base.
102893         (configure.ac): Remove gl_UCS4_UTF.
102894         (Makefile.am): Update.
102895         (Include): Change to unistr.h.
102896         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102897         (Depends-on): Add unistr/base.
102898         (configure.ac): Remove gl_UCS4_UTF.
102899         (Makefile.am): Update.
102900         (Include): Change to unistr.h.
102901         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102902         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102903         utf8-ucs4-unsafe.h.
102904         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102905         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102906         utf16-ucs4-unsafe.h.
102907         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102908         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102909         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102910         * lib/unistr/u8-strchr.c: Likewise.
102911         * lib/unistr/u8-strrchr.c: Likewise.
102912         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102913         * lib/unistr/u16-strchr.c: Likewise.
102914         * lib/unistr/u16-strrchr.c: Likewise.
102915         * lib/striconveh.c: Update.
102916         * lib/linebreak.c: Update.
102918 2007-03-24  Bruno Haible  <bruno@clisp.org>
102920         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102921         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102923 2007-03-22  Bruno Haible  <bruno@clisp.org>
102925         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102927 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102929         * MODULES.html.sh (File system functions): New module write-any-file.
102930         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102931         * m4/write-any-file.m4: New files.
102933 2007-03-23  Eric Blake  <ebb9@byu.net>
102935         * gnulib-tool: Rearrange space-tab sequences, since some editors
102936         like to eat them.
102938 2007-03-23  Eric Blake  <ebb9@byu.net>
102940         * lib/version-etc.c (version_etc_va): Update license wording to
102941         be more concise.  Recommended by Richard Stallman.
102943 2007-03-22  Bruno Haible  <bruno@clisp.org>
102945         * lib/poll.c (MSG_PEEK): New fallback definition.
102947 2007-03-22  Bruno Haible  <bruno@clisp.org>
102949         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102950         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102951         (main): Update.
102952         Fixes a compilation error on BeOS.
102954 2007-03-22  Bruno Haible  <bruno@clisp.org>
102956         * modules/frexpl-tests: New file.
102957         * tests/test-frexpl.c: New file.
102959         * modules/frexpl: New file.
102960         * m4/frexpl.m4: New file.
102961         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102962         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102964         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102965         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102966         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102968 2007-03-22  Bruno Haible  <bruno@clisp.org>
102970         * lib/frexpl.c: Share code with lib/frexp.c.
102971         * modules/mathl (Files): Add lib/frexp.c.
102972         (Depends-on): Add isnanl-nolibm.
102974 2007-03-22  Bruno Haible  <bruno@clisp.org>
102976         * modules/printf-frexp (Files): Add m4/frexp.m4.
102977         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102978         only if the found frexp function actually works.
102980 2007-03-22  Bruno Haible  <bruno@clisp.org>
102982         * lib/frexp.c: Remove older implementation that uses divisions.
102984 2007-03-21  Bruno Haible  <bruno@clisp.org>
102986         * modules/frexp-tests: New file.
102987         * tests/test-frexp.c: New file.
102989         * modules/frexp: New file.
102990         * lib/frexp.c: New file.
102991         * m4/frexp.m4: New file.
102992         * lib/math_.h (frexp): New declaration.
102993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102994         REPLACE_FREXP.
102995         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102997 2007-03-21  Bruno Haible  <bruno@clisp.org>
102999         * modules/isnanl-tests: New file.
103000         * tests/test-isnanl.c: New file.
103002         * modules/isnanl: New file.
103003         * lib/isnanl.h: New file.
103004         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
103005         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
103006         gl_FUNC_ISNANL_WORKS.
103007         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
103008         New macros.
103010 2007-03-21  Bruno Haible  <bruno@clisp.org>
103012         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
103013         lib/isnanl.h.
103014         (Include): Update.
103015         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
103016         * lib/vasnprintf.c: Update.
103017         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
103018         tests/test-isnanl.h, remove tests/test-isnanl.c.
103019         (Makefile.am): Update.
103020         * tests/test-isnanl-nolibm.c: New file.
103021         * tests/test-isnanl.h: New file.
103022         * tests/test-isnanl.c: Remove file.
103024 2007-03-21  Jim Meyering  <jim@meyering.net>
103026         When trying to open ".", treat ESTALE like EACCES.
103027         * lib/savewd.c (savewd_save): Resort to forking not just upon
103028         failure with EACCES, but also when errno is ESTALE.
103030 2007-03-20  Bruno Haible  <bruno@clisp.org>
103032         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
103033         Needed on AIX 5.1. Reported by Matthew Woehlke.
103035 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103037         Suggestions by Bruno Haible:
103038         * lib/acl-internal.h: Include "gettext.h" rather than rolling
103039         our own.
103040         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
103041         * modules/acl (Depends-on): Add gettext.
103043 2007-03-19  Bruno Haible  <bruno@clisp.org>
103045         * modules/iconvme: Remove file.
103046         * lib/iconvme.h: Remove file.
103047         * lib/iconvme.c: Remove file.
103048         * m4/iconvme.m4: Remove file.
103050 2007-03-19  Bruno Haible  <bruno@clisp.org>
103052         * doc/relocatable-maint.texi: Break long shell script line.
103053         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103055 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103057         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
103058         handle file_has_acl.
103059         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
103060         * lib/acl.c: Move header inclusions and related macro defns into
103061         lib/acl-internal.h.
103062         (S_ISLNK): Remove defn, since that's now done for us.
103063         (file_has_acl): Move to lib/file-has-acl.c.
103064         Call acl_trivial if available.  This is the crucial part of the fix.
103065         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
103066         shared within the library.  Rewrite a bit, partly to make it compatible
103067         with the GNU coding style.
103068         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
103069         Remove unnecessary double-quotes.
103070         Don't test for acl_to_text; the build will catch that.
103071         Replace acl_entries if it doesn't exist and it is needed.
103072         Check for -lsec and acl_trivial (as used on Solaris 10).
103073         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
103074         lib/file-has-acl.c.
103075         (Depends-on): Add sys_stat, for S_ISLNK.
103077 2007-03-19  Ben Pfaff  <blp@gnu.org>
103079         * doc/gnulib.texi: Fix typos.
103080         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103082 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103084         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
103085         If size is zero here, buf must be zero.
103087 2007-03-19  Simon Josefsson  <simon@josefsson.org>
103089         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
103090         <bruno@clisp.org>.
103092 2007-03-18  Bruno Haible  <bruno@clisp.org>
103094         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
103095         Suggested by Eric Blake.
103097 2007-03-18  Ben Pfaff  <blp@gnu.org>
103099         * doc/relocatable.texi: Recommend using as prefix a directory
103100         that does not exist and will never be created.  Based on
103101         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
103102         and others.
103104 2007-03-17  Bruno Haible  <bruno@clisp.org>
103106         * lib/fchownat.c: Include lchown.h.
103108 2007-03-17  Bruno Haible  <bruno@clisp.org>
103110         Fix endless loop when the given allocated size was > INT_MAX.
103111         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
103112         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
103113         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
103114         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
103115         * lib/sprintf.c (sprintf): Likewise.
103117 2007-03-17  Bruno Haible  <bruno@clisp.org>
103119         * tests/test-argp-2.sh (func_compare): Output a context diff.
103121 2007-03-17  Bruno Haible  <bruno@clisp.org>
103123         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
103124         locale's decimal-point character.
103126 2007-03-17  Bruno Haible  <bruno@clisp.org>
103128         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
103129         before comparing it. Needed because on some platforms (e.g. x86) a
103130         'long double' occupies less bytes than sizeof (long double).
103132 2007-03-17  Bruno Haible  <bruno@clisp.org>
103134         * tests/test-crc.c (main): Make printf statements 64-bit clean.
103135         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
103136         * tests/test-getaddrinfo.c (simple): Likewise.
103137         * tests/test-read-file.c (main): Likewise.
103139 2007-03-17  Bruno Haible  <bruno@clisp.org>
103141         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
103143 2007-03-17  Bruno Haible  <bruno@clisp.org>
103145         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
103146         unused variable.
103148 2007-03-17  Bruno Haible  <bruno@clisp.org>
103150         * tests/test-c-strcasecmp.c: Include c-strcase.h.
103151         * tests/test-c-strncasecmp.c: Likewise.
103153 2007-03-17  Bruno Haible  <bruno@clisp.org>
103155         * modules/stdlib (Depends-on): Add unistd.
103156         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
103157         Needed for MacOS X 10.3.
103159 2007-03-17  Bruno Haible  <bruno@clisp.org>
103161         * lib/unistr/u-strdup.h: Include <stdlib.h>.
103163 2007-03-17  Bruno Haible  <bruno@clisp.org>
103165         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
103167 2007-03-17  Bruno Haible  <bruno@clisp.org>
103169         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
103170         to reflect files copied from gnulib (with or without modifications).
103171         Suggested by Jim Meyering.
103173 2007-03-17  Eric Blake  <ebb9@byu.net>
103175         * NEWS: Document stdlib change from 2007-02-18.
103177 2007-03-17  Jim Meyering  <jim@meyering.net>
103179         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
103180         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
103181         someone uses a name containing shell meta-characters.
103182         Reported by Alfred M. Szmidt.
103184         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
103186 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103188         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
103189         and copy gettext configuration files only if configure.ac contains
103190         a use of AM_GNU_GETTEXT_VERSION.
103192 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103194         * build-aux/bootstrap (gnulib_name): New variable.
103195         (gnulib_tool_options): Use it.
103197 2007-03-13  Simon Josefsson  <simon@josefsson.org>
103199         * tests/test-des.c: Use new namespace.
103201 2007-03-15  Bruno Haible  <bruno@clisp.org>
103203         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
103204         Reported by James Youngman <jay@gnu.org>.
103206 2007-03-15  Bruno Haible  <bruno@clisp.org>
103208         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
103209         declared prototype. Needed with cc on OSF/1 5.1.
103211 2007-03-15  Bruno Haible  <bruno@clisp.org>
103213         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
103214         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
103215         (struct gl_list_implementation): Add dispose_fn argument to the
103216         'create_empty', 'create' methods.
103217         (struct gl_list_impl_base): Add field 'dispose_fn'.
103218         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
103219         argument.
103220         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
103221         dispose_fn argument.
103222         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
103223         dispose_fn on the dropped values.
103224         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
103225         dispose_fn argument.
103226         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
103227         dropped values.
103228         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
103229         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103230         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
103231         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103232         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
103233         argument.
103234         (gl_tree_list_free): Call dispose_fn on the dropped values.
103235         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
103236         the dropped values.
103237         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103238         Add dispose_fn argument.
103239         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
103240         Call dispose_fn on the dropped values.
103241         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
103242         Add dispose_fn argument.
103243         (gl_sublist_create): Initialize the 'dispose_fn' field.
103244         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
103245         * tests/test-array_list.c (main): Update.
103246         * tests/test-carray_list.c (main): Update.
103247         * tests/test-avltree_list.c (main): Update.
103248         * tests/test-rbtree_list.c (main): Update.
103249         * tests/test-avltreehash_list.c (main): Update.
103250         * tests/test-rbtreehash_list.c (main): Update.
103251         * tests/test-linked_list.c (main): Update.
103252         * tests/test-linkedhash_list.c (main): Update.
103253         * tests/test-array_oset.c (main): Update.
103255 2007-03-15  Bruno Haible  <bruno@clisp.org>
103257         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
103258         (gl_oset_create_empty): Add dispose_fn argument.
103259         (struct gl_oset_implementation): Add dispose_fn argument to
103260         'create_empty' method.
103261         (struct gl_oset_impl_base): Add dispose_fn field.
103262         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
103263         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
103264         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
103265         values.
103266         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
103267         (gl_tree_oset_free): Call dispose_fn on the dropped values.
103268         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103269         dropped value.
103270         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103271         dropped value.
103272         * tests/test-array_oset.c (main): Update.
103273         * tests/test-avltree_oset.c (main): Update.
103274         * tests/test-rbtree_oset.c (main): Update.
103275         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
103277 2007-03-13  Bruno Haible  <bruno@clisp.org>
103279         * tests/test-stdbool.c (i): Update after last patch.
103281 2007-03-12  Bruno Haible  <bruno@clisp.org>
103283         * lib/quotearg.c: Include <wctype.h> early, before the definition of
103284         the iswprint macro. Needed on Solaris 2.5.1.
103286 2007-03-12  Bruno Haible  <bruno@clisp.org>
103288         * tests/test-printf-frexp.c (main): Declare x as volatile.
103290 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103292         * doc/gnulib.texi (Build robot for gnulib): New section.
103294 2007-03-12  Jim Meyering  <jim@meyering.net>
103296         * build-aux/bootstrap: New file.
103297         * build-aux/bootstrap.conf: New file, from coreutils.
103299 2007-03-11  Bruno Haible  <bruno@clisp.org>
103301         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
103303 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103305         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
103306         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
103307         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
103309 2007-03-11  Bruno Haible  <bruno@clisp.org>
103311         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
103312         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
103314 2007-03-11  Bruno Haible  <bruno@clisp.org>
103316         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
103317         formula. Needed for SunPRO C 5.0.
103319 2007-03-11  Bruno Haible  <bruno@clisp.org>
103321         * modules/long-options (Depends-on): Add getopt.
103323 2007-03-11  Bruno Haible  <bruno@clisp.org>
103325         * modules/modechange (Depends-on): Add stdbool.
103327 2007-03-11  Bruno Haible  <bruno@clisp.org>
103329         * modules/i-ring (Depends-on): Add stdbool.
103331 2007-03-11  Bruno Haible  <bruno@clisp.org>
103333         * modules/gc-des (Depends-on): Add stdbool.
103335 2007-03-11  Bruno Haible  <bruno@clisp.org>
103337         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
103339 2007-03-11  Bruno Haible  <bruno@clisp.org>
103341         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
103343 2007-03-11  Bruno Haible  <bruno@clisp.org>
103345         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
103347 2007-03-11  Bruno Haible  <bruno@clisp.org>
103349         * lib/vasnprintf.c (sprintf): Undefine.
103351 2007-03-11  Bruno Haible  <bruno@clisp.org>
103353         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
103354         initializers in SunPRO C and Compaq C compilers.
103356 2007-03-11  Bruno Haible  <bruno@clisp.org>
103358         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
103359         decrementing code ANSI C compliant.
103361 2007-03-11  Bruno Haible  <bruno@clisp.org>
103363         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
103364         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
103366 2007-03-11  Bruno Haible  <bruno@clisp.org>
103368         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
103369         <stdbool.h> substitute doesn't pass.
103371 2007-03-11  Bruno Haible  <bruno@clisp.org>
103373         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
103375 2007-03-11  Bruno Haible  <bruno@clisp.org>
103377         * gnulib-tool (func_create_megatestdir): Create also an autobuild
103378         script, for submission to autobuild.josefsson.org.
103380 2007-03-10  Bruno Haible  <bruno@clisp.org>
103382         * modules/canonicalize-lgpl-tests: New file.
103383         * tests/test-canonicalize-lgpl.sh: New file.
103384         * tests/test-canonicalize-lgpl.c: New file.
103386         * modules/c-strcase-tests: New file.
103387         * tests/test-c-strcase.sh: New file.
103388         * tests/test-c-strcasecmp.c: New file.
103389         * tests/test-c-strncasecmp.c: New file.
103391         * modules/atexit-tests: New file.
103392         * tests/test-atexit.sh: New file.
103393         * tests/test-atexit.c: New file.
103395 2007-03-10  Bruno Haible  <bruno@clisp.org>
103397         * tests/test-binary-io.sh: Use temporary filenames that are not so
103398         likely to clash with those of other tests (in a parallel make).
103399         * tests/test-binary-io.c: Likewise.
103401 2007-03-10  Bruno Haible  <bruno@clisp.org>
103403         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
103404         fallback; use #error instead.
103405         Suggested by Simon Josefsson.
103407 2007-03-10  Bruno Haible  <bruno@clisp.org>
103409         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
103410         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
103411         first and the last.
103413 2007-03-10  Bruno Haible  <bruno@clisp.org>
103415         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
103417 2007-03-10  Bruno Haible  <bruno@clisp.org>
103419         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
103420         "make distcheck".
103421         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
103422         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
103423         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
103425 2007-03-10  Bruno Haible  <bruno@clisp.org>
103427         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
103428         variable.
103429         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
103430         variable.
103432 2007-03-09  Eric Blake  <ebb9@byu.net>
103433         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
103435         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
103436         types are not being provided by gnulib.
103437         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
103438         types are supported.
103440 2007-03-10  Bruno Haible  <bruno@clisp.org>
103442         * lib/stdio_.h (__attribute__): New macro.
103443         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
103444         vsprintf): Specify __attribute__ __format__ for GCC.
103445         Suggested by Eric Blake.
103447 2007-03-09  Bruno Haible  <bruno@clisp.org>
103449         * modules/printf-posix-tests: New file.
103450         * tests/test-printf-posix.sh: New file.
103451         * tests/test-printf-posix.c: New file.
103453         * modules/printf-posix: New file.
103454         * lib/printf.c: New file.
103455         * m4/printf-posix-rpl.m4: New file.
103456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
103457         REPLACE_PRINTF.
103458         * lib/stdio_.h (printf): New declaration.
103459         (format, __format__, ____printf____, ____scanf____, ____strftime____,
103460         ____strfmon____): New macros.
103461         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
103462         REPLACE_PRINTF.
103464 2007-03-09  Bruno Haible  <bruno@clisp.org>
103466         * tests/test-vasnprintf-posix2.sh: New file.
103467         * tests/test-vasnprintf-posix2.c: New file.
103468         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
103469         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
103470         (Makefile.am): Activate test-vasnprintf-posix2.sh.
103472         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
103473         a locale dependent decimal point, rather than always '.'.
103475 2007-03-09  Eric Blake  <ebb9@byu.net>
103477         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
103478         spite of platforms like Tandem/NSK that define it to -1.
103480 2007-03-08  Bruno Haible  <bruno@clisp.org>
103482         * modules/vprintf-posix-tests: New file.
103483         * tests/test-vprintf-posix.sh: New file.
103484         * tests/test-vprintf-posix.c: New file.
103485         * tests/test-printf-posix.h: New file.
103487         * modules/vprintf-posix: New file.
103488         * lib/vprintf.c: New file.
103489         * m4/vprintf-posix.m4: New file.
103490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
103491         REPLACE_VPRINTF.
103492         * lib/stdio_.h (vprintf): New declaration.
103493         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
103494         REPLACE_VPRINTF.
103496 2007-03-08  Bruno Haible  <bruno@clisp.org>
103498         * modules/fprintf-posix-tests: New file.
103499         * tests/test-fprintf-posix.sh: New file.
103500         * tests/test-fprintf-posix.c: New file.
103502         * modules/fprintf-posix: New file.
103503         * lib/fprintf.c: New file.
103504         * m4/fprintf-posix.m4: New file.
103505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
103506         REPLACE_FPRINTF.
103507         * lib/stdio_.h (fprintf): New declaration.
103508         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
103509         REPLACE_FPRINTF.
103511 2007-03-08  Bruno Haible  <bruno@clisp.org>
103513         * modules/vfprintf-posix-tests: New file.
103514         * tests/test-vfprintf-posix.sh: New file.
103515         * tests/test-vfprintf-posix.c: New file.
103516         * tests/test-fprintf-posix.h: New file.
103517         * tests/test-fprintf-posix.out: New file.
103519         * modules/vfprintf-posix: New file.
103520         * lib/vfprintf.c: New file.
103521         * m4/vfprintf-posix.m4: New file.
103522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
103523         REPLACE_VFPRINTF.
103524         * lib/stdio_.h (vfprintf): New declaration.
103525         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
103526         REPLACE_VFPRINTF.
103528 2007-03-08  Bruno Haible  <bruno@clisp.org>
103530         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
103532 2007-03-08  Bruno Haible  <bruno@clisp.org>
103534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
103535         instead of 'expr' invocations.
103536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103541         Suggested by Paul Eggert.
103543 2007-03-08  Bruno Haible  <bruno@clisp.org>
103545         * modules/fseterr-tests: New file.
103546         * tests/test-fseterr.c: New file.
103548         * modules/fseterr: New file.
103549         * lib/fseterr.h: New file.
103550         * lib/fseterr.c: New file.
103552 2007-03-08  Bruno Haible  <bruno@clisp.org>
103554         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
103555         * lib/getopt_.h: Likewise.
103556         * lib/mbswidth.h: Likewise.
103557         * lib/setenv.h: Likewise.
103558         * lib/vasnprintf.h: Likewise.
103559         * lib/vasprintf.h: Likewise.
103560         * lib/verror.h: Likewise.
103561         * lib/xsetenv.h: Likewise.
103562         * lib/xvasprintf.h: Likewise.
103564 2007-03-08  Jim Meyering  <jim@meyering.net>
103566         * users.txt: Add parted.
103568         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
103570 2007-03-07  Bruno Haible  <bruno@clisp.org>
103572         * m4/printf.m4: Make the shell script snippets copy&pastable.
103574 2007-03-02  Bruno Haible  <bruno@clisp.org>
103576         * lib/netinet_in_.h: New file.
103577         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
103578         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
103579         * modules/netinet_in (Files): Add lib/netinet_in_.h.
103580         (Depends-on): Add absolute-header.
103581         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
103582         into netinet/in.h.
103584 2007-03-03  Bruno Haible  <bruno@clisp.org>
103586         * lib/sys_select_.h: New file.
103587         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
103588         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
103589         * modules/sys_select (Files): Add lib/sys_select_.h.
103590         (Depends-on): Add absolute-header.
103591         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
103592         into sys/select.h.
103594 2007-03-02  Bruno Haible  <bruno@clisp.org>
103596         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
103597         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
103598         values.
103599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
103600         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
103601         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
103602         * modules/sys_socket (Depends-on): Add absolute-header.
103603         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
103604         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
103605         (Include): Remove requirement of inclusion of <sys/types.h>.
103607 2007-03-02  Bruno Haible  <bruno@clisp.org>
103609         * lib/byteswap_.h (bswap_32): Fix formula.
103611 2007-03-06  Bruno Haible  <bruno@clisp.org>
103613         * modules/sprintf-posix-tests: New file.
103614         * tests/test-sprintf-posix.c: New file.
103616         * modules/sprintf-posix: New file.
103617         * lib/sprintf.c: New file.
103618         * m4/sprintf-posix.m4: New file.
103619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
103620         REPLACE_SPRINTF.
103621         * lib/stdio_.h (sprintf): New declaration.
103622         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
103623         REPLACE_SPRINTF.
103625 2007-03-06  Bruno Haible  <bruno@clisp.org>
103627         * modules/vsprintf-posix-tests: New file.
103628         * tests/test-vsprintf-posix.c: New file.
103629         * tests/test-sprintf-posix.h: New file.
103631         * modules/vsprintf-posix: New file.
103632         * lib/vsprintf.c: New file.
103633         * m4/vsprintf-posix.m4: New file.
103634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
103635         REPLACE_VSPRINTF.
103636         * lib/stdio_.h (vsprintf): New declaration.
103637         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
103638         REPLACE_VSPRINTF.
103640 2007-03-06  Bruno Haible  <bruno@clisp.org>
103642         * modules/vsnprintf (Depend-on): Remove minmax.
103644 2007-03-06  Bruno Haible  <bruno@clisp.org>
103646         * modules/snprintf-posix-tests: New file.
103647         * tests/test-snprintf-posix.c: New file.
103649         * modules/snprintf-posix: New file.
103650         * m4/snprintf-posix.m4: New file.
103651         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
103652         gl_FUNC_SNPRINTF.
103653         (gl_FUNC_SNPRINTF): Invoke it.
103654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
103655         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
103656         is set.
103657         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
103659 2007-03-06  Bruno Haible  <bruno@clisp.org>
103661         * modules/vsnprintf-posix-tests: New file.
103662         * tests/test-vsnprintf-posix.c: New file.
103663         * tests/test-snprintf-posix.h: New file.
103665         * modules/vsnprintf-posix: New file.
103666         * m4/vsnprintf-posix.m4: New file.
103667         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103668         gl_FUNC_VSNPRINTF.
103669         (gl_FUNC_VSNPRINTF): Invoke it.
103670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103671         * lib/stdio_.h (vsnprintf): Define as a replacement if
103672         REPLACE_VSNPRINTF is set.
103673         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103675 2007-03-06  Bruno Haible  <bruno@clisp.org>
103677         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103680 2007-03-06  Bruno Haible  <bruno@clisp.org>
103682         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103683         (asinl): Declare also if HAVE_DECL_ASINL is set.
103684         (atanl): Declare also if HAVE_DECL_ATANL is set.
103685         (ceill): Declare also if HAVE_DECL_CEILL is set.
103686         (cosl): Declare also if HAVE_DECL_COSL is set.
103687         (expl): Declare also if HAVE_DECL_EXPL is set.
103688         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103689         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103690         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103691         (logl): Declare also if HAVE_DECL_LOGL is set.
103692         (sinl): Declare also if HAVE_DECL_SINL is set.
103693         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103694         (tanl): Declare also if HAVE_DECL_TANL is set.
103695         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103698         declaration of frexpl, ldexpl.
103699         * modules/printf-frexpl (Depends-on): Add math.
103700         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103702 2007-03-05  Bruno Haible  <bruno@clisp.org>
103704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103705         frexpl and ldexpl are declared.
103706         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
103708 2007-03-05  Bruno Haible  <bruno@clisp.org>
103710         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
103711         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
103713 2007-03-05  Bruno Haible  <bruno@clisp.org>
103715         * lib/stdio_.h: Include <stddef.h>.
103717 2007-03-05  Bruno Haible  <bruno@clisp.org>
103719         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
103721 2007-03-05  Bruno Haible  <bruno@clisp.org>
103723         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
103724         NetBSD 4, from Ralf Wildenhues.
103726 2007-03-04  Bruno Haible  <bruno@clisp.org>
103728         * lib/vasprintf.h: Update #if logic for the case when the functions
103729         exist but are overridden.
103731 2007-03-04  Bruno Haible  <bruno@clisp.org>
103733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
103734         implementations: glibc-2.4 and MacOS X 10.3.
103735         * tests/test-vasnprintf-posix.c (test_function): Test also the case
103736         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
103737         * tests/test-vasprintf-posix.c (test_function): Likewise.
103739 2007-03-04  Bruno Haible  <bruno@clisp.org>
103741         * modules/vasprintf-posix-tests: New file.
103742         * tests/test-vasprintf-posix.c: New file.
103744         * modules/vasprintf-posix: New file.
103745         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
103746         defined.
103747         * m4/vasprintf-posix.m4: New file.
103748         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
103749         gl_FUNC_VASPRINTF.
103750         (gl_FUNC_VASPRINTF): Invoke it.
103751         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
103752         here.
103753         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
103755 2007-03-04  Bruno Haible  <bruno@clisp.org>
103757         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
103758         REPLACE_GETTIMEOFDAY.
103759         * modules/sys_time (Makefile.am): Likewise.
103760         * m4/sys_time_h.m4: Likewise.
103761         * m4/gettimeofday.m4: Likewise.
103763 2007-03-04  Bruno Haible  <bruno@clisp.org>
103765         * modules/vasnprintf-posix-tests: New file.
103766         * tests/test-vasnprintf-posix.c: New file.
103768         * modules/vasnprintf-posix: New file.
103769         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
103770         printf-frexpl.h.
103771         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
103772         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
103773         REPLACE_VASNPRINTF is defined.
103774         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
103775         gl_FUNC_VASNPRINTF.
103776         (gl_FUNC_VASNPRINTF): Invoke it.
103777         * m4/vasnprintf-posix.m4: New file.
103778         * m4/printf.m4: New file.
103780 2007-03-04  Bruno Haible  <bruno@clisp.org>
103782         Compile progreloc.c only if --enable-relocatable is specified.
103783         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
103784         if --enable-relocatable was specified.
103785         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
103786         lib_SOURCES.
103788 2007-03-04  Jim Meyering  <jim@meyering.net>
103790         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
103791         Use it consistently, rather than enumerating errno constants.
103793 2007-03-04  Bruno Haible  <bruno@clisp.org>
103795         * modules/xvasprintf-tests: New file.
103796         * tests/test-xvasprintf.c: New file.
103798         * modules/vasprintf-tests: New file.
103799         * tests/test-vasprintf.c: New file.
103801         * modules/vasnprintf-tests: New file.
103802         * tests/test-vasnprintf.c: New file.
103804         * modules/vsnprintf-tests: New file.
103805         * tests/test-vsnprintf.c: New file.
103807         * modules/snprintf-tests: New file.
103808         * tests/test-snprintf.c: New file.
103810 2007-03-04  Bruno Haible  <bruno@clisp.org>
103812         Compile relocatable.c only if --enable-relocatable is specified.
103813         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103814         gl_RELOCATABLE_LIBRARY.
103815         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103816         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103817         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103818         gl_RELOCATABLE_LIBRARY.
103819         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103820         (Makefile.am): Remove lib_SOURCES.
103821         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103822         gl_RELOCATABLE_LIBRARY.
103823         (Makefile.am): Remove lib_SOURCES.
103824         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103825         always.
103826         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103827         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103829 2007-03-04  Bruno Haible  <bruno@clisp.org>
103831         * modules/argmatch-tests: New file.
103832         * tests/test-argmatch.c: New file.
103834         * tests/test-allocsa.c (main): Halve the number of loop runs.
103836         * modules/alloca-opt-tests: New file.
103837         * tests/test-alloca-opt.c: New file.
103839 2007-03-04  Jim Meyering  <jim@meyering.net>
103841         Work around difference between Linux ACLs and Solaris 10 ZFS.
103842         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103843         for EINVAL.
103845 2007-03-03  Bruno Haible  <bruno@clisp.org>
103847         * modules/relocatable-prog (Depends-on): Add back progreloc's
103848         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103850 2007-03-03  Bruno Haible  <bruno@clisp.org>
103852         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103853         * modules/relocatable-lib: New file.
103855 2007-03-03  Bruno Haible  <bruno@clisp.org>
103857         * modules/relocatable-prog: Renamed from modules/relocatable.
103858         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103860 2007-03-03  Bruno Haible  <bruno@clisp.org>
103862         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103863         m4/relocatable-lib.m4.
103864         (Depends-on): Remove 'relocatable'.
103865         (configure.ac): Add gl_RELOCATABLE_NOP.
103867 2007-03-03  Bruno Haible  <bruno@clisp.org>
103869         * modules/relocatable-prog-wrapper: New file.
103870         * modules/relocatable (Depends-on): Add it. Remove all other
103871         dependencies except progname.
103872         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103875         (gl_FUNC_STRERROR): Nop.
103876         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103878         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103879         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103881         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103882         (gl_FUNC_READLINK): Update.
103884         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103886 2007-03-03  Bruno Haible  <bruno@clisp.org>
103888         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103889         * modules/xreadlink (Depends-on): Add unistd.
103890         * modules/xreadlink-with-size (Depends-on): Likewise.
103892 2007-03-03  Bruno Haible  <bruno@clisp.org>
103894         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103895         extracted from gt_FUNC_SETENV.
103896         (gt_FUNC_SETENV): Remove macro.
103897         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103898         remove gt_FUNC_SETENV.
103900 2007-03-03  Bruno Haible  <bruno@clisp.org>
103902         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103903         ENABLE_RELOCATABLE here.
103904         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103906 2007-03-03  Bruno Haible  <bruno@clisp.org>
103908         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103909         * tests/test-rbtreehash_list.c: Include progname.h.
103910         (main): Call set_program_name.
103912         * modules/rbtree-oset-tests (Depends-on): Add progname.
103913         * tests/test-rbtree_oset.c: Include progname.h.
103914         (main): Call set_program_name.
103916         * modules/rbtree-list-tests (Depends-on): Add progname.
103917         * tests/test-rbtree_list.c: Include progname.h.
103918         (main): Call set_program_name.
103920         * modules/linked-list-tests (Depends-on): Add progname.
103921         * tests/test-linked_list.c: Include progname.h.
103922         (main): Call set_program_name.
103924 2007-03-03  Bruno Haible  <bruno@clisp.org>
103926         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103927         All uses of __restrict changed to _Restrict_.
103928         * lib/glob_.h (__restrict): Remove macro.
103930 2007-03-02  Bruno Haible  <bruno@clisp.org>
103932         * modules/gettext (configure.ac): Require gettext infrastructure
103933         from version 0.16.1.
103935 2007-03-02  Bruno Haible  <bruno@clisp.org>
103937         * modules/linkedhash-list-tests (Depends-on): Add progname.
103938         * tests/test-linkedhash_list.c: Include progname.h.
103939         (main): Call set_program_name.
103941         * modules/carray-list-tests (Depends-on): Add progname.
103942         * tests/test-carray_list.c: Include progname.h.
103943         (main): Call set_program_name.
103945         * modules/avltreehash-list-tests (Depends-on): Add progname.
103946         * tests/test-avltreehash_list.c: Include progname.h.
103947         (main): Call set_program_name.
103949         * modules/avltree-oset-tests (Depends-on): Add progname.
103950         * tests/test-avltree_oset.c: Include progname.h.
103951         (main): Call set_program_name.
103953         * modules/avltree-list-tests (Depends-on): Add progname.
103954         * tests/test-avltree_list.c: Include progname.h.
103955         (main): Call set_program_name.
103957         * modules/array-oset-tests (Depends-on): Add progname.
103958         * tests/test-array_oset.c: Include progname.h.
103959         (main): Call set_program_name.
103961         * modules/array-list-tests (Depends-on): Add progname.
103962         * tests/test-array_list.c: Include progname.h.
103963         (main): Call set_program_name.
103965         * modules/argp-tests (Depends-on): Add progname.
103966         * tests/test-argp.c: Include argp.h first. Include progname.h.
103967         (main): Call set_program_name.
103969 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103971         * doc/gnulib-tool.texi (Initial import): Reword description of
103972         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103973         limited effect even if defined after the first system include.
103975 2007-03-01  Bruno Haible  <bruno@clisp.org>
103977         * build-aux/config.libpath: Update to libtool-1.5.22.
103978         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103980 2007-03-01  Bruno Haible  <bruno@clisp.org>
103982         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103983         foo_CFLAGS.
103984         Reported by Ralf Wildenhues.
103986 2007-03-01  Bruno Haible  <bruno@clisp.org>
103988         * build-aux/install-reloc: Remove object files left over by some
103989         compilers.
103990         Reported by Ralf Wildenhues.
103992 2007-03-01  Bruno Haible  <bruno@clisp.org>
103994         * build-aux/install-reloc: Break long lines.
103996 2007-03-01  Bruno Haible  <bruno@clisp.org>
103998         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103999         Reported by Ralf Wildenhues.
104001 2007-03-01  Bruno Haible  <bruno@clisp.org>
104003         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
104004         include ordering constraints.
104006 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104008         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
104009         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
104010         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
104011         as another example.
104012         * lib/time_.h: Fix misspelling.
104013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
104014         Require gl_HEADER_TIME_H_DEFAULTS.
104015         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
104016         * m4/time_r.m4 (gl_TIME_R): Likewise.
104017         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
104019 2007-03-01  Bruno Haible  <bruno@clisp.org>
104021         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
104022         * m4/utimens.m4 (gl_UTIMENS): Likewise.
104024 2007-03-01  Jim Meyering  <jim@meyering.net>
104026         * modules/xreadlink (Maintainer): Add my name.
104027         * modules/xreadlink-with-size (Depends-on): Alphabetize.
104029 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
104030             Bruno Haible  <bruno@clisp.org>
104032         * build-aux/install-reloc: Compile also c-ctype.c.
104033         * build-aux/relocatable.sh.in: New file.
104034         * doc/relocatable.texi: New file.
104035         * doc/relocatable-maint.texi: New file.
104036         * doc/gnulib.texi: Include relocatable-maint.texi.
104037         * lib/progreloc.c: Include unistd.h unconditionally.
104038         * lib/relocwrapper.c: Include unistd.h unconditionally.
104039         Include c-ctype.h.
104040         (add_dotbin): Use c_tolower.
104041         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
104042         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
104043         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
104044         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
104045         to m4/relocatable-lib.m4.
104046         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
104047         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
104048         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
104049         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
104050         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
104051         * modules/relocatable: New file.
104052         * modules/relocatable-lib: New file.
104053         * modules/relocatable-script: New file.
104055 2007-02-28  Bruno Haible  <bruno@clisp.org>
104057         Import --enable-relocatable infrastructure.
104058         * build-aux/config.libpath: New file, from GNU gettext.
104059         * build-aux/install-reloc: New file, from GNU gettext.
104060         * build-aux/reloc-ldflags: New file, from GNU gettext.
104061         * lib/relocatable.h: New file, from GNU gettext.
104062         * lib/relocatable.c: New file, from GNU gettext.
104063         * lib/relocwrapper.c: New file, from GNU gettext.
104064         * m4/relocatable.m4: New file, from GNU gettext.
104066 2007-02-28  Bruno Haible  <bruno@clisp.org>
104068         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
104070         * modules/xreadlink: New file, from GNU gettext with modifications.
104071         * lib/xreadlink.c: New file, from GNU gettext.
104072         * lib/xreadlink.h: Add comments.
104073         (xreadlink): New declaration.
104075         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
104076         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
104077         lib/xreadlink-with-size.c.
104078         (configure.ac): Remove gl_XREADLINK invocation.
104079         (Makefile.am): Augment lib_SOURCES.
104080         * m4/xreadlink.m4: Remove file.
104081         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
104082         (xreadlink_with_size): Renamed from xreadink.
104083         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
104084         * modules/canonicalize (Depends-on): Replace xreadlink with
104085         xreadlink-with-size.
104086         * lib/canonicalize.c (canonicalize_filename_mode): Update.
104088 2007-02-25  Jim Meyering  <jim@meyering.net>
104090         * build-aux/announce-gen: When complaining about excess arguments,
104091         list them.
104093 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104095         * README: Document signed integer overflow situation more
104096         accurately.
104098 2007-02-25  Bruno Haible  <bruno@clisp.org>
104100         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
104101         'a' or 'A' conversion.
104103 2007-02-25  Bruno Haible  <bruno@clisp.org>
104105         * modules/filename: Renamed from modules/pathname.
104106         (Files): Replace lib/pathname.h with lib/filename.h. Replace
104107         lib/concatpath.c with lib/concat-filename.c.
104108         (Makefile.am): Update.
104109         (Include): Replace pathname.h with filename.h.
104110         * lib/filename.h: Renamed from lib/pathname.h.
104111         (concatenated_filename): Renamed from concatenated_pathname.
104112         * lib/concat-filename.c: Renamed from lib/concatpath.c.
104113         (concatenated_filename): Renamed from concatenated_pathname.
104114         * lib/findprog.c: Include filename.h instead of pathname.h.
104115         (find_in_path): Update.
104116         * lib/javacomp.c: Include filename.h instead of pathname.h.
104117         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
104118         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
104119         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
104120         is_oldgcj_14_13_usable, is_javac_usable): Update.
104121         * lib/javaexec.c: Include filename.h instead of pathname.h.
104122         (execute_java_class): Update.
104123         * modules/findprog: Update.
104124         * modules/javacomp: Update.
104125         * modules/javaexec: Update.
104126         * MODULES.html.sh (File system functions): Add 'filename', remove
104127         'pathname'.
104129 2007-02-25  Bruno Haible  <bruno@clisp.org>
104131         * modules/printf-frexpl-tests: New file.
104132         * tests/test-printf-frexpl.c: New file.
104134         * modules/printf-frexpl: New file.
104135         * lib/printf-frexpl.h: New file.
104136         * lib/printf-frexpl.c: New file.
104137         * m4/printf-frexpl.m4: New file.
104139 2007-02-25  Bruno Haible  <bruno@clisp.org>
104141         * modules/printf-frexp-tests: New file.
104142         * tests/test-printf-frexp.c: New file.
104144         * modules/printf-frexp: New file.
104145         * lib/printf-frexp.h: New file.
104146         * lib/printf-frexp.c: New file.
104147         * m4/printf-frexp.m4: New file.
104149 2007-02-25  Bruno Haible  <bruno@clisp.org>
104151         Assume automake >= 1.10 for the tests.
104152         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
104153         * modules/arctwo-tests: Likewise.
104154         * modules/argp-tests: Likewise.
104155         * modules/avltree-list-tests: Likewise.
104156         * modules/avltree-oset-tests: Likewise.
104157         * modules/avltreehash-list-tests: Likewise.
104158         * modules/carray-list-tests: Likewise.
104159         * modules/crc-tests: Likewise.
104160         * modules/des-tests: Likewise.
104161         * modules/gc-arcfour-tests: Likewise.
104162         * modules/gc-arctwo-tests: Likewise.
104163         * modules/gc-des-tests: Likewise.
104164         * modules/gc-hmac-md5-tests: Likewise.
104165         * modules/gc-hmac-sha1-tests: Likewise.
104166         * modules/gc-md2-tests: Likewise.
104167         * modules/gc-md4-tests: Likewise.
104168         * modules/gc-md5-tests: Likewise.
104169         * modules/gc-pbkdf2-sha1-tests: Likewise.
104170         * modules/gc-rijndael-tests: Likewise.
104171         * modules/gc-sha1-tests: Likewise.
104172         * modules/gc-tests: Likewise.
104173         * modules/getaddrinfo-tests: Likewise.
104174         * modules/hmac-md5-tests: Likewise.
104175         * modules/hmac-sha1-tests: Likewise.
104176         * modules/linked-list-tests: Likewise.
104177         * modules/linkedhash-list-tests: Likewise.
104178         * modules/lock-tests: Likewise.
104179         * modules/md2-tests: Likewise.
104180         * modules/md4-tests: Likewise.
104181         * modules/md5-tests: Likewise.
104182         * modules/rbtree-list-tests: Likewise.
104183         * modules/rbtree-oset-tests: Likewise.
104184         * modules/rbtreehash-list-tests: Likewise.
104185         * modules/read-file-tests: Likewise.
104186         * modules/rijndael-tests: Likewise.
104187         * modules/stdint-tests: Likewise.
104188         * modules/tls-tests: Likewise.
104190 2007-02-24  Bruno Haible  <bruno@clisp.org>
104192         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
104193         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
104194         function; instead check whether isnan with a double argument links.
104195         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
104196         function; instead check whether isnan with a 'long double' argument
104197         links.
104198         Reported by Eric Blake <ebb9@byu.net>.
104200 2007-02-24  Bruno Haible  <bruno@clisp.org>
104202         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
104203         defined.
104204         * lib/isnanl.c: Remove all code. Just include isnan.c.
104205         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
104207 2007-02-25  Jim Meyering  <jim@meyering.net>
104209         Avoid conflicting types for 'unsetenv' on FreeBSD.
104210         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
104211         conflicting with FreeBSD's (5.0 and 6.1) function declaration
104212         in stdlib.h.
104214 2007-02-24  Bruno Haible  <bruno@clisp.org>
104216         * modules/isnanl-nolibm-tests: New file.
104217         * tests/test-isnanl.c: New file.
104219         * modules/isnanl-nolibm: New file.
104220         * lib/isnanl.h: New file.
104221         * lib/isnanl.c: New file.
104222         * m4/isnanl.m4: New file.
104224 2007-02-24  Bruno Haible  <bruno@clisp.org>
104226         * modules/isnan-nolibm-tests: New file.
104227         * tests/test-isnan.c: New file.
104229         * modules/isnan-nolibm: New file.
104230         * lib/isnan.h: New file.
104231         * lib/isnan.c: New file.
104232         * m4/isnan.m4: New file.
104234 2007-02-24  Bruno Haible  <bruno@clisp.org>
104236         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
104237         assume that an exponent fits in 20 bits.
104239 2007-02-24  Jim Meyering  <jim@meyering.net>
104241         * m4/regex.m4: Update the description of the configure-time option,
104242         --without-included-regex, to state accurately what the defaults are,
104243         and perhaps to give people an idea why using this option is risky.
104245 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
104247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
104248         loops on small arguments.  This attempts to avoid the problem
104249         Bruno Haible reported for AIX 4.3.2 in
104250         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
104252 2007-02-23  Bruno Haible  <bruno@clisp.org>
104254         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
104255         Needed for help2man.
104257 2007-02-23  Karl Berry  <karl@gnu.org>
104259         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
104260         exists, foo.h should be cvs-ignored, not committed.
104262 2007-02-23  Eric Blake  <ebb9@byu.net>
104264         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
104265         * lib/stat-time.h (includes): Likewise.
104266         * lib/utimecmp.c (includes): Likewise.
104267         * lib/utimens.h (includes): Likewise.
104268         * lib/getdate.y (includes): Also include "timespec.h" for use
104269         internal to the module.
104270         * modules/utimens (Depends-on): Revert yesterday's patch.
104271         * modules/nanosleep (Depends-on): Add missing dependency.
104273 2007-02-22  Bruno Haible  <bruno@clisp.org>
104275         * lib/glob.c: Don't include getlogin_r.h.
104277 2007-02-22  Jim Meyering  <jim@meyering.net>
104279         * modules/utimens (Depends-on): Add timespec, required for
104280         utimens.h's inclusion of timespec.h.
104282 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
104284         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
104285         long unreadable paths in GNU/Linux.  Problem reported by Andreas
104286         Schwab in
104287         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
104288         I'll try to think of a better way to fix the Solaris problem.
104290         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
104291         like glibc; on Solaris 10, it fails with errno == EINVAL.
104292         POSIX says the behavior is unspecified if the first argument is NULL,
104293         so play it safe and never pass NULL to the system getcwd.
104295 2007-02-21  Jim Meyering  <jim@meyering.net>
104297         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
104298         of gettimeofday.  It would conflict with the one now always
104299         provided via sys_time_.h.  Reported by Matthew Woehlke, as
104300         an IRIX 6.5 build failure.
104302 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
104304         Minor fixups to port to Solaris 10 with Sun C 5.8.
104305         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
104306         * modules/getcwd (Depends-on): Add dirfd.
104307         * lib/putenv.c (putenv): #undef it.
104308         (rpl_putenv): New decl.
104309         (malloc, free): Include <stdlib.h> rather than prototyping separately.
104311 2007-02-20  Bruno Haible  <bruno@clisp.org>
104313         * modules/stdio-tests: New file.
104314         * tests/test-stdio.c: New file.
104316         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
104317         (Depends-on): Add stdio.
104318         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104319         (Include): Use <stdio.h> instead of vsnprintf.h.
104320         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104321         HAVE_DECL_VSNPRINTF.
104322         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
104324         * modules/snprintf (Files): Remove lib/snprintf.h.
104325         (Depends-on): Add stdio.
104326         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104327         (Include): Use <stdio.h> instead of snprintf.h.
104328         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104329         HAVE_DECL_SNPRINTF.
104330         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
104331         * lib/getaddrinfo.c: Likewise.
104333         * modules/stdio: New file.
104334         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
104335         * lib/snprintf.h: Remove file.
104336         * lib/vsnprintf.h: Remove file.
104337         * lib/.cppi-disable: Remove snprintf.h.
104338         * m4/stdio_h.m4: New file.
104339         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
104341 2007-02-20  Jim Meyering  <jim@meyering.net>
104343         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
104344         used by e.g., mingw.  From Bruno Haible.
104346 2007-02-19  Bruno Haible  <bruno@clisp.org>
104348         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
104349         warnings.
104350         Reported by Ben Pfaff <blp@cs.stanford.edu>.
104352 2007-02-19  Bruno Haible  <bruno@clisp.org>
104354         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
104355         from mingw users.
104357 2007-02-19  Bruno Haible  <bruno@clisp.org>
104359         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
104360         warnings.
104361         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
104363 2007-02-19  Jim Meyering  <jim@meyering.net>
104365         Don't use FD after a successful "fdopendir (fd)".
104366         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
104367         Reset it by calling dirfd on the just-obtained DIR*.
104369         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
104370         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
104372 2007-02-18  Bruno Haible  <bruno@clisp.org>
104374         * lib/readlink.c: Include <unistd.h>.
104375         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
104376         HAVE_READLINK.
104377         * modules/readlink (Depends-on): Add unistd.
104378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104379         (Include): Add <unistd.h>.
104381         * lib/getlogin_r.h: Remove file.
104382         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
104383         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
104384         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
104385         HAVE_DECL_GETLOGIN_R.
104386         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
104387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104388         (Include): Use <unistd.h> instead of getlogin_r.h.
104390         * lib/getcwd.h: Remove file.
104391         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
104392         * lib/xgetcwd.c: Likewise.
104393         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
104394         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
104395         * modules/getcwd (Files): Remove lib/getcwd.h.
104396         (Depends-on): Add unistd.
104397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104398         (Include): Use <unistd.h> instad of getcwd.h.
104400         * lib/ftruncate.c: Include <unistd.h> first.
104401         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
104402         Set HAVE_FTRUNCATE.
104403         * modules/ftruncate (Depends-on): Add unistd.
104404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104406         * lib/fchdir.c: Include <unistd.h> first.
104407         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
104408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
104409         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
104410         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104411         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
104413         * lib/dup2.c: Include <unistd.h> first.
104414         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
104415         HAVE_DUP2.
104416         * modules/dup2 (Depends-on): Add unistd.
104417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104419         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
104420         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
104421         REPLACE_CHOWN. Don't define chown as a macro here.
104422         * modules/chown (Depends-on): Add unistd.
104423         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104425         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
104426         Add definition for GL_LINK_WARNING.
104427         (chown, dup2): New declarations.
104428         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
104429         link warning.
104430         (ftruncate): New declaration.
104431         (getcwd): New declaration, taken from old getcwd.h.
104432         (getlogin_r): New declaration, taken from old getlogin_r.h.
104433         (readlink): New declaration.
104434         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
104435         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
104436         (gl_PREREQ_UNISTD): Remove macro.
104437         (gl_UNISTD_MODULE_INDICATOR): New macro.
104438         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
104439         many new variables. Don't set UNISTD_H.
104440         * modules/unistd (Description): Change.
104441         (Depends-on): Add link-warning.
104442         (configure.ac): Update.
104443         (Makefile.am): Create unistd.h always. Substitute many new variables
104444         into it.
104446 2007-02-18  Bruno Haible  <bruno@clisp.org>
104448         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
104449         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
104450         HAVE_GETSUBOPT.
104451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
104452         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
104453         * lib/getsubopt.h: Remove file.
104454         * modules/getsubopt (Files): Remove lib/getsubopt.h.
104455         (Depends-on): Add stdlib.
104456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104457         (Includes): Use <stdlib.h> instead of getsubopt.h.
104458         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
104459         Set HAVE_GETSUBOPT.
104460         * lib/getsubopt.c: Don't include getsubopt.h.
104462 2007-02-18  Bruno Haible  <bruno@clisp.org>
104464         * modules/fchdir (Depends-on): Add dup2.
104466 2007-02-18  Bruno Haible  <bruno@clisp.org>
104468         * lib/stdlib_.h: Handle glibc's special invocation convention
104469         specially.
104471 2007-02-18  Bruno Haible  <bruno@clisp.org>
104473         * modules/stdlib-tests: New file.
104474         * tests/test-stdlib.c: New file.
104476         * modules/mkstemp (Files): Remove lib/mkstemp.h.
104477         (Depends-on): Add stdlib.
104478         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104479         (Includes): Use <stdlib.h> instead of mkstemp.h.
104480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104481         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
104482         * lib/mkstemp.c: Don't include mkstemp.h.
104483         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
104484         * lib/stdlib--.h: Don't include mkstemp.h.
104486         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
104487         (Depends-on): Add stdlib.
104488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104489         (Includes): Use <stdlib.h> instead of mkdtemp.h.
104490         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104491         HAVE_MKDTEMP.
104492         * lib/mkdtemp.c: Don't include mkdtemp.h.
104493         * lib/clean-temp.c: Don't include mkdtemp.h.
104495         * modules/exit (Files): Remove lib/exit.h.
104496         (Depends-on): Add stdlib.
104497         (Makefile.am): Remove lib_SOURCES.
104498         (Include): Use <stdlib.h> instead of exit.h.
104499         * lib/argmatch.c: Don't include exit.h.
104500         * lib/execute.c: Likewise.
104501         * lib/pagealign_alloc.c: Likewise.
104502         * lib/pipe.c: Likewise.
104503         * lib/wait-process.c: Likewise.
104504         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
104505         * lib/exitfail.c: Likewise.
104506         * lib/savewd.c: Likewise.
104507         * lib/xsetenv.c: Likewise.
104509         * modules/stdlib: New file.
104510         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
104511         and extra comments about mkstemp().
104512         * lib/exit.h: Remove file.
104513         * lib/mkdtemp.h: Remove file.
104514         * lib/mkstemp.h: Remove file.
104515         * m4/stdlib_h.m4: New file.
104516         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
104518 2007-02-18  Bruno Haible  <bruno@clisp.org>
104520         * modules/math-tests: New file.
104521         * tests/test-math.c: New file.
104523         * modules/math: New file.
104524         * modules/mathl (Files): Remove lib/mathl.h.
104525         (Depends-on): Add math.
104526         (Makefile.am): Don't mention mathl.h.
104527         (Include): Use <math.h> instead of mathl.h.
104528         * lib/math_.h: New file.
104529         * lib/mathl.h: Remove file.
104530         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
104531         mathl.h.
104532         * lib/asinl.c: Likewise.
104533         * lib/atanl.c: Likewise.
104534         * lib/ceill.c: Likewise.
104535         * lib/cosl.c: Likewise.
104536         * lib/expl.c: Likewise.
104537         * lib/floorl.c: Likewise.
104538         * lib/frexpl.c: Likewise.
104539         * lib/ldexpl.c: Likewise.
104540         * lib/logl.c: Likewise.
104541         * lib/sincosl.c: Likewise.
104542         * lib/sinl.c: Likewise.
104543         * lib/sqrtl.c: Likewise.
104544         * lib/tanl.c: Likewise.
104545         * lib/trigl.c: Likewise.
104546         * m4/math_h.m4: New file.
104547         * MODULES.html.sh (Mathematics): Add math.
104549 2007-02-17  Bruno Haible  <bruno@clisp.org>
104551         * modules/wctype-tests: New file.
104552         * tests/test-wctype.c: New file.
104554         * modules/wchar-tests: New file.
104555         * tests/test-wchar.c: New file.
104557         * modules/unistd-tests: New file.
104558         * tests/test-unistd.c: New file.
104560         * modules/time-tests: New file.
104561         * tests/test-time.c: New file.
104563         * modules/sysexits-tests: New file.
104564         * tests/test-sysexits.c: New file.
104566         * modules/sys_time-tests: New file.
104567         * tests/test-sys_time.c: New file.
104569         * modules/sys_stat-tests: New file.
104570         * tests/test-sys_stat.c: New file.
104572         * modules/sys_socket-tests: New file.
104573         * tests/test-sys_socket.c: New file.
104575         * modules/sys_select-tests: New file.
104576         * tests/test-sys_select.c: New file.
104578         * modules/string-tests: New file.
104579         * tests/test-string.c: New file.
104581         * modules/stdbool-tests: New file.
104582         * tests/test-stdbool.c: New file.
104584         * modules/netinet_in-tests: New file.
104585         * tests/test-netinet_in.c: New file.
104587         * modules/inttypes-tests: New file.
104588         * tests/test-inttypes.c: New file.
104590         * modules/fcntl-tests: New file.
104591         * tests/test-fcntl.c: New file.
104593         * modules/byteswap-tests: New file.
104594         * tests/test-byteswap.c: New file.
104596         * modules/arpa_inet-tests: New file.
104597         * tests/test-arpa_inet.c: New file.
104599 2007-02-17  Bruno Haible  <bruno@clisp.org>
104601         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
104602         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
104603         if the corresponding module is not enabled. Emit link warnings if
104604         the function is used nevertheless.
104605         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
104606         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
104607         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
104608         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
104609         * modules/inttypes (Depends-on): Add link-warning.
104610         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104611         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
104612         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
104613         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
104614         * modules/imaxdiv (configure.ac): Likewise.
104615         * modules/strtoimax (configure.ac): Likewise.
104616         * modules/strtoumax (configure.ac): Likewise.
104618 2007-02-17  Bruno Haible  <bruno@clisp.org>
104620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104621         gl_STRING_MODULE_INDICATOR_DEFAULTS.
104622         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
104623         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
104625 2007-02-17  Bruno Haible  <bruno@clisp.org>
104627         * modules/link-warning: New file.
104628         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
104629         * lib/string_.h (GL_LINK_WARNING): Remove definition.
104630         * modules/string (Depends-on): Add link-warning.
104631         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104632         string.h.
104633         * MODULES.html.sh (Support for building libraries and executables): Add
104634         link-warning.
104636 2007-02-17  Bruno Haible  <bruno@clisp.org>
104638         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
104639         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
104640         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
104641         long lines.
104643 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
104644             Bruno Haible  <bruno@clisp.org>
104646         * modules/tmpfile: New file.
104647         * lib/tmpfile.c: New file.
104648         * m4/tmpfile.m4: New file.
104649         * MODULES.html.sh (func_all_modules): New section "Input/output".
104651 2007-02-15  Bruno Haible  <bruno@clisp.org>
104653         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
104654         (supports_delete_on_close): New function.
104655         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
104657 2007-02-14  Bruno Haible  <bruno@clisp.org>
104659         * modules/mbspcasecmp-tests: New file.
104660         * tests/test-mbspcasecmp.sh: New file.
104661         * tests/test-mbspcasecmp.c: New file.
104663         New module mbspcasecmp.
104664         * modules/mbspcasecmp: New file.
104665         * lib/mbspcasecmp.c: New file.
104666         * lib/string_.h (strncasecmp): Change warning message.
104667         (mbspcasecmp): New declaration.
104668         * m4/mbspcasecmp.m4: New file.
104669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104670         GNULIB_MBSPCASECMP.
104671         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104672         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104674 2007-02-14  Bruno Haible  <bruno@clisp.org>
104676         * modules/mbsncasecmp-tests: New file.
104677         * tests/test-mbsncasecmp.sh: New file.
104678         * tests/test-mbsncasecmp.c: New file.
104680         New module mbsncasecmp.
104681         * modules/mbsncasecmp: New file.
104682         * lib/mbsncasecmp.c: New file.
104683         * lib/string_.h (mbsncasecmp): New declaration.
104684         * m4/mbsncasecmp.m4: New file.
104685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104686         GNULIB_MBSNCASECMP.
104687         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104688         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104690 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104692         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104693         Verify that it doesn't overlap with our flags.
104694         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104695         do not have the desired effect in multibyte locales; instead, use
104696         mbscasecmp.
104697         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104698         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104699         we don't require GNU fnmatch ourselves (if our users require it, they
104700         should do so explicitly).
104702         Fix regex code so it doesn't rely on strcasecmp.
104703         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104704         Otherwise, include gnulib's langinfo.h.
104705         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104706         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104707         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
104708         * modules/regex (FILES): Remove m4/codeset.m4.
104709         (Depends-on): Add localcharset.  Remove strcase.
104711 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104713         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
104714         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
104716 2007-02-13  Bruno Haible  <bruno@clisp.org>
104718         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
104719         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104721 2007-02-12  Bruno Haible  <bruno@clisp.org>
104723         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104724         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
104725         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
104726         time warning rather than a link error.
104728 2007-02-12  Bruno Haible  <bruno@clisp.org>
104730         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
104731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
104732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104734 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104736         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
104737         args, not 2.
104739 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104741         New module 'time', so that apps can include <time.h> as per
104742         POSIX and GNU instead of separate include files like time_r.h
104743         and timegm.h.  This implementation tries out a simpler approach
104744         for replacing decls in standard include files (as compared to
104745         the string module), somewhat as an experiment.
104747         * config/srclist.txt: Comment out mktime.c for now.
104748         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
104749         since it doesn't apply any more.  Use generic wording instead.
104750         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
104751         'time'.
104752         * lib/time_.h, m4/time_h.m4, modules/time: New files.
104753         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
104754         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
104755         Don't include <sys/types.h>; no longer needed since we assume C89.
104756         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
104757         * lib/strftime.c: Likewise.
104758         * lib/time_r.c: Likewise.
104759         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
104760         * lib/nanosleep.c: Include <time.h> first, to check interface.
104761         * lib/strptime.c: Likewise.
104762         * lib/time_r.c: Likewise.
104763         * lib/timegm.c: Likewise.
104764         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
104765         needed.
104766         * lib/timegm.c: Don't include timegm.h; no longer needed.
104767         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
104768         time.h now handles any problems in that area.
104769         (struct timespec, nanosleep): Remove; time.h now arranges for these.
104770         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
104771         that time.h defines struct timespec.
104772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
104773         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
104774         handles that.
104775         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
104776         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
104777         needed.  Set REPLACE_LOCALTIME.
104778         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
104779         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
104780         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
104781         nanosleep; time_h.m4 now does that.  Don't require
104782         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
104783         module handles this now.
104784         * modules/getdate (Depends-on): Remove timespec.  Add time.
104785         * modules/nanosleep (Depends-on): Likewise.
104786         * modules/stat-time (Depends-on): Likewise.
104787         * modules/nanosleep (Include): Include time.h, not timespec.h.
104788         * modules/strptime (Files): Remove lib/strptime.h.
104789         (Depends-on): Add extensions, time.
104790         (Include): Include time.h, not strptime.h.
104791         * modules/time_r (Files): Remove lib/time_r.h.
104792         (Depends-on): Add time.
104793         (Include): Include time.h, not time_r.h.
104794         * modules/timegm: Likewise.
104795         * modules/timespec (Description): Now does timespec-related decls
104796         of our own, instead of struct timespec itself.
104797         (Depends-on): Add time; remove extensions.
104798         (Maintainer): Add self.
104799         * modules/utimecmp (Depends-on): Add time; remove timespec.
104800         * modules/utimens (Depends-on): Likewise.
104801         * modules/xnanosleep (Depends-on): Likewise.
104803 2007-02-11  Bruno Haible  <bruno@clisp.org>
104805         * lib/c-strstr.c: Include allocsa.h.
104806         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104807         * lib/c-strcasestr.c: Include allocsa.h.
104808         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104809         * lib/strcasestr.c: Include allocsa.h.
104810         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104811         * lib/mbsstr.c: Include allocsa.h.
104812         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104813         allocsa/freesa instead of malloc/free.
104814         * lib/mbscasestr.c: Include allocsa.h.
104815         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104816         allocsa/freesa instead of malloc/free.
104817         * modules/c-strstr (Depends-on): Add allocsa.
104818         * modules/c-strcasestr (Depends-on): Likewise.
104819         * modules/strcasestr (Depends-on): Likewise.
104820         * modules/mbsstr (Depends-on): Likewise.
104821         * modules/mbscasestr (Depends-on): Likewise.
104823 2007-02-11  Bruno Haible  <bruno@clisp.org>
104825         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104827         * modules/mbsspn-tests: New file.
104828         * tests/test-mbsspn.sh: New file.
104829         * tests/test-mbsspn.c: New file.
104831 2007-02-11  Bruno Haible  <bruno@clisp.org>
104833         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104835         * modules/mbspbrk-tests: New file.
104836         * tests/test-mbspbrk.sh: New file.
104837         * tests/test-mbspbrk.c: New file.
104839 2007-02-11  Bruno Haible  <bruno@clisp.org>
104841         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104842         unneeded cast.
104844         * modules/mbscspn-tests: New file.
104845         * tests/test-mbscspn.sh: New file.
104846         * tests/test-mbscspn.c: New file.
104848 2007-02-11  Bruno Haible  <bruno@clisp.org>
104850         * modules/mbscasecmp-tests: New file.
104851         * tests/test-mbscasecmp.sh: New file.
104852         * tests/test-mbscasecmp.c: New file.
104854 2007-02-11  Bruno Haible  <bruno@clisp.org>
104856         Ensure O(n) worst-case complexity of mbscasestr.
104857         * lib/mbscasestr.c: Include stdbool.h.
104858         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104859         functions.
104860         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104861         the bookkeeping indicates that it's worth it.
104862         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104864         * modules/mbscasestr-tests: New file.
104865         * tests/test-mbscasestr1.c: New file.
104866         * tests/test-mbscasestr2.sh: New file.
104867         * tests/test-mbscasestr2.c: New file.
104868         * tests/test-mbscasestr3.sh: New file.
104869         * tests/test-mbscasestr3.c: New file.
104870         * tests/test-mbscasestr4.sh: New file.
104871         * tests/test-mbscasestr4.c: New file.
104872         * m4/locale-tr.m4: New file.
104874 2007-02-11  Bruno Haible  <bruno@clisp.org>
104876         Ensure O(n) worst-case complexity of mbsstr.
104877         * lib/mbsstr.c: Include stdbool.h.
104878         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104879         functions.
104880         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104881         bookkeeping indicates that it's worth it.
104882         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104884         * modules/mbsstr-tests: New file.
104885         * tests/test-mbsstr1.c: New file.
104886         * tests/test-mbsstr2.sh: New file.
104887         * tests/test-mbsstr2.c: New file.
104888         * tests/test-mbsstr3.sh: New file.
104889         * tests/test-mbsstr3.c: New file.
104890         * m4/locale-fr.m4: New file.
104892 2007-02-11  Bruno Haible  <bruno@clisp.org>
104894         * lib/mbsrchr.c (mbsrchr): Fix bug.
104896         * modules/mbsrchr-tests: New file.
104897         * tests/test-mbsrchr.sh: New file.
104898         * tests/test-mbsrchr.c: New file.
104900 2007-02-11  Bruno Haible  <bruno@clisp.org>
104902         * lib/mbschr.c (mbschr): Fix bug.
104904         * modules/mbschr-tests: New file.
104905         * tests/test-mbschr.sh: New file.
104906         * tests/test-mbschr.c: New file.
104907         * m4/locale-zh.m4: New file.
104909 2007-02-11  Bruno Haible  <bruno@clisp.org>
104911         Support for copying multibyte string iterators.
104912         * lib/mbiter.h: Include <string.h>.
104913         (mbiter_multi_copy): New function.
104914         (mbi_copy): New macro.
104915         * lib/mbuiter.h: Include <string.h>.
104916         (mbuiter_multi_copy): New function.
104917         (mbui_copy): New macro.
104919 2007-02-11  Bruno Haible  <bruno@clisp.org>
104921         New module mbslen.
104922         * modules/mbslen: New file.
104923         * lib/mbslen.c: New file.
104924         * lib/string_.h (mbslen): New declaration.
104925         * m4/mbslen.m4: New file.
104926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104927         GNULIB_MBSLEN.
104928         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104929         * MODULES.html.sh (Internationalization functions): Add mbslen.
104931 2007-02-11  Bruno Haible  <bruno@clisp.org>
104933         Ensure O(n) worst-case complexity of strcasestr substitute.
104934         * lib/strcasestr.c: Include stdbool.h.
104935         (knuth_morris_pratt): New function.
104936         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104937         bookkeeping indicates that it's worth it.
104938         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104940         * modules/strcasestr-tests: New file.
104941         * tests/test-strcasestr.c: New file.
104943 2007-02-11  Bruno Haible  <bruno@clisp.org>
104945         Ensure O(n) worst-case complexity of c_strcasestr.
104946         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104947         (knuth_morris_pratt): New function.
104948         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104949         the bookkeeping indicates that it's worth it.
104950         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104952         * modules/c-strcasestr-tests: New file.
104953         * tests/test-c-strcasestr.c: New file.
104955 2007-02-11  Bruno Haible  <bruno@clisp.org>
104957         Ensure O(n) worst-case complexity of c_strstr.
104958         * lib/c-strstr.c: Include stdbool.h, string.h.
104959         (knuth_morris_pratt): New function.
104960         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104961         bookkeeping indicates that it's worth it.
104962         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104964         * lib/c-strstr.c: Complete rewrite for maintainability.
104966         * modules/c-strstr-tests: New file.
104967         * tests/test-c-strstr.c: New file.
104969 2007-02-11  Bruno Haible  <bruno@clisp.org>
104971         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104972         5.2.1 and earlier, whereby \055 was treated just like the range
104973         delimiter '-'.
104974         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104976 2007-02-08  Bruno Haible  <bruno@clisp.org>
104978         * modules/regex (Depends-on): Add stdbool.
104979         Reported by Dalibor Topic <robilad@kaffe.org>.
104981 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104983         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104984         Prefer returning from main to exiting from it.
104985         Remove unnecessary parens after sizeof.
104987 2007-02-05  Bruno Haible  <bruno@clisp.org>
104989         New module mbssep.
104990         * modules/mbssep: New file.
104991         * lib/mbssep.c: New file.
104992         * lib/string_.h (strsep): Add a conditional link warning.
104993         (mbssep): New declaration.
104994         * m4/mbssep.m4: New file.
104995         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104996         GNULIB_MBSSEP.
104997         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104998         * MODULES.html.sh (Internationalization functions): Add mbssep.
105000 2007-02-05  Bruno Haible  <bruno@clisp.org>
105002         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
105003         Optimize search in case of 1 delimiter.
105005 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105007         * lib/acl.h: Include sys/types.h before sys/acl.h.
105009 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105011         Merge upstream fix for glibc bugzilla #3957:
105013         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
105015         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
105016         bit for RE_HAT_LISTS_NOT_NEWLINE.
105017         (build_charclass_op): Remove bogus comment.
105019 2007-02-05  Simon Josefsson  <simon@josefsson.org>
105021         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
105023 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105025         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
105026         * lib/memmem.c [!defined _LIBC]: Include config.h.
105028 2007-02-04  Bruno Haible  <bruno@clisp.org>
105030         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
105031         warning message.
105033 2007-02-04  Bruno Haible  <bruno@clisp.org>
105035         New module mbstok_r.
105036         * modules/mbstok_r: New file.
105037         * lib/mbstok_r.c: New file.
105038         * lib/string_.h (strtok_r): Change argument names to match the
105039         comments. Add a conditional link warning.
105040         (mbstok_r): New declaration.
105041         * m4/mbstok_r.m4: New file.
105042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105043         GNULIB_MBSTOK_R.
105044         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
105045         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
105047 2007-02-04  Bruno Haible  <bruno@clisp.org>
105049         New module mbsspn.
105050         * modules/mbsspn: New file.
105051         * lib/mbsspn.c: New file.
105052         * lib/string_.h (strspn): Add a conditional link warning.
105053         (mbsspn): New declaration.
105054         * m4/mbsspn.m4: New file.
105055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105056         GNULIB_MBSSPN.
105057         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
105058         * MODULES.html.sh (Internationalization functions): Add mbsspn.
105060 2007-02-04  Bruno Haible  <bruno@clisp.org>
105062         New module mbspbrk.
105063         * modules/mbspbrk: New file.
105064         * lib/mbspbrk.c: New file.
105065         * lib/string_.h (strpbrk): Add a conditional link warning.
105066         (mbspbrk): New declaration.
105067         * m4/mbspbrk.m4: New file.
105068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105069         GNULIB_MBSPBRK.
105070         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
105071         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
105073 2007-02-04  Bruno Haible  <bruno@clisp.org>
105075         New module mbscspn.
105076         * modules/mbscspn: New file.
105077         * lib/mbscspn.c: New file.
105078         * lib/string_.h (strcspn): Add a conditional link warning.
105079         (mbscspn): New declaration.
105080         * m4/mbscspn.m4: New file.
105081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105082         GNULIB_MBSCSPN.
105083         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
105084         * MODULES.html.sh (Internationalization functions): Add mbscspn.
105086 2007-02-04  Bruno Haible  <bruno@clisp.org>
105088         New module mbscasestr, reduced goal of strcasestr.
105089         * modules/mbscasestr: New file.
105090         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
105091         (mbscasestr): Renamed from strcasestr.
105092         * lib/strcasestr.c: Don't include mbuiter.h.
105093         (strcasestr): Remove support for multibyte locales.
105094         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
105095         Change the conditional link warning.
105096         (mbscasestr): New declaration.
105097         * m4/mbscasestr.m4: New file.
105098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
105099         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
105100         REPLACE_STRCASESTR.
105101         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
105102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105103         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105104         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
105105         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
105106         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105107         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
105108         (Depends-on): Remove mbuiter.
105109         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
105111 2007-02-04  Bruno Haible  <bruno@clisp.org>
105113         Simplify handling of strncasecmp.
105114         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
105115         the conditional link warning.
105116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105117         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
105118         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
105119         * modules/strcase (configure.ac): Don't invoke
105120         gl_STRING_MODULE_INDICATOR.
105121         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
105123 2007-02-04  Bruno Haible  <bruno@clisp.org>
105125         New module mbscasecmp, reduced goal of strcasecmp.
105126         * modules/mbscasecmp: New file.
105127         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
105128         (mbscasecmp): Renamed from strcasecmp.
105129         * lib/strcasecmp.c: Don't include mbuiter.h.
105130         (strcasecmp): Remove support for multibyte locales.
105131         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
105132         Change the conditional link warning.
105133         (mbscasecmp): New declaration.
105134         * m4/mbscasecmp.m4: New file.
105135         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
105136         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
105137         REPLACE_STRCASECMP.
105138         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
105139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105140         GNULIB_MBSCASECMP.
105141         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
105142         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
105143         * modules/strcase (Files): Remove m4/mbrtowc.m4.
105144         (Depends-on): Remove mbuiter.
105145         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
105147 2007-02-04  Bruno Haible  <bruno@clisp.org>
105149         New module mbsstr. Remove module strstr.
105150         * modules/mbsstr: New file.
105151         * modules/strstr: Remove file.
105152         * lib/mbsstr.c: Renamed from lib/strstr.c.
105153         (mbsstr): Renamed from strstr.
105154         * lib/string_.h (strstr): Remove declaration. Change the conditional
105155         link warning.
105156         (mbsstr): New declaration.
105157         * m4/mbsstr.m4: New file.
105158         * m4/strstr.m4: Remove file.
105159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
105160         REPLACE_STRSTR.
105161         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
105162         Don't initialize GNULIB_STRSTR.
105163         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
105164         substitute GNULIB_STRSTR and REPLACE_STRSTR.
105165         * MODULES.html.sh (Internationalization functions): Add mbsstr.
105166         (Support for systems lacking ANSI C 89): Remove strstr.
105168 2007-02-04  Bruno Haible  <bruno@clisp.org>
105170         New module mbsrchr.
105171         * modules/mbsrchr: New file.
105172         * lib/mbsrchr.c: New file.
105173         * lib/string_.h (strrchr): Add a conditional link warning.
105174         (mbsrchr): New declaration.
105175         * m4/mbsrchr.m4: New file.
105176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105177         GNULIB_MBSRCHR.
105178         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
105179         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
105181 2007-02-04  Bruno Haible  <bruno@clisp.org>
105183         New module mbschr.
105184         * modules/mbschr: New file.
105185         * lib/mbschr.c: New file.
105186         * lib/string_.h (strchr): Add a conditional link warning.
105187         (mbschr): New declaration.
105188         * m4/mbschr.m4: New file.
105189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105190         GNULIB_MBSCHR.
105191         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
105192         * MODULES.html.sh (Internationalization functions): Add mbschr.
105194 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105196         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
105198         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
105200 2007-02-04  Bruno Haible  <bruno@clisp.org>
105202         New module description section 'configure.ac-early'.
105203         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
105204         (func_get_autoconf_early_snippet): New function.
105205         (func_import, func_create_testdir): Use it. Remove special cases for
105206         modules 'extensions' and 'lock'.
105207         * modules/extensions (configure.ac-early): Require
105208         gl_USE_SYSTEM_EXTENSIONS.
105209         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
105211 2007-02-04  Bruno Haible  <bruno@clisp.org>
105213         Make use of gcj-4.3's -fsource and -ftarget option.
105214         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
105215         and if so try the options -fsource and -ftarget.
105216         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
105217         source_version, ftarget_option, target_version arguments.
105218         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
105219         (is_envjavac_oldgcj_14_14_usable): Renamed from
105220         is_envjavac_gcj_14_14_usable.
105221         (is_envjavac_oldgcj_14_13_usable): Renamed from
105222         is_envjavac_gcj_14_13_usable.
105223         (is_gcj_present): Update.
105224         (is_gcj_43, is_gcj43_usable): New functions.
105225         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
105226         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
105227         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
105228         try the options -fsource and -ftarget.
105230 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105232         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
105233         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
105234         larger value.
105236 2007-02-03  Jim Meyering  <jim@meyering.net>
105238         Give tools a better chance to allocate space for very large buffers.
105239         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
105241         Make pwd and readlink work also when run with an unreadable parent dir
105242         on systems with openat support.
105243         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
105244         provided getcwd function, even when we have openat support.
105245         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
105247 2007-02-02  Bruno Haible  <bruno@clisp.org>
105249         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105250         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
105251         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
105252         portability problems if one of these functions is only used on specific
105253         platforms.
105254         Reported by Paul Eggert.
105256 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
105258         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
105259         is causing more trouble than it's curing.
105260         * lib/regex_internal.h (__mempcpy): Remove.
105261         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
105262         (and make the code a tad smaller to boot).
105263         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
105265 2007-02-02  Jim Meyering  <jim@meyering.net>
105267         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
105268         section, not in the Makefile.am: one.
105270 2007-02-02  Eric Blake  <ebb9@byu.net>
105272         * lib/strchrnul.c: Always include config.h first.
105274         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
105275         gnulib strstr is not necessary here.
105277 2007-02-02  Simon Josefsson  <simon@josefsson.org>
105279         * m4/socklen.m4: Fix typo.
105281 2007-02-02  Eric Blake  <ebb9@byu.net>
105283         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
105284         * modules/netinet_in (Makefile.am): Likewise.
105286 2007-02-01  Bruno Haible  <bruno@clisp.org>
105288         * lib/string_.h (GL_LINK_WARNING): New macro.
105289         (strcasecmp, strstr, strcasestr): If provided by the system,
105290         conditionally define as a macro that leads to a warning instead of to
105291         an error.
105292         (strncasecmp): Conditionally define as a macro that leads to a warning.
105294 2007-02-01  Karl Berry  <karl@gnu.org>
105296         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
105298 2007-02-01  Bruno Haible  <bruno@clisp.org>
105300         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
105301         renamings.
105303 2007-02-01  Eric Blake  <ebb9@byu.net>
105305         * modules/regex (Depends-on): Revert dependence on mempcpy.
105306         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
105307         module's definition of mempcpy.
105308         Reported by Paul Eggert.
105310 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105312         * lib/string_.h: If the gnulib module XYZ is not present, undefine
105313         the symbol XYZ before redefining it.  This fixes a problem with
105314         programs that don't use XYZ, when compiled on systems that define
105315         XYZ to something else.
105317 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
105319         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
105320         occurs when "mkdir -m foo" creates a setgid directory that is (1)
105321         writeable to group or other and (2) is intended to have a special
105322         mode bit that is set or cleared.  In such a case, the directory
105323         should be neither group- nor other-writeable until the special
105324         mode bits are right.
105326 2007-01-31  Eric Blake  <ebb9@byu.net>
105328         * modules/mountlist (Depends-on): Add strstr.
105330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
105331         bug.
105332         * modules/string (Makefile.am): Remove redundant replacement.
105333         * modules/regex (Depends-on): Add mempcpy.
105335 2007-01-31  Bruno Haible  <bruno@clisp.org>
105337         New module description field 'Link'.
105338         * gnulib-tool (func_usage): Document --extract-link-directive.
105339         (sed_extract_prog): Recognize 'Link' directive.
105340         (func_get_link_directive): New function.
105341         (func_import): Show summary of link directives.
105342         Handle --extract-link-directive option.
105343         * modules/acl (Link): New section.
105344         * modules/clock-time (Link): New section.
105345         * modules/euidaccess (Link): New section.
105346         * modules/gettext (Link): New section.
105347         * modules/iconv (Link): New section.
105348         * modules/lock (Link): New section.
105349         * modules/nanosleep (Link): New section.
105350         * modules/readline (Link): New section.
105352 2007-01-27  Bruno Haible  <bruno@clisp.org>
105354         Enforce the use of gnulib modules for unportable <string.h> functions.
105355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
105356         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
105357         (gl_HEADER_STRING_H_BODY): Require it.
105358         * lib/string_.h: If the gnulib module XYZ is not present, redefine
105359         the symbol XYZ to one that gives a link error.
105360         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
105361         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
105362         * modules/mempcpy (configure.ac): Likewise.
105363         * modules/memrchr (configure.ac): Likewise.
105364         * modules/stpcpy (configure.ac): Likewise.
105365         * modules/stpncpy (configure.ac): Likewise.
105366         * modules/strcase (configure.ac): Likewise.
105367         * modules/strcasestr (configure.ac): Likewise.
105368         * modules/strchrnul (configure.ac): Likewise.
105369         * modules/strdup (configure.ac): Likewise.
105370         * modules/strndup (configure.ac): Likewise.
105371         * modules/strnlen (configure.ac): Likewise.
105372         * modules/strpbrk (configure.ac): Likewise.
105373         * modules/strsep (configure.ac): Likewise.
105374         * modules/strstr (configure.ac): Likewise.
105375         * modules/strtok_r (configure.ac): Likewise.
105377 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
105379         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
105381 2007-01-30  Jim Meyering  <jim@meyering.net>
105383         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
105385 2007-01-29  Bruno Haible  <bruno@clisp.org>
105387         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
105388         * lib/execute.c: Likewise.
105389         * lib/pipe.c: Likewise.
105390         * lib/printf-args.h: Likewise.
105391         * lib/printf-args.c: Likewise.
105392         * lib/printf-parse.c: Likewise.
105393         * lib/vasnprintf.c: Likewise.
105395 2007-01-29  Eric Blake  <ebb9@byu.net>
105397         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
105398         declaration.
105400 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
105402         * lib/strptime.h (strptime): Use 'restrict' for args where
105403         POSIX requires this.
105404         * lib/strptime.c (strptime): Likewise.
105405         Change license notice from LGPL to GPL, since gnulib-tool will
105406         change this as needed.
105407         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
105408         defined.
105409         Include "strptime.h" first, to check interface.
105410         Do not #undef _LIBC and _NL_CURRENT.
105411         Do not include <stdlib.h>; no longer needed.
105412         Include "time_r.h" and declare ptime_locale_status
105413         only if _LIBC is not defined.
105414         (__P): Remove unused macro.
105415         (match_string): Bring back glibc version, but use it only if _LIBC
105416         is defined.
105417         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
105418         Remove unnecessary assertion and abort() call.
105419         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
105420         * m4/strptime.m4: Fix serial number comment.
105421         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
105422         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
105423         (Depends-on): Add time_r.
105425 2007-01-29  Bruno Haible  <bruno@clisp.org>
105427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105428         strptime.
105429         * modules/strptime (Depends-on): Add stdbool.
105430         * lib/strptime.h: Include <time.h> always. Add comments.
105432 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105434         * modules/strptime: New file.
105435         * lib/strptime.h: New file.
105436         * lib/strptime.c: New file.
105437         * m4/strptime.m4: New file.
105439 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105441         * MODULES.html.sh: New module mpsort.
105442         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
105444         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
105445         a circularity problem with HP-UX ia64 reported by Bob Proulx in
105446         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
105447         All uses changed.
105448         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
105449         All uses changed.
105450         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
105451         to _Restrict_.
105452         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
105453         the parameter matches the prototype.
105455 2007-01-28  Jim Meyering  <jim@meyering.net>
105457         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
105458         sys/time.h here, reverting that part of the previous patch:
105459         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
105461 2007-01-28  Bruno Haible  <bruno@clisp.org>
105463         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
105464         value of $(SYS_TIME_H).
105465         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
105466         remove it conditionally, too. [added by Jim Meyering]
105467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
105468         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105469         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
105470         GETTIMEOFDAY_REPLACEMENT to 1.
105472 2007-01-28  Bruno Haible  <bruno@clisp.org>
105474         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
105475         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
105476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
105477         Set UNISTD_H instead of UNISTD_H2.
105478         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
105480 2007-01-28  Bruno Haible  <bruno@clisp.org>
105482         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
105483         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
105485 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105487         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
105488         (func_create_testdir): Ensure C locale for `grep' and `tr'
105489         character ranges.
105490         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
105491         ACLOCAL_AMFLAGS parsing state machine.
105493 2007-01-27  Bruno Haible  <bruno@clisp.org>
105495         * modules/unistr/base: Update.
105497 2007-01-27  Bruno Haible  <bruno@clisp.org>
105499         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
105500         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
105501         * modules/unistr/u32-mbtouc-unsafe: Renamed from
105502         modules/unistr/u32-mbtouc.
105503         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
105504         * lib/unistr.h: Update.
105505         * lib/linebreak.c: Update.
105506         * modules/unistr/u32-mbtouc: Renamed from
105507         modules/unistr/u32-mbtouc-safe.
105508         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
105509         * lib/unistr.h: Update.
105510         * lib/unistr/u32-to-u8.c: Update.
105511         * lib/unistr/u32-to-u16.c: Update.
105513 2007-01-27  Bruno Haible  <bruno@clisp.org>
105515         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
105516         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
105517         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
105518         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
105519         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
105520         * modules/unistr/u16-mbtouc-unsafe: Renamed from
105521         modules/unistr/u16-mbtouc.
105522         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
105523         * lib/unistr.h: Update.
105524         * lib/linebreak.c: Update.
105525         * modules/linebreak: Update.
105526         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
105527         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
105528         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
105529         * modules/unistr/u16-mbtouc: Renamed from
105530         modules/unistr/u16-mbtouc-safe.
105531         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
105532         * lib/unistr.h: Update.
105533         * lib/unistr/u16-to-u8.c: Update.
105534         * modules/unistr/u16-to-u8: Update.
105535         * lib/unistr/u16-to-u32.c: Update.
105536         * modules/unistr/u16-to-u32: Update.
105538 2007-01-27  Bruno Haible  <bruno@clisp.org>
105540         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
105541         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
105542         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
105543         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
105544         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
105545         * modules/unistr/u8-mbtouc-unsafe: Renamed from
105546         modules/unistr/u8-mbtouc.
105547         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
105548         * lib/unistr.h: Update.
105549         * lib/striconveh.c: Update.
105550         * modules/striconveh: Update.
105551         * lib/linebreak.c: Update.
105552         * modules/linebreak: Update.
105553         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
105554         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
105555         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
105556         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
105557         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
105558         * lib/unistr.h: Update.
105559         * lib/striconveh.c: Update.
105560         * modules/striconveh: Update.
105561         * lib/unistr/u8-to-u16.c: Update.
105562         * modules/unistr/u8-to-u16: Update.
105563         * lib/unistr/u8-to-u32.c: Update.
105564         * modules/unistr/u8-to-u32: Update.
105566 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105568         Sync from Libtool.
105569         * lib/argz.c: Do not include strings.h nor memory.h, include
105570         string.h unconditionally.  Patch by Simon Josefsson.
105572 2007-01-27  Bruno Haible  <bruno@clisp.org>
105574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
105575         from gl_HEADER_STRING_H_BODY.
105576         (gl_HEADER_STRING_H_BODY): Require it.
105577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
105578         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
105579         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
105580         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
105581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105582         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
105583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
105584         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
105585         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
105586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
105587         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
105588         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
105589         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
105590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
105591         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105593 2007-01-27  Bruno Haible  <bruno@clisp.org>
105595         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
105596         check_PROGRAMS into noinst_PROGRAMS.
105597         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
105598         check_PROGRAMS in this case.
105599         (func_import): Set for_test to false.
105600         (func_create_testdir): Set for_test to true.
105602 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105603             Bruno Haible  <bruno@clisp.org>
105605         * modules/strcasestr (Files): Remove lib/strcasestr.h.
105606         (Depends-on): Add string.
105607         (Includes): Use <string.h> instead of strcasestr.h.
105608         * modules/string (Makefile.am): Also substitute the value of
105609         REPLACE_STRCASESTR.
105610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
105611         assume strcasestr is declared in <string.h> not <strings.h>. Also
105612         set REPLACE_STRCASESTR.
105613         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
105614         REPLACE_STRCASESTR.
105615         * lib/strcasestr.h: Remove file.
105616         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
105617         * lib/string_.h (strcasestr): New declaration.
105619 2007-01-27  Bruno Haible  <bruno@clisp.org>
105621         * lib/string_.h: Use 'extern'.
105623 2007-01-27  Jim Meyering  <jim@meyering.net>
105625         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
105626         of set-but-not-used local, "q".
105628         * lib/mempcpy.c: Include <config.h> before <string.h>.
105629         This fixes a compilation error on HP-UX, due to the system's
105630         "restrict"-using mempcpy prototype.
105632 2007-01-26  Bruno Haible  <bruno@clisp.org>
105634         Small optimization.
105635         * lib/javacomp.c: Include c-strstr.h.
105636          (is_envjavac_gcj): Use c_strstr instead of strstr.
105637         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
105639 2007-01-26  Bruno Haible  <bruno@clisp.org>
105641         * MODULES.html.sh (Unicode string functions): Add the new modules.
105643         * modules/uniconv/u32-strconv-to-locale: New file.
105644         * lib/uniconv/u32-strconv-to-locale.c: New file.
105646         * modules/uniconv/u16-strconv-to-locale: New file.
105647         * lib/uniconv/u16-strconv-to-locale.c: New file.
105649         * modules/uniconv/u8-strconv-to-locale: New file.
105650         * lib/uniconv/u8-strconv-to-locale.c: New file.
105652         * modules/uniconv/u32-strconv-from-locale: New file.
105653         * lib/uniconv/u32-strconv-from-locale.c: New file.
105655         * modules/uniconv/u16-strconv-from-locale: New file.
105656         * lib/uniconv/u16-strconv-from-locale.c: New file.
105658         * modules/uniconv/u8-strconv-from-locale: New file.
105659         * lib/uniconv/u8-strconv-from-locale.c: New file.
105661         * modules/uniconv/u32-strconv-to-enc: New file.
105662         * lib/uniconv/u32-strconv-to-enc.c: New file.
105663         * modules/uniconv/u32-strconv-to-enc-tests: New file.
105664         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
105666         * modules/uniconv/u16-strconv-to-enc: New file.
105667         * lib/uniconv/u16-strconv-to-enc.c: New file.
105668         * lib/uniconv/u-strconv-to-enc.h: New file.
105669         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105670         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105672         * modules/uniconv/u8-strconv-to-enc: New file.
105673         * lib/uniconv/u8-strconv-to-enc.c: New file.
105674         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105675         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105677         * modules/uniconv/u32-strconv-from-enc: New file.
105678         * lib/uniconv/u32-strconv-from-enc.c: New file.
105679         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105680         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105682         * modules/uniconv/u16-strconv-from-enc: New file.
105683         * lib/uniconv/u16-strconv-from-enc.c: New file.
105684         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105685         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105687         * modules/uniconv/u8-strconv-from-enc: New file.
105688         * lib/uniconv/u8-strconv-from-enc.c: New file.
105689         * lib/uniconv/u-strconv-from-enc.h: New file.
105690         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105691         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105693         * modules/uniconv/u32-conv-from-enc: New file.
105694         * lib/uniconv/u32-conv-from-enc.c: New file.
105695         * modules/uniconv/u32-conv-from-enc-tests: New file.
105696         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105698         * modules/uniconv/u16-conv-from-enc: New file.
105699         * lib/uniconv/u16-conv-from-enc.c: New file.
105700         * lib/uniconv/u-conv-from-enc.h: New file.
105701         * modules/uniconv/u16-conv-from-enc-tests: New file.
105702         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105704         * modules/uniconv/u8-conv-from-enc: New file.
105705         * lib/uniconv/u8-conv-from-enc.c: New file.
105706         * modules/uniconv/u8-conv-from-enc-tests: New file.
105707         * tests/uniconv/test-u8-conv-from-enc.c: New file.
105709         * modules/uniconv/base: New file.
105710         * lib/uniconv.h: New file.
105712 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
105714         * doc/gnulib-tool.texi (Initial import): Update to match current
105715         behavior with strdup module.
105716         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
105717         * lib/memmem.h: Remove; all uses removed.  This is now done
105718         by <string.h>.
105719         * lib/mempcpy.h: Likewise.
105720         * lib/memrchr.h: Likewise.
105721         * lib/stpcpy.h: Likewise.
105722         * lib/stpncpy.h: Likewise.
105723         * lib/strcase.h: Likewise.
105724         * lib/strchrnul.h: Likewise.
105725         * lib/strdup.h: Likewise.
105726         * lib/strndup.h: Likewise.
105727         * lib/strnlen.h: Likewise.
105728         * lib/strpbrk.h: Likewise.
105729         * lib/strsep.h: Likewise.
105730         * lib/strstr.h: Likewise.
105731         * lib/strtok_r.h: Likewise.
105732         * lib/string_.h: New file.
105733         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
105734         Rely on <string.h> instead.
105735         * lib/canon-host.c: Likewise.
105736         * lib/chdir-long.c: Likewise.
105737         * lib/concatpath.c: Likewise.
105738         * lib/exclude.c: Likewise.
105739         * lib/fchdir.c: Likewise.
105740         * lib/getaddrinfo.c: Likewise.
105741         * lib/getcwd.c: Likewise.
105742         * lib/getsubopt.c: Likewise.
105743         * lib/glob.c: Likewise.
105744         * lib/hard-locale.c: Likewise.
105745         * lib/iconvme.c: Likewise.
105746         * lib/javacomp.c: Likewise.
105747         * lib/mempcpy.c: Likewise.
105748         * lib/memrchr.c: Likewise.
105749         * lib/regex_internal.h: Likewise.
105750         * lib/stpncpy.c: Likewise.
105751         * lib/strcasecmp.c: Likewise.
105752         * lib/strchrnul.c: Likewise.
105753         * lib/strdup.c: Likewise.
105754         * lib/striconv.c: Likewise.
105755         * lib/striconveh.c: Likewise.
105756         * lib/striconveha.c: Likewise.
105757         * lib/strncasecmp.c: Likewise.
105758         * lib/strndup.c: Likewise.
105759         * lib/strnlen.c: Likewise.
105760         * lib/strsep.c: Likewise.
105761         * lib/strstr.c: Likewise.
105762         * lib/strtok_r.c: Likewise.
105763         * lib/userspec.c: Likewise.
105764         * lib/w32spawn.h: Likewise.
105765         * lib/xstrndup.c: Likewise.
105766         * lib/mountlist.c (strstr): Remove decl.
105767         * m4/string_h.m4: New file.
105768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
105769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
105770         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
105771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
105772         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
105773         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
105774         Set REPLACE_STRCASECMP if necessary.
105775         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
105776         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
105777         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
105778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
105779         HAVE_DECL_STRDUP if necessary.
105780         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
105781         since gl_FUNC_STRNDUP does that now.
105782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
105783         Check for decl here...
105784         (gl_PREREQ_STRNLEN): ... not here.
105785         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
105786         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
105787         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
105788         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
105789         necessary.
105790         * modules/string: New file.
105791         * modules/memmem (Files): Remove special-purpose include file.
105792         (Depends-on): Add string.
105793         (Include): Include <string.h>, not the removed file.
105794         * modules/mempcpy: Likewise.
105795         * modules/memrchr: Likewise.
105796         * modules/stpcpy: Likewise.
105797         * modules/stpncpy: Likewise.
105798         * modules/strcase: Likewise.
105799         * modules/strchrnul: Likewise.
105800         * modules/strdup: Likewise.
105801         * modules/strndup: Likewise.
105802         * modules/strnlen: Likewise.
105803         * modules/strpbrk: Likewise.
105804         * modules/strsep: Likewise.
105805         * modules/strstr: Likewise.
105806         * modules/strtok_r: Likewise.
105807         * tests/test-dirname.c: Don't include "strdup.h", since
105808         <string.h> now suffices.
105809         * tests/test-memmem.c: Don't include "memmem.h", since
105810         <string.h> now suffices.
105812 2007-01-25  Bruno Haible  <bruno@clisp.org>
105814         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105815         *resultp is 0.
105817         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105818         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105819         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105820         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105822         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105823         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105824         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105825         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105826         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105827         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105829 2007-01-24  Bruno Haible  <bruno@clisp.org>
105831         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105832         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105833         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105834         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105835         gl_FUNC_FTS_CORE.
105836         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105837         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105838         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105839         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105840         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105841         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105842         gl_FUNC_FCHOWNAT.
105843         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105844         gl_FUNC_STRFTIME.
105845         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105846         Reported by Ralf Wildenhues.
105848 2007-01-24  Bruno Haible  <bruno@clisp.org>
105850         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105851         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105852         gl_GETADDRINFO.
105853         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105854         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105855         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105857 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105860         Don't use 'exit'; just return from 'main'.
105861         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105863         * lib/fnmatch_.h: Readjust white space and comments to match
105864         glibc, to avoid spurious diffs.
105866 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105868         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105869         2004-12-01 change by Jakub Jelinek, since this code won't compile
105870         if !LIBC.  Problem reported by Bob Proulx.
105872 2007-01-23  Bruno Haible  <bruno@clisp.org>
105874         * lib/striconveh.c: Include c-strcaseeq.h.
105875         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105876         * modules/striconveh (Depends-on): Add c-strcaseeq.
105878 2007-01-23  Bruno Haible  <bruno@clisp.org>
105880         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105882         * modules/c-strcaseeq: New file.
105883         * lib/c-strcaseeq.h: New file.
105885         * modules/streq: New file.
105886         * lib/streq.h: New file.
105888 2007-01-23  Bruno Haible  <bruno@clisp.org>
105890         * modules/striconveha-tests: New file.
105891         * tests/test-striconveha.c: New file.
105893         * lib/striconveha.h: Include <stdbool.h>.
105894         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105895         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105896         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105897         (mem_iconveha): New function.
105898         (str_iconveha_notranslit): Renamed from str_iconveha.
105899         (str_iconveha): New function.
105900         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105901         c-strcase.
105903 2007-01-23  Bruno Haible  <bruno@clisp.org>
105905         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105906         encodings without forgiving before trying any encoding with handler.
105907         (str_iconveha): Try all encodings without forgiving before trying any
105908         encoding with handler.
105910 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105912         Import the following changes from libc.
105914         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105916         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105918         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105920         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105921         normal_bracket label.
105923         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105925         [BZ #361]
105926         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105927         to normal_bracket after fetching the next character.
105929 2007-01-22  Bruno Haible  <bruno@clisp.org>
105931         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105932         argument.
105933         * lib/striconveh.c (iconv_carefully_1): New function.
105934         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105935         argument.
105936         (str_cd_iconveh): Update.
105937         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105938         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105939         * tests/test-striconveh.c (MAGIC): New macro.
105940         (new_offsets): New function.
105941         (main): Test call with and without offsets.
105943 2007-01-22  Bruno Haible  <bruno@clisp.org>
105945         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105946         * modules/sys_select (Makefile.am): Likewise.
105947         * modules/sys_socket (Makefile.am): Likewise.
105948         * modules/sys_time (Makefile.am): Likewise.
105950 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105952         * modules/gettimeofday (License): Change from GPL to LGPL, since
105953         gettimeofday is a library function.
105955 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105957         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105959 2007-01-21  Bruno Haible  <bruno@clisp.org>
105961         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105963 2007-01-21  Bruno Haible  <bruno@clisp.org>
105965         * modules/striconveha: New file.
105966         * lib/striconveha.h: New file.
105967         * lib/striconveha.c: New file.
105968         * MODULES.html.sh (Internationalization functions): Add striconveha.
105969         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105970         string.
105971         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105973 2007-01-21  Bruno Haible  <bruno@clisp.org>
105975         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105976         * lib/striconveh.c (str_iconveh): Likewise.
105978 2007-01-21  Bruno Haible  <bruno@clisp.org>
105980         * lib/striconveh.h (mem_iconveh): New declaration.
105981         * lib/striconveh.c (mem_iconveh): New function.
105982         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105984 2007-01-21  Bruno Haible  <bruno@clisp.org>
105986         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105988         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105989         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105990         original result buffer.
105991         (str_cd_iconveh): Update.
105992         * tests/test-striconveh.c (main): Update.
105994         * lib/striconv.h (mem_cd_iconv): Change specification.
105995         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105996         result buffer.
105997         (str_cd_iconv): Update.
105998         * tests/test-striconv.c (main): Update.
106000 2007-01-21  Bruno Haible  <bruno@clisp.org>
106002         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
106004 2007-01-20  Jim Meyering  <jim@meyering.net>
106006         * lib/userspec.c (parse_with_separator): If a user or group string
106007         starts with "+", skip the corresponding name-to-ID look-up, since
106008         such a look-up must fail: user and group names may not include "+".
106010 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106012         * lib/poll.c: Include sys/time.h and time.h unconditionally,
106013         since we now assume the sys_time module.
106014         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
106015         check for sys/time.h; no longer needed.
106016         * modules/poll (Depends-on): Depend on sys_time.
106018 2007-01-18  Bruno Haible  <bruno@clisp.org>
106020         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
106021         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106023         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
106024         gettimeofday.
106026         * tests/test-gettimeofday.c: Include <time.h>.
106027         (dummy): Remove variable.
106029         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
106030         gl_HEADER_SYS_TIME_H.
106031         (gl_HEADER_SYS_TIME_H): New macro.
106033         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
106034         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
106036         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
106037         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106038         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
106039         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
106040         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106041         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
106042         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
106043         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106045         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
106046         last change; it caused a compilation error when cross-compiling to
106047         Cygwin.
106049 2007-01-18  Jim Meyering  <jim@meyering.net>
106051         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
106052         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
106053         than the race-prone "test -d sys || mkdir sys".
106054         (configure.ac): Use AC_PROG_MKDIR_P.
106055         * modules/sys_select: Likewise.
106056         * modules/sys_socket: Likewise.
106057         * modules/sys_time: Likewise.
106059 2007-01-18  Eric Blake  <ebb9@byu.net>
106061         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
106062         replace gettimeofday.
106063         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
106064         name, to avoid infinite recursion.
106066 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
106068         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
106069         module sys_time.
106070         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
106071         assume timespec.h defines struct timeval.
106072         * lib/settime.c: Likewise.
106073         * lib/utimens.c: Likewise.
106074         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
106075         since we now assume the gettimeofday module.
106076         * lib/tempname.c (__gen_tempname): Likewise.
106077         * lib/gettimeofday.h: Remove.
106078         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
106079         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
106080         Include <time.h>, for 'time()'.
106081         (localtime_buffer_addr): Also use this workaround if
106082         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
106083         to simplify the uses.  All uses changed.
106084         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
106085         that #undef is inside {}, and 'const' follows type name consistently.
106086         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
106087         (gettimeofday): Do not use the maximum possible value for
106088         tv->tv_usec, since that might break usages other than ls.c.
106089         Instead, we'll leave ls.c alone.  This undoes today's patch
106090         by Bruno.  Add a compile-time warning for 1s-clock resolution;
106091         we've never observed the problem but might as well keep the
106092         canary.
106093         * lib/nanosleep.c: Include timespec.h first, for interface check.
106094         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
106095         now assume the sys_time module.
106096         * lib/tempname.c: Likewise.
106097         * lib/timespec.h: Likewise.
106098         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
106099         needed.
106100         * lib/strftime.c: Likewise.
106101         * lib/timespec.h: Likewise.
106102         * lib/posixtm.c: Include posixtm.h first, for interface check.
106103         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
106104         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
106105         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
106106         * lib/sys_time_.h: New file.
106107         * lib/timespec.h (struct timespec): Use long int, not long.
106108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106109         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
106110         Remove obsolescent call to AC_HEADER_TIME.
106111         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
106112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106113         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106114         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
106115         Likewise.
106116         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
106117         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
106118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
106119         into the sys_time module.  Check for gettimeofday just once.
106120         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
106121         for gettimeofday signature to just check the signature.  Merely
106122         compile it, since linking doesn't test signature.  Improve test for
106123         whether gettimeofday.o is actually needed.
106124         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
106125         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
106126         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
106127         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106128         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
106129         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
106130         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
106131         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
106132         than worrying about sys/time.h.
106133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106134         Don't bother worrying about TIME_WITH_SYS_TIME.
106135         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
106136         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
106137         * m4/sys_time_h.m4: New file.
106138         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
106139         Don't include sys/time.h.  Return from main rather than exiting.
106140         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
106141         all uses changed.
106142         * modules/gethrxtime (Depends-on): Add sys_time.
106143         * modules/gettime (Depends-on): Likewise.
106144         * modules/gettimeofday (Depends-on): Likewise.
106145         * modules/nanosleep (Depends-on): Likewise.
106146         * modules/settime (Depends-on): Likewise.
106147         * modules/tempname (Depends-on): Likewise.
106148         * modules/utimens (Depends-on): Likewise.
106149         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
106150         (Include): Change back to <sys/time.h>.
106151         (Maintainer): Add self.
106152         * modules/sys_time: New file.
106153         * modules/tempname (Depends-on): Add gettimeofday.
106154         * tests/test-gettimeofday.c: Include <sys/time.h>
106155         rather than gettimeofday.h.
106157 2007-01-17  Bruno Haible  <bruno@clisp.org>
106159         * gnulib-tool (func_get_license): Revert last patch. Instead, let
106160         the license default to GPL.
106161         (func_create_testdir): Don't complain if a module is LGPL and its
106162         tests module depends on GPLed modules.
106164 2007-01-17  Bruno Haible  <bruno@clisp.org>
106166         * lib/gettimeofday.c (gettimeofday): Add code for the case
106167         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
106168         maximum possible value for tv->tv_usec, rather than the minimum one.
106170 2005-10-08  Martin Lambers  <marlam@marlam.de>
106171 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106172 2007-01-16  Bruno Haible  <bruno@clisp.org>
106174         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
106175         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
106176         gl_FUNC_GETTIMEOFDAY.
106177         (Include): Add gettimeofday.h.
106178         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
106179         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
106180         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
106181         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
106182         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
106183         * lib/gettimeofday.h: New file.
106184         * lib/gettimeofday.c: Include <sys/timeb.h>.
106185         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
106186         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106187         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
106188         fall back on time().
106190         * tests/test-gettimeofday.c: New file.
106191         * modules/gettimeofday-tests: New file.
106193 2007-01-16  Eric Blake  <ebb9@byu.net>
106195         * modules/fnmatch (Depends-on): Depend on wchar.
106196         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
106197         * m4/fnmatch.m4: Likewise.
106198         * modules/mbchar (Makefile.am): Assume <wchar.h>.
106199         * m4/mbchar.m4: Likewise.
106200         * modules/mbswidth (Depends-on): Depend on wchar.
106201         * lib/mbswidth.c: Assume <wchar.h>.
106202         * m4/mbswidth.m4: Likewise.
106203         * modules/quotearg (Depends-on): Depend on wchar.
106204         * lib/quotearg.c: Assume <wchar.h>.
106205         * m4/quotearg.m4: Likewise.
106206         * modules/regex (Depends-on): Depend on wchar.
106207         * lib/regex_internal.h: Assume <wchar.h>.
106208         * m4/regex.m4: Likewise.
106209         * modules/stdint (Depends-on): Depend on wchar.
106210         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
106211         * m4/stdint.m4: Likewise.
106212         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
106213         * modules/strftime (Depends-on): Depend on wchar.
106214         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
106215         * modules/strtol (Depends-on): Depend on wchar.
106216         * lib/strtol.c: Assume <wchar.h>.
106217         * modules/wcwidth (Depends-on): Depend on wchar.
106218         * lib/wcwidth.h: Assume <wchar.h>.
106219         * m4/wcwidth.m4: Likewise.
106221 2007-01-16  Bruno Haible  <bruno@clisp.org>
106223         * modules/csharpexec-script: New, created from...
106224         * modules/csharpexec: ... this.
106226 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
106228         * modules/javaexec-script: New, created from...
106229         * modules/javaexec: ... this.
106231 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106233         * modules/poll (Dependencies): Add sys_select.
106235 2007-01-15  Jim Meyering  <jim@meyering.net>
106237         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
106238         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
106239         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
106240         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
106242 2007-01-15  Bruno Haible  <bruno@clisp.org>
106244         * modules/striconveh: New file.
106245         * lib/striconveh.h: New file.
106246         * lib/striconveh.c: New file.
106247         * MODULES.html.sh (Internationalization functions): Add striconveh.
106249         * modules/striconveh-tests: New file.
106250         * tests/test-striconveh.c: New file.
106252 2007-01-15  Bruno Haible  <bruno@clisp.org>
106254         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
106255         not from GNU libiconv or GNU libc.
106257 2007-01-15  Bruno Haible  <bruno@clisp.org>
106259         * doc/gnulib-intro.texi (Copyright): Explain the different license
106260         terms for module descriptions, autoconf macros, tests, documentation.
106262 2007-01-14  Bruno Haible  <bruno@clisp.org>
106264         * modules/striconv-tests: New file.
106265         * tests/test-striconv.c: New file.
106267 2007-01-14  Bruno Haible  <bruno@clisp.org>
106269         * modules/iconv-tests: New file.
106270         * tests/test-iconv.c: New file.
106272 2007-01-14  Bruno Haible  <bruno@clisp.org>
106274         * gnulib-tool (func_get_license): For test modules, use the license of
106275         the main module.
106277 2007-01-14  Bruno Haible  <bruno@clisp.org>
106279         * modules/iconv (Include): Clarify that <iconv.h> can only be included
106280         if iconv is found to exist.
106282 2007-01-14  Bruno Haible  <bruno@clisp.org>
106284         * modules/c-ctype-tests: New file.
106285         * tests/test-c-ctype.c: New file.
106287 2007-01-14  Bruno Haible  <bruno@clisp.org>
106289         * modules/binary-io-tests: New file.
106290         * tests/test-binary-io.sh: New file.
106291         * tests/test-binary-io.c: New file.
106293 2007-01-14  Bruno Haible  <bruno@clisp.org>
106295         * modules/array-oset-tests: New file.
106296         * tests/test-array_oset.c: New file.
106298 2007-01-14  Bruno Haible  <bruno@clisp.org>
106300         * modules/array-list-tests: New file.
106301         * tests/test-array_list.c: New file.
106303 2007-01-14  Bruno Haible  <bruno@clisp.org>
106305         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
106306         and make.
106307         Reported by Simon Josefsson in
106308         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
106310 2007-01-14  Bruno Haible  <bruno@clisp.org>
106312         * modules/allocsa-tests: New file.
106313         * tests/test-allocsa.c: New file.
106315 2007-01-14  Bruno Haible  <bruno@clisp.org>
106317         * modules/fchdir (Depends-on): Add absolute-header.
106318         * modules/unistd (Depends-on): Likewise.
106320 2006-12-30  Bruno Haible  <bruno@clisp.org>
106322         * modules/fchdir: New file.
106323         * modules/unistd (Files): Add lib/unistd_.h.
106324         (Makefile.am): Generate unistd.h from unistd_.h.
106325         * lib/fchdir.c: New file.
106326         * lib/dirent_.h: New file.
106327         * lib/unistd_.h: New file.
106328         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
106329         * m4/fchdir.m4: New file.
106330         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
106331         (gl_HEADER_UNISTD): Invoke it.
106332         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
106333         function.
106334         * lib/backupfile.c (opendir, closedir): Undefine.
106335         * lib/chown.c (open, close): Undefine.
106336         * lib/clean-temp.c (open, close): Undefine.
106337         * lib/copy-file.c (open, close): Undefine.
106338         * lib/execute.c (open, close): Undefine.
106339         * lib/fsusage.c (open, close): Undefine.
106340         * lib/gc-gnulib.c (open, close): Undefine.
106341         * lib/getcwd.c (opendir, closedir): Undefine.
106342         * lib/glob.c (opendir, closedir): Undefine.
106343         * lib/javacomp.c (open, close): Undefine.
106344         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
106345         * lib/openat-proc.c (open, close): Undefine.
106346         * lib/pagealign_alloc.c (open, close): Undefine.
106347         * lib/pipe.c (open, close): Undefine.
106348         * lib/progreloc.c (open, close): Undefine.
106349         * lib/savedir.c (opendir, closedir): Undefine.
106350         * lib/utime.c (open, close): Undefine.
106351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
106353 2007-01-10  Bruno Haible  <bruno@clisp.org>
106355         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
106357 2007-01-12  Eric Blake  <ebb9@byu.net>
106359         Provide a robust <wchar.h>.  Further simplifications are now
106360         possible in other modules, but not included here.
106361         * modules/wchar: New module.
106362         * m4/wchar.m4: New file.
106363         * lib/wchar_.h: Likewise.
106364         * modules/mbchar (Depends-on): Depend on wchar, as the first use
106365         of the new module.
106366         * MODULES.html.sh (Extended multibyte and wide character utilities):
106367         New section.
106369 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
106371         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
106372         to a reasonable default for memory allocation.
106373         (xreadlink): Don't allocate a huge buffer, to work around a buggy
106374         file system that reports garbage st_size values for symlinks.
106375         Problem reported by Liyang Hu.
106377 2007-01-11  Simon Josefsson  <simon@josefsson.org>
106379         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
106380         Emacs .#* auto-save files).
106382 2007-01-11  Bruno Haible  <bruno@clisp.org>
106384         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
106385         directory.
106387 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
106389         Use @...@ consistently in lib/wctype_.h.
106390         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
106391         on it being set to 1 or 0.
106392         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
106393         go back to AC_SUBSTing it.
106394         * modules/wctype (Makefile.am): Undo previous change.
106396 2007-01-10  Eric Blake  <ebb9@byu.net>
106398         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
106399         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
106400         * modules/wctype (Makefile.am): Likewise.
106401         Reported by Chris McGuire.
106403 2007-01-10  Jim Meyering  <jim@meyering.net>
106405         fts.c: a small readability/maintainability improvement
106406         * lib/fts.c (fts_read): Make this code slightly more readable and
106407         maintainable by hoisting the "sp->fts_cur = p" assignments to
106408         immediately follow the statements that set P.  Derived from
106409         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
106411 2007-01-10  Eric Blake  <ebb9@byu.net>
106413         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
106414         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
106415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106416         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
106417         Reported by Chris McGuire.
106419 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106421         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
106422         in sed script.
106424 2007-01-09  Bruno Haible  <bruno@clisp.org>
106426         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
106427         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
106428         variables.
106429         (func_module): Use them.
106431 2007-01-09  Bruno Haible  <bruno@clisp.org>
106433         * modules/unistr/base: New file.
106434         * lib/unistr.h: New file.
106436         * modules/unistr/u8-to-u16: New file.
106437         * lib/unistr/u8-to-u16.c: New file.
106439         * modules/unistr/u8-to-u32: New file.
106440         * lib/unistr/u8-to-u32.c: New file.
106442         * modules/unistr/u16-to-u8: New file.
106443         * lib/unistr/u16-to-u8.c: New file.
106445         * modules/unistr/u16-to-u32: New file.
106446         * lib/unistr/u16-to-u32.c: New file.
106448         * modules/unistr/u32-to-u8: New file.
106449         * lib/unistr/u32-to-u8.c: New file.
106451         * modules/unistr/u32-to-u16: New file.
106452         * lib/unistr/u32-to-u16.c: New file.
106454         * modules/unistr/u8-check: New file.
106455         * modules/unistr/u16-check: New file.
106456         * modules/unistr/u32-check: New file.
106457         * lib/unistr/u8-check.c: New file.
106458         * lib/unistr/u16-check.c: New file.
106459         * lib/unistr/u32-check.c: New file.
106461         * modules/unistr/u8-chr: New file.
106462         * modules/unistr/u16-chr: New file.
106463         * modules/unistr/u32-chr: New file.
106464         * lib/unistr/u8-chr.c: New file.
106465         * lib/unistr/u16-chr.c: New file.
106466         * lib/unistr/u32-chr.c: New file.
106468         * modules/unistr/u8-cmp: New file.
106469         * modules/unistr/u16-cmp: New file.
106470         * modules/unistr/u32-cmp: New file.
106471         * lib/unistr/u8-cmp.c: New file.
106472         * lib/unistr/u16-cmp.c: New file.
106473         * lib/unistr/u32-cmp.c: New file.
106475         * modules/unistr/u8-cpy: New file.
106476         * modules/unistr/u16-cpy: New file.
106477         * modules/unistr/u32-cpy: New file.
106478         * lib/unistr/u8-cpy.c: New file.
106479         * lib/unistr/u16-cpy.c: New file.
106480         * lib/unistr/u32-cpy.c: New file.
106481         * lib/unistr/u-cpy.h: New file.
106483         * modules/unistr/u8-cpy-alloc: New file.
106484         * modules/unistr/u16-cpy-alloc: New file.
106485         * modules/unistr/u32-cpy-alloc: New file.
106486         * lib/unistr/u8-cpy-alloc.c: New file.
106487         * lib/unistr/u16-cpy-alloc.c: New file.
106488         * lib/unistr/u32-cpy-alloc.c: New file.
106489         * lib/unistr/u-cpy-alloc.h: New file.
106491         * modules/unistr/u8-endswith: New file.
106492         * modules/unistr/u16-endswith: New file.
106493         * modules/unistr/u32-endswith: New file.
106494         * lib/unistr/u8-endswith.c: New file.
106495         * lib/unistr/u16-endswith.c: New file.
106496         * lib/unistr/u32-endswith.c: New file.
106497         * lib/unistr/u-endswith.h: New file.
106499         * modules/unistr/u8-mblen: New file.
106500         * modules/unistr/u16-mblen: New file.
106501         * modules/unistr/u32-mblen: New file.
106502         * lib/unistr/u8-mblen.c: New file.
106503         * lib/unistr/u16-mblen.c: New file.
106504         * lib/unistr/u32-mblen.c: New file.
106506         * modules/unistr/u8-mbtouc: New file.
106507         * modules/unistr/u16-mbtouc: New file.
106508         * modules/unistr/u32-mbtouc: New file.
106509         * lib/unistr/u8-mbtouc.c: New file.
106510         * lib/unistr/u16-mbtouc.c: New file.
106511         * lib/unistr/u32-mbtouc.c: New file.
106513         * modules/unistr/u8-mbtouc-safe: New file.
106514         * modules/unistr/u16-mbtouc-safe: New file.
106515         * modules/unistr/u32-mbtouc-safe: New file.
106516         * lib/unistr/u8-mbtouc-safe.c: New file.
106517         * lib/unistr/u16-mbtouc-safe.c: New file.
106518         * lib/unistr/u32-mbtouc-safe.c: New file.
106520         * modules/unistr/u8-move: New file.
106521         * modules/unistr/u16-move: New file.
106522         * modules/unistr/u32-move: New file.
106523         * lib/unistr/u8-move.c: New file.
106524         * lib/unistr/u16-move.c: New file.
106525         * lib/unistr/u32-move.c: New file.
106526         * lib/unistr/u-move.h: New file.
106528         * modules/unistr/u8-next: New file.
106529         * modules/unistr/u16-next: New file.
106530         * modules/unistr/u32-next: New file.
106531         * lib/unistr/u8-next.c: New file.
106532         * lib/unistr/u16-next.c: New file.
106533         * lib/unistr/u32-next.c: New file.
106535         * modules/unistr/u8-prev: New file.
106536         * modules/unistr/u16-prev: New file.
106537         * modules/unistr/u32-prev: New file.
106538         * lib/unistr/u8-prev.c: New file.
106539         * lib/unistr/u16-prev.c: New file.
106540         * lib/unistr/u32-prev.c: New file.
106542         * modules/unistr/u8-set: New file.
106543         * modules/unistr/u16-set: New file.
106544         * modules/unistr/u32-set: New file.
106545         * lib/unistr/u8-set.c: New file.
106546         * lib/unistr/u16-set.c: New file.
106547         * lib/unistr/u32-set.c: New file.
106548         * lib/unistr/u-set.h: New file.
106550         * modules/unistr/u8-startswith: New file.
106551         * modules/unistr/u16-startswith: New file.
106552         * modules/unistr/u32-startswith: New file.
106553         * lib/unistr/u8-startswith.c: New file.
106554         * lib/unistr/u16-startswith.c: New file.
106555         * lib/unistr/u32-startswith.c: New file.
106556         * lib/unistr/u-startswith.h: New file.
106558         * modules/unistr/u8-stpcpy: New file.
106559         * modules/unistr/u16-stpcpy: New file.
106560         * modules/unistr/u32-stpcpy: New file.
106561         * lib/unistr/u8-stpcpy.c: New file.
106562         * lib/unistr/u16-stpcpy.c: New file.
106563         * lib/unistr/u32-stpcpy.c: New file.
106564         * lib/unistr/u-stpcpy.h: New file.
106566         * modules/unistr/u8-stpncpy: New file.
106567         * modules/unistr/u16-stpncpy: New file.
106568         * modules/unistr/u32-stpncpy: New file.
106569         * lib/unistr/u8-stpncpy.c: New file.
106570         * lib/unistr/u16-stpncpy.c: New file.
106571         * lib/unistr/u32-stpncpy.c: New file.
106572         * lib/unistr/u-stpncpy.h: New file.
106574         * modules/unistr/u8-strcat: New file.
106575         * modules/unistr/u16-strcat: New file.
106576         * modules/unistr/u32-strcat: New file.
106577         * lib/unistr/u8-strcat.c: New file.
106578         * lib/unistr/u16-strcat.c: New file.
106579         * lib/unistr/u32-strcat.c: New file.
106580         * lib/unistr/u-strcat.h: New file.
106582         * modules/unistr/u8-strchr: New file.
106583         * modules/unistr/u16-strchr: New file.
106584         * modules/unistr/u32-strchr: New file.
106585         * lib/unistr/u8-strchr.c: New file.
106586         * lib/unistr/u16-strchr.c: New file.
106587         * lib/unistr/u32-strchr.c: New file.
106589         * modules/unistr/u8-strcmp: New file.
106590         * modules/unistr/u16-strcmp: New file.
106591         * modules/unistr/u32-strcmp: New file.
106592         * lib/unistr/u8-strcmp.c: New file.
106593         * lib/unistr/u16-strcmp.c: New file.
106594         * lib/unistr/u32-strcmp.c: New file.
106596         * modules/unistr/u8-strcpy: New file.
106597         * modules/unistr/u16-strcpy: New file.
106598         * modules/unistr/u32-strcpy: New file.
106599         * lib/unistr/u8-strcpy.c: New file.
106600         * lib/unistr/u16-strcpy.c: New file.
106601         * lib/unistr/u32-strcpy.c: New file.
106602         * lib/unistr/u-strcpy.h: New file.
106604         * modules/unistr/u8-strcspn: New file.
106605         * modules/unistr/u16-strcspn: New file.
106606         * modules/unistr/u32-strcspn: New file.
106607         * lib/unistr/u8-strcspn.c: New file.
106608         * lib/unistr/u16-strcspn.c: New file.
106609         * lib/unistr/u32-strcspn.c: New file.
106610         * lib/unistr/u-strcspn.h: New file.
106612         * modules/unistr/u8-strdup: New file.
106613         * modules/unistr/u16-strdup: New file.
106614         * modules/unistr/u32-strdup: New file.
106615         * lib/unistr/u8-strdup.c: New file.
106616         * lib/unistr/u16-strdup.c: New file.
106617         * lib/unistr/u32-strdup.c: New file.
106618         * lib/unistr/u-strdup.h: New file.
106620         * modules/unistr/u8-strlen: New file.
106621         * modules/unistr/u16-strlen: New file.
106622         * modules/unistr/u32-strlen: New file.
106623         * lib/unistr/u8-strlen.c: New file.
106624         * lib/unistr/u16-strlen.c: New file.
106625         * lib/unistr/u32-strlen.c: New file.
106626         * lib/unistr/u-strlen.h: New file.
106628         * modules/unistr/u8-strmblen: New file.
106629         * modules/unistr/u16-strmblen: New file.
106630         * modules/unistr/u32-strmblen: New file.
106631         * lib/unistr/u8-strmblen.c: New file.
106632         * lib/unistr/u16-strmblen.c: New file.
106633         * lib/unistr/u32-strmblen.c: New file.
106635         * modules/unistr/u8-strmbtouc: New file.
106636         * modules/unistr/u16-strmbtouc: New file.
106637         * modules/unistr/u32-strmbtouc: New file.
106638         * lib/unistr/u8-strmbtouc.c: New file.
106639         * lib/unistr/u16-strmbtouc.c: New file.
106640         * lib/unistr/u32-strmbtouc.c: New file.
106642         * modules/unistr/u8-strncat: New file.
106643         * modules/unistr/u16-strncat: New file.
106644         * modules/unistr/u32-strncat: New file.
106645         * lib/unistr/u8-strncat.c: New file.
106646         * lib/unistr/u16-strncat.c: New file.
106647         * lib/unistr/u32-strncat.c: New file.
106648         * lib/unistr/u-strncat.h: New file.
106650         * modules/unistr/u8-strncmp: New file.
106651         * modules/unistr/u16-strncmp: New file.
106652         * modules/unistr/u32-strncmp: New file.
106653         * lib/unistr/u8-strncmp.c: New file.
106654         * lib/unistr/u16-strncmp.c: New file.
106655         * lib/unistr/u32-strncmp.c: New file.
106657         * modules/unistr/u8-strncpy: New file.
106658         * modules/unistr/u16-strncpy: New file.
106659         * modules/unistr/u32-strncpy: New file.
106660         * lib/unistr/u8-strncpy.c: New file.
106661         * lib/unistr/u16-strncpy.c: New file.
106662         * lib/unistr/u32-strncpy.c: New file.
106663         * lib/unistr/u-strncpy.h: New file.
106665         * modules/unistr/u8-strnlen: New file.
106666         * modules/unistr/u16-strnlen: New file.
106667         * modules/unistr/u32-strnlen: New file.
106668         * lib/unistr/u8-strnlen.c: New file.
106669         * lib/unistr/u16-strnlen.c: New file.
106670         * lib/unistr/u32-strnlen.c: New file.
106671         * lib/unistr/u-strnlen.h: New file.
106673         * modules/unistr/u8-strpbrk: New file.
106674         * modules/unistr/u16-strpbrk: New file.
106675         * modules/unistr/u32-strpbrk: New file.
106676         * lib/unistr/u8-strpbrk.c: New file.
106677         * lib/unistr/u16-strpbrk.c: New file.
106678         * lib/unistr/u32-strpbrk.c: New file.
106679         * lib/unistr/u-strpbrk.h: New file.
106681         * modules/unistr/u8-strrchr: New file.
106682         * modules/unistr/u16-strrchr: New file.
106683         * modules/unistr/u32-strrchr: New file.
106684         * lib/unistr/u8-strrchr.c: New file.
106685         * lib/unistr/u16-strrchr.c: New file.
106686         * lib/unistr/u32-strrchr.c: New file.
106688         * modules/unistr/u8-strspn: New file.
106689         * modules/unistr/u16-strspn: New file.
106690         * modules/unistr/u32-strspn: New file.
106691         * lib/unistr/u8-strspn.c: New file.
106692         * lib/unistr/u16-strspn.c: New file.
106693         * lib/unistr/u32-strspn.c: New file.
106694         * lib/unistr/u-strspn.h: New file.
106696         * modules/unistr/u8-strstr: New file.
106697         * modules/unistr/u16-strstr: New file.
106698         * modules/unistr/u32-strstr: New file.
106699         * lib/unistr/u8-strstr.c: New file.
106700         * lib/unistr/u16-strstr.c: New file.
106701         * lib/unistr/u32-strstr.c: New file.
106702         * lib/unistr/u-strstr.h: New file.
106704         * modules/unistr/u8-strtok: New file.
106705         * modules/unistr/u16-strtok: New file.
106706         * modules/unistr/u32-strtok: New file.
106707         * lib/unistr/u8-strtok.c: New file.
106708         * lib/unistr/u16-strtok.c: New file.
106709         * lib/unistr/u32-strtok.c: New file.
106710         * lib/unistr/u-strtok.h: New file.
106712         * modules/unistr/u8-uctomb: New file.
106713         * modules/unistr/u16-uctomb: New file.
106714         * modules/unistr/u32-uctomb: New file.
106715         * lib/unistr/u8-uctomb.c: New file.
106716         * lib/unistr/u16-uctomb.c: New file.
106717         * lib/unistr/u32-uctomb.c: New file.
106719         * MODULES.html.sh (Unicode string functions): Add the new modules.
106721 2007-01-08  Bruno Haible  <bruno@clisp.org>
106723         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
106724         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
106725         subdirectories.
106727 2007-01-08  Karl Berry  <karl@gnu.org>
106729         * doc/error.texi: mention that main() fns must set program_name
106730         when progname is used.
106732 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
106734         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
106735         WCTYPE_H is empty, for the benefit of builds from non-distclean
106736         directories.  Problem reported by Eric Blake in
106737         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
106739 2007-01-08  Bruno Haible  <bruno@clisp.org>
106741         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
106742         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
106743         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
106744         PROVIDE_CANONICALIZE_FILENAME_MODE.
106745         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
106747 2007-01-08  Bruno Haible  <bruno@clisp.org>
106749         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
106750         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
106751         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
106752         * lib/fts.c: Likewise.
106753         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
106755 2006-12-25  Bruno Haible  <bruno@clisp.org>
106757         * modules/utf8-ucs4-safe: New file.
106758         * lib/utf8-ucs4-safe.h: New file.
106759         * lib/unistr/utf8-ucs4-safe.c: New file.
106761         * modules/utf16-ucs4-safe: New file.
106762         * lib/utf16-ucs4-safe.h: New file.
106763         * lib/unistr/utf16-ucs4-safe.c: New file.
106765         * MODULES.html.sh (Unicode string functions): Add the new modules.
106767 2007-01-08  Bruno Haible  <bruno@clisp.org>
106769         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
106770         (Depends-on): Add unitypes.
106771         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106772         (u8_mbtouc_aux): Move out to separate file.
106773         (u8_mbtouc): Use ucs4_t, uint8_t types.
106774         * lib/unistr/utf8-ucs4.c: New file.
106776         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
106777         (Depends-on): Add unitypes.
106778         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106779         (u16_mbtouc_aux): Move out to separate file.
106780         (u16_mbtouc): Use ucs4_t, uint16_t types.
106781         * lib/unistr/utf16-ucs4.c: New file.
106783         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
106784         (Depends-on): Add unitypes.
106785         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
106786         (u8_uctomb_aux): Move out to separate file.
106787         (u8_uctomb): Use ucs4_t, uint8_t types.
106788         * lib/unistr/ucs4-utf8.c: New file.
106790         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
106791         (Depends-on): Add unitypes.
106792         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
106793         (u16_uctomb_aux): Move out to separate file.
106794         (u16_uctomb): Use ucs4_t, uint16_t types.
106795         * lib/unistr/ucs4-utf16.c: New file.
106797 2006-12-25  Bruno Haible  <bruno@clisp.org>
106799         * modules/unitypes: New file.
106800         * lib/unitypes.h: New file.
106801         * MODULES.html.sh (func_all_modules): New section "Unicode string
106802         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
106803         this section. Add unitypes.
106805 2007-01-08  Bruno Haible  <bruno@clisp.org>
106807         Avoid variable names that conflict with those from libtool.
106808         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106809         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106810         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106811         library_names_spec to acl_library_names_spec, hardcode_* to
106812         acl_hardcode_*.
106813         Reported by Ralf Wildenhues.
106815 2007-01-08  Bruno Haible  <bruno@clisp.org>
106817         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106818         definition.
106819         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106820         definition.
106821         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106822         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106823         definition.
106824         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106825         definition.
106826         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106827         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106828         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106829         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106830         definition.
106831         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106832         definition.
106833         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106834         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106835         GC_USE_<algorithm>.
106836         * lib/gc-libgcrypt.c: Likewise.
106837         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106838         * modules/gc-arctwo (configure.ac): Likewise.
106839         * modules/gc-des (configure.ac): Likewise.
106840         * modules/gc-hmac-md5 (configure.ac): Likewise.
106841         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106842         * modules/gc-md2 (configure.ac): Likewise.
106843         * modules/gc-md4 (configure.ac): Likewise.
106844         * modules/gc-md5 (configure.ac): Likewise.
106845         * modules/gc-random (configure.ac): Likewise.
106846         * modules/gc-rijndael (configure.ac): Likewise.
106847         * modules/gc-sha1 (configure.ac): Likewise.
106849 2007-01-08  Bruno Haible  <bruno@clisp.org>
106851         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106852         macro definition.
106853         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106854         definition.
106855         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106856         definition.
106857         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106858         * modules/fcntl-safer (configure.ac): Likewise.
106859         * modules/fopen-safer (configure.ac): Likewise.
106860         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106861         GNULIB_FWRITEERROR macro definition.
106863 2007-01-08  Bruno Haible  <bruno@clisp.org>
106865         * m4/gnulib-common.m4: New file.
106866         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106867         (func_get_filelist): Add m4/gnulib-common.m4.
106869 2007-01-08  Bruno Haible  <bruno@clisp.org>
106871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106872         command.
106874 2007-01-08  Jim Meyering  <jim@meyering.net>
106876         Use a more robust test for a "can't happen" condition.
106877         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106878         narrowed the st_size value.  Presuming the "can't happen" condition
106879         is true, that narrowing could conceivably convert an invalid st_size
106880         value into a valid one.  Instead, use a change based on Matthew
106881         Woehlke's original patch.
106883         Slight readability improvement: use an assert-like macro
106884         in place of literal "abort ()" uses.
106885         * lib/fts.c (fts_assert): Define.
106886         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106887         Use this macro instead of a bare 'abort'.
106889 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106891         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106892         simply work around them.
106893         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106894         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106895         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106896         declaring.
106897         Don't bother to define as macros, since the standard doesn't require it.
106898         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106899         longer worry about IRIX 5.3.
106900         (HAVE_WCTYPE_CTMP_BUG): Remove.
106902 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106904         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106905         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106906         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106907         Problems reported by Georg Schwarz for IRIX 5.3.
106909         * gnulib-tool (autoconf_minversion): Take the maximum version number
106910         found, not the minimum.  Problem reported by James Youngman.
106912 2007-01-03  Karl Berry  <karl@gnu.org>
106914         * doc/error.texi: new file, explaining interaction with progname.
106915         * doc/gnulib.texi: include it.  Update copyright.
106917 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106919         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106920         AC_CANONICAL_HOST, to improve autobuild outputs.
106922 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106923             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106925         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106926         sockets, server sockets, and other file descriptors.  Count errors
106927         to compute the return value.  Reorder the code a bit to be easier
106928         to follow.  Don't set event bits that were not requested (except
106929         POLLERR and POLLHUP).
106931 2007-01-01  Bruno Haible  <bruno@clisp.org>
106933         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106935 2007-01-03  Jim Meyering  <jim@meyering.net>
106937         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106939 2007-01-02  Bruno Haible  <bruno@clisp.org>
106941         * modules/settime (Include): Require timespec.h.
106942         * modules/nanosleep (Include): Likewise.
106944 2007-01-01  Bruno Haible  <bruno@clisp.org>
106946         * gnulib-tool (func_emit_copyright_notice): Bump year.
106947         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106949 2007-01-01  Bruno Haible  <bruno@clisp.org>
106951         Improve support for OpenBSD.
106952         * build-aux/config.rpath (libname_spec): Export.
106953         (library_names_spec): New variable. Export.
106954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106955         library_names_spec from the config.rpath output. Locate shared library
106956         through the name pattern in library_names_spec.
106958 2007-01-01  Eric Blake  <ebb9@byu.net>
106960         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106962 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106964         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106965         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106966         assume the C locale, and avoid an "eval" that could cause trouble.
106967         Problem with SORT reported by Bob Proulx.
106969         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106970         Define.  Trivial patch from Henning Nielsen Lund, originally
106971         sent to bug-grep@gnu.org today.
106973 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106975         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106976         struct stat.  Problem reported by Henning Nielsen Lund.
106977         * lib/acl.c: Include acl.h first, to check interface.  Don't
106978         bother to include sys/types.h and sys/stat.h again.
106980 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106982         Import the following change from libc; problem reported by
106983         Sven Verdoolaege.
106985         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106987         [BZ #1373]
106988         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106990 2006-12-28  Jim Meyering  <jim@meyering.net>
106992         * build-aux/announce-gen: Do not assume that the package
106993         builds any of tar.gz, tar.bz2, and .xdelta files.
106994         Suggestion from Simon Josefsson.
106996 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106998         * modules/announce-gen: New file.
107000 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
107002         * lib/mbchar.h: Just include <wctype.h>; the wctype module
107003         handles its gotchas now.
107004         * lib/mbswidth.c: Likewise.
107005         * lib/wcwidth.h: Likewise.
107006         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
107007         and iswcntrl; the wctype module does this stuff now.
107008         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
107009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
107010         * modules/mbchar (Depends-on): Add wctype.
107011         * modules/mbswidth (Depends-on): Likewise.
107012         * modules/wcwidth (Depends-on): Likewise.
107014 2006-12-27  Eric Blake  <ebb9@byu.net>
107016         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
107017         module uses more than what <wctype.h> is required to provide.
107019 2006-12-26  Eric Blake  <ebb9@byu.net>
107021         * gnulib-tool (sed_extract_prog): Avoid space-tab.
107023 2006-12-26  Eric Blake  <ebb9@byu.net>
107025         * modules/absolute-header: New module.
107026         * modules/fcntl (Depends-on): Depend on it.
107027         * modules/inttypes (Depends-on): Likewise.
107028         * modules/stdint (Depends-on): Likewise.
107029         * modules/sys_stat (Depends-on): Likewise.
107030         * modules/wctype (Depends-on): Likewise.
107031         * MODULES.html.sh (Support for building libraries and
107032         executables): Document it.
107034 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
107036         * gnulib-tool (SED): Remove, undoing previous change.
107037         The problem was that it broke coreutils on Solaris, because
107038         "sed --posix" leaked into a makefile.
107039         (sed): New alias, if 'alias' and GNU sed.
107041 2006-12-24  Jim Meyering  <jim@meyering.net>
107043         Work around an fchownat bug in glibc-2.4:
107044         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
107045         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
107046         in spite of the -P option.
107047         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
107048         New macros.
107049         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
107050         * modules/openat (Files): Add lib/fchownat.c.
107051         * lib/openat.c (fchownat): Don't define here.  Move to...
107052         * lib/fchownat.c: ...this new file.
107054 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107056         Fix bug reported by Bruno Haible in
107057         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
107058         where quotearg.c didn't compile on Mac OS X 10.2 because it
107059         lacks <wchar.h> and wint_t.
107060         * lib/wctype_.h (__wctype_wint_t): New type.
107061         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
107062         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
107063         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
107064         Arg is now of type __wctype_wint_t, not wint_t.
107065         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
107066         substitute HAVE_WINT_T.
107067         * modules/wctype (Files): Add m4/wint_t.m4.
107068         (wctype.h): Substitute HAVE_WINT_T.
107070 2006-12-23  Bruno Haible  <bruno@clisp.org>
107072         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
107074 2006-12-23  Bruno Haible  <bruno@clisp.org>
107076         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
107077         S_ISLNK.
107078         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
107079         mingw.
107081 2006-12-22  Bruno Haible  <bruno@clisp.org>
107083         * lib/copy-file.c: Include acl.h.
107084         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
107085         Close the file descriptors only after being done with copy_acl.
107086         * modules/copy-file (Depends-on): Add acl.
107088 2006-12-22  Bruno Haible  <bruno@clisp.org>
107090         * gnulib-tool (SED): New variable.
107091         Use $SED instead of sed everywhere.
107093 2006-12-22  Bruno Haible  <bruno@clisp.org>
107095         * modules/no-c++: New file.
107096         * m4/no-c++.m4: New file.
107097         * MODULES.html.sh (Support for building libraries and executables):
107098         Add no-c++.
107100 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
107102         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107103         Include <limits.h>, and use its INT_MAX to rewrite the
107104         j loop so that it does not overflow 'int'.  Problem reported by
107105         Ralf Wildenhues in
107106         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
107107         Play it safe by shifting left by 1 rather than multiplying by 2,
107108         as GCC is less likely to optimize this away when the value
107109         is signed (when it assumes overflow leads to undefined behavior).
107110         Also, don't assume time_t uses two's complement.
107112 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
107114         * MODULES.html.sh: New module wctype.
107115         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
107116         * lib/fnmatch.c: Don't bother to include <wchar.h> before
107117         <wctype.h>, since the new wctype module should fix this.
107118         * lib/quotearg.c: Include <wctype.h> unconditionally, since
107119         the wctype module should arrange for it.
107120         * lib/regex_internal.h: Likewise.
107121         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
107122         since the wctype module should handle this now.
107123         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
107124         * modules/fnmatch (Depends-on): Add wctype.
107125         * modules/quotearg (Depends-on): Likewise.
107126         * modules/regex (Depends-on): Likewise.
107128 2006-12-19  Bruno Haible  <bruno@clisp.org>
107130         * lib/strdup.h [C++]: Wrap definitions in extern "C".
107131         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
107133 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107135         * modules/savewd (Depends-on): Fix dependency on fcntl.
107137 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107139         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
107140         conforms to C99, rather than relying on the user's environment
107141         setting of STDINT_H.
107143 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107144         and Eric Blake  <ebb9@byu.net>
107146         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
107147         This is more consistent with the other defines here.
107148         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
107149         Port to z/OS.  Problem reported by Paul Gilmartin.
107150         Change local vars to use gl_ prefix rather than ac_.
107151         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
107152         with other defines.
107153         * modules/double-slash-root: New module.
107154         * modules/dirname (Files): Remove m4/double-slash-root.m4.
107155         (Depends-on): Add double-slash-root.
107156         * MODULES.html.sh (File system functions): Mention new module.
107158 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
107160         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
107161         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
107162         This is for the benefit of gzip, which doesn't do i18n.
107164 2006-12-12  Jim Meyering  <jim@meyering.net>
107166         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
107167         Reported by Andreas Schwab <schwab@suse.de>.
107169 2006-12-12  Bruno Haible  <bruno@clisp.org>
107171         Merge these changes.
107172         2006-09-05  Bruno Haible  <bruno@clisp.org>
107173         * lib/iconvme.c (iconv_string): No need to save and restore errno when
107174         iconv_alloc succeeded.
107175         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
107176         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
107177         test for " && dest " at the end - dest is always != NULL there. Call
107178         iconv with 4xNULL arguments initially, to reset the state. Call iconv
107179         with 2xNULL arguments, also to flush the state storage. Handle the
107180         IRIX iconv behaviour. Realloc the final result, to throw away unused
107181         memory.
107183 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
107185         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
107186         and fchmodat unconditionally, since glibc 2.4 has them.
107187         Problem reported by Arkadiusz Miskiewicz.
107189 2006-12-10  Bruno Haible  <bruno@clisp.org>
107191         * gnulib-tool (func_import): Show the include files only for those
107192         modules that are copied and specified.
107193         Reported by Karl Berry.
107195 2006-12-08  Jim Meyering  <jim@meyering.net>
107197         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
107198         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
107200         * build-aux/announce-gen: Add two new options, both optional:
107201         --bootstrap-tools=TOOL_LIST
107202               a comma-separated list of tools, e.g.,
107203               autoconf,automake,bison,gnulib
107204         --gnulib-snapshot-date=DATE
107205               if gnulib is in the bootstrap tool list,
107206               then report this as the snapshot date.
107207               If not specified, use the current date/time.
107208               If you specify a date here, be sure it's UTC.
107210 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107212         * tests/test-argp-2.sh: Fix test to match actual output.
107213         (func_compare): Fix sed script to be portable.
107215 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
107217         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
107218         workaround for this case.  It is not autoconfigured now; offhand
107219         it's hard to see how to autoconfigure it.
107221 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
107223         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
107224         a directory that is about to be chowned.  Such a directory's
107225         initial file permissions should permit the owner only and this
107226         should not be changed until after the chown, since the group and
107227         other bits would be incorrect if they granted permission before
107228         the chown.
107230         Fix porting problem for iswctype reported by Georg Schwarz in:
107231         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
107232         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
107233         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
107234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
107235         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
107237 2006-12-03  Jim Meyering  <jim@meyering.net>
107239         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
107240         p->fts_statp may not yet be defined.
107241         (fts_read): Instead, set it in the caller, once p->fts_statp is
107242         sure to be defined, and corresponds to a top-level directory.
107243         This bug made du -x fail.  Here's the coreutils test case:
107244         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
107245         Reported by Mike Frysinger.
107247 2006-12-01  Jim Meyering  <jim@meyering.net>
107249         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
107250         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
107251         Reported by Simon Josefsson.
107253 2006-11-30  Jim Meyering  <jim@meyering.net>
107255         * m4/warning.m4: Use the all-permissive copyright notice
107256         recommended by RMS (rather than LGPL).
107257         * m4/vararrays.m4: Likewise.
107258         * m4/flexmember.m4: Likewise.
107260 2006-11-29  Bruno Haible  <bruno@clisp.org>
107262         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107263         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
107264         using +=.
107265         Reported by Simon Josefsson <simon@josefsson.org>.
107267 2006-11-28  James Youngman  <jay@gnu.org>
107269         * README: Advise users that they might find the bug-gnulib@gnu.org
107270         and autotools-announce@gnu.org mailing lists useful.
107272 2006-11-28  Bruno Haible  <bruno@clisp.org>
107274         * m4/ptrdiff_max.m4: Remove file.
107276 2006-11-21  Bruno Haible  <bruno@clisp.org>
107278         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
107279         _AC_COMPUTE_INT.
107280         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107281         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
107282         _AC_COMPUTE_INT.
107283         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107284         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
107285         _AC_COMPUTE_INT.
107286         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107288 2006-11-28  Jim Meyering  <jim@meyering.net>
107290         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
107291         warning from "gcc -Wshadow" about shadowing the builtin.
107293 2006-11-27  Bruno Haible  <bruno@clisp.org>
107295         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
107296         _AC_COMPUTE_INT.
107297         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107299 2006-11-27  Bruno Haible  <bruno@clisp.org>
107300             Paul Eggert  <eggert@cs.ucla.edu>
107302         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
107304 2006-11-26  Bruno Haible  <bruno@clisp.org>
107306         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107307         noinst_LTLIBRARIES.
107309 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107310             Bruno Haible  <bruno@clisp.org>
107312         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
107313         if compiling with "gcc -ansi".
107315 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107317         Fix some incompatibilities with gcc -ansi -pedantic.
107318         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
107319         if compiling pedantically with GCC, unless it's C99 or later.
107320         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
107321         it mishandles gcc -ansi -pedantic as well.
107322         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
107323         if gcc -pedantic.
107324         * lib/regexec.c (check_node_accept_bytes): Don't use auto
107325         initializers for struct if -pedantic, unless it's C99 or later.
107327 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
107329         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
107330         Don't close an fd more than once. Identical atimes indicate
107331         success, not failure.
107333 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
107335         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
107337 2006-11-23  Jim Meyering  <jim@meyering.net>
107339         * build-aux/announce-gen: New file.  From coreutils.
107341 2006-11-22  Jim Meyering  <jim@meyering.net>
107343         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
107344         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
107345         (fts_read): Use a temporary to narrow the overused st_size member
107346         before using it in a switch statement.  Reported by Matthew Woehlke.
107348         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
107349         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
107351 2006-11-20  Bruno Haible  <bruno@clisp.org>
107353         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
107354         changequote instead of pairs of brackets.
107355         Reported by Andreas Schwab <schwab@suse.de>.
107357 2006-11-21  Jim Meyering  <jim@meyering.net>
107359         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
107360         so as to remain compatible with older compilers.
107361         Patch from Michael Deutschmann.
107363 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107365         * MODULES.html.sh (File system functions): Add openat.
107367         * lib/openat.h (rpl_fstatat): New macro, if
107368         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
107369         (fstatat): Define to rpl_fstatat under the same conditions,
107370         unless COMPILING_FSTATAT.
107371         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
107372         seems to have the bug.
107373         * lib/fstatat.c: New file.
107374         * modules/openat (Files): Add it.
107376 2006-11-20  Bruno Haible  <bruno@clisp.org>
107378         * Makefile: New file.
107380 2006-11-20  Jim Meyering  <jim@meyering.net>
107382         The beginnings of syntax-related checks for gnulib.
107383         * lib/Makefile: New file.
107384         * lib/t-idcache: New script.  Ensure that the two halves of
107385         idcache.c stay in sync.
107387         * lib/idcache.c: Adjust comments in user- and group- portions to
107388         be more accurate, and to be consistent with one another.
107390 2006-11-20  Jim Meyering  <jim@meyering.net>
107392         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
107393         continue using the flexible array member (thus, this module performs
107394         half as many malloc calls), with the addition that...
107395         (getgroup, getuser): Consistently record a non-match via an empty
107396         "name" string, and map an empty string match to a NULL return value.
107397         * modules/idcache (Depends-on): Re-add flexmember.
107399         * lib/idcache.c (getuser): Remove all uses of the register keyword.
107400         (getuidbyname, getgroup, getgidbyname): Likewise.
107402         Use cleaner syntax: NULL rather than 0.
107403         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
107405 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107407         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
107408         It mishandled the case where the group was missing.
107409         Problem reported by Greg Schafer.
107410         * modules/idcache: Likewise.
107412 2006-11-18  Jim Meyering  <jim@meyering.net>
107414         * check-module (%exempt_header): Add exception for some
107415         conditionally-included headers.
107417         * modules/i-ring (Depends-on): Add verify.
107418         (License): Change to LGPL.
107420 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107422         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
107423         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
107424         and inttostr.h.  Use snprintf rather than uinttostr, so that
107425         LGPLed code doesn't depend on GPLed.
107427 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107429         * modules/inline (License): Change from GPL to LGPL.
107431 2006-11-17  Jim Meyering  <jim@meyering.net>
107433         * modules/d-type (License): Switch to LGPL.
107435 2006-11-15  Bruno Haible  <bruno@clisp.org>
107437         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
107439 2006-11-15  Eric Blake  <ebb9@byu.net>
107441         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
107442         the module dependency.
107444 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107445             Bruno Haible  <bruno@clisp.org>
107447         * gnulib-tool (func_create_testdir): Add license consistency check.
107449 2006-11-15  Eric Blake  <ebb9@byu.net>
107451         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
107452         random "(cached)" in configure output.
107454 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107456         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
107457         test for conforming inttypes.h is both announced and cached.
107459         * MODULES.html.sh (seen_modules, seen_files): New variables.
107460         (func_module): Rewrite to use a few less gnulib-tool and sed
107461         invocations.  Avoid a couple of quadratic algorithms for ...
107462         (missed_modules, missed_files): ... these, with ...
107463         (func_append, func_tmpdir): ... these new functions, from
107464         gnulib-tool.  Analogously, install traps for cleanup.
107466         * tests/test-gc.c (main): Remove unused variables.
107467         * tests/test-read-file.c: Include stdlib.h, for 'free'.
107469 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
107471         * modules/inttostr (License): Change to LGPL.
107473 2006-11-14  Eric Blake  <ebb9@byu.net>
107475         * modules/tempname (License): Change to LGPL.
107477 2006-11-14  Eric Blake  <ebb9@byu.net>
107479         * doc/functions.texi (Function Portability): *printf functions on
107480         Cygwin now understand all POSIX size specifiers.
107482 2006-11-14  Bruno Haible  <bruno@clisp.org>
107484         * modules/c-ctype (License): Change to LGPL.
107486 2006-11-12  Bruno Haible  <bruno@clisp.org>
107488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
107489         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
107490         for GNOME libraries, for which the include files are installed in
107491         subdirectories of $prefix/include.
107493 2006-11-12  Bruno Haible  <bruno@clisp.org>
107495         * m4/lib-link.m4: Require at least autoconf-2.54.
107496         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
107497         name to underscores for the --with option.
107499 2006-11-13  Bruno Haible  <bruno@clisp.org>
107501         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
107502         the tests directory.
107503         Reported by Ralf Wildenhues.
107505 2006-11-13  Bruno Haible  <bruno@clisp.org>
107507         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
107508         (func_emit_initmacro_end): Undo the override here.
107509         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
107510         Works around the famous automake error in coreutils.
107512 2006-11-13  Eric Blake  <ebb9@byu.net>
107514         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
107515         element, not its node.
107517 2006-11-12  Bruno Haible  <bruno@clisp.org>
107519         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
107520         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
107522 2006-11-12  Bruno Haible  <bruno@clisp.org>
107524         * gnulib-tool: New option --local-symlink.
107525         (func_usage): Document it.
107526         (lsymbolic): New variable.
107527         (func_import, func_create_testdir): If --symlink was not specified,
107528         test whether --local-symlink was specified and the file comes from
107529         the local_gnulib_dir.
107531 2006-11-12  Bruno Haible  <bruno@clisp.org>
107533         * gnulib-tool (func_ln): New function.
107534         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
107536 2006-11-12  Bruno Haible  <bruno@clisp.org>
107538         Finish support for source files in subdirectories.
107539         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
107540         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
107541         AUTOMAKE_OPTIONS.
107542         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
107544 2006-11-12  Bruno Haible  <bruno@clisp.org>
107546         * gnulib-tool (func_get_automake_snippet): Synthesize also an
107547         EXTRA_lib_SOURCES augmentation.
107548         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
107550 2006-11-12  Jim Meyering  <jim@meyering.net>
107552         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
107553         file descriptors.  This also averts a failure on systems with
107554         native openat support when a traversed directory lacks "x" access.
107555         * lib/fts_.h: Include "i-ring.h"
107556         (struct FTS) [fts_fd_ring]: New member.
107557         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
107558         (FCHDIR): Add parentheses.
107559         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
107560         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
107561         When descending, rather than simply closing the previous
107562         fts_cwd_fd value, push that file descriptor onto the ring.
107563         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
107564         (fts_open): Initialize the new fd_ring member.
107565         (fts_close): Clear the ring.
107566         (fts_safe_changedir): When possible, use our new fd_ring to skip
107567         the diropen and fstat and dev/ino comparison that would normally
107568         accompany a virtual `chdir ("..")'.
107570         * modules/fts (Depends-on): Add i-ring.
107571         * modules/i-ring: New module.
107572         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
107573         * m4/i-ring.m4: New file.
107575 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107577         * gnulib-tool (func_create_testdir): Fix replacement of
107578         `build-aux' in configure.ac.  Run autotools in gltests
107579         subdirectory.
107580         (func_create_testdir, func_create_megatestdir, test): There is
107581         no need for '--force' in most autotool invocations in a new
107582         tree.  Actually fail the whole test if any of the tools, or the
107583         configure or make stages fail.
107585         Sync from Automake.
107586         * build-aux/gnupload: Revert last change.  Add pointer to upload
107587         instructions of the GNU Maintenance Instructions.
107588         Suggestion by Karl Berry.
107590 2006-11-10  Jim Meyering  <jim@meyering.net>
107592         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
107594 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107596         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
107597         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
107598         (bind_textdomain_codeset) [! ENABLE_NLS]:
107599         Evaluate all the arguments.  That way, callers get compatible behavior
107600         if the arguments have side effects.  Also, it avoids some GCC
107601         diagnostics in some cases; Joel E. Denny reported problems when Bison
107602         was configured with --enable-gcc-warnigs.
107604 2006-11-10  Jim Meyering  <jim@meyering.net>
107606         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
107607         relevant options in CFLAGS (like -O, -fno-inline) are taken into
107608         account.
107610 2006-11-10  Jim Meyering  <jim@meyering.net>
107612         * modules/inline: New file/module.
107613         * modules/xalloc (Files): Remove m4/inline.m4.
107614         (Depends-on): Add inline, instead.
107615         * modules/oset: Likewise.
107616         * modules/list: Likewise.
107618 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107620         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
107621         Problem reported by Matthew Woehlke.
107623 2006-11-09  Bruno Haible  <bruno@clisp.org>
107625         * lib/tempname.c (gen_tempname): Remove variant that invokes
107626         __gen_tempname.
107627         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
107628         __gen_tempname.
107630 2006-11-08  Bruno Haible  <bruno@clisp.org>
107632         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
107633         to 'yes' instead of 'cross-compiling'.
107635 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
107637         * lib/quotearg.h (quotearg_free): New decl.
107638         * lib/quotearg.c (quotearg_free): New function.
107639         (slot0, nslots, slotvec0, slotvec):
107640         Now file-scope so that quotearg_free can get at them.
107642 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107644         Sync from Automake.
107645         * build-aux/gnupload: Add missing 'gnu' to example URL.
107646         Report by Karl Berry.
107648 2006-11-08  Bruno Haible  <bruno@clisp.org>
107650         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
107651         Suggested by Paul Eggert.
107653 2006-11-08  Jim Meyering  <jim@meyering.net>
107655         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
107656         It's already included if !_LIBC.
107657         (fts_safe_changedir): Add a comment.
107659 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107661         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
107662         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
107663         Matthew Woehlke.
107665         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
107666         definitions up, to avoid colliding with change below.
107667         (static_inline) [HAVE_INLINE]: New macro.
107668         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107669         Provide extern decls when !HAVE_INLINE.  Do not define unless
107670         static_inline is defined, either by us or by xmalloc.c.  Use
107671         static_inline rather than static inline.
107672         (XCALLOC): Optimize sizeof(T) = 1 case.
107673         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107675 2006-11-07  Bruno Haible  <bruno@clisp.org>
107677         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107678         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107679         AC_C_INLINE.
107680         * modules/xalloc (Files): Add m4/inline.m4.
107682 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107684         * README: Fix typo.
107685         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107686         (Miscellanous Notes): ...from this.
107688 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107690         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107691         Mention that offsetof should be used instead of sizeof.
107692         From Bruno Haible.
107694 2006-11-07  Bruno Haible  <bruno@clisp.org>
107696         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107698 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107700         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107701         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107702         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107703         (gl_tree_add_before, gl_tree_add_after):
107704         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107705         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107706         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107707         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
107708         (gl_linked_add_after, gl_linked_add_at): Likewise.
107709         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
107710         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107711         (gl_tree_add_before, gl_tree_add_after): Likewise.
107712         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
107713         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
107714         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
107716 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107718         * lib/gl_oset.h: Use C comment style, not C++ comment style.
107720 2006-11-06  Bruno Haible  <bruno@clisp.org>
107722         * m4/inline.m4: New file.
107723         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
107724         * modules/list (Files): Add m4/inline.m4.
107725         * modules/oset (Files): Likewise.
107727 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107729         * lib/idcache.c: Include <stddef.h>, for offsetof.
107730         (struct userid.name): Change from char * to a flexible array member.
107731         All uses changed.
107732         * modules/idcache (Depends-on): Add flexmember.
107734         * MODULES.html.sh (Core language properties): New module flexmember.
107735         * modules/flexmember, m4/flexmember.m4: New files.
107737         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
107738         inline functions that are identical with the old xnmalloc_inline,
107739         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
107740         that we can avoid some unnecessary integer multiplications and
107741         divisions in the common case where the element size is known at
107742         compile time.
107743         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
107744         needed.
107745         (xnboundedmalloc): Remove.
107746         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
107747         arguments, for consistency with rest of this header.
107748         (xcharalloc): Rewrite using XNMALLOC.
107749         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
107750         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
107751         versions have been moved to lib/xalloc.h and renamed to be the
107752         non-*_inline versions.
107753         (xmalloc, xrealloc): Implement without reference to the xnmalloc
107754         and xnrealloc functions, since those functions are now inline and
107755         now call us.
107756         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
107757         renaming described above.
107758         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
107759         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
107760         captures the dependency in AC_C_INLINE.
107762         New module canonicalize-lgpl, proposed by Charles Wilson in
107763         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
107764         with a few small changes afterwards.
107765         * MODULES.html.sh (File system functions): New module
107766         canonicalize-lgpl.
107767         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
107768         and canonicalize_file_name.
107769         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
107770         * modules/canonicalize-lgpl: New files.
107772 2006-11-05  Bruno Haible  <bruno@clisp.org>
107774         * gnulib-tool (func_import, func_create_testdir): Create directories
107775         also for files in subdirectories of lib/.
107777 2006-11-05  Bruno Haible  <bruno@clisp.org>
107779         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
107780         ANSI C compliant.
107782 2006-11-03  Bruno Haible  <bruno@clisp.org>
107784         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107785         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
107786         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
107787         (xnboundedmalloc): New inline function.
107788         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
107789         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
107790         xmalloc.
107791         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
107792         xmalloc.
107793         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
107794         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
107795         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
107796         xmalloc.
107797         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107798         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
107799         xmalloc.
107800         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
107801         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107802         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
107803         xmalloc.
107804         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107805         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107806         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107807         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107808         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107809         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107810         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107812 2006-11-03  Bruno Haible  <bruno@clisp.org>
107814         * lib/c-ctype.h [C++]: Define functions without name mangling.
107815         * lib/fwriteerror.h [C++]: Likewise.
107816         * lib/gcd.h [C++]: Likewise.
107817         * lib/linebreak.h [C++]: Likewise.
107819 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107821         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107822         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107823         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107825         Check for functions and headers just once.
107826         Check for declaration of canonicalize_file_name.
107827         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107829 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107831         * gnulib-tool (func_import): Fix typo in actioncmd.
107833 2006-11-02  Bruno Haible  <bruno@clisp.org>
107835         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107836         newline sequence in the Makefile.am snippet as a space, like "make"
107837         does.
107838         Reported by Roger Persson <perrog@gmail.com>.
107840 2006-11-01  Bruno Haible  <bruno@clisp.org>
107842         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107843         already declared in <string.h>.
107844         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107846 2006-11-01  Bruno Haible  <bruno@clisp.org>
107848         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107849         * lib/strcase.h: Include <string.h>.
107850         (strcasecmp): Define to rpl_strcasecmp here.
107852 2006-11-01  Bruno Haible  <bruno@clisp.org>
107854         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107856 2006-11-01  Eric Blake  <ebb9@byu.net>
107858         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107862 2006-10-29  Bruno Haible  <bruno@clisp.org>
107864         Make it compile in C++ mode.
107865         * lib/full-write.c (full_rw): Add a cast.
107867 2006-11-01  Bruno Haible  <bruno@clisp.org>
107869         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107870         be POSIX compliant.
107871         Reported by Roger Persson <perrog@gmail.com>.
107873 2006-11-01  Eric Blake  <ebb9@byu.net>
107875         * lib/getopt_.h: Fix comments.
107877 2006-10-31  Eric Blake  <ebb9@byu.net>
107879         * modules/tmpdir (Depends-on): Add sys_stat.
107880         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107881         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107882         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107883         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107884         tempname.
107886 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107888         Avoid some C++ diagnostics reported by Bruno Haible.
107889         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107890         xmalloc.
107891         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107892         (struct slotvec): Move to top level.
107893         (quotearg_n_options): Rewrite to avoid xmalloc.
107894         * lib/xalloc.h (xcharalloc): New function.
107895         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107896         [defined __cplusplus]: Add function template that provides result
107897         type propagation.  This part of the change is from Bruno Haible.
107899 2006-10-29  Bruno Haible  <bruno@clisp.org>
107901         Make it compile in C++ mode.
107902         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107903         * lib/strnlen1.c (strnlen1): Cast memchr result.
107904         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107905         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107906         (create_temp_dir): Rename local variable 'template'.
107907         (compile_csharp_using_sscli): Add cast.
107908         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107909         * lib/findprog.c (find_in_path): Likewise.
107910         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107911         * lib/wait-process.c (register_slave_subprocess): Likewise.
107913 2006-10-22  Bruno Haible  <bruno@clisp.org>
107915         * modules/tsearch: New file.
107916         * lib/tsearch.h: New file.
107917         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107918         * m4/tsearch.m4: New file.
107919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107921 2006-10-29  Eric Blake  <ebb9@byu.net>
107923         * lib/arcfour.c: Assume config.h.
107924         * lib/arctwo.c: Likewise.
107925         * lib/base64.c: Likewise.
107926         * lib/check-version.c: Likewise.
107927         * lib/crc.c: Likewise.
107928         * lib/des.c: Likewise.
107929         * lib/gc-gnulib.c: Likewise.
107930         * lib/gc-libgcrypt.c: Likewise.
107931         * lib/gc-pbkdf2-sha1.c: Likewise.
107932         * lib/getaddrinfo.c: Likewise.
107933         * lib/getdelim.c: Likewise.
107934         * lib/getline.c: Likewise.
107935         * lib/hmac-md5.c: Likewise.
107936         * lib/hmac-sha1.c: Likewise.
107937         * lib/iconvme.c: Likewise.
107938         * lib/md2.c: Likewise.
107939         * lib/md4.c: Likewise.
107940         * lib/memxor.c: Likewise.
107941         * lib/read-file.c: Likewise.
107942         * lib/readline.c: Likewise.
107943         * lib/rijndael-alg-fst.c: Likewise.
107944         * lib/rijndael-api-fst.c: Likewise.
107945         * lib/xgetdomainname.c: Likewise.
107947 2006-10-28  Eric Blake  <ebb9@byu.net>
107949         * lib/xstrndup.c: Assume config.h.
107951 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107953         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107954         stat-macros.h is now for our own macros, whereas stat_h is for
107955         macros in the <sys/stat.h> name space.
107956         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107957         (STAT_MACROS_H): Remove.
107958         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107959         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107960         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107961         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107962         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107963         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107964         Move these macros to ...
107965         * lib/stat_.h: here.  Don't include stat-macros.h.
107966         * lib/canonicalize.c: Don't include stat-macros.h.
107967         * lib/chown.c: Likewise.
107968         * lib/euidaccess.c: Likewise.
107969         * lib/file-type.c: Likewise.
107970         * lib/filemode.c: Likewise.
107971         * lib/glob.c: Likewise.
107972         * lib/isapipe.c: Likewise.
107973         * lib/lchown.c: Likewise.
107974         * lib/lstat.c: Likewise.
107975         * lib/mkdir-p.c: Likewise.
107976         * lib/rmdir.c: Likewise.
107977         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107978         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107979         unless mkdir isn't declared, to speed up 'configure'.
107980         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107981         would define all the S_* symbols.
107982         * modules/canonicalize (Depends-on):
107983         Depend on sys_stat, not stat-macros.
107984         * modules/chown: Likewise.
107985         * modules/euidaccess: Likewise.
107986         * modules/filemode: Likewise.
107987         * modules/file-type: Likewise.
107988         * modules/glob: Likewise.
107989         * modules/isapipe: Likewise.
107990         * modules/lchown: Likewise.
107991         * modules/lstat: Likewise.
107992         * modules/mkancesdirs: Likewise.
107993         * modules/rmdir: Likewise.
107994         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107995         * modules/modechange: Likewise.
107996         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107997         (configure.ac): Remove gl_STAT_MACROS.
107998         * modules/sys_stat (Depends-on): Remove stat-macros.
108000 2006-10-27  Bruno Haible  <bruno@clisp.org>
108002         * m4/signed.m4: Remove file.
108003         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
108004         invocation.
108005         * modules/vasnprintf (Files): Remove m4/signed.m4.
108007 2006-10-27  Bruno Haible  <bruno@clisp.org>
108009         Update to GNU gettext 0.16.
108010         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
108011         m4/inttypes-h.m4, m4/signed.m4.
108012         * m4/gettext.m4: Update to GNU gettext 0.16.
108013         * m4/intl.m4: New file, from GNU gettext.
108014         * m4/intldir.m4: New file, from GNU gettext.
108015         * config/srclist.txt: Update
108017 2006-10-27  Eric Blake  <ebb9@byu.net>
108019         * MODULES.html.sh: Document tempname.
108020         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
108021         dependencies.
108022         (Files): Move lib/tempname.c...
108023         * modules/tempname: ...to this new module.
108024         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
108025         (gl_PREREQ_TEMPNAME): Move...
108026         * m4/tempname.m4: ...to this new file.
108027         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
108028         * modules/sys_stat (Depends-on): Add stat-macros.
108029         * lib/stat_.h (includes): Pick up stat macros.
108030         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
108031         if stat macros are broken.
108032         * lib/tempname.c (includes): No need to include "stat-macros.h".
108033         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
108034         (direxists, __path_search) [!_LIBC]: Don't compile these in
108035         gnulib; the tmpdir module covers that.
108036         * lib/tempname.h: New file.
108038 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
108040         * COPYING: Explain how gnulib-tool converts licence headers.
108041         Almost all wording by Eric Blake.
108043 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
108045         * lib/mbchar.h (is_basic_table): Make read-only.
108046         * lib/mbchar.c (is_basic_table): Likewise.
108047         Reported by John Darrington.
108049 2006-10-25  Bruno Haible  <bruno@clisp.org>
108051         * lib/progname.h (set_program_name): Undefine before defining.
108053 2006-10-25  Bruno Haible  <bruno@clisp.org>
108055         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
108056         false for non-gcc C++ compilers.
108057         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
108059 2006-10-24  Bruno Haible  <bruno@clisp.org>
108061         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
108062         iconv implementations like Irix iconv.
108064 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108066         * modules/vararrays: New file.
108067         * m4/vararrays.m4: New file, taken from diffutils.
108068         * MODULES.html.sh: New module vararrays.
108070 2006-10-24  Karl Berry  <karl@gnu.org>
108072         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
108073         Don't call GNU Unix.
108075 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108077         * users.txt: Add Libtool.
108079         Sync from Libtool:
108081         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108083         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
108084         to gnulib's policy of including config.h unconditionally.
108086 2006-10-24  Bruno Haible  <bruno@clisp.org>
108088         * modules/wcwidth (Files): Add m4/wint_t.m4.
108089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
108090         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
108092 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108094         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
108095         to pacify GCC with some -W flags enabled.  Problem reported by
108096         Bruno Haible.
108098 2006-10-24  Jim Meyering  <jim@meyering.net>
108100         * MODULES.html.sh: Remove uinttostr.  It's not a module.
108101         Reported by Karl Berry.
108103 2006-10-23  Bruno Haible  <bruno@clisp.org>
108105         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
108107 2006-10-24  Bruno Haible  <bruno@clisp.org>
108109         * lib/gl_list.h: Use C comment style, not C++ comment style.
108111 2006-10-23  Eric Blake  <ebb9@byu.net>
108113         * lib/getaddrinfo.c (includes): Add missing include.
108115 2006-10-23  Bruno Haible  <bruno@clisp.org>
108116             Paul Eggert  <eggert@cs.ucla.edu>
108118         Ability to rename obstack_free.
108119         * lib/obstack.h (__obstack_free): New macro. Declare instead of
108120         obstack_free.
108121         (obstack_free): Invoke the __obstack_free macro.
108122         * lib/obstack.c (obstack_free): Use __obstack_free macro.
108124 2006-10-23  Bruno Haible  <bruno@clisp.org>
108125             Paul Eggert  <eggert@cs.ucla.edu>
108127         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
108128         __argc, __argv from the declaration. (They are defined as macros on
108129         mingw.)
108131 2006-10-22  Bruno Haible  <bruno@clisp.org>
108133         * doc/gnulib-intro.texi: New file.
108134         * doc/gnulib.texi: Include it.
108136 2006-10-21  Bruno Haible  <bruno@clisp.org>
108138         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
108139         "Introduction", "Miscellanous Notes", "Particular Modules".
108141 2006-10-21  Bruno Haible  <bruno@clisp.org>
108143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108144         Change mostlyclean-local rule to avoid sh syntax error from bash
108145         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
108147 2006-10-23  Jim Meyering  <jim@meyering.net>
108149         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
108150         in place of snprintf.
108152         * modules/inttostr (Files): Add lib/uinttostr.c.
108153         * lib/uinttostr.c (inttostr): New file/function.
108154         * lib/inttostr.h (uinttostr): Declare.
108155         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
108156         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108157         Add uinttostr.
108158         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
108160 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108162         * lib/canonicalize.c (ELOOP): Define if not already defined.
108163         Problem reported by Bruno Haible in
108164         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
108166 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108168         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
108169         Problem reported by Perry Smith and Ville Laurikari.
108171         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
108172         uses.
108174 2006-10-19  Bruno Haible  <bruno@clisp.org>
108176         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
108177         for mingw.
108179 2006-10-19  Bruno Haible  <bruno@clisp.org>
108181         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
108182         Needed for mingw.
108184 2006-10-19  Bruno Haible  <bruno@clisp.org>
108186         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
108188 2006-10-19  Bruno Haible  <bruno@clisp.org>
108190         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
108191         it.
108193 2006-10-19  Bruno Haible  <bruno@clisp.org>
108195         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
108196         invocation.
108198 2006-10-19  Bruno Haible  <bruno@clisp.org>
108200         * gnulib-tool (func_create_testdir): Don't include ftruncate and
108201         mountlist by default.
108203 2006-10-16  Bruno Haible  <bruno@clisp.org>
108205         * lib/c-strstr.c: Include c-strstr.h.
108207 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108209         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
108210         in a slash.
108212 2006-10-18  Bruno Haible  <bruno@clisp.org>
108214         * lib/lock.h [C++]: Wrap definitions in extern "C".
108216 2006-10-18  Bruno Haible  <bruno@clisp.org>
108218         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
108219         gl_LIBOBJS list.
108221 2006-10-18  Bruno Haible  <bruno@clisp.org>
108223         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
108225 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
108227         * lib/xstrtol.h: Include gettext.h.
108228         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
108229         Problem reported by Eric Blake.
108230         * modules/xstrtol (Depends-on): Add gettext-h.
108232 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
108234         * lib/strftime.c (advance): New macro.
108235         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
108236         incomplete type, so you can't add 0 to it.  Problem and patch
108237         reported by Eelco Dolstra for dietlibc.
108239 2006-10-18  Jim Meyering  <jim@meyering.net>
108241         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
108242         type for a local, and rename it: s/up/user_proc/.
108244 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
108246         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
108247         READ_UTMP_USER_PROCESS.
108248         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
108250 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108252         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
108253         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
108255 2006-10-17  Eric Blake  <ebb9@byu.net>
108257         * lib/sigprocmask.c (sigprocmask): Fix typo.
108259         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
108261         * modules/clean-temp (Makefile.am): Don't add to make output...
108262         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
108263         config.h.
108265 2006-10-17  Bruno Haible  <bruno@clisp.org>
108267         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
108268         differently if DEFAULT_TEXT_DOMAIN is set.
108270 2006-10-16  Bruno Haible  <bruno@clisp.org>
108272         * lib/clean-temp.c: Include fwriteerror.h.
108274 2006-10-16  Bruno Haible  <bruno@clisp.org>
108276         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
108278 2006-10-16  Bruno Haible  <bruno@clisp.org>
108280         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
108281         * lib/sigprocmask.h: Include <sys/types.h>.
108282         (sigset_t): Use the system's definition if present.
108284 2006-10-17  Eric Blake  <ebb9@byu.net>
108286         * lib/xvasprintf.c (includes): Assume config.h.
108287         * lib/xasprintf.c (includes): Likewise.
108289 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
108291         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
108292         at least as wide as intmax_t.
108294 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
108296         (Imported from Automake.)
108297         * build-aux/gnupload: Update to version 1.1 of directive file.
108299 2006-10-16  Eric Blake  <ebb9@byu.net>
108301         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
108302         match Automake 1.10a.
108304 2006-10-14  Bruno Haible  <bruno@clisp.org>
108306         * modules/sigprocmask: New file.
108307         * lib/sigprocmask.h: New file.
108308         * lib/sigprocmask.c: New file.
108309         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
108310         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
108311         request sigprocmask.o.
108312         (gl_PREREQ_SIGPROCMASK): New macro.
108313         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
108314         (Depends-on): Add sigprocmask.
108315         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
108316         gt_SIGNALBLOCKING. Test for 'raise' only once.
108317         * lib/fatal-signal.c: Include sigprocmask.h.
108318         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
108319         unblock_fatal_signals): Define always.
108320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108321         sigprocmask.
108323 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108325         Sync from Automake.
108326         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
108327         which incorrectly sets the mode of an existing destination
108328         directory.  In some cases the unpatched install-sh could do the
108329         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
108330         system.  We hope this is rare in practice, but it's clearly worth
108331         fixing.  Problem reported by Alex Unleashed in
108332         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
108333         Also, don't bother to check for -m bugs unless we're using -m;
108334         suggested by Stepan Kasal.
108336 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108338         Sync from Automake.
108339         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
108340         `-c' flag, so they appear at the same position as in %FASTDEP%
108341         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
108342         which ignores unknown options only after the first non-option.
108343         Bug report against M4 by Nelson H. F. Beebe.
108345 2006-10-13  Jim Meyering  <jim@meyering.net>
108347         Fix a bug in yesterday's change.
108348         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
108349         p->fts_statp->st_dev would be used uninitialized.
108350         Ensures that we always call fts_stat on the very first entry.
108351         Miklos Szeredi reported that find -xdev stopped working.
108353 2006-10-12  Bruno Haible  <bruno@clisp.org>
108355         * gnulib-tool (func_get_automake_snippet): Append an automatically
108356         computed EXTRA_DIST augmentation.
108357         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
108358         * modules/alloca-opt (Makefile.am): Likewise.
108359         * modules/allocsa (Makefile.am): Likewise.
108360         * modules/arcfour (Makefile.am): Likewise.
108361         * modules/arctwo (Makefile.am): Likewise.
108362         * modules/argmatch (Makefile.am): Likewise.
108363         * modules/argz (Makefile.am): Likewise.
108364         * modules/atexit (Makefile.am): Likewise.
108365         * modules/backupfile (Makefile.am): Likewise.
108366         * modules/byteswap (Makefile.am): Likewise.
108367         * modules/c-strtod (Makefile.am): Likewise.
108368         * modules/c-strtold (Makefile.am): Likewise.
108369         * modules/calloc (Makefile.am): Likewise.
108370         * modules/canon-host (Makefile.am): Likewise.
108371         * modules/canonicalize (Makefile.am): Likewise.
108372         * modules/chdir-long (Makefile.am): Likewise.
108373         * modules/chdir-safer (Makefile.am): Likewise.
108374         * modules/check-version (Makefile.am): Likewise.
108375         * modules/chown (Makefile.am): Likewise.
108376         * modules/cloexec (Makefile.am): Likewise.
108377         * modules/close-stream (Makefile.am): Likewise.
108378         * modules/closeout (Makefile.am): Likewise.
108379         * modules/crc (Makefile.am): Likewise.
108380         * modules/csharpexec (Makefile.am): Likewise.
108381         * modules/cycle-check (Makefile.am): Likewise.
108382         * modules/des (Makefile.am): Likewise.
108383         * modules/dev-ino (Makefile.am): Likewise.
108384         * modules/dirfd (Makefile.am): Likewise.
108385         * modules/dirname (Makefile.am): Likewise.
108386         * modules/dup2 (Makefile.am): Likewise.
108387         * modules/eealloc (Makefile.am): Likewise.
108388         * modules/error (Makefile.am): Likewise.
108389         * modules/euidaccess (Makefile.am): Likewise.
108390         * modules/exclude (Makefile.am): Likewise.
108391         * modules/exitfail (Makefile.am): Likewise.
108392         * modules/fcntl-safer (Makefile.am): Likewise.
108393         * modules/fcntl (Makefile.am): Likewise.
108394         * modules/file-type (Makefile.am): Likewise.
108395         * modules/fileblocks (Makefile.am): Likewise.
108396         * modules/filemode (Makefile.am): Likewise.
108397         * modules/filenamecat (Makefile.am): Likewise.
108398         * modules/fnmatch (Makefile.am): Likewise.
108399         * modules/fopen-safer (Makefile.am): Likewise.
108400         * modules/fpending (Makefile.am): Likewise.
108401         * modules/fprintftime (Makefile.am): Likewise.
108402         * modules/free (Makefile.am): Likewise.
108403         * modules/fsusage (Makefile.am): Likewise.
108404         * modules/ftruncate (Makefile.am): Likewise.
108405         * modules/fts (Makefile.am): Likewise.
108406         * modules/gc-arcfour (Makefile.am): Likewise.
108407         * modules/gc-des (Makefile.am): Likewise.
108408         * modules/gc-hmac-md5 (Makefile.am): Likewise.
108409         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
108410         * modules/gc-md4 (Makefile.am): Likewise.
108411         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108412         * modules/gc-sha1 (Makefile.am): Likewise.
108413         * modules/gc (Makefile.am): Likewise.
108414         * modules/getaddrinfo (Makefile.am): Likewise.
108415         * modules/getcwd (Makefile.am): Likewise.
108416         * modules/getdelim (Makefile.am): Likewise.
108417         * modules/getdomainname (Makefile.am): Likewise.
108418         * modules/getgroups (Makefile.am): Likewise.
108419         * modules/gethostname (Makefile.am): Likewise.
108420         * modules/gethrxtime (Makefile.am): Likewise.
108421         * modules/getline (Makefile.am): Likewise.
108422         * modules/getloadavg (Makefile.am): Likewise.
108423         * modules/getlogin_r (Makefile.am): Likewise.
108424         * modules/getndelim2 (Makefile.am): Likewise.
108425         * modules/getopt (Makefile.am): Likewise.
108426         * modules/getpagesize (Makefile.am): Likewise.
108427         * modules/getpass-gnu (Makefile.am): Likewise.
108428         * modules/getpass (Makefile.am): Likewise.
108429         * modules/getsubopt (Makefile.am): Likewise.
108430         * modules/gettime (Makefile.am): Likewise.
108431         * modules/gettimeofday (Makefile.am): Likewise.
108432         * modules/getugroups (Makefile.am): Likewise.
108433         * modules/getusershell (Makefile.am): Likewise.
108434         * modules/glob (Makefile.am): Likewise.
108435         * modules/group-member (Makefile.am): Likewise.
108436         * modules/hard-locale (Makefile.am): Likewise.
108437         * modules/hash (Makefile.am): Likewise.
108438         * modules/hmac-md5 (Makefile.am): Likewise.
108439         * modules/hmac-sha1 (Makefile.am): Likewise.
108440         * modules/human (Makefile.am): Likewise.
108441         * modules/idcache (Makefile.am): Likewise.
108442         * modules/imaxabs (Makefile.am): Likewise.
108443         * modules/imaxdiv (Makefile.am): Likewise.
108444         * modules/inet_ntop (Makefile.am): Likewise.
108445         * modules/inet_pton (Makefile.am): Likewise.
108446         * modules/intprops (Makefile.am): Likewise.
108447         * modules/inttostr (Makefile.am): Likewise.
108448         * modules/inttypes (Makefile.am): Likewise.
108449         * modules/isapipe (Makefile.am): Likewise.
108450         * modules/javaversion (Makefile.am): Likewise.
108451         * modules/lchmod (Makefile.am): Likewise.
108452         * modules/lchown (Makefile.am): Likewise.
108453         * modules/localcharset (Makefile.am): Likewise.
108454         * modules/long-options (Makefile.am): Likewise.
108455         * modules/lstat (Makefile.am): Likewise.
108456         * modules/malloc (Makefile.am): Likewise.
108457         * modules/mathl (Makefile.am): Likewise.
108458         * modules/mbchar (Makefile.am): Likewise.
108459         * modules/md2 (Makefile.am): Likewise.
108460         * modules/md4 (Makefile.am): Likewise.
108461         * modules/md5 (Makefile.am): Likewise.
108462         * modules/memcasecmp (Makefile.am): Likewise.
108463         * modules/memchr (Makefile.am): Likewise.
108464         * modules/memcmp (Makefile.am): Likewise.
108465         * modules/memcoll (Makefile.am): Likewise.
108466         * modules/memcpy (Makefile.am): Likewise.
108467         * modules/memmem (Makefile.am): Likewise.
108468         * modules/memmove (Makefile.am): Likewise.
108469         * modules/mempcpy (Makefile.am): Likewise.
108470         * modules/memrchr (Makefile.am): Likewise.
108471         * modules/memset (Makefile.am): Likewise.
108472         * modules/memxor (Makefile.am): Likewise.
108473         * modules/mkancesdirs (Makefile.am): Likewise.
108474         * modules/mkdir-p (Makefile.am): Likewise.
108475         * modules/mkdir (Makefile.am): Likewise.
108476         * modules/mkdtemp (Makefile.am): Likewise.
108477         * modules/mkstemp (Makefile.am): Likewise.
108478         * modules/mktime (Makefile.am): Likewise.
108479         * modules/modechange (Makefile.am): Likewise.
108480         * modules/mountlist (Makefile.am): Likewise.
108481         * modules/nanosleep (Makefile.am): Likewise.
108482         * modules/obstack (Makefile.am): Likewise.
108483         * modules/openat (Makefile.am): Likewise.
108484         * modules/pagealign_alloc (Makefile.am): Likewise.
108485         * modules/pathmax (Makefile.am): Likewise.
108486         * modules/physmem (Makefile.am): Likewise.
108487         * modules/poll (Makefile.am): Likewise.
108488         * modules/posixtm (Makefile.am): Likewise.
108489         * modules/posixver (Makefile.am): Likewise.
108490         * modules/putenv (Makefile.am): Likewise.
108491         * modules/quote (Makefile.am): Likewise.
108492         * modules/quotearg (Makefile.am): Likewise.
108493         * modules/raise (Makefile.am): Likewise.
108494         * modules/read-file (Makefile.am): Likewise.
108495         * modules/readline (Makefile.am): Likewise.
108496         * modules/readlink (Makefile.am): Likewise.
108497         * modules/readtokens (Makefile.am): Likewise.
108498         * modules/readutmp (Makefile.am): Likewise.
108499         * modules/realloc (Makefile.am): Likewise.
108500         * modules/regex (Makefile.am): Likewise.
108501         * modules/rename-dest-slash (Makefile.am): Likewise.
108502         * modules/rename (Makefile.am): Likewise.
108503         * modules/rijndael (Makefile.am): Likewise.
108504         * modules/rmdir (Makefile.am): Likewise.
108505         * modules/rpmatch (Makefile.am): Likewise.
108506         * modules/safe-read (Makefile.am): Likewise.
108507         * modules/safe-write (Makefile.am): Likewise.
108508         * modules/same-inode (Makefile.am): Likewise.
108509         * modules/same (Makefile.am): Likewise.
108510         * modules/save-cwd (Makefile.am): Likewise.
108511         * modules/savedir (Makefile.am): Likewise.
108512         * modules/setenv (Makefile.am): Likewise.
108513         * modules/settime (Makefile.am): Likewise.
108514         * modules/sha1 (Makefile.am): Likewise.
108515         * modules/sig2str (Makefile.am): Likewise.
108516         * modules/snprintf (Makefile.am): Likewise.
108517         * modules/stat-macros (Makefile.am): Likewise.
108518         * modules/stat-time (Makefile.am): Likewise.
108519         * modules/stdbool (Makefile.am): Likewise.
108520         * modules/stdint (Makefile.am): Likewise.
108521         * modules/stdlib-safer (Makefile.am): Likewise.
108522         * modules/stpcpy (Makefile.am): Likewise.
108523         * modules/stpncpy (Makefile.am): Likewise.
108524         * modules/strcase (Makefile.am): Likewise.
108525         * modules/strcasestr (Makefile.am): Likewise.
108526         * modules/strchrnul (Makefile.am): Likewise.
108527         * modules/strcspn (Makefile.am): Likewise.
108528         * modules/strdup (Makefile.am): Likewise.
108529         * modules/strerror (Makefile.am): Likewise.
108530         * modules/strftime (Makefile.am): Likewise.
108531         * modules/strndup (Makefile.am): Likewise.
108532         * modules/strnlen (Makefile.am): Likewise.
108533         * modules/strpbrk (Makefile.am): Likewise.
108534         * modules/strsep (Makefile.am): Likewise.
108535         * modules/strstr (Makefile.am): Likewise.
108536         * modules/strtod (Makefile.am): Likewise.
108537         * modules/strtoimax (Makefile.am): Likewise.
108538         * modules/strtok_r (Makefile.am): Likewise.
108539         * modules/strtol (Makefile.am): Likewise.
108540         * modules/strtoll (Makefile.am): Likewise.
108541         * modules/strtoul (Makefile.am): Likewise.
108542         * modules/strtoull (Makefile.am): Likewise.
108543         * modules/strtoumax (Makefile.am): Likewise.
108544         * modules/strverscmp (Makefile.am): Likewise.
108545         * modules/sys_socket (Makefile.am): Likewise.
108546         * modules/sys_stat (Makefile.am): Likewise.
108547         * modules/sysexits (Makefile.am): Likewise.
108548         * modules/time_r (Makefile.am): Likewise.
108549         * modules/timegm (Makefile.am): Likewise.
108550         * modules/timespec (Makefile.am): Likewise.
108551         * modules/tmpfile-safer (Makefile.am): Likewise.
108552         * modules/trim (Makefile.am): Likewise.
108553         * modules/unistd-safer (Makefile.am): Likewise.
108554         * modules/unlinkdir (Makefile.am): Likewise.
108555         * modules/unlocked-io (Makefile.am): Likewise.
108556         * modules/userspec (Makefile.am): Likewise.
108557         * modules/utime (Makefile.am): Likewise.
108558         * modules/utimecmp (Makefile.am): Likewise.
108559         * modules/utimens (Makefile.am): Likewise.
108560         * modules/vasnprintf (Makefile.am): Likewise.
108561         * modules/vasprintf (Makefile.am): Likewise.
108562         * modules/vsnprintf (Makefile.am): Likewise.
108563         * modules/xalloc (Makefile.am): Likewise.
108564         * modules/xgetcwd (Makefile.am): Likewise.
108565         * modules/xnanosleep (Makefile.am): Likewise.
108566         * modules/xreadlink (Makefile.am): Likewise.
108567         * modules/xstrtod (Makefile.am): Likewise.
108568         * modules/xstrtol (Makefile.am): Likewise.
108569         * modules/xstrtold (Makefile.am): Likewise.
108570         * modules/yesno (Makefile.am): Likewise.
108571         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
108573 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108575         * modules/error (Makefile.am): Distribute files through
108576         EXTRA_DIST, not lib_SOURCES.
108578 2006-10-12  Eric Blake  <ebb9@byu.net>
108580         * modules/error (Makefile.am): Distribute files in /lib.
108581         * modules/obstack (Makefile.am): Likewise.
108583 2006-10-12  Bruno Haible  <bruno@clisp.org>
108585         * modules/acl (Makefile.am): Distribute all files in lib/ through
108586         EXTRA_DIST.
108587         * modules/arcfour (Makefile.am): Likewise.
108588         * modules/arctwo (Makefile.am): Likewise.
108589         * modules/argmatch (Makefile.am): Likewise.
108590         * modules/argz (Makefile.am): Likewise.
108591         * modules/atexit (Makefile.am): Likewise.
108592         * modules/backupfile (Makefile.am): Likewise.
108593         * modules/c-strtod (Makefile.am): Likewise.
108594         * modules/c-strtold (Makefile.am): Likewise.
108595         * modules/calloc (Makefile.am): Likewise.
108596         * modules/canon-host (Makefile.am): Likewise.
108597         * modules/canonicalize (Makefile.am): Likewise.
108598         * modules/chdir-long (Makefile.am): Likewise.
108599         * modules/chdir-safer (Makefile.am): Likewise.
108600         * modules/check-version (Makefile.am): Likewise.
108601         * modules/chown (Makefile.am): Likewise.
108602         * modules/cloexec (Makefile.am): Likewise.
108603         * modules/close-stream (Makefile.am): Likewise.
108604         * modules/closeout (Makefile.am): Likewise.
108605         * modules/crc (Makefile.am): Likewise.
108606         * modules/cycle-check (Makefile.am): Likewise.
108607         * modules/des (Makefile.am): Likewise.
108608         * modules/dirfd (Makefile.am): Likewise.
108609         * modules/dirname (Makefile.am): Likewise.
108610         * modules/dup2 (Makefile.am): Likewise.
108611         * modules/euidaccess (Makefile.am): Likewise.
108612         * modules/exclude (Makefile.am): Likewise.
108613         * modules/exitfail (Makefile.am): Likewise.
108614         * modules/fcntl-safer (Makefile.am): Likewise.
108615         * modules/file-type (Makefile.am): Likewise.
108616         * modules/fileblocks (Makefile.am): Likewise.
108617         * modules/filemode (Makefile.am): Likewise.
108618         * modules/filenamecat (Makefile.am): Likewise.
108619         * modules/fnmatch (Makefile.am): Likewise.
108620         * modules/fopen-safer (Makefile.am): Likewise.
108621         * modules/fpending (Makefile.am): Likewise.
108622         * modules/fprintftime (Makefile.am): Likewise.
108623         * modules/free (Makefile.am): Likewise.
108624         * modules/fsusage (Makefile.am): Likewise.
108625         * modules/ftruncate (Makefile.am): Likewise.
108626         * modules/fts (Makefile.am): Likewise.
108627         * modules/gc (Makefile.am): Likewise.
108628         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108629         * modules/getaddrinfo (Makefile.am): Likewise.
108630         * modules/getcwd (Makefile.am): Likewise.
108631         * modules/getdelim (Makefile.am): Likewise.
108632         * modules/getdomainname (Makefile.am): Likewise.
108633         * modules/getgroups (Makefile.am): Likewise.
108634         * modules/gethostname (Makefile.am): Likewise.
108635         * modules/gethrxtime (Makefile.am): Likewise.
108636         * modules/getline (Makefile.am): Likewise.
108637         * modules/getloadavg (Makefile.am): Likewise.
108638         * modules/getlogin_r (Makefile.am): Likewise.
108639         * modules/getopt (Makefile.am): Likewise.
108640         * modules/getpass (Makefile.am): Likewise.
108641         * modules/getpass-gnu (Makefile.am): Likewise.
108642         * modules/getsubopt (Makefile.am): Likewise.
108643         * modules/gettime (Makefile.am): Likewise.
108644         * modules/gettimeofday (Makefile.am): Likewise.
108645         * modules/getugroups (Makefile.am): Likewise.
108646         * modules/getusershell (Makefile.am): Likewise.
108647         * modules/glob (Makefile.am): Likewise.
108648         * modules/group-member (Makefile.am): Likewise.
108649         * modules/hard-locale (Makefile.am): Likewise.
108650         * modules/hash (Makefile.am): Likewise.
108651         * modules/hmac-md5 (Makefile.am): Likewise.
108652         * modules/hmac-sha1 (Makefile.am): Likewise.
108653         * modules/human (Makefile.am): Likewise.
108654         * modules/idcache (Makefile.am): Likewise.
108655         * modules/imaxabs (Makefile.am): Likewise.
108656         * modules/imaxdiv (Makefile.am): Likewise.
108657         * modules/inet_ntop (Makefile.am): Likewise.
108658         * modules/inet_pton (Makefile.am): Likewise.
108659         * modules/inttostr (Makefile.am): Likewise.
108660         * modules/isapipe (Makefile.am): Likewise.
108661         * modules/lchown (Makefile.am): Likewise.
108662         * modules/long-options (Makefile.am): Likewise.
108663         * modules/lstat (Makefile.am): Likewise.
108664         * modules/malloc (Makefile.am): Likewise.
108665         * modules/mathl (Makefile.am): Likewise.
108666         * modules/mbchar (Makefile.am): Likewise.
108667         * modules/md2 (Makefile.am): Likewise.
108668         * modules/md4 (Makefile.am): Likewise.
108669         * modules/md5 (Makefile.am): Likewise.
108670         * modules/memcasecmp (Makefile.am): Likewise.
108671         * modules/memchr (Makefile.am): Likewise.
108672         * modules/memcmp (Makefile.am): Likewise.
108673         * modules/memcoll (Makefile.am): Likewise.
108674         * modules/memcpy (Makefile.am): Likewise.
108675         * modules/memmem (Makefile.am): Likewise.
108676         * modules/memmove (Makefile.am): Likewise.
108677         * modules/mempcpy (Makefile.am): Likewise.
108678         * modules/memrchr (Makefile.am): Likewise.
108679         * modules/memset (Makefile.am): Likewise.
108680         * modules/memxor (Makefile.am): Likewise.
108681         * modules/mkancesdirs (Makefile.am): Likewise.
108682         * modules/mkdir (Makefile.am): Likewise.
108683         * modules/mkdir-p (Makefile.am): Likewise.
108684         * modules/mkdtemp (Makefile.am): Likewise.
108685         * modules/mkstemp (Makefile.am): Likewise.
108686         * modules/mktime (Makefile.am): Likewise.
108687         * modules/modechange (Makefile.am): Likewise.
108688         * modules/mountlist (Makefile.am): Likewise.
108689         * modules/nanosleep (Makefile.am): Likewise.
108690         * modules/openat (Makefile.am): Likewise.
108691         * modules/pagealign_alloc (Makefile.am): Likewise.
108692         * modules/physmem (Makefile.am): Likewise.
108693         * modules/poll (Makefile.am): Likewise.
108694         * modules/posixtm (Makefile.am): Likewise.
108695         * modules/posixver (Makefile.am): Likewise.
108696         * modules/putenv (Makefile.am): Likewise.
108697         * modules/quote (Makefile.am): Likewise.
108698         * modules/quotearg (Makefile.am): Likewise.
108699         * modules/raise (Makefile.am): Likewise.
108700         * modules/read-file (Makefile.am): Likewise.
108701         * modules/readline (Makefile.am): Likewise.
108702         * modules/readlink (Makefile.am): Likewise.
108703         * modules/readtokens (Makefile.am): Likewise.
108704         * modules/readutmp (Makefile.am): Likewise.
108705         * modules/realloc (Makefile.am): Likewise.
108706         * modules/regex (Makefile.am): Likewise.
108707         * modules/rename (Makefile.am): Likewise.
108708         * modules/rename-dest-slash (Makefile.am): Likewise.
108709         * modules/rijndael (Makefile.am): Likewise.
108710         * modules/rmdir (Makefile.am): Likewise.
108711         * modules/rpmatch (Makefile.am): Likewise.
108712         * modules/safe-read (Makefile.am): Likewise.
108713         * modules/safe-write (Makefile.am): Likewise.
108714         * modules/same (Makefile.am): Likewise.
108715         * modules/save-cwd (Makefile.am): Likewise.
108716         * modules/savedir (Makefile.am): Likewise.
108717         * modules/setenv (Makefile.am): Likewise.
108718         * modules/settime (Makefile.am): Likewise.
108719         * modules/sha1 (Makefile.am): Likewise.
108720         * modules/sig2str (Makefile.am): Likewise.
108721         * modules/snprintf (Makefile.am): Likewise.
108722         * modules/stdlib-safer (Makefile.am): Likewise.
108723         * modules/stpcpy (Makefile.am): Likewise.
108724         * modules/stpncpy (Makefile.am): Likewise.
108725         * modules/strcase (Makefile.am): Likewise.
108726         * modules/strcasestr (Makefile.am): Likewise.
108727         * modules/strchrnul (Makefile.am): Likewise.
108728         * modules/strcspn (Makefile.am): Likewise.
108729         * modules/strdup (Makefile.am): Likewise.
108730         * modules/strerror (Makefile.am): Likewise.
108731         * modules/strftime (Makefile.am): Likewise.
108732         * modules/strndup (Makefile.am): Likewise.
108733         * modules/strnlen (Makefile.am): Likewise.
108734         * modules/strpbrk (Makefile.am): Likewise.
108735         * modules/strsep (Makefile.am): Likewise.
108736         * modules/strstr (Makefile.am): Likewise.
108737         * modules/strtod (Makefile.am): Likewise.
108738         * modules/strtoimax (Makefile.am): Likewise.
108739         * modules/strtok_r (Makefile.am): Likewise.
108740         * modules/strtol (Makefile.am): Likewise.
108741         * modules/strtoll (Makefile.am): Likewise.
108742         * modules/strtoul (Makefile.am): Likewise.
108743         * modules/strtoull (Makefile.am): Likewise.
108744         * modules/strtoumax (Makefile.am): Likewise.
108745         * modules/strverscmp (Makefile.am): Likewise.
108746         * modules/time_r (Makefile.am): Likewise.
108747         * modules/timegm (Makefile.am): Likewise.
108748         * modules/tmpfile-safer (Makefile.am): Likewise.
108749         * modules/unistd-safer (Makefile.am): Likewise.
108750         * modules/unlinkdir (Makefile.am): Likewise.
108751         * modules/userspec (Makefile.am): Likewise.
108752         * modules/utime (Makefile.am): Likewise.
108753         * modules/utimecmp (Makefile.am): Likewise.
108754         * modules/utimens (Makefile.am): Likewise.
108755         * modules/vasnprintf (Makefile.am): Likewise.
108756         * modules/vasprintf (Makefile.am): Likewise.
108757         * modules/vsnprintf (Makefile.am): Likewise.
108758         * modules/xalloc (Makefile.am): Likewise.
108759         * modules/xgetcwd (Makefile.am): Likewise.
108760         * modules/xnanosleep (Makefile.am): Likewise.
108761         * modules/xreadlink (Makefile.am): Likewise.
108762         * modules/xstrtod (Makefile.am): Likewise.
108763         * modules/xstrtol (Makefile.am): Likewise.
108764         * modules/xstrtold (Makefile.am): Likewise.
108765         * modules/yesno (Makefile.am): Likewise.
108767 2006-10-12  Jim Meyering  <jim@meyering.net>
108769         * m4/getloadavg.m4: Revert the change below.
108771         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
108772         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
108773         fail with a symlink, which is what coreutils' ./bootstrap now
108774         creates by default.
108776 2006-10-12  Bruno Haible  <bruno@clisp.org>
108778         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
108779         mingw.
108780         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
108781         MSVC and mingw explicitly.
108783 2006-10-11  Simon Josefsson  <jas@extundo.com>
108784             Bruno Haible  <bruno@clisp.org>
108786         Add support for multiple gnulib-tool invocations in the scope of a
108787         single configure.ac file.
108788         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
108789         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
108790         with the same contents as the _LIBADD variable.
108791         (func_emit_initmacro_start, func_emit_initmacro_end,
108792         func_emit_initmacro_done): New functions.
108793         (func_import, func_create_testdir): Invoke them. Allow the identifiers
108794         gl_LIBOBJS and gl_LTLIBOBJS.
108796 2006-10-11  Bruno Haible  <bruno@clisp.org>
108798         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
108799         (func_create_testdir): Don't create po/Makefile.am, don't invoke
108800         autoreconf. Instead, invoke autopoint explicitly but move back the
108801         *.m4 files from gnulib.
108803 2006-10-11  Bruno Haible  <bruno@clisp.org>
108805         * gnulib-tool (func_usage): Make module names after --create-testdir
108806         optional.
108807         (func_create_testdir): If no module was specified, use nearly all
108808         modules.
108810 2006-10-12  Jim Meyering  <jim@meyering.net>
108812         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108813         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108814         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108815         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108816         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108817         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108818         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108819         (fts_set_stat_required): New function.
108820         (fts_open): Defer the calls to fts_stat, if possible or requested.
108821         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108822         into fts_stat itself.
108823         (fts_read): Perform any required (deferred) fts_stat call.
108824         (fts_build): Likewise, for the directory we're about to open and read.
108825         In the readdir loop, carefully decide whether each entry will require
108826         an eventual call to fts_stat, using dirent.d_type info if available.
108827         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108828         a command line argument into this function.  Update all callers.
108829         Map a return value of FTS_DOT to FTS_D for a command line argument.
108830         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108831         Thanks to Miklos Szeredi for his tenacity and for the initial
108832         bug report about "find" failing on a FUSE-based file system.
108834         * lib/fts.c (fts_open): Use consistent indentation.
108836 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108838         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108839         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108840         reported by Jim Meyering.  All uses of cache variables renamed
108841         to match Autoconf's.
108842         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108843         the other one.
108845         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108846         Fix misspelling in diagnostic.
108848 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108850         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108851         defined.  Problem reported by Matthew Woehlke.
108853         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108854         Add support for Tandem NonStop R series.
108855         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108856         Use new macro.
108858         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108859         (has_trailing_slash): Omit size arg; all callers changed.
108860         Omit 'inline', since it doesn't help performance and we'd
108861         need to configure it.
108862         Don't count //, ///, etc. as having a trailing slash.
108863         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108864         (rpl_rename_dest_slash): On failure, use rename's errno rather
108865         than (in some cases) an incorrect or junk errno.
108866         Simplify code by removing need to compute length; this does
108867         cause it to make two passes instead of one over the file name,
108868         but it's worth it.
108870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108871         change, since Autoconf's version may no longer be appropriate now
108872         that we are using CVS Autoconf's version.  Add support for Tandem.
108874 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108875             Bruno Haible  <bruno@clisp.org>
108877         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108878         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108879         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108880         gl_AC_TYPE_LONG_LONG.
108882         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108883         instead of HAVE_LONG_LONG.
108884         * lib/printf-args.c (printf_fetchargs): Likewise.
108885         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108886         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108887         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108888         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108889         gl_AC_TYPE_LONG_LONG.
108891 2006-10-11  Bruno Haible  <bruno@clisp.org>
108893         * m4/longlong.m4: Add comments.
108894         * m4/ulonglong.m4: Likewise.
108896 2006-10-10  Bruno Haible  <bruno@clisp.org>
108898         Make it possible to #define stpcpy, strdup to aliases.
108899         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108900         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108902 2006-10-10  Bruno Haible  <bruno@clisp.org>
108904         Make it possible to #define gcd to an alias.
108905         * lib/gcd.c: Include config.h.
108907 2006-10-10  Bruno Haible  <bruno@clisp.org>
108909         Make it possible to #define c_isascii to an alias.
108910         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108911         defined. Undefine the macros before defining them, to avoid gcc
108912         warnings.
108913         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108914         define NO_C_CTYPE_MACROS early.
108916 2006-10-10  Bruno Haible  <bruno@clisp.org>
108918         Make it possible to #define set_program_name to an alias.
108919         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108920         ENABLE_RELOCATABLE early.
108922 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108924         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108925         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108926         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108927         More generally, don't assume that 64-bit signed int is available
108928         if unsigned int is, and vice versa.
108929         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108930         unsigned symbols, not on their signed counterparts.
108931         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108932         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108933         (UINT64_C, UINTMAX_C):
108934         Likewise.
108935         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108936         unsigned counterparts.
108937         (Have_long_long, Unsigned): New macros.
108938         (Int): Renamed from INT.
108939         (strtoimax): Use the new macros.
108940         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108941         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108942         * modules/inttypes (inttypes.h): Substitute
108943         HAVE_UNSIGNED_LONG_LONG_INT.
108944         * modules/stdint (stdint.h): Likewise.
108945         (Files): Add m4/ulonglong.m4.
108947 2006-10-10  Bruno Haible  <bruno@clisp.org>
108949         Fix a gcc -Wshadow warning.
108950         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108951         to 'bucket'.
108952         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108953         gl_linked_indexof_from_to): Likewise.
108954         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108955         Likewise.
108956         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108957         Likewise.
108958         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108959         Reported by Eric Blake.
108961 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108963         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108964         for NetBSD.  Problem reported by Bruno Haible.
108966 2006-10-09  Jim Meyering  <jim@meyering.net>
108968         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108969         Patch from Bruno Haible.
108971 2006-10-09  Jim Meyering  <jim@meyering.net>
108973         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108974         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108975         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108977 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108979         Don't include <config.h> twice; this doesn't work in some cases,
108980         e.g., when config.h has "#define intmax_t long long int" and
108981         we include <config.h>, <inttypes.h>, <config.h> in that order.
108982         Problem reported by Matthew Woehlke in:
108983         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108984         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108985         * lib/fts-cycle.c: Don't include config.h.
108986         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108987         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108988         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108989         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108990         inttypes.h.
108991         * lib/xstrtoumax.c: Likewise.
108992         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108993         __strtol and the like, so that this module is more like its siblings.
108994         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108995         Remove; no longer needed now that we assume gnulib inttypes.h.
108997 2006-10-08  Bruno Haible  <bruno@clisp.org>
108999         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
109000         option.
109002 2006-10-07  Jim Meyering  <jim@meyering.net>
109004         * modules/inttypes (inttypes.h): Revert what seems to have been
109005         an inadvertent part of today's change: use "|", not "/" in the
109006         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
109008 2006-10-07  Bruno Haible  <bruno@clisp.org>
109010         * modules/sublist: New file.
109012 2006-10-07  Bruno Haible  <bruno@clisp.org>
109014         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
109015         * modules/argz (argz.h): Likewise.
109016         * modules/arpa_inet (arpa/inet.h): Likewise.
109017         * modules/byteswap (byteswap.h): Likewise.
109018         * modules/configmake (configmake.h): Likewise.
109019         * modules/fcntl (fcntl.h): Likewise.
109020         * modules/fnmatch (fnmatch.h): Likewise.
109021         * modules/getopt (getopt.h): Likewise.
109022         * modules/glob (glob.h): Likewise.
109023         * modules/inttypes (inttypes.h): Likewise.
109024         * modules/netinet_in (netinet/in.h): Likewise.
109025         * modules/poll (poll.h): Likewise.
109026         * modules/stdbool (stdbool.h): Likewise.
109027         * modules/stdint (stdint.h): Likewise.
109028         * modules/sys_select (sys/select.h): Likewise.
109029         * modules/sys_socket (sys/socket.h): Likewise.
109030         * modules/sys_stat (sys/stat.h): Likewise.
109031         * modules/sysexits (sysexits.h): Likewise.
109032         * modules/unistd (unistd.h): Likewise.
109033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109034         Add a "DO NOT EDIT" comment to the generated file.
109035         (func_import): Likewise for gnulib-comp.m4.
109037 2006-10-07  Bruno Haible  <bruno@clisp.org>
109039         * lib/gl_sublist.h: New file.
109040         * lib/gl_sublist.c: New file.
109042 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
109044         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
109045         name (relative to the original working directory) and the file
109046         name component (relative to the temporary working directory).  All
109047         callers changed.
109048         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
109049         * lib/mkdir-p.c (make_dir_parents): Likewise.
109050         * lib/mkdir-p.h (make_dir_parents): Likewise.
109052 2006-10-06  Eric Blake  <ebb9@byu.net>
109054         Define several macros for use by the clean-temp module.
109055         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
109056         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
109057         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
109059         * lib/clean-temp.h (close_stream_temp): New declaration.
109060         * lib/clean-temp.c (includes): Pull in headers according to what
109061         other modules are in use.
109062         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
109064 2006-10-06  Bruno Haible  <bruno@clisp.org>
109066         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
109067         instead of fopen, fwriteerror.
109069 2006-10-06  Bruno Haible  <bruno@clisp.org>
109071         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
109072         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
109073         int.
109074         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
109075         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
109076         Return an error indicator.
109077         Suggested by Eric Blake.
109079 2006-10-06  Bruno Haible  <bruno@clisp.org>
109081         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
109082         Reported by Eric Blake.
109084 2006-10-06  Bruno Haible  <bruno@clisp.org>
109086         * modules/closeout (Description): Mention stderr too.
109088 2006-10-06  Bruno Haible  <bruno@clisp.org>
109089         and Paul Eggert  <eggert@cs.ucla.edu>
109091         * lib/closeout.c (close_stdout): Also close stderr.
109092         * lib/closeout.h: Update comment.
109094 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109096         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
109097         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
109098         * lib/dirchownmod.c: Include lchown.h.
109099         * lib/lchown.c: Don't include files that lchown.h now includes.
109100         Don't declare chown, since lchown.h now does that.
109101         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
109102         (lchown): Define to rpl_chown if lchown is declared but
109103         does not exist.  Declare using a prototype if lchown is not
109104         declared.  Add a copyright notice.
109105         * lib/mkstemp.h: Include <unistd.h>.
109106         * lib/openat.c: Include lchown.h.
109108         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
109109         we now test for that separately.
109110         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
109111         rather than O_NOFOLLOW, when testing whether it's possible to
109112         avoid a race condition reliably.
109113         * lib/savewd.c (savewd_chdir): Likewise.
109115         Remove macros that are no longer needed now that stdint.h is
109116         reliable.
109117         * lib/fsusage.c (UINTMAX_MAX): Remove.
109118         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
109119         * lib/utimecmp.c (SIZE_MAX): Remove.
109121         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
109123         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
109124         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
109125         O_NOATIME works.
109127 2006-10-05  Bruno Haible  <bruno@clisp.org>
109129         * lib/gl_list.h (gl_sortedlist_search_from_to,
109130         gl_sortedlist_indexof_from_to): New declarations.
109131         (gl_list_implementation): New fields sortedlist_search_from_to,
109132         sortedlist_indexof_from_to.
109133         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
109134         inline functions.
109135         * lib/gl_list.c (gl_sortedlist_search_from_to,
109136         gl_sortedlist_indexof_from_to): New functions.
109137         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
109138         function.
109139         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
109140         (gl_array_sortedlist_search_from_to): New function.
109141         (gl_array_list_implementation): Update.
109142         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
109143         function.
109144         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
109145         (gl_carray_sortedlist_search_from_to): New function.
109146         (gl_carray_list_implementation): Update.
109147         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
109148         gl_linked_sortedlist_indexof_from_to): New functions.
109149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109151         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
109152         gl_tree_sortedlist_indexof_from_to): New functions.
109153         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109154         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109155         Update.
109156         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109157         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
109158         Update.
109160 2006-10-05  Bruno Haible  <bruno@clisp.org>
109162         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
109163         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
109164         (struct gl_list_implementation): Add fields search_from_to,
109165         indexof_from_to. Remove fields search, indexof.
109166         (gl_list_search): Use the search_from_to method.
109167         (gl_list_search_from, gl_list_search_from_to): New functions.
109168         (gl_list_indexof): Use the indexof_from_to method.
109169         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109170         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
109171         (gl_list_search_from, gl_list_search_from_to): New functions.
109172         (gl_list_indexof): Use the indexof_from_to method.
109173         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109174         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
109175         gl_array_indexof. Add start_index, end_index arguments.
109176         (gl_array_search_from_to): Renamed from gl_array_search. Add
109177         start_index, end_index arguments.
109178         (gl_array_remove, gl_array_list_implementation): Update.
109179         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
109180         gl_carray_indexof. Add start_index, end_index arguments.
109181         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
109182         start_index, end_index arguments.
109183         (gl_carray_remove, gl_carray_list_implementation): Update.
109184         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
109185         gl_linked_search. Add start_index, end_index arguments.
109186         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
109187         start_index, end_index arguments.
109188         (gl_linked_remove): Update.
109189         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109190         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109191         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
109192         field to 'size_t'.
109193         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
109194         gl_tree_search. Add start_index, end_index arguments.
109195         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109196         start_index, end_index arguments.
109197         (gl_tree_remove): Update.
109198         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109199         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109200         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
109201         function.
109202         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
109203         gl_tree_search. Add start_index, end_index arguments.
109204         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109205         start_index, end_index arguments.
109206         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109207         Update.
109208         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
109210 2006-10-05  Bruno Haible  <bruno@clisp.org>
109212         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
109214         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
109215         fwriteerror_temp): New declarations.
109216         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
109217         (descriptors): New variable.
109218         (cleanup): First, close the descriptors.
109219         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
109220         fclose_temp, fwriteerror_temp): New functions.
109222 2006-10-04  Jim Meyering  <jim@meyering.net>
109224         * lib/fts.c (fts_open): Tiny comment change.
109226 2006-10-04  Bruno Haible  <bruno@clisp.org>
109228         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
109229         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
109230         gl_LOCK_BODY.
109231         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
109232         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
109233         gl_LOCK_EARLY_BODY.
109234         (gl_LOCK): Require gl_LOCK_BODY.
109236 2006-10-04  Bruno Haible  <bruno@clisp.org>
109238         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
109239         (gl_oset_search_atleast): New declaration.
109240         (struct gl_oset_implementation): Add field 'search_atleast'.
109241         (gl_oset_search_atleast): New inline function.
109242         * lib/gl_oset.c (gl_oset_search_atleast): New function.
109243         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
109244         (gl_array_oset_implementation): Update.
109245         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
109246         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
109247         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
109249 2006-10-04  Bruno Haible  <bruno@clisp.org>
109251         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
109253 2006-10-03  Bruno Haible  <bruno@clisp.org>
109255         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
109256         from gl_avltreehash_list_implementation.
109258 2006-10-03  Bruno Haible  <bruno@clisp.org>
109260         * lib/gl_oset.c (gl_oset_add): Fix return type.
109262 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
109264         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
109266 2006-10-02  Eric Blake  <ebb9@byu.net>
109268         * modules/strnlen (Depends-on): Add extensions.
109270 2006-10-02  Eric Blake  <ebb9@byu.net>
109272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
109273         definition in 2.60+.
109275 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
109277         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
109278         checks.
109280 2006-10-02  Bruno Haible  <bruno@clisp.org>
109282         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
109283         to the AUTOMAKE_OPTIONS.
109284         Reported by Jim Meyering.
109286 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109288         Work around bug in Solaris 10 /proc file system:
109289         /proc/self/fd/NNN/.. isn't the parent directory of
109290         the directory whose file descriptor is NNN.  This needs to
109291         be worked around at run time, not compile time, since a
109292         program might be built on Solaris 8, where things work, and
109293         run on Solaris 10.
109294         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
109295         to use the following interface instead:
109296         (OPENAT_BUFFER_SIZE): New macro.
109297         (openat_proc_name): New function.
109298         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
109299         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
109300         Likewise.
109301         * lib/openat-proc.c: New file.
109302         * modules/openat (Files): Add lib/openat-proc.c.
109303         (Depends-on): Add same-inode, stdbool.
109304         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
109306 2006-09-29  Bruno Haible  <bruno@clisp.org>
109308         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
109309         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
109310         argument. Set stdout_closed before testing for ferror, not after.
109311         (fwriteerror, fwriteerror_no_ebadf): New functions.
109313 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109315         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
109317 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
109319         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
109320         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
109322 2006-09-28  Jim Meyering  <jim@meyering.net>
109324         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
109325         Include <unistd.h>.
109327 2006-09-28  Bruno Haible  <bruno@clisp.org>
109329         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
109330         * modules/linkedhash-list (Depends-on): Likewise.
109331         * modules/rbtreehash-list (Depends-on): Likewise.
109333 2006-09-28  Bruno Haible  <bruno@clisp.org>
109335         * lib/strndup.h: Simplify the redefinition of strndup.
109336         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
109337         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
109339 2006-09-28  Bruno Haible  <bruno@clisp.org>
109341         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
109342         * lib/gl_linkedhash_list.c: Likewise.
109343         * lib/gl_rbtreehash_list.c: Likewise.
109345 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109347         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
109348         getaddrinfo.
109350         * lib/__fpending.h: Don't include <stdio_ext.h> unless
109351         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
109352         it causes <stdio_ext.h> to cause a compile-time error.
109353         Problem reported by Nelson H. F. Beebe.
109354         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
109355         of HAVE_DECL___PENDING.
109357         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
109358         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
109359         declaration.
109361 2006-09-27  Jim Meyering  <jim@meyering.net>
109363         This file could end up with a definition for a function
109364         named __strndup, rather than rpl_strndup on a system with
109365         incomplete weak_alias support.
109366         * lib/strndup.c (strndup): Rename from __strndup.
109367         Remove #defines that used to map __strndup to strndup.
109368         Don't use K&R prototypes.
109369         Remove LIBC-related code, since this file is not sync'd with glibc.
109370         * lib/strndup.h: Revamp, accordingly.
109371         * m4/strndup.m4: Modernize.
109373 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109375         * modules/savewd (Depends-on): Add 'raise'.
109376         * lib/savewd.c: Include <signal.h>, for 'raise'.
109378 2006-09-26  Jim Meyering  <jim@meyering.net>
109380         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
109381         when we detect Darwin 8.7.0's acl_get_file bug.
109382         Rearrange to perform the new (below) run-test while $LIBS
109383         contains any acl-related library.  Set USE_ACL at the end.
109384         (gl_ACL_GET_FILE): New function.
109386 2006-09-26  Eric Blake  <ebb9@byu.net>
109388         * lib/verror.c: Include <config.h> unconditionally.
109390 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
109392         * modules/clock-time (Maintainer): Add self.
109393         * modules/getlogin_r (Depends-on): Add extensions.
109395 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109397         * modules/clock-time: New module.
109398         * modules/nanosleep (Depends-on): Add clock-time.
109399         * modules/gethrxtime (Depends-on): Likewise.
109400         * modules/gettime (Depends-on): Likewise.
109401         * modules/settime (Depends-on): Likewise.
109403         * modules/fts-lgpl: Depend on openat.
109404         * modules/mkancesdirs: Depend on savewd.
109405         * modules/mkdir-p: Likewise.
109407 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109409         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
109411         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
109412         `gl_have_arbitrary_file_name_length_limit' to
109413         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
109414         actually works between configure runs.
109416 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109417             Bruno Haible  <bruno@clisp.org>
109419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
109421 2006-09-25  Jim Meyering  <jim@meyering.net>
109423         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
109424         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
109426 2006-09-25  Eric Blake  <ebb9@byu.net>
109428         * gnulib-tool (func_import, func_create_testdir): Fix typos in
109429         exec's in 2006-09-18 patch when shuffling fds.
109431 2006-09-25  Bruno Haible  <bruno@clisp.org>
109433         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
109434         Reported by Jim Meyering.
109436 2006-09-24  Jim Meyering  <jim@meyering.net>
109438         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
109439         compare a pointer against a literal "0".  That caused failures with
109440         at least HP-UX's hpcc.
109442 2006-09-22  Simon Josefsson  <jas@extundo.com>
109444         * modules/gc-sha1:
109445         * modules/gc-md4:
109446         * modules/gc-hmac-sha1:
109447         * modules/gc-hmac-md5:
109448         * modules/gc-des:
109449         * modules/gc-arcfour: Distribute more files.
109451 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109453         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
109454         (gl_linked_iterator_from_to): Initialize struct completely.
109455         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
109456         (gl_tree_iterator_from_to): Likewise
109457         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
109458         * lib/gl_array_list.c [lint] (gl_array_iterator)
109459         (gl_array_iterator_from_to): Likewise.
109460         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
109461         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
109462         (gl_carray_iterator_from_to): Likewise.
109464         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
109465         * lib/md4.c (md4_process_block): Remove unused variable.
109466         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
109467         parentheses for clarity.
109469 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109471         * modules/bison-i18n (Depends-on): Add gettext.
109473 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109475         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
109476         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
109477         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
109478         also add missing comma that caused broken test.
109479         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
109480         stdlib.h, for `abort'.
109481         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
109482         variables.
109483         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
109484         include unistd.h if present, for `rmdir'.
109485         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
109486         variables.
109487         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
109488         in the process include standard headers for prototypes.
109489         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
109490         gets declared on GNU/Linux.
109491         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
109492         unistd.h, for `rmdir'.
109493         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
109495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
109496         always true.
109497         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
109499         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
109501 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109503         * gnulib-tool (func_version): Create output all at once.  This
109504         may help avoid triggering unnecessary SIGPIPEs, and at any
109505         rate it doesn't hurt.
109507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109508             Bruno Haible  <bruno@clisp.org>
109510         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
109511         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109512         * m4/signed.m4 (bh_C_SIGNED): Likewise.
109514         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
109515         (gl_FUNC_VASPRINTF): Invoke it.
109517 2006-09-22  Bruno Haible  <bruno@clisp.org>
109519         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
109520         getloadavg.c as first argument.
109522 2006-09-22  Bruno Haible  <bruno@clisp.org>
109524         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
109525         at the beginning of the gl_INIT macro.
109526         * modules/getloadavg (configure.ac): Pass $gl_source_base to
109527         gl_GETLOADAVG.
109529 2006-09-22  Bruno Haible  <bruno@clisp.org>
109531         * gnulib-tool (func_create_megatestdir): Don't include the config-h
109532         module.
109533         Suggested by Ralf Wildenhues.
109535 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
109537         Import this patch from libc:
109539         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
109541         * lib/regex_internal.c (re_string_reconstruct): Handle
109542         offset < pstr->valid_raw_len && pstr->offsets_needed case.
109543         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
109544         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
109545         re_string_context_at.
109547         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
109548         now requires it.
109549         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
109550         gl_REGEX now does it for us.
109551         (gl_REGEX): Add test taken from
109552         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
109554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
109555         Check that large offsets work.  Modernize Autoconf usages.
109556         Prefer "yes" to mean a good thing rather than a bad.
109557         Don't put "#define mkstemp" in config.h, as this might interfere
109558         with standard system headers that "#define mkstemp mkstemp64".
109560         * modules/mkstemp (Depends-on): Add extensions, so that
109561         mkstemp is visible on some platforms.
109562         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
109563         (Include): Change to "mkstemp.h" from <stdlib.h>.
109564         (Files): Add mkstemp.h.
109566         * lib/mkstemp.h: New file, since some standard headers
109567         #define mkstemp.
109568         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
109569         Include "mkstemp.h".
109570         Make the _LIBC code resemble glibc original more,
109571         e.g., use K&R style.
109572         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
109573         (mkstemp): Remove, since mkstemp.h does this for us.
109574         * lib/stdlib--.h: Include mkstemp.h.
109576         Import this patch from libc:
109578         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109580         * lib/tempname.c (__gen_tempname): Change attempts_min
109581         into a macro.  Use preprocessor to decide how to initialize
109582         attempts [Coverity CID 67].
109584 2006-09-20  Bruno Haible  <bruno@clisp.org>
109586         * lib/mkdtemp.c: Import from libc.
109587         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109588                 * sysdeps/posix/tempname.c (__gen_tempname): Change
109589                 attempts_min into a macro.  Use preprocessor to decide how to
109590                 initialize attempts [Coverity CID 67].
109591         2001-11-27  Paul Eggert  <eggert@twinsun.com>
109592                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
109593                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
109595 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109597         * gnulib-tool (func_exit): New function, to allow to pass the
109598         exit status portably through the trap.  Use everywhere.
109599         (--help, --version): Signal a write error.
109600         (trap): catch SIGPIPE, for write errors.
109601         Exit at the end of the trap, with the correct exit status.
109603 2006-09-19  Karl Berry  <karl@gnu.org>
109605         * doc/gnulib.texi: note about the license texinfo files.
109607 2006-09-19  Eric Blake  <ebb9@byu.net>
109609         * gnulib-tool: Avoid space-tab.
109611 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109613         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
109614         that prevented coreutils 6.1 from building.  Problem reported
109615         by Petter Reinholdtsen.
109617 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109619         * gnulib-tool (avoidlist): Fix typo that broke options like
109620         --avoid=lock that are used by coreutils bootstrap.
109622 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
109624         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
109625         more systematically.
109627 2006-09-18  Jim Meyering  <jim@meyering.net>
109629         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
109631 2006-09-18  Bruno Haible  <bruno@clisp.org>
109633         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
109635 2006-09-18  Bruno Haible  <bruno@clisp.org>
109637         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
109638         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
109639         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
109640         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
109641         * m4/gettext.m4: Require autoconf >= 2.52.
109642         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
109643         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
109644         of gl_cv_header_inttypes_h.
109646 2006-09-18  Bruno Haible  <bruno@clisp.org>
109648         * lib/javaversion.c: Include configmake.h.
109650 2006-09-18  Bruno Haible  <bruno@clisp.org>
109652         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
109653         avoid that the while loops be executed in a subshell.
109655 2006-09-18  Bruno Haible  <bruno@clisp.org>
109657         * MODULES.html.sh (func_module): Break long lines.
109658         Suggested by Bruce Korb <bkorb@gnu.org>.
109660 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109662         Speed up by a factor of 1.12.
109663         * gnulib-tool (nl): New variable.
109664         (func_import): Rewrite include directive extraction to only read each
109665         directive once.
109667 2006-09-17  Bruno Haible  <bruno@clisp.org>
109669         * modules/javaversion (Makefile.am): Remove DEFS setting.
109670         (Depends-on): Add configmake, for PKGDATADIR definition.
109672 2006-09-17  Bruno Haible  <bruno@clisp.org>
109674         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109676 2006-09-17  Bruno Haible  <bruno@clisp.org>
109678         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109679         (func_modules_transitive_closure, func_modules_add_dummy,
109680         func_modules_to_filelist, func_import, func_create_testdir,
109681         func_create_megatestdir, ...): Use it wherever possible.
109682         Suggested by Ralf Wildenhues.
109684 2006-09-16  Karl Berry  <karl@gnu.org>
109686         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109687         to avoid sectioning errors.
109688         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109689         [ifinfo]: blank line after @center-ed titles.
109690         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109691         Spell FSF address consistently with others.
109692         (These changes approved by rms.)
109694 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109696         Speed up by a factor of 1.61.
109697         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109698         already checked module names again.
109700 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109702         Speed up by a factor of 1.13.
109703         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109704         for new_files, and the input to func_add_or_update.
109706 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109708         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
109709         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
109711 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109713         * modules/mkancesdirs (Depends-on): Add fcntl.
109714         * modules/savewd: New file.
109715         * MODULES.html.sh (File system functions): Add savewd.
109717         * modules/configmake (Makefile.am): Add support for the
109718         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
109720 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109722         * m4/savewd.m4: New file.
109724 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109726         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
109727         (dirchownmod): New arg FD.  All callers changed.
109728         Use FD rather than opening the directory ourself, as opening is
109729         now the caller's responsibility.
109730         * lib/dirchownmod.h: Likewise.
109731         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
109732         hosts that require <sys/types.h> before <sys/stat.h>.  Include
109733         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
109734         (test_dir): Remove.
109735         (mkancesdirs): Return length of prefix of FILE that has already
109736         been made, or -2 if there is a child doing the work.  Redo
109737         algorithm so that it is O(N) rather than O(N**2).  Optimize away
109738         ".", and treat ".." specially since it might stray back into
109739         already-created areas.  Use a subprocess if necessary.  New arg
109740         WD; all users changed.  MAKE_DIR function should now return 1
109741         if it creates a directory that is not readable.  Return -2 if
109742         a child process is spun off.
109743         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
109744         Adjust signature to match code.
109745         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
109746         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
109747         all users changed.
109748         * lib/savewd.c, lib/savewd.h: New files.
109750 2006-09-15  Jim Meyering  <jim@meyering.net>
109752         * modules/rename-dest-slash: New module.
109753         * MODULES.html.sh (posix_compat): Add it here.
109755         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
109757 2006-09-15  Jim Meyering  <jim@meyering.net>
109759         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
109760         file.
109762         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
109764 2006-09-15  Jim Meyering  <jim@meyering.net>
109766         * lib/rename-dest-slash.c (has_trailing_slash): Use
109767         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
109768         (rpl_rename_dest_slash): Perform the cheaper trailing slash
109769         test before testing whether SRC is a directory.
109770         Suggestions from Bruno Haible.
109772         Avoid a warning about an unused variable.
109773         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
109774         into the #ifdef block where it's used.
109776         * lib/rename-dest-slash.c: New file.
109778 2006-09-14  Bruno Haible  <bruno@clisp.org>
109780         * lib/allocsa.c: Include <config.h> unconditionally.
109781         * lib/asnprintf.c: Likewise.
109782         * lib/asprintf.c: Likewise.
109783         * lib/c-strcasecmp.c: Likewise.
109784         * lib/c-strcasestr.c: Likewise.
109785         * lib/c-strncasecmp.c: Likewise.
109786         * lib/c-strstr.c: Likewise.
109787         * lib/classpath.c: Likewise.
109788         * lib/clean-temp.c: Likewise.
109789         * lib/concatpath.c: Likewise.
109790         * lib/copy-file.c: Likewise.
109791         * lib/csharpcomp.c: Likewise.
109792         * lib/csharpexec.c: Likewise.
109793         * lib/execute.c: Likewise.
109794         * lib/fatal-signal.c: Likewise.
109795         * lib/findprog.c: Likewise.
109796         * lib/fwriteerror.c: Likewise.
109797         * lib/gl_array_list.c: Likewise.
109798         * lib/gl_array_oset.c: Likewise.
109799         * lib/gl_avltree_list.c: Likewise.
109800         * lib/gl_avltree_oset.c: Likewise.
109801         * lib/gl_avltreehash_list.c: Likewise.
109802         * lib/gl_carray_list.c: Likewise.
109803         * lib/gl_linked_list.c: Likewise.
109804         * lib/gl_linkedhash_list.c: Likewise.
109805         * lib/gl_list.c: Likewise.
109806         * lib/gl_oset.c: Likewise.
109807         * lib/gl_rbtree_list.c: Likewise.
109808         * lib/gl_rbtree_oset.c: Likewise.
109809         * lib/gl_rbtreehash_list.c: Likewise.
109810         * lib/imaxabs.c: Likewise.
109811         * lib/imaxdiv.c: Likewise.
109812         * lib/javacomp.c: Likewise.
109813         * lib/javaexec.c: Likewise.
109814         * lib/javaversion.c: Likewise.
109815         * lib/linebreak.c: Likewise.
109816         * lib/localcharset.c: Likewise.
109817         * lib/lock.c: Likewise.
109818         * lib/mbchar.c: Likewise.
109819         * lib/mbswidth.c: Likewise.
109820         * lib/mkdtemp.c: Likewise.
109821         * lib/pipe.c: Likewise.
109822         * lib/printf-args.c: Likewise.
109823         * lib/printf-parse.c: Likewise.
109824         * lib/progname.c: Likewise.
109825         * lib/progreloc.c: Likewise.
109826         * lib/readlink.c: Likewise.
109827         * lib/sh-quote.c: Likewise.
109828         * lib/stpcpy.c: Likewise.
109829         * lib/stpncpy.c: Likewise.
109830         * lib/strcasecmp.c: Likewise.
109831         * lib/strcasestr.c: Likewise.
109832         * lib/strcspn.c: Likewise.
109833         * lib/striconv.c: Likewise.
109834         * lib/strncasecmp.c: Likewise.
109835         * lib/strnlen1.c: Likewise.
109836         * lib/strstr.c: Likewise.
109837         * lib/strtok_r.c: Likewise.
109838         * lib/tls.c: Likewise.
109839         * lib/tmpdir.c: Likewise.
109840         * lib/unicodeio.c: Likewise.
109841         * lib/unsetenv.c: Likewise.
109842         * lib/vasnprintf.c: Likewise.
109843         * lib/vasprintf.c: Likewise.
109844         * lib/wait-process.c: Likewise.
109845         * lib/xallocsa.c: Likewise.
109846         * lib/xsetenv.c: Likewise.
109847         * lib/xstriconv.c: Likewise.
109849 2006-09-13  Simon Josefsson  <jas@extundo.com>
109851         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109852         that internally, suggested by Ralf Wildenhues
109853         <Ralf.Wildenhues@gmx.de>.
109855 2006-09-13  Simon Josefsson  <jas@extundo.com>
109857         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109858         @LIBOBJS@.
109859         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109861 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109863         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109864         longer worry about uses that don't define HAVE_CONFIG_H.
109865         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109866         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109867         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109868         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109869         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109870         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109871         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109872         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109873         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109874         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109875         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109876         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109877         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109878         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109879         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109880         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109881         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109882         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109883         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109884         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109885         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109886         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109887         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109888         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109889         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109890         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109891         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109892         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109893         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109894         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109895         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109896         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109897         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109898         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109899         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109900         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109901         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109902         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109903         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109904         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109905         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109906         Likewise.
109908 2006-09-13  Eric Blake  <ebb9@byu.net>
109910         * lib/getopt.c: Fix typo in last commit.
109912 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109914         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109915         dgettext.
109917 2006-09-12  Jim Meyering  <jim@meyering.net>
109919         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109920         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109921         Reported by Nelson H. F. Beebe.
109923 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109925         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109926         program_invocation_name and program_invocation_short_name are
109927         initialized.
109928         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109929         and program_invocation_short_name to argp.h, so they are visible
109930         to user programs.
109931         * lib/argp.h: Likewise
109933 2006-09-10  Bruno Haible  <bruno@clisp.org>
109935         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109936         m4/inttypes_h.m4, m4/uintmax_t.m4.
109938 2006-09-10  Bruno Haible  <bruno@clisp.org>
109940         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109941         gl_AC_TYPE_UINTMAX_T.
109943 2006-09-10  Bruno Haible  <bruno@clisp.org>
109945         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109947 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109949         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109950         convention.  Text proposed by Bruno Haible.
109951         (struct argp_option): Document the use of N_() wrappers.
109953         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109954         '\v', and translate the two parts separately, instead of feeding
109955         the whole string to gettext.  This allows to exclude
109956         '\v' from the strings visible to the translator by writing doc
109957         strings as N_("..") "\v" N_("..").
109959 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109961         * config/srclist.txt: Undo latest change; the bug was fixed.
109963 2006-09-09  Bruno Haible  <bruno@clisp.org>
109965         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109966         assignments if building a library without libtool.
109967         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109968         in func_emit_lib_Makefile_am.
109969         (func_import): When building a static library libfoo.a, arrange to
109970         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109971         (func_create_testdir): Likewise.
109972         * modules/gc (configure.ac, Makefile.am): If building statically,
109973         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109974         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109975         * modules/striconv (configure.ac, Makefile.am): Likewise.
109976         Based on a suggestion by Ralf Wildenhues.
109978 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109980         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109981         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109982         Also:
109984         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109985         Add year_2050_test to catch glibc bug 2821
109986         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109988         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109989         Prefer #ifdef to #if.
109991         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109992         Return from 'main' instead of calling 'exit'.
109994 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109996         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109997         returned the maximum time_t value rather than (time_t) -1.
109998         Problem originally reported by William Bardwell
109999         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110001         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110002         Moved to here ...
110003         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110004         ... from here.
110006 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110008         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
110009         2821 is fixed.
110011 2006-09-08  Jim Meyering  <jim@meyering.net>
110013         Don't make generated files read-only.  That would bother too many
110014         people.  However, do retain the ability to work when targets are
110015         read-only: remove the destination and temporary files before writing
110016         them (when generated via sed or echo), or by using the -f option for
110017         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
110018         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110019         * modules/byteswap, modules/configmake, modules/fcntl:
110020         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110021         * modules/localcharset, modules/netinet_in, modules/poll:
110022         * modules/stdbool, modules/stdint, modules/sys_select:
110023         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110025 2006-09-08  Jim Meyering  <jim@meyering.net>
110027         Avoid new build failure on FreeBSD 6.0.
110028         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
110029         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
110030         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
110032 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110034         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
110036 2006-09-07  Jim Meyering  <jim@meyering.net>
110038         Fix global typo in last change: use chmod u-w, not chmod u-x.
110039         Spotted by Paul Eggert and Bruce Korb.
110040         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110041         * modules/byteswap, modules/configmake, modules/fcntl:
110042         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110043         * modules/localcharset, modules/netinet_in, modules/poll:
110044         * modules/stdbool, modules/stdint, modules/sys_select:
110045         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110047 2006-09-06  Jim Meyering  <jim@meyering.net>
110049         Make generated files be read-only.
110050         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
110051         Ensure that each generated file is now read-only.
110052         * modules/argz: Likewise.
110053         * modules/arpa_inet: Likewise.
110054         * modules/byteswap: Likewise.
110055         * modules/configmake: Likewise.
110056         * modules/fcntl: Likewise.
110057         * modules/fnmatch: Likewise.
110058         * modules/getopt: Likewise.
110059         * modules/glob: Likewise.
110060         * modules/inttypes: Likewise.
110061         * modules/netinet_in: Likewise.
110062         * modules/poll: Likewise.
110063         * modules/stdbool: Likewise.
110064         * modules/stdint: Likewise.
110065         * modules/sys_select: Likewise.
110066         * modules/sys_socket: Likewise.
110067         * modules/sys_stat: Likewise.
110068         * modules/sysexits: Likewise.
110069         * modules/localcharset: Same as above, but continue using temporary
110070         file named "t-$@" (why different?) rather than the "$@-t" used
110071         everywhere else.
110073         * modules/sysexits (Makefile.am): Replace literal occurrences
110074         of "sysexit.h" more readable, and more consistent, "$@".
110076 2006-09-06  Bruno Haible  <bruno@clisp.org>
110078         * modules/striconv: New file.
110079         * modules/xstriconv: New file.
110080         * MODULES.html.sh (Internationalization functions): Add striconv,
110081         xstriconv.
110083 2006-09-06  Bruno Haible  <bruno@clisp.org>
110085         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
110086         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
110087         not using libtool correctly.
110089 2006-09-06  Bruno Haible  <bruno@clisp.org>
110091         * lib/striconv.h: New file.
110092         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
110093         iconvstring.c.
110094         * lib/xstriconv.h: New file.
110095         * lib/xstriconv.c: New file.
110097 2006-09-06  Bruno Haible  <bruno@clisp.org>
110099         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110100         lib_..._LDFLAGS.
110102 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110104         * lib/argz_.h: Sync from Libtool.
110106         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
110107                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110109         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
110111 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110113         * modules/trim: New file.
110115 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110117         * lib/trim.h: New file.
110118         * lib/trim.c: New file.
110120 2006-09-05  Bruno Haible  <bruno@clisp.org>
110122         * MODULES.html.sh (String handling): Add trim.
110124 2006-09-04  Karl Berry  <karl@gnu.org>
110126         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
110127         until next release.
110129 2006-09-03  Bruno Haible  <bruno@clisp.org>
110131         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
110132         correctly.
110134 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110136         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
110137         not gl_GETLOADAVG.  Omit unneeded semicolons.
110138         Problems reported by Ralf Wildenhues in
110139         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110140         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
110141         at the end, which is the usual gnulib style.
110143         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
110144         of doing all the work ourselves.
110145         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
110146         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
110148 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110150         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
110151         Problem reported by Ralf Wildenhues in
110152         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110154         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
110155         HAVE_STRUCT_STATFS_F_FSTYPENAME.
110157 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110159         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
110160         yesterday's patch by changing test -n to test -z.
110162 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110164         * modules/getloadavg (Files): Add m4/getloadavg.m4.
110165         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
110166         the former is now obsolescent.
110168         * modules/chdir-long (Depends-on): Add fcntl.
110170 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110172         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
110173         obsolescent, and programs should use gnulib instead.
110174         * m4/getloadavg.m4: New file, with contents taken from Autoconf
110175         but with prefixes changed.
110177 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110179         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
110180         or stdbool.h, because they might not exist while configuring.
110182         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
110183         Don't include unistd.h or limits.h; not needed, since chdir-long.h
110184         does that for us.
110185         (O_DIRECTORY): Remove.
110187 2006-08-31  Eric Blake  <ebb9@byu.net>
110189         * gnulib-tool: Don't let emacs change spaces to TAB.
110191 2006-08-31  Bruno Haible  <bruno@clisp.org>
110193         * gnulib-tool: When calling func_import more than once, do it in a
110194         subshell.
110195         Reported by Eric Blake <ebb9@byu.net>.
110197 2006-08-31  Bruno Haible  <bruno@clisp.org>
110199         * gnulib-tool (nl): Remove variable.
110200         (sed_transform_lib_file): Use more robust test for config-h module.
110201         (func_import): Fix typo in 2006-08-25 patch.
110203 2006-08-31  Bruno Haible  <bruno@clisp.org>
110205         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
110206         specified, augment Makefile.am variables instead of assigning them.
110208 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110210         Work around a bug in both the Linux and SunOS 64-bit kernels:
110211         nanosleep mishandles sleeps for longer than 2**31 seconds.
110212         Problem reported by Frank v Waveren in
110213         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
110215         Check for nanosleep bug.
110216         (LIB_NANOSLEEP): Append clock_gettime library if needed.
110218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110220         Work around a bug in both the Linux and SunOS 64-bit kernels:
110221         nanosleep mishandles sleeps for longer than 2**31 seconds.
110222         Problem reported by Frank v Waveren in
110223         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110224         * lib/nanosleep.c (BILLION): New constant.
110225         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
110226         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
110227         implementation.
110229 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110231         * modules/nanosleep (Depends-on): Add gettime.
110233 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110234         and Simon Josefsson  <jas@extundo.com>
110235         and Oskar Liljeblad  <oskar@osk.mine.nu>
110237         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
110238         * gnulib-tool (func_import): New license type 'unmodifiable license
110239         text'.
110240         * modules/fdl: Use it.  Longer description.
110241         * module/gpl, module/lgpl: New files.
110243 2006-08-30  Jim Meyering  <jim@meyering.net>
110245         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
110246         shadowing the parameter.
110248 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110250         Sync from Libtool:
110252         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110254         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
110255         sharing with gnulib.  Report by Eric Blake.
110257 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110259         * modules/isapipe: New file.
110260         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
110262 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110264         * modules/configmake (Makefile.am): Add a comment, and omit
110265         the CONFIGMAKE_ prefix from generated macro names.  Suggested
110266         by Bruno Haible.
110268 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110270         * m4/isapipe.m4: New file.
110272 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110274         * lib/isapipe.c, lib/isapipe.h: New files.
110276 2006-08-29  Jim Meyering  <jim@meyering.net>
110278         * modules/configmake (Makefile.am): Make configmake.h depend on
110279         Makefile.  Otherwise, a stale configmake.h could hang around.
110281 2006-08-29  Eric Blake  <ebb9@byu.net>
110283         * lib/error.c (error_at_line, print_errno_message): Match libc, after
110284         resolution of upstream bug 3044.
110286 2006-08-29  Bruno Haible  <bruno@clisp.org>
110288         * modules/localcharset (Depends-on): Add configmake.
110289         (Makefile.am): Remove setting of LIBDIR through DEFS.
110291 2006-08-29  Bruno Haible  <bruno@clisp.org>
110293         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
110294         defined.
110296 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110298         * modules/fcntl: New file.
110299         * modules/chdir-safer (Depends-on): Add fcntl.
110300         * modules/fts: Likewise.
110301         * modules/mkdir-p: Likewise.
110303         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
110304         This undoes the most recent change, since we're now addressing the
110305         problem in a different way.
110307         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
110308         into output, since the output might be called Makefile.am even
110309         if $makefile_name is something different.
110310         (func_import): Use $makefile_am rather than
110311         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
110312         empty.
110314         * modules/inttypes (Files): Add m4/inttypes-h.m4.
110316 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110318         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
110319         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
110320         recent change to stdint.m4, since we're now addressing the problem in a
110321         different way.
110323 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110325         * m4/fcntl_h.m4: New file.
110327 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110329         * lib/fcntl_.h: New file.
110330         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
110331         the fcntl module.
110332         * lib/dirchownmod.c: Likewise.
110333         * lib/fts.c: Likewise.
110335         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
110336         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
110337         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
110338         just before including <inttypes.h>, to avoid circular inclusion.
110340 2006-08-28  Jim Meyering  <jim@meyering.net>
110342         * doc/visibility.texi: Actually read and correct the grammar of the
110343         sentence affected by yesterday's change.
110345 2006-08-28  Eric Blake  <ebb9@byu.net>
110347         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
110348         needs wrapper.
110350 2006-08-28  Eric Blake  <ebb9@byu.net>
110352         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
110354 2006-08-28  Eric Blake  <ebb9@byu.net>
110356         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
110358 2006-08-28  Bruno Haible  <bruno@clisp.org>
110360         * modules/c-strstr: New file, from GNU gettext.
110361         * MODULES.html.sh (String handling): Add c-strstr.
110363 2006-08-28  Bruno Haible  <bruno@clisp.org>
110365         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
110366         macros.
110367         Reported by Eric Blake.
110369 2006-08-28  Bruno Haible  <bruno@clisp.org>
110371         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
110372         (VASNPRINTF): Return a string of length > INT_MAX without failing.
110373         * lib/vasprintf.c: Include errno.h, limits.h.
110374         (EOVERFLOW): New fallback definition.
110375         (vasprintf): Test here whether the string length is > INT_MAX.
110376         * lib/vsnprintf.c: Include errno.h, limits.h.
110377         (EOVERFLOW): New fallback definition.
110378         (vsnprintf): Fix bug when generated string was too long for the buffer.
110379         Test here whether the string length is > INT_MAX.
110381 2006-08-28  Bruno Haible  <bruno@clisp.org>
110383         * lib/inttypes_.h (SCNX*): Remove definitions.
110384         Reported by Eric Blake.
110386 2006-08-28  Bruno Haible  <bruno@clisp.org>
110388         * lib/c-strstr.h: New file, from GNU gettext.
110389         * lib/c-strstr.c: New file, from GNU gettext.
110391 2006-08-28  Bruno Haible  <bruno@clisp.org>
110393         * gnulib-tool: Reorder some statements.
110395 2006-08-28  Bruno Haible  <bruno@clisp.org>
110397         * gnulib-tool: New option --makefile-name.
110398         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
110399         $makefile_name.
110400         (func_import): Write $makefile_name to the cache file, and read it from
110401         there unless explicitly specified. Use $makefile_name as file name
110402         instead of Makefile.am. Adjust the recommendations accordingly.
110404 2006-08-28  Bruno Haible  <bruno@clisp.org>
110406         * gnulib-tool (func_verify_module): Check against misapplying patch.
110408 2006-08-28  Bruno Haible  <bruno@clisp.org>
110410         * gnulib-tool (func_relativize, func_relconcat): New functions.
110411         Give an error if --local-dir is given with --update.
110412         Remove trailing slashes from $local_gnulib_dir.
110413         (func_import): Store the relativized $local_gnulib_dir in
110414         gnulib-cache.m4, and read it from there if not specified explicitly.
110416 2006-08-28  Bruno Haible  <bruno@clisp.org>
110418         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
110419         is the current directory. Respect also $local_gnulib_dir.
110421 2006-08-28  Bruno Haible  <bruno@clisp.org>
110422             Simon Josefsson  <jas@extundo.com>
110424         BeOS portability.
110425         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
110427 2006-08-27  Jim Meyering  <jim@meyering.net>
110429         * doc/visibility.texi: Remove duplicate word: "pointer".
110431 2006-08-26  Bruno Haible  <bruno@clisp.org>
110433         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
110434         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
110435         (Makefile.am): Create inttypes.h from inttypes_.h.
110436         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
110438         * modules/imaxabs: New file.
110440         * modules/imaxdiv: New file.
110442 2006-08-26  Bruno Haible  <bruno@clisp.org>
110444         * m4/inttypes.m4: New file.
110445         * m4/_inttypes_h.m4: Remove file.
110446         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
110447         PRI_MACROS_BROKEN.
110448         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
110450         * m4/imaxabs.m4: New file.
110452         * m4/imaxdiv.m4: New file.
110454 2006-08-26  Bruno Haible  <bruno@clisp.org>
110456         * lib/inttypes_.h: New file.
110457         * lib/inttypes.h: Remove file.
110458         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
110460         * lib/imaxabs.c: New file.
110462         * lib/imaxdiv.c: New file.
110464 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110466         New config-h module, so that "make" output needn't be cluttered
110467         by -DHAVE_CONFIG_H.
110468         * MODULES.html.sh (Support for building libraries and executables):
110469         Add config-h.
110470         * modules/config-h: New file.
110471         * gnulib-tool (nl, sed_transform_lib_file): New vars.
110472         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
110473         the config-h module is used.
110475         New configmake module, so that "make" output needn't be cluttered
110476         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
110477         * MODULES.html.sh (Support for building libraries and executables):
110478         Add configmake.
110479         * modules/configmake: New file.
110481 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110483         * m4/config-h.m4: New file.
110485 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110487         * config/srclist.txt: Add elisp-comp.
110489 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110491         * MODULES.html.sh (Support for building libraries and executables):
110492         Add elisp-comp.
110493         * build-aux/elisp-comp: New file.
110494         * modules/elisp-comp: New file.
110496 2006-08-24  Bruno Haible  <bruno@clisp.org>
110498         * gnulib-tool (func_create_testdir): Use non-default values of
110499         sourcebase and m4base.
110501 2006-08-24  Bruno Haible  <bruno@clisp.org>
110503         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
110504         HTML structure.
110506 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110508         * modules/openat (Depends-on): Add lchown.
110510 2006-08-23  Bruno Haible  <bruno@clisp.org>
110512         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
110513         of gl_LOCK_EARLY instead of gl_LOCK.
110515 2006-08-23  Bruno Haible  <bruno@clisp.org>
110517         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
110518         on OSF/1 to no.
110519         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
110521 2006-08-23  Bruno Haible  <bruno@clisp.org>
110523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
110524         as unusable.
110526         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
110527         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
110528         (gl_LOCK): New macro.
110530 2006-08-22  Simon Josefsson  <jas@extundo.com>
110532         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
110533         to md5 module.
110535 2006-08-22  Simon Josefsson  <jas@extundo.com>
110537         * MODULES.html.sh: Add "Support for maintaining and release
110538         projects".
110540         * build-aux/gnupload: New file, from coreutils.
110542 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110544         Avoid the need for AC_LIBSOURCES in m4 macros.
110545         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
110546         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
110547         * modules/check-version (EXTRA_DIST): Add check-version.h.
110548         * modules/crc (EXTRA_DIST): Add crc.h.
110549         * modules/des (EXTRA_DIST): Add des.h.
110550         * modules/gc (EXTRA_DIST): Add gc.h.
110551         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
110552         * modules/getline (EXTRA_DIST): Add getline.h.
110553         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
110554         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
110555         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
110556         * modules/md2 (EXTRA_DIST): Add md2.h.
110557         * modules/md4 (EXTRA_DIST): Add md4.h.
110558         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
110559         * modules/read-file (EXTRA_DIST): Add read-file.h.
110560         * modules/readline (EXTRA_DIST): Add readline.h.
110561         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
110562         rijndael-api-fst.h.
110564 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110566         * m4/rijndael.m4 (gl_ARCFOUR):
110567         * m4/arctwo.m4 (gl_ARCTWO):
110568         * m4/check-version.m4 (gl_CHECK_VERSION):
110569         * m4/crc.m4 (gl_CRC):
110570         * m4/des.m4 (gl_DES):
110571         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
110572         * m4/gc.m4 (gl_GC):
110573         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
110574         * m4/getline.m4 (gl_FUNC_GETLINE):
110575         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
110576         * m4/hmac-md5.m4 (gl_HMAC_MD5):
110577         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
110578         * m4/md2.m4 (gl_MD2):
110579         * m4/md4.m4 (gl_MD4):
110580         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
110581         * m4/read-file.m4 (gl_FUNC_READ_FILE):
110582         * m4/readline.m4 (gl_FUNC_READLINE):
110583         * m4/rijndael.m4 (gl_RIJNDAEL):
110584         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110585         to get the necessary .h files and whatnot.
110587 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110589         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
110590         gnulib rather than the other way around.
110591         * config/srclistvars.sh (COREUTILS): Remove.
110593 2006-08-22  Jim Meyering  <jim@meyering.net>
110595         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
110597         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
110599 2006-08-22  Eric Blake  <ebb9@byu.net>
110601         * modules/regexprops-generic: New file.
110602         * MODULES.html.sh (Support for building documentation): List it.
110604 2006-08-22  Eric Blake  <ebb9@byu.net>
110606         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
110607         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
110608         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
110609         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
110611 2006-08-22  Bruno Haible  <bruno@clisp.org>
110613         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
110614         and lib_LTLIBRARIES like the other lib_* variables.
110616 2006-08-22  Bruno Haible  <bruno@clisp.org>
110618         * build-aux/x-to-1.in: New file, from GNU gettext.
110620 2006-08-22  Bruno Haible  <bruno@clisp.org>
110622         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
110623         <utmpx.h> exists.
110625 2006-08-22  Bruno Haible  <bruno@clisp.org>
110627         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
110628         <utmpx.h> exists.
110630 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110632         BeOS portability.
110633         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
110634         exist.
110635         Problem reported by Bruno Haible.
110637 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110639         Avoid the need for AC_LIBSOURCES in m4 macros.
110640         * modules/acl (EXTRA_DIST): Add acl.h.
110641         * modules/argmatch (Files): Add m4/argmatch.m4.
110642         (configure.ac): Add gl_ARGMATCH.
110643         (EXTRA_DIST): Renamed from lib_SOURCES, for
110644         consistency with the other modules.  Remove argmatch.c.
110645         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
110646         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
110647         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
110648         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
110649         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
110650         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
110651         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
110652         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
110653         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
110654         * modules/closeout (EXTRA_DIST): Add closeout.h.
110655         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
110656         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
110657         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
110658         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
110659         dirname.h; remove basename.c and stripslash.c.
110660         * modules/exclude (EXTRA_DIST): Add exclude.h.
110661         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
110662         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
110663         * modules/file-type (EXTRA_DIST): Add file-type.h.
110664         * modules/filemode (EXTRA_DIST): Add filemode.h.
110665         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
110666         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110667         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110668         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110669         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110670         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110671         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110672         * modules/getdate (EXTRA_DIST): Add getdate.c.
110673         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110674         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110675         * modules/getpass (EXTRA_DIST): Add getpass.h.
110676         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110677         * modules/group-member (EXTRA_DIST): Add group-member.h.
110678         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110679         * modules/hash (EXTRA_DIST): Add hash.h.
110680         * modules/human (EXTRA_DIST): Add human.h.
110681         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110682         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110683         * modules/lchown (EXTRA_DIST): Add lchown.h.
110684         * modules/long-options (EXTRA_DIST): Add long-options.h.
110685         * modules/lstat (EXTRA_DIST): Add lstat.h.
110686         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110687         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110688         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110689         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110690         * modules/memxor (EXTRA_DIST): Add memxor.h.
110691         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110692         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110693         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110694         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110695         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110696         * modules/physmem (EXTRA_DIST): Add physmem.h.
110697         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110698         * modules/posixver (EXTRA_DIST): Add posixver.h.
110699         * modules/quote (EXTRA_DIST): Add quote.h.
110700         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110701         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110702         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110703         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110704         regex_internal.h regexec.c.
110705         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110706         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110707         * modules/same (EXTRA_DIST): Add same.h.
110708         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
110709         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
110710         * modules/savedir (EXTRA_DIST): Add savedir.h.
110711         * modules/sha1 (EXTRA_DIST): Add sha1.h.
110712         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
110713         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
110714         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
110715         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
110716         * modules/strdup (EXTRA_DIST): Add strdup.h.
110717         * modules/strftime (EXTRA_DIST): Add strftime.h.
110718         * modules/strndup (EXTRA_DIST): Add strndup.h.
110719         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
110720         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
110721         * modules/time_r (EXTRA_DIST): Add time_r.h.
110722         * modules/timespec (EXTRA_DIST): Add timespec.h.
110723         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110724         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
110725         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
110726         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
110727         * modules/userspec (EXTRA_DIST): Add userspec.h.
110728         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
110729         * modules/utimens (EXTRA_DIST): Add utimens.h.
110730         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
110731         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
110732         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
110733         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
110734         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
110735         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
110736         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
110737         * modules/yesno (EXTRA_DIST): Add yesno.h.
110739 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110741         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
110743         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
110744         * m4/dev-ino.m4, same-inode.m4: Remove.
110746         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
110747         * m4/acl.m4 (AC_FUNC_ACL):
110748         * m4/backupfile.m4 (gl_BACKUPFILE):
110749         * m4/c-strtod.m4 (gl_C99_STRTOLD):
110750         * m4/canon-host.m4 (gl_CANON_HOST):
110751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
110753         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
110754         * m4/cloexec.m4 (gl_CLOEXEC):
110755         * m4/close-stream.m4 (gl_CLOSE_STREAM):
110756         * m4/closeout.m4 (gl_CLOSEOUT):
110757         * m4/dirfd.m4 (gl_FUNC_DIRFD):
110758         * m4/dirname.m4 (gl_DIRNAME):
110759         * m4/exclude.m4 (gl_EXCLUDE):
110760         * m4/exitfail.m4 (gl_EXITFAIL):
110761         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
110762         * m4/file-type.m4 (gl_FILE_TYPE):
110763         * m4/filemode.m4 (gl_FILEMODE):
110764         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
110765         * m4/fpending.m4 (gl_FUNC_FPENDING):
110766         * m4/fprintftime.m4 (gl_FPRINTFTIME):
110767         * m4/fts.m4 (gl_FUNC_FTS):
110768         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
110769         * m4/getdate.m4 (gl_GETDATE):
110770         * m4/gethrxtime.m4 (gl_GETHRXTIME):
110771         * m4/getpagesize.m4 (gl_GETPAGESIZE):
110772         * m4/getpass.m4 (gl_FUNC_GETPASS):
110773         * m4/gettime.m4 (gl_GETTIME):
110774         * m4/getugroups.m4 (gl_GETUGROUPS):
110775         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
110776         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
110777         * m4/hard-locale.m4 (gl_HARD_LOCALE):
110778         * m4/hash.m4 (gl_HASH):
110779         * m4/idcache.m4 (gl_IDCACHE):
110780         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
110781         * m4/lchown.m4 (gl_FUNC_LCHOWN):
110782         * m4/long-options.m4 (gl_LONG_OPTIONS):
110783         * m4/lstat.m4 (gl_FUNC_LSTAT):
110784         * m4/md5.m4 (gl_MD5):
110785         * m4/memcasecmp.m4 (gl_MEMCASECMP):
110786         * m4/memcoll.m4 (gl_MEMCOLL):
110787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
110788         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
110789         * m4/memxor.m4 (gl_MEMXOR):
110790         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
110791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
110792         * m4/modechange.m4 (gl_MODECHANGE):
110793         * m4/mountlist.m4 (gl_MOUNTLIST):
110794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110795         * m4/openat.m4 (gl_FUNC_OPENAT):
110796         * m4/pathmax.m4 (gl_PATHMAX):
110797         * m4/physmem.m4 (gl_PHYSMEM):
110798         * m4/posixtm.m4 (gl_POSIXTM):
110799         * m4/posixver.m4 (gl_POSIXVER):
110800         * m4/quote.m4 (gl_QUOTE):
110801         * m4/quotearg.m4 (gl_QUOTEARG):
110802         * m4/readtokens.m4 (gl_READTOKENS):
110803         * m4/readutmp.m4 (gl_READUTMP):
110804         * m4/regex.m4 (gl_REGEX):
110805         * m4/safe-read.m4 (gl_SAFE_READ):
110806         * m4/safe-write.m4 (gl_SAFE_WRITE):
110807         * m4/same.m4 (gl_SAME):
110808         * m4/save-cwd.m4 (gl_SAVE_CWD):
110809         * m4/savedir.m4 (gl_SAVEDIR):
110810         * m4/settime.m4 (gl_SETTIME):
110811         * m4/sha1.m4 (gl_SHA1):
110812         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110813         * m4/stat-macros.m4 (gl_STAT_MACROS):
110814         * m4/stat-time.m4 (gl_STAT_TIME):
110815         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110816         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110817         * m4/strdup.m4 (gl_FUNC_STRDUP):
110818         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110819         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110820         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110821         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110822         * m4/time_r.m4 (gl_TIME_R):
110823         * m4/timespec.m4 (gl_TIMESPEC):
110824         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110825         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110826         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110827         * m4/userspec.m4 (gl_USERSPEC):
110828         * m4/utimecmp.m4 (gl_UTIMECMP):
110829         * m4/utimens.m4 (gl_UTIMENS):
110830         * m4/xalloc.m4 (gl_XALLOC):
110831         * m4/xgetcwd.m4 (gl_XGETCWD):
110832         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110833         * m4/xreadlink.m4 (gl_XREADLINK):
110834         * m4/xstrtod.m4 (gl_XSTRTOD):
110835         * m4/yesno.m4 (gl_YESNO):
110836         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110837         to get the necessary .h files and whatnot.
110839 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110840             Bruno Haible  <bruno@clisp.org>
110842         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110843         /bin/sh understanding of '!' conditional negation.
110845 2006-08-21  Jim Meyering  <jim@meyering.net>
110847         * modules/openat (Depends-on): Really alphabetize.
110849         * modules/acl (Depends-on): Add error and quote.
110851         * check-module (find_included_lib_files): Add at-func.c to the
110852         ok-to-include-more-than-once white list.
110854         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110856 2006-08-21  Bruno Haible  <bruno@clisp.org>
110858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110859         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110860         Reported by Martin Lambers <marlam@marlam.de>.
110862 2006-08-21  Bruno Haible  <bruno@clisp.org>
110864         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110865         specify an installation location, don't emit a noinst_LIBRARIES or
110866         noinst_LTLIBRARIES assignment.
110868 2006-08-21  Bruno Haible  <bruno@clisp.org>
110870         BeOS portability.
110871         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110872         BeOS has mbrtowc() but no <wctype.h>.
110874 2006-08-21  Bruno Haible  <bruno@clisp.org>
110876         BeOS portability.
110877         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110878         exist.
110880 2006-08-21  Bruno Haible  <bruno@clisp.org>
110882         BeOS portability.
110883         * lib/mbchar.h: Include <wctype.h> only if it exists.
110885 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110887         Remove files that are no longer needed by their respective modules.
110888         * m4/obstack.m4: Remove.
110889         * m4/strerror_r.m4: Remove.
110890         * m4/uint32_t.m4: Remove.
110891         * m4/uintptr_t.m4: Remove.
110892         * m4/ullong_max.m4: Remove.
110893         * m4/xstrtoimax.m4: Remove.
110894         * m4/xstrtoumax.m4: Remove.
110896         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110897         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110898         dependencies now capture this.
110900         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110901         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110902         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110903         * m4/human.m4 (gl_HUMAN): Likewise.
110904         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110905         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110907         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110909         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110910         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110911         stdint.
110912         * m4/human.m4 (gl_HUMAN): Likewise.
110913         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110914         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110915         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110916         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110917         * m4/xstrtol (gl_XSTRTOL): Likewise.
110919         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110920         AC_TYPE_LONG_LONG_INT.
110921         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110922         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110923         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110924         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110926         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110927         on stdbool.
110929         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110930         (gl_PREREQ_XSTRTOUL): Remove.
110932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110934         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110935         mode.
110937 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110939         Add and change modules to make it easier for coreutils to use
110940         gnulib-tool.
110941         * modules/backupfile (Files): Remove m4/d-ino.m4.
110942         (Depends-on): Add d-ino.
110943         * modules/cycle-check (Depends-on): Add stdint.
110944         (lib_SOURCES): Add cycle-check.h.
110945         * modules/d-ino: New module.
110946         * modules/d-type: New module.
110947         * modules/error (Files): Remove m4/strerror_r.m4.
110948         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110949         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110950         m4/inttypes_h.m4, m4/uintmax_t.m4.
110951         (Depends-on): Add stdint.
110952         (lib_SOURCES): Add fsusage.h.
110953         * modules/getcwd (Files): Remove d-ino.m4.
110954         (Depends-on): Add d-ino.
110955         * modules/getndelim2 (Depends-on): Add stdint.
110956         * modules/glob (Files): Remove m4/d-type.m4.
110957         (Depends-on): Add d-type.
110958         * modules/host-os: New module.
110959         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110960         m4/inttypes_h.m4, m4/uintmax_t.m4.
110961         * Depends-on: Add stdint.
110962         (lib_SOURCES): Add human.h.
110963         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110964         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110965         m4/uintmax_t.m4, m4/ulonglong.m4.
110966         (Depends-on): Add stdint.
110967         (EXTRA_DIST): Add inttostr.h.
110968         * modules/lchmod: New module.
110969         * modules/link-follow: New module.
110970         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110971         (Depends-on): Add lchmod.
110972         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110973         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110974         (Depends-on): Add stdint.
110975         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110976         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110977         (Depends-on): Add stdint.
110978         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110979         * modules/perl: New module.
110980         * modules/regex (Depends-on): Add stdint.
110981         * modules/rmdir-errno: New module.
110982         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110983         m4/intmax_t.m4.
110984         (Depends-on): Add stdint.
110985         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110986         m4/uintmax_t.m4.
110987         (Depends-on): Add stdint.
110988         * modules/unlink-busy: New module.
110989         * modules/utimecmp (Depends-on): Add stdint.
110990         * modules/uptime: New module.
110991         * modules/winsz-ioctl: New module.
110992         * modules/winsz-termios: New module.
110993         * modules/xnanosleep (Depends-on): Add nanosleep.
110994         * modules/ullong_max: Remove.
110995         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110996         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110997         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110998         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110999         (Depends-on): Add inttypes.
111000         (lib_SOURCES): Add xstrtol.h.
111001         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
111002         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
111003         * MODULES.html.sh: Move 'assert' into the assert section.
111004         Move 'dummy' into the linking section.
111005         Remove ullong_max.
111006         Add section for compatibility checks for POSIX:2001 functions,
111007         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
111008         winsz-ioctl, and winsz-termios into it.
111009         Add lchmod.
111010         Add top-level Misc section and put host-os, perl, and uptime
111011         into it.
111013 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111015         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
111016         now assume the stdint module.  Do not include inttypes.h.
111017         * lib/fsusage.h: Likewise.
111018         * lib/getndelim2.c: Likewise.
111019         * lib/human.h: Likewise.
111020         * lib/inttostr.h: Likewise.
111021         * lib/obstack.c: Likewise.
111022         * lib/regex_internal.h: Likewise.
111023         * lib/tempname.c: Likewise.
111024         * lib/utimecmp.c: Likewise.
111025         * lib/xstrtol.h: Likewise.
111027         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
111029         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
111030         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
111031         * lib/xtime.h: Likewise.
111033 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111035         * modules/openat (Files): Add lib/fchmodat.c.
111036         Fixes problem reported by Jay Youngman.
111038 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111040         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
111041         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
111043 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
111044             Bruno Haible  <bruno@clisp.org>
111046         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
111047         and is a script that invokes bison. Tighten the code. Add comments.
111049 2006-08-18  Jim Meyering  <jim@meyering.net>
111051         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
111052         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
111053         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
111054         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
111056 2006-08-18  Bruno Haible  <bruno@clisp.org>
111058         * modules/bison-i18n: New file.
111059         * MODULES.html.sh (Internationalization functions): Add it.
111061 2006-08-18  Bruno Haible  <bruno@clisp.org>
111063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
111064         sys/statvfs.h. When getmntinfo was found, check its declaration and
111065         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
111067 2006-08-18  Bruno Haible  <bruno@clisp.org>
111069         * m4/bison-i18n.m4: New file, from bison.
111071 2006-08-18  Bruno Haible  <bruno@clisp.org>
111073         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
111074         (ME_DUMMY): Treat "kernfs" as a dummy.
111075         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
111077 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111079         Update from coreutils.
111081         2006-08-15  Jim Meyering  <jim@meyering.net>
111083         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
111085         2006-01-17  Jim Meyering  <jim@meyering.net>
111087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
111089         2006-01-11  Jim Meyering  <jim@meyering.net>
111091         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
111092         Check for the lchmod function.
111094 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111096         Update from coreutils.
111098         * lib/__fpending.h: Add copyright notice.
111099         * lib/fprintftime.h: Likewise.
111100         * lib/savedir.c: Use (C) in copyright notice.
111101         * lib/savedir.h: Likewise.
111103         2006-08-15  Jim Meyering  <jim@meyering.net>
111105         * lib/at-func.c: New file, with the logic of all emulated at-functions.
111106         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
111107         in support of the EXPECTED_ERRNO macro.
111108         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
111109         definitions.  Instead, define the appropriate symbols and include
111110         "at-func.c".
111111         * lib/mkdirat.c (mkdirat): Likewise.
111112         * lib/fchmodat.c (fchmodat): Likewise.
111113         (ENOSYS): Remove definition.
111114         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
111115         it.  Don't include "unistd--.h" -- it wasn't ever used.
111117         2006-01-17  Jim Meyering  <jim@meyering.net>
111119         Rewrite fts.c not to change the current working directory,
111120         by using openat, fstatat, fdopendir, etc..
111122         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
111123         (HAVE_OPENAT_SUPPORT): Define.
111124         [_LIBC] (fchdir): Don't undef or define; no longer used.
111125         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
111126         Now, this `function' always succeeds, and consumes its file descriptor
111127         parameter -- so callers must not close such FDs.  Update callers.
111128         (diropen_fd, opendirat, cwd_advance_fd): New functions.
111129         (diropen): Add parameter, SP.  Adjust all callers.
111130         Implement using diropen_fd, rather than open.
111131         (fts_open): Initialize new member, fts_cwd_fd.
111132         Remove fts_rft-setting code.
111133         (fts_close): Close fts_cwd_fd, if necessary.
111134         (__opendir2): Define in terms of opendir or opendirat,
111135         depending on whether the FST_NOCHDIR flag is set.
111136         (fts_build): Since fts_safe_changedir consumes its FD, and since
111137         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
111138         and close the dup'd file descriptor upon failure.
111139         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
111140         (fts_safe_changedir): Tweak semantics to reflect that this function
111141         now calls cwd_advance_fd and hence consumes its FD argument.
111142         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
111143         [struct FTS] (fts_rft): Remove now-unused member.
111144         [struct FTS] (fts_cycle.state): Improve comment.
111146         * lib/openat.c (openat_needs_fchdir): New function.
111147         * lib/openat.h (openat_needs_fchdir): Declare it.
111149 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111151         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
111152         Problem and fix reported by Pádraig Brady in
111153         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
111155 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111157         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
111159 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111161         * lib/memcoll.c (memcoll): Optimize for the common case where the
111162         arguments are bytewise equal.
111164 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111166         * doc/regexprops-generic.texi: Add a copyright notice.
111168 2006-08-15  Bruno Haible  <bruno@clisp.org>
111170         * modules/tmpdir (License): Change to LGPL.
111172 2006-08-15  Bruno Haible  <bruno@clisp.org>
111174         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
111175         module.
111177 2006-08-14  Simon Josefsson  <jas@extundo.com>
111179         * config/srclist.txt: Add gnupload.
111181 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111183         Change copyright notice from LGPL 2 to GPL 2, since that's the
111184         standard form used in the gnulib repository.
111185         * tests/test-lock.c: Likewise.
111186         * tests/test-stdint.c: Likewise.
111187         * tests/test-tls.c: Likewise.
111189         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
111190         prelude-manager.  User shorter URLs for GNU projects, without '?'.
111191         Add copyright notice.
111193         * check-module: Add copyright notice.  Output a copyright
111194         notice if "--version" is specified.
111195         * modules/COPYING: New file.
111196         * tests/test-getaddrinfo.c: Add copyright notice.
111197         * tests/test-verify.c: Likewise.
111199 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111201         Change copyright notice from LGPL 2 to GPL 2, since that's the
111202         standard form used in the gnulib repository.
111203         * lib/lock.c: LGPL -> GPL.
111204         * lib/lock.h: Likewise.
111205         * lib/strnlen1.c: Likewise.
111206         * lib/strnlen1.h: Likewise.
111207         * lib/tls.c: Likewise.
111208         * lib/tls.h: Likewise.
111209         * lib/tmpdir.c: Likewise.
111211         * lib/TODO: Remove; this belongs only in coreutils.
111213 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111215         Add copyright notices to long-enough files that lack them, since
111216         otherwise the files aren't clearly free.  Use the same notice that
111217         getdate.texi already uses.
111218         * doc/alloca-opt.texi: Add copyright notice.
111219         * doc/alloca.texi: Likewise.
111220         * doc/ctime.texi: Likewise.
111221         * doc/functions.texi: Likewise.
111222         * doc/gcd.texi: Likewise.
111223         * doc/gnulib-tool.texi: Likewise.
111224         * doc/inet_ntoa.texi: Likewise.
111225         * doc/visibility.texi: Likewise.
111227         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
111228         * doc/quote.texi: Add copyright notice.
111230         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
111231         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
111232         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
111233         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
111234         is now obsolete, and give a pointer to the Sun list.
111235         Add copyright notice.
111237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111239         * config/srclistvars.sh: Add copyright notice.
111241 2006-08-14  Eric Blake  <ebb9@byu.net>
111243         Import the following change from libc:
111245         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
111247         Upstream bug 2997.
111248         * lib/misc/error.c: Add space between program name and message if file
111249         name is missing.
111251 2006-08-12  Karl Berry  <karl@gnu.org>
111253         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
111254         remove, these originate in gnulib now.
111256 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111258         * doc/Makefile (standards.info standards.html standards.dvi):
111259         Also depend on make-stds.texi.
111261 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
111263         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
111264         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
111266         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
111267         in wchar_t.  Problem reported by Eric Blake.
111269         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
111270         LEN is smaller than SIZE.  Suggested by Bruno Haible.
111271         Also, help the compiler to keep LEN in a register.
111273 2006-08-11  Eric Blake  <ebb9@byu.net>
111275         * users.txt: Sort.  Add tar.
111277 2006-08-11  Bruno Haible  <bruno@clisp.org>
111279         * users.txt: New file.
111281 2006-08-11  Bruno Haible  <bruno@clisp.org>
111283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
111284         before <wchar.h>. Needed for OSF/1 and BSD/OS.
111286 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111288         * modules/snprintf (Depends-on): Remove minmax.
111289         (Maintainer): Add self and Bruno.
111291 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111293         * lib/.cppi-disable: Add snprintf.h, socket_.h.
111294         * lib/snprintf.c: Include <errno.h> and <limits.h>.
111295         (EOVERFLOW): Define if the system does not.
111296         Do not include "minmax.h"; it wasn't used.
111297         (snprintf): Don't assume size_t promotes to an unsigned type.
111298         Fix bug when generated string was too long for the buffer: the
111299         buffer's contents are supposed to be the initial prefix of the
111300         output.  Don't assume vasnprintf returns EOVERFLOW if the size
111301         exceeds INT_MAX; do the check ourselves.
111303         Import the following changes from libc:
111305         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
111307         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
111308         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
111309         set wc to the byte which couldn't be converted.
111310         (re_string_reconstruct): Don't clear valid_raw_len before calling
111311         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
111312         tip_context using re_string_context_at.
111314         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
111316         * lib/posix/regex.h: g++ still cannot handled [restrict].
111318         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
111320         * lib/posix/regex.h: Remove special handling for VMS.
111322 2006-08-10  Jim Meyering  <jim@meyering.net>
111324         * modules/same-inode: New module.
111325         * modules/dev-ino: New module.
111326         * modules/cycle-check: Depend on these modules, rather than simply
111327         including their .h files.
111328         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
111329         required via m4/cycle-check.m4.
111330         * modules/same: Depend on new same-inode module, rather than
111331         including same-inode.h.
111332         * modules/chdir-safer: New file.
111334         * modules/chown (Depends-on): Add stat-macros.
111336 2006-08-10  Jim Meyering  <jim@meyering.net>
111338         * m4/cycle-check.m4: New file.
111339         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
111340         * m4/dev-ino.m4, m4/same-inode.m4: New files.
111342 2006-08-10  Eric Blake  <ebb9@byu.net>
111344         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
111345         in from original proposal.
111347 2006-08-10  Eric Blake  <ebb9@byu.net>
111348         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
111350         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
111351         namespace.
111353 2006-08-10  Bruno Haible  <bruno@clisp.org>
111355         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
111356         as well.
111358 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111360         Sync from coreutils.
111362         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
111364         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
111365         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
111367 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111369         * modules/restrict: Remove; no longer needed now that we assume
111370         Autoconf 2.59 or later.
111371         * MODULES.html.sh: Remove 'restrict'.
111372         * modules/argp (Depends-on): Remove 'restrict'.
111373         * modules/base64 (Depends-on): Likewise.
111374         * modules/gc (Depends-on): Likewise.
111375         * modules/getaddrinfo (Depends-on): Likewise.
111376         * modules/glob (Depends-on): Likewise.
111377         * modules/inet_ntop (Depends-on): Likewise.
111378         * modules/inet_pton (Depends-on): Likewise.
111379         * modules/memxor (Depends-on): Likewise.
111380         * modules/regex (Depends-on): Likewise.
111381         * modules/strtok_r (Depends-on): Likewise.
111382         * modules/time_r (Depends-on): Likewise.
111384 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111386         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
111387         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
111388         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111389         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
111390         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
111391         * m4/memxor.m4 (gl_MEMXOR): Likewise.
111392         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
111393         gl_C_RESTRICT replaced by AC_C_RESTRICT.
111395         Merge from coreutils.
111396         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
111397         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
111398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
111399         * m4/time_r.m4 (gl_TIME_R): Likewise.
111401 2006-08-09  Karl Berry  <karl@gnu.org>
111403         * config/srclist.txt: no more gettext-tools, per Bruno.
111405 2006-08-08  Eric Blake  <ebb9@byu.net>
111407         * modules/verror: New module.
111408         * MODULES.html.sh: Document it.
111410 2006-08-08  Eric Blake  <ebb9@byu.net>
111412         * lib/verror.h, lib/verror.c: New files.
111414 2006-08-08  Eric Blake  <ebb9@byu.net>
111416         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
111417         verror_at_line output complies with GNU Coding Standards even when
111418         file is NULL.
111420 2006-08-07  Bruno Haible  <bruno@clisp.org>
111422         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
111423         versions of AIX.
111424         Reported by Ralf Wildenhues.
111426 2006-08-07  Bruno Haible  <bruno@clisp.org>
111428         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
111429         in an AC_DEFUN. Needed so that the autoconf snippets can use
111430         AC_REQUIRE.
111432 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111434         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111435         Initialize pkgdata_DATA.
111436         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
111437         overriding it.
111439 2006-08-06  Eric Blake  <ebb9@byu.net>
111441         * lib/error.h: Fold in some upstream changes from glibc.
111442         * lib/error.c: Likewise.
111444 2006-08-04  Bruno Haible  <bruno@clisp.org>
111446         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111447         Make the mostlyclean-local rule depend on mostlyclean-generic.
111448         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
111450 2006-07-31  Bruno Haible  <bruno@clisp.org>
111452         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
111453         <stdlib.h>, <string.h>.
111455 2006-07-30  Bruno Haible  <bruno@clisp.org>
111457         * modules/readlink (License): Change to LGPL.
111459 2006-07-30  Bruno Haible  <bruno@clisp.org>
111461         * modules/javaversion (Makefile.am): Distribute javaversion.java and
111462         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
111463         set PKGDATADIR to point to it.
111465 2006-07-30  Bruno Haible  <bruno@clisp.org>
111467         * modules/csharpexec (configure.ac): Comment out macro invocation.
111468         * modules/javaexec (configure.ac): Likewise.
111469         * modules/javacomp-script (configure.ac): Likewise.
111471         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
111473 2006-07-30  Bruno Haible  <bruno@clisp.org>
111475         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
111476         linked-list.
111478 2006-07-30  Bruno Haible  <bruno@clisp.org>
111480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
111482 2006-07-30  Bruno Haible  <bruno@clisp.org>
111484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111485         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
111486         get removed.
111488 2006-07-29  Bruno Haible  <bruno@clisp.org>
111490         Make it possible for gnulib-tool to work with locally modified or
111491         augmented gnulib repositories.
111492         * gnulib-tool (func_usage): Document --local-dir option.
111493         (local_gnulib_dir): New variable.
111494         Handle --local-dir option.
111495         (func_lookup_file): New function.
111496         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
111497         (func_get_description, func_get_filelist, func_get_description,
111498         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
111499         func_get_automake_snippet, func_get_include_directive,
111500         func_get_license, func_get_maintainer): Use func_lookup_file.
111501         (func_import, func_create_testdir): Use func_lookup_file.
111503 2006-07-29  Bruno Haible  <bruno@clisp.org>
111505         * modules/setenv (Depends-on): Add unistd.
111507 2006-07-29  Bruno Haible  <bruno@clisp.org>
111509         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
111511 2006-07-29  Bruno Haible  <bruno@clisp.org>
111513         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
111515 2006-07-29  Bruno Haible  <bruno@clisp.org>
111517         * gnulib-tool (import, update): If there is no Makefile.am, look at
111518         aclocal.m4, instead of bailing out.
111520 2006-07-29  Bruno Haible  <bruno@clisp.org>
111522         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
111523         Categorize the options by when they are useful.
111525 2006-07-29  Bruno Haible  <bruno@clisp.org>
111527         * gnulib-tool (func_usage): Document option --no-libtool.
111528         Handle option --no-libtool.
111529         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
111530         for changed semantics of $libtool variable.
111531         (func_import): Likewise. If libtool is not used, show this through
111532         an option --no-libtool.
111533         (func_create_testdir): Update.
111535 2006-07-29  Bruno Haible  <bruno@clisp.org>
111537         * gnulib-tool (func_import): Extend error message about missing
111538         --doc-base.
111540 2006-07-29  Bruno Haible  <bruno@clisp.org>
111542         * gnulib-tool (func_import): Don't create the $docbase directory if
111543         there is no file to store there.
111545 2006-07-29  Bruno Haible  <bruno@clisp.org>
111547         * gnulib-tool (autoconf_minversion): If a --dir option is given and
111548         relevant, look for configure.ac there, not in the current directory.
111549         Also use a simple search for AC_PREREQ, not "autoconf --trace".
111551 2006-07-29  Bruno Haible  <bruno@clisp.org>
111553         * gnulib-tool (SORT): New variable.
111554         (func_usage): Undocument --assume-autoconf option.
111555         Remove --assume-autoconf option handling.
111556         (autoconf_minversion): Determine from the contents of configure.ac.
111557         (func_import): Remove autoconf_minversion handling.
111558         Suggested by Eric Blake.
111560 2006-07-29  Bruno Haible  <bruno@clisp.org>
111562         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
111564 2006-07-29  Bruno Haible  <bruno@clisp.org>
111566         * config/srclist.txt (*setenv.[ch]): Remove rules.
111568 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111570         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
111572 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111574         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
111575         arpa/inet.h.
111577 2006-07-28  Simon Josefsson  <jas@extundo.com>
111579         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
111580         * modules/inet_pton (Depends-on): Likewise.
111582 2006-07-28  Simon Josefsson  <jas@extundo.com>
111584         * m4/netinet_in_h.m4: New file.
111586 2006-07-28  Simon Josefsson  <jas@extundo.com>
111588         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
111589         #include's.
111591 2006-07-28  Simon Josefsson  <jas@extundo.com>
111593         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
111594         #include's.
111596 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
111598         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
111599         setgid on directories only if they set these bits.
111600         * lib/modechange.h: Remove obsolete comment about masks.
111602 2006-07-28  Eric Blake  <ebb9@byu.net>
111604         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
111605         macro expansion.
111607 2006-07-28  Bruno Haible  <bruno@clisp.org>
111609         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
111611 2006-07-28  Bruno Haible  <bruno@clisp.org>
111613         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
111615 2006-07-28  Bruno Haible  <bruno@clisp.org>
111617         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
111618         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
111619         Define fallbacks.
111620         Avoids link error on FreeBSD 4.x.
111621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111623         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
111624         encoding.
111625         * lib/mbswidth.c (iswcntrl): Likewise.
111627 2006-07-27  Bruno Haible  <bruno@clisp.org>
111629         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
111630         test.
111632 2006-07-27  Bruno Haible  <bruno@clisp.org>
111634         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
111635         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
111636         defined.
111638 2006-07-26  Eric Blake  <ebb9@byu.net>
111640         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
111642 2006-07-26  Eric Blake  <ebb9@byu.net>
111644         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
111645         like mingw that lack mkstemp.
111646         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
111647         avoid compilation warning on mingw.
111649 2006-07-26  Bruno Haible  <bruno@clisp.org>
111651         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
111652         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
111653         INT_FAST*_MIN, INTPTR_MIN.
111655 2006-07-25  Bruno Haible  <bruno@clisp.org>
111657         * modules/version-etc (Depends-on): Add stdarg.
111659 2006-07-25  Bruno Haible  <bruno@clisp.org>
111661         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
111662         complex commands.
111664 2006-07-25  Bruno Haible  <bruno@clisp.org>
111666         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111667         defined in <stdarg.h> or config.h.
111669 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111671         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111672         (gl_STDIO_SAFER): Remove.
111674 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111676         * MODULES.html.sh (File stream based Input/Output):
111677         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111678         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111679         * modules/fopen-safer, modules/tmpfile-safer: New files.
111680         * modules/stdio-safer: Remove.
111682 2006-07-24  Bruno Haible  <bruno@clisp.org>
111684         * modules/tmpdir: New file.
111685         * MODULES.html.sh (File system functions): Add it.
111687 2006-07-24  Bruno Haible  <bruno@clisp.org>
111689         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111690         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111692 2006-07-24  Bruno Haible  <bruno@clisp.org>
111694         * modules/clean-temp: New file.
111696 2006-07-24  Bruno Haible  <bruno@clisp.org>
111698         * m4/tmpdir.m4: New file, from GNU gettext.
111700 2006-07-24  Bruno Haible  <bruno@clisp.org>
111702         * lib/tmpdir.h: New file, from GNU gettext.
111703         * lib/tmpdir.c: New file, from GNU gettext.
111705 2006-07-24  Bruno Haible  <bruno@clisp.org>
111707         * lib/clean-temp.h: New file, from GNU gettext.
111708         * lib/clean-temp.c: New file, from GNU gettext.
111710 2006-07-23  Eric Blake  <ebb9@byu.net>
111712         * modules/stdio-safer (Files): Add tmpfile-safer.c.
111713         (Depends-on): Add binary-io.
111715 2006-07-23  Eric Blake  <ebb9@byu.net>
111717         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
111719 2006-07-23  Eric Blake  <ebb9@byu.net>
111721         * lib/tmpfile-safer.c: New file.
111722         * lib/stdio-safer.h (fopen_safer): Add prototype.
111723         * lib/stdio--.h (tmpfile): Make safer.
111725 2006-07-23  Bruno Haible  <bruno@clisp.org>
111727         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
111728         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
111729         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
111730         gl_linked_remove_at): Use it.
111732 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111733         and Simon Josefsson <jas@extundo.com>
111735         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
111737         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
111739 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111741         * modules/close-stream: New file.
111742         * modules/closeout (Description): Make it clear that it exits
111743         with a diagnostic on error.
111744         (Depends-on): Add close-stream.  Remove fpending, stdbool.
111745         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
111747 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111749         * m4/close-stream.m4: New file.
111751 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111753         * lib/close-stream.c, lib/close-stream.h: New files.
111755 2006-07-22  Bruno Haible  <bruno@clisp.org>
111757         Merge from GNU gettext 0.15.
111759         2006-05-01  Bruno Haible  <bruno@clisp.org>
111761                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
111763         2006-07-22  Bruno Haible  <bruno@clisp.org>
111765                 * modules/javaversion: New file.
111766                 * MODULES.html.sh (Java): Add javaversion.
111768         2006-03-12  Bruno Haible  <bruno@clisp.org>
111770                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
111772         2005-12-04  Bruno Haible  <bruno@clisp.org>
111774                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
111775                 (untested).
111777         2006-06-21  Bruno Haible  <bruno@clisp.org>
111779                 Avoid warnings from recent versions of mcs.
111780                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
111781                 -o, -L, -r any more. Use options documented since mcs-1.0
111782                 instead. Similarly for -g.
111784         2005-12-04  Bruno Haible  <bruno@clisp.org>
111786                 * build-aux/csharpcomp.sh.in: Suffix for resources is
111787                 .resources, not .resource.
111789         2005-07-09  Bruno Haible  <bruno@clisp.org>
111791                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
111792                 add a .dll suffix.
111793                 Reported by Mark Junker <mjscod@gmx.de>.
111795         2006-07-22  Bruno Haible  <bruno@clisp.org>
111797                 * modules/gettext: Upgrade to gettext-0.15.
111798                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
111799                 m4/visibility.m4.
111800                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
111802 2006-07-22  Bruno Haible  <bruno@clisp.org>
111804         Merge from GNU gettext 0.15.
111806         2006-03-25  Bruno Haible  <bruno@clisp.org>
111808                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111810         2006-07-21  Bruno Haible  <bruno@clisp.org>
111812                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111813                 "1.1".
111815         2006-05-09  Bruno Haible  <bruno@clisp.org>
111817                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111818                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111819                 for the conftestver execution.
111821         2006-05-01  Bruno Haible  <bruno@clisp.org>
111823                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111824                 optional target-version argument. Verify that the compiler
111825                 groks source of the specified source-version, or add -source
111826                 option as necessary. Verify that the compiler produces
111827                 bytecode in the specified target-version, or add -target and
111828                 -source options as necessary. Make the result of the test
111829                 available as variable CONF_JAVAC. Also log error output in
111830                 config.log.
111832         2006-03-11  Bruno Haible  <bruno@clisp.org>
111834                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111836         2006-05-09  Bruno Haible  <bruno@clisp.org>
111838                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111839                 CLASSPATH_SEPARATOR to a semicolon.
111841         2006-03-12  Bruno Haible  <bruno@clisp.org>
111843                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111844                 available as variable CONF_JAVA, for subsequent autoconf
111845                 tests. Also log error output in config.log.
111847         2006-07-19  Bruno Haible  <bruno@clisp.org>
111849                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111850                 that getline works on glibc2 systems. Needed to avoid trouble
111851                 in relocatable.c.
111852                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111854         2005-12-04  Bruno Haible  <bruno@clisp.org>
111856                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111857                 launcher (untested).
111859         2005-12-04  Bruno Haible  <bruno@clisp.org>
111861                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111863         2006-07-22  Bruno Haible  <bruno@clisp.org>
111865                 * gettext.m4: Update from GNU gettext-0.15.
111866                 * nls.m4: Likewise.
111867                 * po.m4: Likewise.
111868                 * inttypes-pri.m4: Likewise.
111869                 * inttypes-h.m4: Renamed from inttypes.m4.
111870                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111872 2006-07-22  Bruno Haible  <bruno@clisp.org>
111874         Merge from GNU gettext 0.15.
111876         2005-07-05  Bruno Haible  <bruno@clisp.org>
111878                 * printf-args.c (printf_fetchargs): Work around broken
111879                 definition of wint_t on mingw.
111881         2005-02-12  Bruno Haible  <bruno@clisp.org>
111883                 * xallocsa.h: Add extern "C" for C++.
111885         2006-05-17  Bruno Haible  <bruno@clisp.org>
111887                 Cygwin portability.
111888                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111890         2006-04-30  Bruno Haible  <bruno@clisp.org>
111892                 * progreloc.c: Include <mach-o/dyld.h> if available.
111893                 (find_executable): Use _NSGetExecutablePath when possible.
111895         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111897                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111898                 function.
111900         2005-12-29  Bruno Haible  <bruno@clisp.org>
111902                 * progreloc.c (set_program_name_and_installdir): Fix
111903                 compilation error.
111905         2005-12-04  Bruno Haible  <bruno@clisp.org>
111907                 Cygwin portability.
111908                 * progreloc.c: Include <windows.h> also on Cygwin.
111909                 (find_executable): Add support for Cygwin.
111910                 (set_program_name_and_installdir): Handle also platforms with
111911                 nonempty EXEEXT.
111913         2006-07-11  Bruno Haible  <bruno@clisp.org>
111915                 * javacomp.c: Fix a comment.
111916                 Reported by Jim Meyering.
111918         2006-04-30  Bruno Haible  <bruno@clisp.org>
111920                 * javacomp.h (compile_java_class): Add source_version,
111921                 target_version arguments.
111922                 * javacomp.c: Rewritten to choose only a compiler that
111923                 respects the specified source_version and target_version.
111925         2006-06-27  Bruno Haible  <bruno@clisp.org>
111927                 Assume correct S_ISDIR macro.
111928                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111930         2006-07-22  Bruno Haible  <bruno@clisp.org>
111932                 * javaversion.h: New file, from GNU gettext.
111933                 * javaversion.c: New file, from GNU gettext.
111934                 * javaversion.java: New file, from GNU gettext.
111935                 * javaversion.class: New file, from GNU gettext.
111937         2006-05-17  Bruno Haible  <bruno@clisp.org>
111939                 Cygwin portability.
111940                 * javaexec.c (execute_java_class): Test for jview program
111941                 also on Cygwin.
111943         2006-04-09  Bruno Haible  <bruno@clisp.org>
111945                 * fatal-signal.c: Don't include string.h.
111946                 (at_fatal_signal): Use a copying loop instead of memcpy.
111948         2005-12-04  Bruno Haible  <bruno@clisp.org>
111950                 * csharpexec.c: Add support for 'clix' launcher (untested).
111951                 (execute_csharp_using_sscli): New function.
111952                 (execute_csharp_program): Call it.
111954         2006-06-21  Bruno Haible  <bruno@clisp.org>
111956                 Avoid warnings from recent versions of mcs.
111957                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111958                 -o, -L, -r any more. Use options documented since mcs-1.0
111959                 instead. Similarly for -g.
111961         2005-07-09  Bruno Haible  <bruno@clisp.org>
111963                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111964                 add a .dll suffix.
111965                 Reported by Mark Junker <mjscod@gmx.de>.
111967         2006-06-17  Bruno Haible  <bruno@clisp.org>
111969                 * config.charset: Update for NetBSD 3.0.
111971         2006-05-17  Bruno Haible  <bruno@clisp.org>
111973                 Cygwin portability.
111974                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111976         2006-05-16  Bruno Haible  <bruno@clisp.org>
111978                 * localcharset.c [CYGWIN]: Include <windows.h>.
111979                 (get_charset_aliases): For Cygwin, return the same CPxxx
111980                 aliases list as under WIN32.
111981                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111982                 the environment variables. Fall back to GetACP().
111984         2006-04-05  Bruno Haible  <bruno@clisp.org>
111986                 * config.charset: Update Juan Manuel Guerrero's address.
111988         2005-02-12  Bruno Haible  <bruno@clisp.org>
111990                 * allocsa.h: Add extern "C" for C++.
111992         2005-02-10  Bruno Haible  <bruno@clisp.org>
111994                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111995                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111997         2006-07-22  Bruno Haible  <bruno@clisp.org>
111999                 * gettext.h: Update to GNU gettext-0.15.
112001 2006-07-22  Bruno Haible  <bruno@clisp.org>
112003         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
112004         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
112005         lib-prefix.m4, longdouble.m4, ssize_t.m4.
112007 2006-07-21  Eric Blake  <ebb9@byu.net>
112009         * modules/stdlib-safer: New file.
112010         * MODULES.html.sh (File stream based Input/Output): Add
112011         stdlib-safer.
112013 2006-07-21  Eric Blake  <ebb9@byu.net>
112015         * lib/stdlib-safer.h: New file from coreutils, required by
112016         stdlib--.h.
112018 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
112020         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
112022 2006-07-20  Bruno Haible  <bruno@clisp.org>
112024         * gnulib-tool: Recognize new option --assume-autoconf.
112025         (autoconf_minversion): New variable.
112026         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
112028 2006-07-20  Bruno Haible  <bruno@clisp.org>
112030         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
112032 2006-07-19  Derek R. Price  <derek@ximbiot.com>
112034         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
112035         Reindent and repaginate.
112037 2006-07-19  Derek Price  <derek@ximbiot.com>
112039         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
112040         Correct grammar.
112042 2006-07-17  Bruno Haible  <bruno@clisp.org>
112044         * modules/list: New file.
112045         * modules/array-list: New file.
112046         * modules/carray-list, modules/carray-list-tests: New files.
112047         * modules/linked-list, modules/linked-list-tests: New files.
112048         * modules/avltree-list, modules/avltree-list-tests: New files.
112049         * modules/rbtree-list, modules/rbtree-list-tests: New files.
112050         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
112051         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
112052         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
112053         * modules/oset: New file.
112054         * modules/array-oset: New file.
112055         * modules/avltree-oset, modules/avltree-oset-tests: New files.
112056         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
112057         * tests/test-carray_list.c: New file.
112058         * tests/test-linked_list.c: New file.
112059         * tests/test-avltree_list.c: New file.
112060         * tests/test-rbtree_list.c: New file.
112061         * tests/test-linkedhash_list.c: New file.
112062         * tests/test-avltreehash_list.c: New file.
112063         * tests/test-rbtreehash_list.c: New file.
112064         * tests/test-avltree_oset.c: New file.
112065         * tests/test-rbtree_oset.c: New file.
112066         * MODULES.html.sh (Container data structures): New section.
112068 2006-07-17  Bruno Haible  <bruno@clisp.org>
112070         * m4/gl_list.m4: New file.
112072 2006-07-17  Bruno Haible  <bruno@clisp.org>
112074         * lib/gl_list.h: New file.
112075         * lib/gl_list.c: New file.
112076         * lib/gl_array_list.h: New file.
112077         * lib/gl_array_list.c: New file.
112078         * lib/gl_carray_list.h: New file.
112079         * lib/gl_carray_list.c: New file.
112080         * lib/gl_linked_list.h: New file.
112081         * lib/gl_linked_list.c: New file.
112082         * lib/gl_anylinked_list1.h: New file.
112083         * lib/gl_anylinked_list2.h: New file.
112084         * lib/gl_avltree_list.h: New file.
112085         * lib/gl_avltree_list.c: New file.
112086         * lib/gl_anyavltree_list1.h: New file.
112087         * lib/gl_anyavltree_list2.h: New file.
112088         * lib/gl_rbtree_list.h: New file.
112089         * lib/gl_rbtree_list.c: New file.
112090         * lib/gl_anyrbtree_list1.h: New file.
112091         * lib/gl_anyrbtree_list2.h: New file.
112092         * lib/gl_anytree_list1.h: New file.
112093         * lib/gl_anytree_list2.h: New file.
112094         * lib/gl_linkedhash_list.h: New file.
112095         * lib/gl_linkedhash_list.c: New file.
112096         * lib/gl_anyhash_list1.h: New file.
112097         * lib/gl_anyhash_list2.h: New file.
112098         * lib/gl_avltreehash_list.h: New file.
112099         * lib/gl_avltreehash_list.c: New file.
112100         * lib/gl_rbtreehash_list.h: New file.
112101         * lib/gl_rbtreehash_list.c: New file.
112102         * lib/gl_anytreehash_list1.h: New file.
112103         * lib/gl_anytreehash_list2.h: New file.
112105         * lib/gl_oset.h: New file.
112106         * lib/gl_oset.c: New file.
112107         * lib/gl_array_oset.h: New file.
112108         * lib/gl_array_oset.c: New file.
112109         * lib/gl_avltree_oset.h: New file.
112110         * lib/gl_avltree_oset.c: New file.
112111         * lib/gl_rbtree_oset.h: New file.
112112         * lib/gl_rbtree_oset.c: New file.
112113         * lib/gl_anytree_oset.h: New file.
112115 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112117         * m4/mkancesdirs.m4: New file.
112118         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
112119         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
112120         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
112121         it.
112123 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112125         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
112126         * lib/mkancesdirs.h: New files.
112127         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
112128         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
112129         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
112130         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
112131         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
112132         callers changed.  Revamp internals significantly, by not
112133         attempting to create directories that are temporarily more
112134         permissive than the final results.  Do not attempt to use
112135         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
112136         This removes some race conditions, fixes some bugs, and simplifies
112137         things.  Use new dirchownmod function to do owner and mode changes.
112138         * lib/mkdir-p.h: Likewise.
112139         * lib/modechange.c (octal_to_mode): New function.
112140         (struct mode_change): New member mentioned.
112141         (make_node_op_equals): New arg mentioned.  All callers changed.
112142         (mode_compile): Keep track of which mode bits the user has explicitly
112143         mentioned.
112144         (mode_adjust): New arg DIR, so that we implement the X op correctly.
112145         New arg PMODE_BITS, to keep track of which mode bits the user
112146         mentioned; it treats S_ISUID and S_ISGID speciall.
112147         All callers changed.
112148         * lib/modechange.h: Likewise.
112150 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112152         * MODULES.html.sh: Add mkancestors.
112153         * modules/mkancesdirs: New module.
112154         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
112155         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
112156         The chdir-safer and afs files are now orphans; I'll remove them
112157         unless someone speaks up.
112158         Add lib/dirchownmod.c, lib/dirchownmod.h.
112159         (Depends-on): Remove alloca, chown, save-cwd, dirname.
112160         Add lchown, mkancesdirs.
112161         (Maintainer): Add self.
112163 2006-07-15  Karl Berry  <karl@gnu.org>
112165         * gnulib-tool: help message wording/arrangement.
112167 2006-07-14  Simon Josefsson  <jas@extundo.com>
112169         * doc/gnulib.texi (Libtool and Windows): New section.
112171 2006-07-12  Simon Josefsson  <jas@extundo.com>
112173         * modules/gendocs (License): Fix license, approved by Karl.
112175 2006-07-12  Eric Blake  <ebb9@byu.net>
112177         * MODULES.html.sh: Add gendocs.
112179 2006-07-11  Eric Blake  <ebb9@byu.net>
112181         * modules/fdl: New module, to install doc/fdl.texi.
112182         * MODULES.html.sh: Add new section for documentation modules.
112183         * gnulib-tool: Avoid space-tab.
112184         (--doc-base): New option, to manage files from doc.
112186 2006-07-11  Eric Blake  <ebb9@byu.net>
112188         * m4/absolute-header.m4: Fix comments to match recent change.
112190 2006-07-11  Eric Blake  <ebb9@byu.net>
112192         * gnulib-tool: List --doc-base before --tests-base.
112194 2006-07-11  Derek R. Price  <derek@ximbiot.com>
112196         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
112198 2006-07-11  Bruno Haible  <bruno@clisp.org>
112200         * README: Mention where to put documentation.
112202 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112204         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
112206 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
112209         to stdint.m4.
112211 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112213         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
112214         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
112215         "no/such/file/stdint.h" when there is no such file, so that
112216         the resulting C code can be parsed by dodgy compilers.
112217         Problems reported by Bob Proulx.
112219 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112221         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
112222         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112223         macros into the GNU _D_EXACT_NAMLEN.
112224         * lib/savedir.c:  Likewise.
112225         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
112227 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112228         and Paul Eggert  <eggert@cs.ucla.edu>
112230         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
112231         * m4/savedir.m4:
112232         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112233         macros into the GNU _D_EXACT_NAMLEN.
112235 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
112238         around the absolute name, to work around a problem with the HP-UX
112239         11.23 native C compiler, reported by Bob Proulx.
112241 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112243         * doc/maintain.texi, make-stds.texi: Sync from
112244         <http://savannah.gnu.org/projects/gnustandards>.
112246 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112248         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
112250 2006-07-09  Jim Meyering  <jim@meyering.net>
112252         * m4/glob.m4: Remove a doubled word in a comment.
112254 2006-07-09  Jim Meyering  <jim@meyering.net>
112256         * lib/argp-pv.c: Remove a doubled word in a comment.
112257         * lib/check-version.c (check_version): Likewise.
112258         * lib/javacomp.c (compile_java_class): Likewise.
112260 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
112262         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
112263         for the benefit of people using Autoconf 2.60.  If you want to
112264         support older Autoconf versions you can copy m4/onceonly_2_57.m4
112265         (or m4/onceonly.m4, if pre-2.57) manually.
112267 2006-07-08  Jim Meyering  <jim@meyering.net>
112269         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
112270         comment.
112271         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
112272         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
112273         comment.
112275 2006-07-08  Jim Meyering  <jim@meyering.net>
112277         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
112279 2006-07-07  Simon Josefsson  <jas@extundo.com>
112281         * tests/test-crc.c: Change expected crc value, the test vector
112282         were probably computed using the old broken crc.c?
112284 2006-07-06  Simon Josefsson  <jas@extundo.com>
112286         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
112287         now the canonical place for the M4 file).
112289         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
112290         from the sys_socket dependency now.
112292         * modules/inet_pton (Files): Ditto.
112294         * modules/inet_ntop (Files): Ditto.
112296 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112298         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
112299         not gl_PREREQ_GETUSERSHELL.
112301 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112303         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
112304         with only one argument, for Autoconf 2.60.
112305         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
112306         expand to nothing, so add a shell command to avoid syntax error.
112307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112309 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112311         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
112313 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
112316         no longer needed.  Check for isblank decl.
112317         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
112318         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
112319         of existence.
112321 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112323         * lib/getloadavg.c: Use __VMS, not VMS.
112324         * lib/getopt.c: Likewise.
112325         * lib/getpagesize.h: Likewise.
112326         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
112327         and probably does not work.
112329 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112331         * lib/.cppi-disable: Add wcwidth.
112332         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
112333         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
112334         (ISGRAPH): Remove.  All uses changed to isgraph.
112335         (FOLD) [!defined _LIBC]: Remove special case.
112336         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
112337         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
112338         HAVE_ISBLANK.
112339         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
112340         case.
112342 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112344         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
112345         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
112346         brackets.  Other minor changes to suppress some compiler
112347         warnings.
112349 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112350         and Paul Eggert  <eggert@cs.ucla.edu>
112352         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
112353         of invoking obsolescent AC_HEADER_DIRENT macro.
112354         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
112355         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
112356         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
112357         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
112358         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
112359         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
112360         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
112361         * m4/readdir.m4: Remove; no longer needed.
112363 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112364         and Paul Eggert  <eggert@cs.ucla.edu>
112366         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
112367         Don't worry about this obsolete case any more.
112368         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
112369         directories.
112370         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
112371         worry about this obsolete case any more.
112372         * lib/fts.c: Likewise.
112373         * lib/getcwd.c: Likewise.
112374         * lib/glob.h: Likewise.
112375         * lib/savedir.c: Likewise.
112377 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112379         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
112380         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
112381         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
112382         needed.
112383         All uses removed.
112384         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112385         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112386         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
112387         needed.
112388         * m4/getdate.m4 (gl_GETDATE): Likewise.
112389         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112390         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112391         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112392         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112393         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112395         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
112396         needed.
112398 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112400         * lib/memcasecmp.c: Include <limits.h>.
112401         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
112402         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
112403         Don't assume isdigit succeeds only on '0' through '9'.
112405 2006-07-05  Eric Blake  <ebb9@byu.net>
112407         * modules/getaddrinfo (Depends-on): Add snprintf.
112409 2006-07-05  Eric Blake  <ebb9@byu.net>
112411         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
112412         to avoid 'header present but could not be compiled' on cygwin.
112414 2006-07-05  Eric Blake  <ebb9@byu.net>
112416         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
112417         missing from netdb.h.
112418         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
112420 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112422         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
112423         no longer needed.
112424         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
112425         * m4/getdate.m4 (gl_GETDATE): Likewise.
112426         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112427         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112428         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112429         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112430         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112432 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112434         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
112435         All uses of is_space replaced by isspace.
112436         * lib/exit.h: Don't talk about STDC_HEADERS.
112437         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
112438         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
112439         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
112440         replaced by isprint etc.
112441         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
112442         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112443         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
112444         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
112445         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
112446         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112448 2006-07-05  Bruno Haible  <bruno@clisp.org>
112450         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
112451         the function exists, before testing against AIX.
112452         Reported by Martin Lambers <marlam@marlam.de>.
112454 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112456         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
112457         From Mark D. Baushke.
112459 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112461         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
112462         to the absolute name, not just one, to bypass Sun C 5.8's
112463         "warning: #include of /usr/include/... may be non-portable".
112465 2006-07-04  Eric Blake  <ebb9@byu.net>
112467         * modules/dirname-tests: New test module.
112468         * tests/test-dirname.c: New file, replacing dirname.c
112469         TEST_DIRNAME section that was recently deleted.
112471 2006-07-04  Bruno Haible  <bruno@clisp.org>
112473         Assume ANSI C header files and <ctype.h> functions.
112474         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
112475         (mbsnwidth): Use isprint, iscntrl instead.
112477 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112479         Merge from coreutils.
112480         * MODULES.html.sh: Add xstrtold.
112481         * modules/xstrtold: New file.
112482         * modules/cycle-check (Files): Add lib/same-inode.h.
112483         * modules/dirname (Files): Add m4/double-slash-root.m4.
112484         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
112485         * modules/mkdir-p (Files): Add lib/same-inode.h.
112486         * modules/same (Files): Add lib/same-inode.h.
112488 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112490         * m4/absolute-header.m4: Renamed from full-header-path.m4.
112491         This is to keep the terminology clean; POSIX talks about
112492         "absolute pathnames", not "full pathnames", but the GNU
112493         Coding Standards say to use "path" for something else;
112494         so use "absolute" to keep both sides happy.
112495         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
112496         Set gl_absolute_header, not gl_full_header_path.
112497         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
112498         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
112499         All uses changed.
112501         Merge from coreutils.
112503         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112505         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
112506         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
112507         want to require the building of c-strtod.o.
112508         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
112509         needs -lm directly.
112510         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
112512         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112514         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
112515         --as-needed option if available.  Problem reported by Albert Chin in
112516         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
112517         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
112518         cc merely issues a bunch of annoying warnings for --as-needed
112519         (this problem was reported by Bob Proulx).  Also, try linking with
112520         -lm to detect a bug in binutils 2.16 (this problem was reported
112521         by Ralf Wildenhues).
112523         2006-06-18  Jim Meyering  <jim@meyering.net>
112525         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
112526         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
112527         macro.
112528         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
112529         also check for glibc-2.4's abort-inducing bug.
112531         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
112532         Low-probability clean-up should be to use rmdir to get rid of
112533         the just-created directory, not unlink.
112535         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
112536         configure fail, and request a bug report to inform us about it.
112537         Add a comment that, barring reports to the contrary, in 2007 we'll
112538         assume ftruncate is universally available.
112540         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112542         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
112544         2006-03-12  Jim Meyering  <jim@meyering.net>
112546         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
112547         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
112548         * m4/same.m4 (gl_SAME): Likewise.
112549         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
112551         2006-03-11  Eric Blake  <ebb9@byu.net>
112553         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
112554         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
112555         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
112556         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
112558 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112560         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
112561         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
112562         reported by Mark D. Baushke, one in
112563         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
112565         Merge from coreutils.
112567         * lib/.cppi-disable: Add stdint_.h.
112568         * lib/.cvsignore: Add stdint.h.
112570         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112572         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
112573         both double and long double versions.
112574         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
112575         * lib/xstrtold.c: New file.
112576         * lib/xstrtod.h (xstrtold): New decl.
112578         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
112580         * lib/filemode.c (setst): Remove.
112581         (strmode): Rewrite to avoid setst.  This makes the code shorter,
112582         (arguably) clearer, and the generated code is a bit smaller on my
112583         Debian GNU/Linux stable x86 host.
112585         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112587         * lib/filemode.c: Include "filemode.h" first, to test the interface.
112588         Assume that filemode.h includes sys/types.h and sys/stat.h.
112589         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
112590         (ftypelet): Reorder to put common cases first, for efficiency.
112591         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
112592         to do 'M'.
112593         (strmode): Renamed from mode_string, and now stores 12 bytes instead
112594         of 10, for compatibility with FreeBSD.  All callers changed.
112595         (filemodestring): Now stores 12 bytes instead of 10, and sets file
112596         types that can't be deduced solely from st_mode.  First arg is now a
112597         const pointer.
112598         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
112599         (strmode): Renamed from mode_string.
112600         (filemodestring): New decl.
112601         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
112602         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
112603         needed.
112604         (S_ISPORT, S_ISWHT): New macros, if not already defined.
112606         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112608         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
112609         fsusage.h now does that.  Include fsusage.h first, to test interface.
112610         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
112611         at most one method (the old code could have generated decls that
112612         didn't conform to C89, not that this was ever exercised).
112613         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
112615         2006-03-19  Jim Meyering  <jim@meyering.net>
112617         Work even in a chroot where d_ino values for entries in "/"
112618         don't match the stat.st_ino values for the same names.
112619         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
112620         number, iterate through all entries again, using lstat instead.
112621         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
112622         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
112624         * lib/getcwd.c (__getcwd): Clarify a comment.
112625         Use memcpy in place of a call to strcpy.
112627         2006-03-12  Jim Meyering  <jim@meyering.net>
112629         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
112630         matches that of the current directory (which we're about to chdir ".."
112631         out of), then save the dev-ino of the parent, instead.
112633         * lib/same-inode.h (SAME_INODE): New file/macro.
112634         * lib/chdir-safer.c (SAME_INODE): Remove definition.
112635         Include "same-inode.h", instead.
112636         * lib/same.c: Likewise.
112637         * lib/cycle-check.h: Include "same-inode.h".
112638         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
112639         * lib/cycle-check.c (SAME_INODE): Remove definition.
112640         * lib/root-dev-ino.h: Include "same-inode.h".
112642         2006-03-11  Eric Blake  <ebb9@byu.net>
112644         * lib/same.c (same_name): s/base_name/last_component/
112645         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
112646         * lib/filenamecat.c (file_name_concat): Likewise.
112648         2006-03-11  Eric Blake  <ebb9@byu.net>,
112649                     Paul Eggert  <eggert@cs.ucla.edu>
112651         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
112652         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
112653         drive prefix.
112654         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
112655         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
112656         (last_component): New method.
112657         * lib/dirname.c (dir_len): Determine when drive letters need a
112658         subsequent slash.  Preserve // when it is special.
112659         (dir_name): Don't append dot when drive letter is absolute.
112660         [TEST_DIRNAME]: Move into a full-blown gnulib test.
112661         * lib/basename.c (base_name): New semantics - malloc the result.
112662         Preserve // when it is special.  Preserve relative files that look
112663         like drive letters.
112664         (base_len): Preserve // when it is special.
112665         (last_component): New method, similar to old base_name semantics.
112666         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112667         base_name.  Strip redundant slashes from ///.
112669 2006-07-03  Jim Meyering  <jim@meyering.net>
112671         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112672         macro is used before the first cycle_check call.
112674 2006-07-03  Eric Blake  <ebb9@byu.net>
112676         * modules/dirname (Depends-on): Add xstrndup.
112678 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112680         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112681         test cases, so that config.log is a bit easier to follow.
112683 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112685         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112686         both are 64 bits, since this seems to be the tradition, and this
112687         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112688         we ever run into a host that prefers long long to long in this
112689         case, we'll need another configure-time test.  Problem reported by
112690         Jim Meyering.
112692 2006-07-02  Eric Blake  <ebb9@byu.net>
112694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112696 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112698         * modules/inttypes (Depends-on): No longer depends on stdint.
112699         * modules/stdint (Description): Say more about assumptions.
112700         Say that the fast types might differ.  Say macros are used.
112701         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112702         (Makefile.am): Revise list of substituted symbols to match
112703         new stdint.m4.
112704         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112705         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112706         * tests/test-stdint.c (verify_same_types)
112707         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
112708         the code conforms to C99/C89.
112709         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
112710         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
112712 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112714         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
112715         but fix a bug, by requiring at least 64 bits.
112716         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
112717         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
112718         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
112719         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112721         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
112722         changes.  Make 2.59 a prerequisite.  Check and substitute for
112723         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
112724         inttypes.h.  Do not use special include files; just use the
112725         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
112726         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
112727         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
112728         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
112729         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
112730         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
112731         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
112732         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
112733         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
112734         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
112735         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
112736         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
112737         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
112738         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
112739         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
112740         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
112741         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
112742         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
112743         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
112744         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
112745         WINT_MAX.  Check for C99 conformance more strictly, by detecting
112746         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
112747         not check for things that C99 does not require, e.g., int8_t.  If
112748         a test isn't needed unless <stdint.h> isn't working, and is
112749         unlikely to be needed for any other reason, then don't do it
112750         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
112751         size_t, since we assume C89 freestanding at least.  Do not check
112752         for sig_atomic_t, wchar_t, or wint_t, since the code now does
112753         the right thing even if the types are not defined.  Instead use:
112754         (gl_STDINT_TYPE_PROPERTIES): New macro.
112755         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
112756         testing whether <sys/types.h> clashes, as Autoconf does this for
112757         us now.  All uses removed.
112758         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
112759         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
112760         (gl_CHECK_TYPE_SAME):
112761         Remove; no longer needed.
112762         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
112763         exists, since we'll return 0 anyway in that case.
112764         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
112766 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112768         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
112769         possible collision with system files.
112770         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
112771         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
112772         WCHAR_MIN and WCHAR_MAX in this case.
112773         (<stddef.h>): Do not include; no longer needed.
112774         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
112775         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
112776         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
112777         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
112778         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
112779         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
112780         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
112781         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
112782         !defined(__c99))]: Include in this case too, since it's harmless
112783         now.
112784         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
112785         dangerous to do so.
112786         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
112787         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
112788         (_STDINT_MIN, _STDINT_MAX): New macros.
112789         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
112790         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
112791         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
112792         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
112793         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
112794         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
112795         macros, not typedefs; this simplifies things quite a bit.
112796         Use long int for all types narrower than int64_t.
112797         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
112798         Define in terms of long long int or int64_t or long int,
112799         not int64_t or int32_t.  This saves some compile-time testing.
112800         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
112801         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
112802         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
112803         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
112804         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
112805         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112806         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112807         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112808         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112809         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112810         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112811         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112812         undef any previous version and define our own version, for
112813         simplicity and consistency with the new macros for types.
112814         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112815         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112816         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112817         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112818         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112819         @WINT_T_SUFFIX@ to keep things simple here.
112820         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112821         Simplify by assuming typical 8/16/32/64 host, since we're
112822         already doing that elsewhere anyway.
112823         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112824         and assume long long int is 64 bits if available.  This
112825         speeds up 'configure'.
112827 2006-07-01  Eric Blake  <ebb9@byu.net>
112829         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112830         Reported by Andreas Buening.
112832 2006-07-01  Eric Blake  <ebb9@byu.net>
112834         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112836 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112838         * lib/getaddrinfo.c: fixed typo
112840 2006-06-29  Jim Meyering  <jim@meyering.net>
112842         * modules/strftime (Maintainer): Add my name, since with the
112843         FPRINTFTIME changes strftime.c has forked from glibc.
112845 2006-06-29  Eric Blake  <ebb9@byu.net>
112847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112849 2006-06-29  Eric Blake  <ebb9@byu.net>
112851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112853 2006-06-29  Eric Blake  <ebb9@byu.net>
112855         * lib/stat_.h: New file.
112857 2006-06-29  Eric Blake  <ebb9@byu.net>
112859         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112860         unused static function.
112862 2006-06-29  Eric Blake  <ebb9@byu.net>
112864         * doc/functions.texi (Function Portability): Document missing lstat
112865         on mingw.
112867 2006-06-29  Eric Blake  <ebb9@byu.net>
112869         * MODULES.html.sh: Add sys_stat.
112870         * modules/sys_stat: New module.
112871         * modules/mkstemp (Depends-on): Add sys_stat.
112873 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112875         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112877 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112879         * m4/c-bs-a.m4: Removed.
112881 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112883         * lib/strftime.c: Assume strftime() exists.
112885 2006-06-29  Derek Price  <derek@ximbiot.com>
112887         * modules/c-bs-a: Removed - \a is C89.
112888         * MODULES.html.sh: Remove c-bs-a.
112890 2006-06-29  Bruno Haible  <bruno@clisp.org>
112892         * modules/wcwidth (License): Change to LGPL.
112894 2006-06-28  Simon Josefsson  <jas@extundo.com>
112896         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112897         on _WIN32.
112899         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112900         getnameinfo.
112902 2006-06-28  Simon Josefsson  <jas@extundo.com>
112904         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112906 2006-06-28  Simon Josefsson  <jas@extundo.com>
112908         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112909         functions there.  It will succeed on Windows XP, but on Windows
112910         2000 and (presumably) earlier, it will fail, and use the internal
112911         re-implementation.
112912         (use_win32_p): New function.
112913         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112914         Support AI_NUMERICSERV to disable getservbyname.
112915         (getnameinfo): New function, only supports
112916         NI_NUMERICHOST|NI_NUMERICSERV for now.
112918         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112919         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112920         getnameinfo.
112922 2006-06-28  Eric Blake  <ebb9@byu.net>
112924         * modules/wcwidth: New file.
112925         * modules/mbchar (Depends-on): Add wcwidth.
112926         * modules/mbswidth (Depends-on): Add wcwidth.
112927         * MODULES.html.sh: Add wcwidth.
112929 2006-06-28  Eric Blake  <ebb9@byu.net>
112931         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112934 2006-06-28  Eric Blake  <ebb9@byu.net>
112936         * lib/xvasprintf.h: Fix comments.
112938 2006-06-28  Eric Blake  <ebb9@byu.net>
112940         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112941         * lib/mbswidth.c (wcwidth): Move from here...
112942         * lib/wcwidth.h: ...to this new file.
112944 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112946         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112949         it's obsolete.
112950         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112952 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112954         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112955         Autoconf 2.60 says this stuff was obsolete.
112957 2006-06-28  Bruno Haible  <bruno@clisp.org>
112959         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112961 2006-06-28  Bruno Haible  <bruno@clisp.org>
112963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112964         gt_TYPE_WCHAR_T.
112966 2006-06-28  Bruno Haible  <bruno@clisp.org>
112968         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112969         declaration for wcwidth.
112970         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112972 2006-06-28  Bruno Haible  <bruno@clisp.org>
112974         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112975         (mkdir): Define using _mkdir.
112977 2006-06-28  Bruno Haible  <bruno@clisp.org>
112979         * lib/getaddrinfo.h: Fix POSIX URL.
112980         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112981         _WIN32.
112982         (use_win32_p): Make static.
112983         (getaddrinfo): Reject service name if it is empty or does not consist
112984         solely of decimal digits, or if its value is > 65535.
112985         (getnameinfo): Remove useless casts.
112987 2006-06-27  Simon Josefsson  <jas@extundo.com>
112989         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112990         Eggert and Martin Lambers.
112992 2006-06-27  Simon Josefsson  <jas@extundo.com>
112994         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112995         Eggert and Martin Lambers.
112997 2006-06-27  Bruno Haible  <bruno@clisp.org>
112999         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
113000         result to 0, not to empty.
113001         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
113003 2006-06-27  Bruno Haible  <bruno@clisp.org>
113005         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
113007 2006-06-26  Simon Josefsson  <jas@extundo.com>
113009         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
113010         present.
113012 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
113014         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
113015         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
113016         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
113018 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
113020         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
113022 2006-06-26  Bruno Haible  <bruno@clisp.org>
113024         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
113026 2006-06-26  Bruno Haible  <bruno@clisp.org>
113028         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
113030 2006-06-26  Bruno Haible  <bruno@clisp.org>
113032         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
113033         SGI C compiler in pre-C99 mode.
113034         Suggested by Mark D. Baushke and Larry Jones.
113036 2006-06-26  Bruno Haible  <bruno@clisp.org>
113038         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
113039         WCHAR_MAX.
113040         Reported by Mark D. Baushke and Larry Jones.
113042 2006-06-26  Bruno Haible  <bruno@clisp.org>
113044         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
113045         in pre-C99 mode.
113046         Suggested by Mark D. Baushke and Larry Jones.
113048 2006-06-23  Simon Josefsson  <jas@extundo.com>
113049             Bruno Haible  <bruno@clisp.org>
113051         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
113052         Emit mostlyclean-local rule.
113053         (func_emit_tests_Makefile_am): Likewise.
113054         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
113056 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
113058         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
113060 2006-06-23  Bruno Haible  <bruno@clisp.org>
113062         * tests/test-stdint.c: Update to match ISO C 99 Technical
113063         Corrigendum 1.
113065 2006-06-23  Bruno Haible  <bruno@clisp.org>
113067         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
113069 2006-06-23  Bruno Haible  <bruno@clisp.org>
113071         * lib/stdint_.h: Treat IRIX like OpenBSD.
113073 2006-06-23  Bruno Haible  <bruno@clisp.org>
113075         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
113076         ISO C 99 Technical Corrigendum 1.
113078 2006-06-22  Simon Josefsson  <jas@extundo.com>
113080         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
113081         MinGW.
113083 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113085         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
113086         needed.  Some compiler complained about some of them.  Problem reported
113087         by Larry Jones in
113088         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
113090 2006-06-21  Simon Josefsson  <jas@extundo.com>
113092         * tests/test-getaddrinfo.c: New file.
113094         * modules/getaddrinfo-tests: New file.
113096         * MODULES.html.sh: Add inet_pton.
113098         * modules/inet_pton: New file.
113100 2006-06-21  Simon Josefsson  <jas@extundo.com>
113102         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
113103         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
113104         of using the (limited) gnulib implementation on Windows XP.
113106         * m4/inet_pton.m4: New file.
113108 2006-06-21  Simon Josefsson  <jas@extundo.com>
113110         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
113111         variable.
113113         * lib/socket_.h: Don't define WINVER.
113115         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
113116         slightly modified to work in gnulib.
113118 2006-06-21  Simon Josefsson  <jas@extundo.com>
113120         * doc/gnulib.texi (Windows sockets): Add.
113122 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
113124         * lib/read-file.c (fread_file): Start with buffer allocation of
113125         0 bytes rather than 1 byte; this simplifies the code.
113126         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
113127         code to free buffer and save/restore errno.
113128         (internal_read_file): Remove unused local.
113130 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
113132         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
113133         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
113134         Problem reported by Denis Excoffier in
113135         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
113137 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113139         * modules/sys_socket, modules/socklen: Include sys/types since
113140         FreeBSD 4.x's sys/socket.h needs it.
113142 2006-06-19  Simon Josefsson  <jas@extundo.com>
113144         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
113146 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113148         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
113150 2006-06-19  Bruno Haible  <bruno@clisp.org>
113152         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
113153         and FULL_PATH_INTTYPES_H in angle brackets.
113154         Reported by Mark D. Baushke <mdb@gnu.org>.
113156 2006-06-17  Eric Blake  <ebb9@byu.net>
113158         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
113159         errno.
113161 2006-06-17  Bruno Haible  <bruno@clisp.org>
113163         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
113164         <sys/inttypes.h>.
113166 2006-06-17  Bruno Haible  <bruno@clisp.org>
113168         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
113169         whether errno is declared. Assume <errno.h> declares errno.
113171 2006-06-17  Bruno Haible  <bruno@clisp.org>
113173         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
113175 2006-06-17  Bruno Haible  <bruno@clisp.org>
113177         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
113178         problem on Solaris 2.5.1.
113180 2006-06-16  Eric Blake  <ebb9@byu.net>
113182         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
113183         * lib/unicodeio.c [!defined errno]: Likewise.
113184         * lib/strtol.c [!defined errno]: Likewise.
113185         * lib/strtod.c [!defined errno]: Likewise.
113187 2006-06-15  Eric Blake  <ebb9@byu.net>
113189         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
113191 2006-06-15  Eric Blake  <ebb9@byu.net>
113193         * config/srclist.txt (ssize_t.m4): Lose sync.
113195 2006-06-15  Bruno Haible  <bruno@clisp.org>
113197         * modules/stdint (Files): Include m4/full-header-path.m4,
113198         m4/size_max.m4, m4/wchar_t.m4.
113199         (Makefile.am): Many more substitutions.
113200         * modules/stdint-tests: New file.
113201         * tests/test-stdint.c: New file.
113203 2006-06-15  Bruno Haible  <bruno@clisp.org>
113205         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
113206         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
113207         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
113208         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
113209         gl_CHECK_TYPE_SAME): New macros.
113211 2006-06-15  Bruno Haible  <bruno@clisp.org>
113213         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
113215 2006-06-15  Bruno Haible  <bruno@clisp.org>
113217         * lib/stdint_.h: Rewritten to be fully auto-configured.
113218         Fixes bug on HP-UX/IA64.
113220 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
113222         * lib/getdate.y (__attribute__): Don't define if already defined.
113223         Problem reported by Larry Jones.
113224         * lib/utimens.c (__attribute__): Likewise.
113226 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
113228         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
113229         reported by Andreas Schwab.
113231 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113232             Bruno Haible  <bruno@clisp.org>
113234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
113235         check for the declaration of strnlen and a run test that exposes the
113236         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
113237         rpl_strndup.
113239 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113240             Bruno Haible  <bruno@clisp.org>
113242         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
113244 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113246         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
113247         compile test, for Tru64 4.0D.
113249 2006-05-28  Karl Berry  <karl@gnu.org>
113251         * config/srclist.txt (printf-args.c): lose sync.
113253 2006-05-26  Martin Lambers  <marlam@marlam.de>
113255         * lib/getpass.c: Updates the test for the native W32 API, and adds
113256         missing includes, thus fixing compilation warnings.
113258 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113260         * lib/exclude.c (exclude_fnmatch): New function.
113261         (excluded_file_name): Call exclude_fnmatch.
113262         * lib/exclude.h (excluded_file_name): New prototype
113264 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
113266         * lib/tempname.c (small_open, large_open): New macros.
113267         (__open, __open64) [!_LIBC]: Remove.
113268         (__gen_tempname): Use small_open and large_open instead of __open
113269         and __open64.  This fixes a portability bug on HP-UX 11.11i
113270         reported by Simon Wing-Tang in
113271         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
113273 2006-05-24  Bruno Haible  <bruno@clisp.org>
113275         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
113276         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
113277         Reported by Thorsten Maerz <torte@netztorte.de> via
113278         Aaron Stone <aaron@serendipity.cx>.
113280 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
113283         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
113284         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
113285         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
113286         not really conditional on the cache.
113287         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
113289 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113291         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
113292         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
113293         (my_usleep): Don't mishandle maximum value.
113295 2006-05-19  Jim Meyering  <jim@meyering.net>
113297         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
113299 2006-05-17  Bruno Haible  <bruno@clisp.org>
113301         Cygwin portability.
113302         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
113304 2006-05-17  Bruno Haible  <bruno@clisp.org>
113306         * lib/stdint_.h: Fix recognition of Cygwin.
113308 2006-05-15  Bruno Haible  <bruno@clisp.org>
113310         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
113311         on libtool patch by Ralf Wildenhues.
113313 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113315         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
113316         test for C99 conformance; (bool) 0.5 is an integer constant
113317         expression, but (bool) -0.5 is not.  Problem reported by Fedor
113318         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
113320 2006-05-11  Simon Josefsson  <jas@extundo.com>
113322         * m4/xvasprintf.m4: Fix obvious typo.
113324 2006-05-11  Jim Meyering  <jim@meyering.net>
113326         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
113327         James Lemley.
113329 2006-05-10  Simon Josefsson  <jas@extundo.com>
113331         * lib/md4.c: Typo fix, update copyright years.
113332         (K1, K2): Don't use L because it turn computations into 64-bit on
113333         64-bit platforms.
113335 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
113337         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
113338         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
113339         unwanted sign propagation, e.g., on hosts with 64-bit int.
113340         There still are some problems with reeelly weird theoretical hosts
113341         (e.g., 33-bit int) but it's not worth worrying about now.
113342         * lib/sha1.c (rol): Likewise.
113343         (K1, K2, K3, K4): Remove unnecessary L suffix.
113345 2006-05-10  Bruno Haible  <bruno@clisp.org>
113347         * lib/des.c: Cast to avoid warnings.
113349 2006-05-09  Bruno Haible  <bruno@clisp.org>
113351         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
113352         (Depends-on): Depend also on xsize, stdarg.
113353         (configure.ac): Add gl_XVASPRINTF.
113355 2006-05-09  Bruno Haible  <bruno@clisp.org>
113357         * m4/xvasprintf.m4: New file.
113359 2006-05-09  Bruno Haible  <bruno@clisp.org>
113361         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
113362         (EOVERFLOW): Define fallback value.
113363         (xstrcat): New function.
113364         (xvasprintf): Recognize the special case of a string concatenation.
113366 2006-05-08  Eric Blake  <ebb9@byu.net>
113368         * gnulib-tool (func_version): Base copyright year on CVS date.
113369         (func_emit_copyright_notice): New function.
113370         (func_emit_lib_Makefile_am): Use it.
113371         (func_emit_tests_Makefile_am): Likewise.
113372         (func_import): Likewise.
113374 2006-05-08  Bruno Haible  <bruno@clisp.org>
113376         * modules/stdarg: New file.
113377         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
113379 2006-05-08  Bruno Haible  <bruno@clisp.org>
113381         * m4/stdarg.m4: New file, from GNU gettext.
113383 2006-05-08  Bruno Haible  <bruno@clisp.org>
113385         * config/srclist.txt (build-aux/config.rpath): different from latest
113386         release.
113388 2006-05-08  Bruno Haible  <bruno@clisp.org>
113390         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
113392 2006-05-05  Jim Meyering  <jim@meyering.net>
113394         * m4/warning.m4: New file, derived from bison's file by the same name.
113396 2006-05-03  Bruno Haible  <bruno@clisp.org>
113398         * lib/stdint_.h: Shorter URL.
113399         * lib/inttypes.h: Likewise.
113401 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113403         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
113405 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113407         * lib/verify.h: Document the internals better.  Most of this change
113408         was written by Bruno Haible.
113410 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113412         * doc/verify.texi: New file, partly based on a proposal by
113413         Bruno Haible.
113415 2006-05-02  Bruno Haible  <bruno@clisp.org>
113417         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
113418         test from here...
113419         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
113421 2006-04-29  Bruno Haible  <bruno@clisp.org>
113423         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
113424         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
113426 2006-04-29  Bruno Haible  <bruno@clisp.org>
113428         * gnulib-tool: Make --update option actually work.
113430 2006-04-29  Bruno Haible  <bruno@clisp.org>
113432         * doc/gcd.texi: New file.
113433         * doc/gnulib.texi: Include it.
113435 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
113437         * lib/getdate.y (get_date): When adding relative date, start with the
113438         initial time, not with the result of the first mktime call.
113440 2006-04-25  Bruno Haible  <bruno@clisp.org>
113442         * gnulib-tool (func_import): Output the include directives in three
113443         blocks, sorted separately.
113444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113446 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113448         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
113449         to define main with arguments, for C++.  Reported by Eric Blake.
113450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
113451         Prefer 'int main ()' to 'int main (void)', for C++.
113452         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
113453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
113454         for 'main', for C99 and C++.
113456 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113458         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
113459         Don't assume that exit status -1 is valid.
113460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113461         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
113462         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
113463         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
113464         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
113465         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
113466         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
113467         functions can be used without declaring them, or that you can
113468         exit with status -1.
113469         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
113471 2006-04-24  Karl Berry  <karl@gnu.org>
113473         * config/srclist.txt (longdouble.m4): sync lost.
113475 2006-04-24  Eric Blake  <ebb9@byu.net>
113477         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
113479 2006-04-24  Bruno Haible  <bruno@clisp.org>
113481         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
113482         poll() implementation in AIX.
113483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113485 2006-04-24  Bruno Haible  <bruno@clisp.org>
113487         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
113488         assigned exactly once.
113490 2006-04-23  Claudio Fontana  <claudio@gnu.org>
113491             Bruno Haible  <bruno@clisp.org>
113493         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
113494         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
113495         for AM_CPPFLAGS.
113497 2006-04-23  Bruno Haible  <bruno@clisp.org>
113499         * modules/copy-file: Depend on unistd.
113500         * modules/execute: Likewise.
113501         * modules/fatal-signal: Likewise.
113502         * modules/findprog: Likewise.
113503         * modules/mkdtemp : Likewise.
113504         * modules/pipe: Likewise.
113505         * modules/wait-process: Likewise.
113507 2006-04-23  Bruno Haible  <bruno@clisp.org>
113509         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
113510         condition was already detected.
113511         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113513 2006-04-23  Bruno Haible  <bruno@clisp.org>
113515         * lib/copy-file.c: Include <unistd.h> unconditionally.
113516         * lib/execute.c: Likewise.
113517         * lib/fatal-signal.c: Likewise.
113518         * lib/findprog.c: Likewise.
113519         * lib/mkdtemp.c: Likewise.
113520         * lib/pipe.h: Likewise.
113521         * lib/pipe.c: Likewise.
113522         * lib/wait-process.h: Likewise.
113524 2006-04-23  Bruno Haible  <bruno@clisp.org>
113526         * gnulib-tool (func_usage): Fix --import description. Document
113527         --update.
113528         (func_import): Create temporary file in a temporary directory, if
113529         --dry-run is specified. Silence errors from 'grep' when there are no
113530         m4 files in $m4dir.
113531         (func_create_testdir): Silence errors from 'grep' when there are no
113532         m4 files in $m4dir.
113533         Reported by Karl Berry <karl@freefriends.org>.
113535 2006-04-20  Bruno Haible  <bruno@clisp.org>
113537         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
113538         one argument, so that the code will be portable to Autoconf 2.60.
113539         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
113540         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113541         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
113543 2006-04-19  Derek Price  <derek@ximbiot.com>
113544             Eric Blake  <ebb9@byu.net>
113546         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
113547         rather than "/full/path.h".  Update comment to match.  Shorten &
113548         generalize m4_translit call via AS_TR_CPP.
113550 2006-04-19  Derek Price  <derek@ximbiot.com>
113551             Eric Blake  <ebb9@byu.net>
113553         * lib/inttypes.h: Correct grammar in comment.
113555 2006-04-18  Derek Price  <derek@ximbiot.com>
113556             Paul Eggert  <eggert@cs.ucla.edu>
113558         * modules/inttypes: New file.
113559         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
113561 2006-04-18  Derek Price  <derek@ximbiot.com>
113562             Paul Eggert  <eggert@cs.ucla.edu>
113564         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
113565         New files.
113567 2006-04-18  Derek Price  <derek@ximbiot.com>
113568             Paul Eggert  <eggert@cs.ucla.edu>
113570         * lib/inttypes.h: New file.
113571         * lib/strtoimax.c: Assume <inttypes.h>.
113573 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
113575         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
113576         isn't mounted.  Problem reported by Kir Kolyshkin.
113578 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113580         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
113581         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
113582         Derek R. Price.
113583         * lib/regex.h (RE_DUP_MAX): Update comment to match current
113584         implementation.
113586 2006-04-12  Eric Blake  <ebb9@byu.net>
113588         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
113589         is now done automatically by the corresponding Autoconf macro.
113591 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
113593         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
113594         time_r.h.
113596 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113598         Merge regex changes from libc, removing some of our
113599         POSIX-conformance changes that were rejected and redoing them in a
113600         less-intrusive way.
113602         * lib/regcomp.c (re_compile_internal, init_dfa):
113603         Length arg is now size_t, not Idx.  All uses changed.
113604         (peek_token): Forward decl now says internal_function.
113605         (__re_error_msgid, __re_error_msgid_idx):
113606         Now static rather than extern with attribute_hidden.
113607         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
113608         For some reason libc prefers K&R style defns for external functions.
113609         (regerror) [!defined _LIBC]: Likewise.
113610         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
113611         (seek_collating_symbol_entry, lookup_collation_sequence_value):
113612         (build_range_exp, build_collating_symbol):
113613         Use K&R-style defn.
113614         (re_compile_fastmap): Use '\0' to memset, not 0.
113615         (utf8_sb_map): Make the calculations more obvious.
113616         (init_dfa, parse_bracket_exp, build_charclass_op):
113617         Call calloc and cast result, as glibc does.
113618         (init_word_char, fetch_token, peek_token, peek_token_bracket):
113619         (build_range_exp, build_collating_symbol):
113620         Now internal functions.
113622         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
113624         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
113625         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
113626         Don't depend on VMS; depend on __VMS instead, for POSIX
113627         namespace cleanness.
113628         (regoff_t): Define to ssize_t, not long int.
113630         Remove the REG_ macros named below.  Instead, make the old names
113631         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
113632         __USE_GNU_REGEX.
113633         (REG_BACKSLASH_ESCAPE_IN_LISTS):
113634         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
113635         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
113636         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
113637         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
113638         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
113639         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
113640         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
113641         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
113642         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
113643         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
113644         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
113645         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
113646         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
113647         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
113648         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
113649         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
113650         (REG_NREGS):
113651         Remove.  All uses replaced by the old RE_* names.
113652         (RE_BACKSLASH_ESCAPE_IN_LISTS):
113653         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
113654         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
113655         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
113656         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
113657         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
113658         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
113659         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
113660         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
113661         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
113662         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
113663         Don't bother having these macros be independent of each others'
113664         values, since they no longer exist in the POSIX name space.
113666         Rename the following member names back to their old names,
113667         unless !__USE_GNU_REGEX.  All uses changed back.
113668         (buffer): Renamed from re_buffer.
113669         (allocated): Renamed from re_allocated.
113670         (used): Renamed from re_used.
113671         (syntax): Renamed from re_syntax.
113672         (fastmap): Renamed from re_fastmap.
113673         (translate): Renamed from re_translate.
113674         (can_be_null): Renamed from re_can_be_null.
113675         (regs_allocated): Renamed from re_regs_allocated.
113676         (fastmap_accurate): Renamed from re_fastmap_accurate.
113677         (no_sub): Renamed from re_no_sub.
113678         (not_bol): Renamed from re_not_bol.
113679         (not_eol): Renamed from re_not_eol.
113680         (newline_anchor): Renamed from re_newline_anchor.
113681         (num_regs): Renamed from rm_num_regs.
113682         (start): Renamed from rm_start.
113683         (end): Renamed from rm_end.
113685         (free_state): Move up a bit.
113687         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113688         #define to be empty.
113689         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113690         when that is what is intended.
113691         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113692         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113693         (MAX): New macro.
113694         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113695         All uses changed back to re_malloc, etc.  It's now the caller's
113696         responsibility to check for overflow; all callers changed.
113697         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113698         (re_x2nrealloc): Remove.
113699         (free_state): Remove decl.
113701         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113702         (re_set_registers, re_exec):
113703         Use K&R-style defn.
113705         2006-01-31  Roland McGrath  <roland@redhat.com>
113707         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
113708         Reported by Mike Frysinger <vapier@gentoo.org>.
113710         2006-01-15  Andreas Jaeger  <aj@suse.de>
113712         [BZ #1950]
113713         * lib/regex_internal.c (re_string_reconstruct): Adjust for
113714         build_wcs_upper_buffer change.
113715         (build_wcs_upper_buffer): Change return type.
113717         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
113719         * lib/regex_internal.h: Include <stdint.h> if available.
113721         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
113723         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
113725         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
113727         * lib/regcomp.c: Adjust for changed secondary hash function.
113729         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
113731         * lib/regex.h: Pretty printing.
113732         Clean up namespace a bit.
113734         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
113736         * lib/regexec.c (update_cur_sifted_state, check_arrival,
113737         check_arrival_add_next_nodes): Avoid using uninitialized variable.
113739         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113740                     Ulrich Drepper  <drepper@redhat.com>
113742         [BZ #1302]
113743         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
113744         changed.
113745         (bitset_word_t): Renamed from bitset_word.  All uses changed.
113747         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
113749         [BZ #281]
113750         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
113751         * lib/regcomp.c: Remove unnecessary uses of
113752         unsigned RE_TRANSLATE_TYPE.
113753         * lib/regex_internal.h: Likewise.
113754         * lib/regex_internal.c: Likewise.
113755         * lib/regexec.c: Likewise.
113756         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
113758         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
113760         * lib/regexec.c (find_recover_state): Remove unnecessary
113761         initialization.
113762         (transit_state_bkref): Make DFA a const pointer.
113763         (get_subexp): Likewise.
113764         (check_arrival): Likewise.
113765         (update_cur_sifted_state): Likewise.
113766         (re_search_internal): Likewise.
113767         (prune_impossible_nodes): Likewise.
113768         (acquire_init_state_context): Likewise.
113769         (proceed_next_node): Likewise.
113770         (set_regs): Likewise.
113771         (free_fail_stack_return): Likewise.
113772         (check_arrival_expand_ecl): Mark DFA parameter as const.
113773         (check_arrival_expand_ecl_sub): Likewise.
113774         (check_subexp_limits): Likewise.
113775         (sub_epsilon_src_nodes):  Likewise.
113776         (add_epsilon_src_nodes):  Likewise.
113777         (merge_state_array): Likewise.
113778         (update_regs): Likewise.
113779         (build_trtable): Likewise.
113780         (sift_states_backward): Mark MCTX parameter as const.
113781         (build_sifted_states): Likewise.
113782         (update_cur_sifted_state): Likewise.
113783         (sift_states_mkref): Likewise.
113784         (check_arrival_expand_ecl): Mark eclosure as const.
113785         (check_dst_limits_calc_pos_1): Likewise.
113786         * lib/regex_internal.h (re_match_context_t): Make dfa a const
113787         pointer.
113789         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
113791         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
113792         (transit_state_sb): Likewise.
113793         (transit_state_mb): Likewise.
113794         (sift_states_iter_mb): Likewise.
113795         (check_arrival_add_next_nodes): Likewise.
113796         (check_node_accept_bytes): Change first parameter to pointer-to-const.
113797         [_LIBC] (re_search_2_stub): Use mempcpy.
113799         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
113800         mbrtowc for very simple UTF-8 case.
113802         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
113803         a pointer-to-const.
113804         (re_acquire_state_context): Likewise.
113805         * lib/regex_internal.h: Adjust prototypes.
113807         * lib/regex.c: Prevent using C++ compilers.
113809         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113810         (re_acquire_state_context): Likewise.
113812 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113814         * modules/regex (Depends-on): Add ssize_t.
113816 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113818         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113819         translation table.
113821 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113823         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113825 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113826             Bruno Haible  <bruno@clisp.org>
113828         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113829         <sys/types.h> and <inttypes.h>.
113831 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113833         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113834         `__error_t_defined', so argp.h will not typedef the former.
113836 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113838         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113839         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113840         glibc names.  Even if glibc is changed to conform to POSIX, the
113841         traditional names will be available anyway, since regex depends on
113842         the extensions module.  Also, fix a longstanding typo in the
113843         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113844         reported by Emanuele Giaquinta.  Also, change sense of cached
113845         variable, so that the message makes sense.
113847 2006-03-24  Simon Josefsson  <jas@extundo.com>
113849         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113850         including some doc fixes.
113851         (base64_encode_alloc): Fix +1 bug on allocation failures.
113853 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113855         * lib/base64.c (base64_encode): Do not read past end of array with
113856         unsanitized input on systems with CHAR_BIT > 8.
113858 2006-03-24  Eric Blake  <ebb9@byu.net>
113860         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113862 2006-03-22  Karl Berry  <karl@gnu.org>
113864         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113865         * config/srclistvars.sh (COREUTILS): new var.
113867 2006-03-17  Jim Meyering  <jim@meyering.net>
113869         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113870         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113872 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113874         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113875         no longer needs it.  Instead, check that regoff_t is as least
113876         as wide as ptrdiff_t.
113878         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113879         so that our regex.h stays compatible with the installed regex.
113880         This is helpful for installers who configure --without-included-regex.
113881         Problem reported by Emanuele Giaquinta.
113883 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113885         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113886         Typedef to long int, not to off_, as POSIX will likely change
113887         in that direction.
113889 2006-03-15  Eric Blake  <ebb9@byu.net>
113891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113893 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113895         * lib/argp-help.c (validate_uparams): Fix typo
113896         * lib/argp-parse.c (argp_default_options): Consistently begin help
113897         messages with a lowercase letter.
113899 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113901         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113902         overrun buffers and shouldn't be used (much as gets shouldn't be
113903         used).
113904         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113906 2006-03-08  Simon Josefsson  <jas@extundo.com>
113908         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113909         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113911 2006-03-08  Simon Josefsson  <jas@extundo.com>
113913         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113914         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113916 2006-03-08  Simon Josefsson  <jas@extundo.com>
113918         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113919         signal that configure disabled the device.
113921 2006-03-08  Simon Josefsson  <jas@extundo.com>
113923         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113924         languages.
113926 2006-03-07  Simon Josefsson  <jas@extundo.com>
113928         * modules/getopt (Depends-on): Add unistd.
113930         * modules/unistd: New file.
113932 2006-03-07  Simon Josefsson  <jas@extundo.com>
113934         * modules/gc-random: New file.
113936 2006-03-07  Simon Josefsson  <jas@extundo.com>
113938         * m4/unistd_h.m4: New file.
113940 2006-03-07  Simon Josefsson  <jas@extundo.com>
113942         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113943         test to be side-effect free by storing the result in the cache
113944         variable gl_cv_lib_readline, and moving the assignment of
113945         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113946         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113948 2006-03-07  Simon Josefsson  <jas@extundo.com>
113950         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113951         error on missing devices (the functions will return an error).
113953         * m4/gc.m4: Move random stuff to gc-random.m4
113955 2006-03-07  Simon Josefsson  <jas@extundo.com>
113957         * lib/unistd_.h: New file.
113959 2006-03-07  Simon Josefsson  <jas@extundo.com>
113961         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113963 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113965         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113966         Problem reported by Juan Manuel Guerrero.
113968 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113970         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113971         the unistd module.
113972         * lib/getlogin_r.c: Likewise.
113973         * lib/getlogin_r.h: Likewise.
113974         * lib/glob.c: Likewise.
113975         * lib/pagealign_alloc.c: Likewise.
113976         * lib/unistd_.h: Remove; no longer needed.
113978 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113980         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113981         Add unistd.
113982         * modules/c-stack (Depends-on): Add unistd.
113983         * modules/getlogin_r: Likewise.
113984         * modules/glob: Likewise.
113985         * modules/pagealign_alloc: Likewise.
113986         * modules/unistd (Files): Remove lib/unistd_.h.
113987         (EXTRA_DIST): Remove.
113988         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113989         need unistd_.h.
113990         (MOSTLYCLEANFILES): Remove unistd.h-t.
113992 2006-03-03  Simon Josefsson  <jas@extundo.com>
113994         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113996 2006-03-03  Simon Josefsson  <jas@extundo.com>
113998         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113999         libidn and bison.
114001 2006-03-03  Simon Josefsson  <jas@extundo.com>
114003         * build-aux/maint.mk: Add indent target.
114005 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
114007         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
114008         our replacement poll.h in any case, to avoid a differing
114009         declaration from a system header.  Seen on AIX.
114011 2006-03-01  Simon Josefsson  <jas@extundo.com>
114013         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
114014         <kasal@ucw.cz>.
114016 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114018         * modules/gettime (Depends-on): Add extensions module.
114019         * modules/nanosleep (Depends-on): Likewise.
114020         * modules/settime (Depends-on): Likewise.
114022 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114024         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
114025         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
114026         pedantically.
114027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
114028         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
114030         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
114031         not "==".  Reported by Ralf Wildenhues.
114033 2006-03-01  Karl Berry  <karl@gnu.org>
114035         * doc/Copyright/request-*: new files, synced from gnuorg.
114037 2006-03-01  Karl Berry  <karl@gnu.org>
114039         * config/srclist.txt (Copyright/*): new entries.
114041 2006-02-28  Simon Josefsson  <jas@extundo.com>
114043         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
114045 2006-02-27  Simon Josefsson  <jas@extundo.com>
114047         * lib/base64.h: Indent #define's.  From Jim Meyering
114048         <jim@meyering.net>.
114050 2006-02-27  Jim Meyering  <jim@meyering.net>
114052         Revert the change of 2006-02-24, so these files can continue
114053         to be sync'd from gettext.
114054         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
114055         of `config.h'.
114057 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114059         * modules/intprops: New file.
114060         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
114061         Add intprops.
114062         * modules/getloadavg (Files): Remove lib/intprops.h.
114063         (Depends-on): Add intprops.
114064         * modules/human: Likewise.
114065         * modules/inttostr: Likewise.
114066         * modules/openat: Likewise.
114067         * modules/sig2str: Likewise.
114068         * modules/userspec: Likewise.
114069         * modules/utimecmp: Likewise.
114070         * modules/xnanosleep: Likewise.
114071         * modules/xstrtol: Likewise.
114073 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
114075         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
114076         * modules/lock-tests (TESTS): Use $(EXEEXT).
114077         * modules/tls-tests: Likewise.
114078         * modules/argp-tests: Likewise.
114079         (check_PROGRAMS): New var, replacing...
114080         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
114082 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114084         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
114085         `config.h'.
114087 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
114089         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
114091 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114093         Sync from coreutils.
114094         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
114095         gl_CHDIR_SAFER.
114097 2006-02-22  Jim Meyering  <jim@meyering.net>
114099         Sync from coreutils.
114100         * m4/chdir-safer.m4: New file.
114102 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
114104         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
114105         AT_FDCWD exceeds INT_MAX.
114106         * lib/openat.h (AT_FDCWD): Likewise.
114108 2006-02-17  Eric Blake  <address@hidden>
114110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
114112 2006-02-16  Simon Josefsson  <jas@extundo.com>
114114         * modules/getaddrinfo (Depends-on): Add sys_socket.
114116 2006-02-15  Simon Josefsson  <jas@extundo.com>
114118         * build-aux/maint.mk: Add dsyntax-check rule.
114120 2006-02-15  Eric Blake  <ebb9@byu.net>
114122         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
114123         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
114124         'present but cannot compile' warnings on cygwin.
114125         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
114126         use ws2tcpip.h if sys/socket.h works.
114127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
114128         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
114130 2006-02-14  Simon Josefsson  <jas@extundo.com>
114132         * modules/maintainer-makefile (Files): Rename.
114134         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
114135         and (the local) Makefile.cfg to maint-cfg.mk.
114137         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
114138         to the latter.
114140         * modules/maintainer-makefile: New module.
114142         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
114143         severaly stripped to make it possible to build it up from scratch
114144         with reliable tests.
114146         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
114147         fixes to permit overriding the default actions when configure and
114148         makefile are not available.
114150 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
114152         Sync from coreutils.
114153         * modules/lstat (Depends-on): Don't depend on xalloc.
114154         (License): Change from GPL to LGPL, since this is now simply a
114155         replacement for a libc function.
114157 2006-02-14  Jim Meyering  <jim@meyering.net>
114159         Sync from coreutils.
114161         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
114162         failure on deficient systems, and simplify gnulib lgpl dependencies.
114163         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
114164         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
114166         * lib/xalloc-die.c: Remove unused definition of N_.
114168 2006-02-14  Jim Meyering  <jim@meyering.net>
114170         Sync from coreutils.
114171         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
114172         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
114173         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
114174         double-quote uses of that variable, to accommodate the rare case in
114175         which getmntent is available in none of the libraries checked.  This
114176         happens at least on FreeBSD 5.0.
114178 2006-02-13  Simon Josefsson  <jas@extundo.com>
114180         * gnulib-tool (Usage): Fix --import, from
114181         karl@freefriends.org (Karl Berry).
114183 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114185         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
114187 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
114189         * lib/argp-namefrob.h: Restore changes accidentally lost during the
114190         "autoupdate" on 2005-12-12.
114192 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114194         * modules/closeout (Depends-on): Remove atexit.
114196 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114198         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
114199         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
114201 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
114203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
114204         __EXTENSIONS__ if this causes compilation to fail.  Problem
114205         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
114206         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
114208 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
114210         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
114211         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
114212         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
114213         All uses changed.
114215 2006-01-26  Simon Josefsson  <jas@extundo.com>
114217         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
114218         prototype is visible on mingw32.
114220         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
114221         for mingw32.
114223         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
114224         mingw32).
114226 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
114228         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
114229         attempt to open for write; this always fails, at least on POSIX
114230         hosts.  This reinstates the 2006-01-09 change, which was
114231         inadvertently removed.
114233 2006-01-26  Bruno Haible  <bruno@clisp.org>
114235         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
114236         Reported by Paul Eggert.
114238 2006-01-26  Bruno Haible  <bruno@clisp.org>
114239             Paul Eggert  <eggert@cs.ucla.edu>
114241         * lib/stdbool_.h (_Bool)
114242         [(! (defined __cplusplus || defined __BEOS__)
114243           && !defined __GNUC__
114244           && !(defined __HP_cc || defined __xlc__
114245                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
114246                || defined __sgi))]:
114247         #define to signed char in these cases too; this simplifies
114248         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
114249         etc., separately) and makes it more conservative.
114251 2006-01-25  Simon Josefsson  <jas@extundo.com>
114253         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
114254         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
114255         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
114257 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114259         * lib/argp-namefrob.h: Bugfix. Remove stray #
114261 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
114263         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
114264         so that we test the test.
114265         Check for yet another HP-UX cc bug involving *bool |= bool.
114267 2006-01-25  Karl Berry  <karl@gnu.org>
114269         * config/srclist.txt (vasnprintf.c): sync lost.
114271 2006-01-25  Jim Meyering  <jim@meyering.net>
114273         Sync from the stable (b5) branch of coreutils:
114275         * lib/fts.c (fts_children): Don't let close() clobber errno from
114276         failed fchdir().
114278         * lib/fts.c (fts_stat): When following a symlink-to-directory,
114279         don't necessarily interpret stat-fails+lstat-succeeds as indicating
114280         a dangling symlink.  That can also happen at least for ELOOP.
114281         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
114282         FYI, this bug predates the inclusion of fts.c in coreutils.
114284         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
114285         in their own block, so pre-c99 compilers don't object.
114287         Avoid the double-free (first in fts_read, second in fts_close) that
114288         would occur when an `active' directory is made inaccessible (e.g.,
114289         via chmod a-x) during a traversal.
114290         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114291         before returning.  Reproduce this failure by
114292         mkdir -p a/b; cd a; chmod a-x . b
114293         Reported by Stavros Passas.
114295 2006-01-25  Jim Meyering  <jim@meyering.net>
114297         * lib/fileblocks.c: Remove more useless parentheses.
114298         * lib/readutmp.h: Likewise.
114300 2006-01-25  Bruno Haible  <bruno@clisp.org>
114302         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
114303         warnings.
114304         Reported by Paul Eggert.
114306 2006-01-25  Bruno Haible  <bruno@clisp.org>
114308         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
114309         rid of a trap command. For Solaris sh.
114310         Reported by Mark D. Baushke <mdb@gnu.org>.
114312 2006-01-24  Simon Josefsson  <jas@extundo.com>
114314         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
114315         Bruno.
114317 2006-01-24  Karl Berry  <karl@gnu.org>
114319         * config/srclist.txt (argp-namefrob.h): sync lost.
114321 2006-01-24  Jim Meyering  <jim@meyering.net>
114323         * modules/openat (Files): Add lib/intprops.h.
114324         From Mark D. Baushke.
114326 2006-01-24  Jim Meyering  <jim@meyering.net>
114328         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
114329         Reported by Mark D. Baushke.
114331 2006-01-24  Jim Meyering  <jim@meyering.net>
114333         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
114335 2006-01-24  Bruno Haible  <bruno@clisp.org>
114337         * modules/strnlen (Maintainer): Change from glibc to all.
114339 2006-01-24  Bruno Haible  <bruno@clisp.org>
114341         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
114342         Patch by Paul Eggert.
114344 2006-01-24  Bruno Haible  <bruno@clisp.org>
114346         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
114347         already has it.
114348         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
114349         2005-11-26.
114351         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
114352         'signed char' to avoid problems with the built-in _Bool type.
114353         Reported by Paul Eggert on 2005-11-26.
114355 2006-01-24  Bruno Haible  <bruno@clisp.org>
114357         * gnulib-tool (func_import): Avoid constructing complicated sed
114358         expressions inside backquote.
114359         Report and solution by Mark D. Baushke <mdb@gnu.org>.
114361 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
114363         These changes imported from libc.
114364         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
114365         test and two separate function calls.
114366         * lib/strndup.c (__strndup): Add libc_hidden_def.
114368 2006-01-23  Simon Josefsson  <jas@extundo.com>
114370         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
114371         Remove the test_*_SOURCES variable: automake infers it by default.
114372         * modules/tls-tests: Likewise.
114374 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114376         Work around porting bugs reported by Dieter in
114377         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
114378         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
114379         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
114380         Include "getopt.h" first, to check interface.
114381         (getenv): Declare only if defined HAVE_DECL_GETENV &&
114382         !HAVE_DECL_GETENV.
114383         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
114384         (__strndup): Revert to K&R-style function dfns, the glibc style.
114385         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
114386         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
114387         Include strnlen.h first, to get prototype properly.
114388         (strnlen): Renamed from __strnlen.
114389         Remove weak alias.
114391 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114393         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
114395 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114397         * config/srclist.txt: Adjust to reflect glibc reorganization.
114398         This affects only comments.
114400 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114402          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
114403          Reported by Bruce Korb <bkorb@gnu.org>.
114405 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
114407         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
114408         to pacify gcc -Wswitch-default.
114410 2006-01-22  Bruno Haible  <bruno@clisp.org>
114412         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
114413         temporary buffer for sprintf, take into account the precision also
114414         for 'd', 'i', 'u', 'o', 'x', 'X'.
114416 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114418         * modules/argp-tests: New module
114419         * tests/test-argp.c: New file
114420         * tests/test-argp-2.sh: New file
114422 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114424         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
114425         (__argp_base_name): Removed
114426         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
114427         typo.
114428         (__argp_base_name): Provide macro definition or extern declaration
114429         depending on the configuration
114431 2006-01-20  Simon Josefsson  <jas@extundo.com>
114433         * modules/inet_ntop (Depends-on): Depend on sys_socket.
114435 2006-01-20  Simon Josefsson  <jas@extundo.com>
114437         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
114439 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114441         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
114442         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
114443         Suggested by Bruno Haible.
114445 2006-01-20  Karl Berry  <karl@gnu.org>
114447         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
114448         until changes propagate, I guess.
114450 2006-01-19  Simon Josefsson  <jas@extundo.com>
114452         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
114454 2006-01-19  Simon Josefsson  <jas@extundo.com>
114456         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
114458 2006-01-19  Simon Josefsson  <jas@extundo.com>
114460         * gnulib-tool: Set check_PROGRAMS.
114462         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114463         modules/des-tests, modules/gc-arcfour-tests,
114464         modules/gc-arctwo-tests, modules/gc-des-tests,
114465         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114466         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114467         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114468         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114469         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114470         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
114471         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
114472         test_*_SOURCES.
114474 2006-01-18  Simon Josefsson  <jas@extundo.com>
114476         * modules/socklen (Depends-on): Depend on sys_socket.
114478 2006-01-18  Simon Josefsson  <jas@extundo.com>
114480         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114481         modules/des-tests, modules/gc-arcfour-tests,
114482         modules/gc-arctwo-tests, modules/gc-des-tests,
114483         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114484         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114485         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114486         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114487         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114488         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
114489         $(EXEEXT) to automake TESTS variable, for mingw32.
114491 2006-01-17  Simon Josefsson  <jas@extundo.com>
114493         * modules/socklen (Include): Need sys/socket.h.
114495 2006-01-17  Bruno Haible  <bruno@clisp.org>
114497         * modules/ssize_t (Include): Add <sys/types.h>.
114499 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
114501         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
114502         it's not portable and it doesn't work with cross-compiles.
114503         Problem reported by Bruno Haible.  Fix missing-$ typo in
114504         'test "gl_cv_ignore_unused_libraries" ...' that prevented
114505         -zignore from being used with Sun's C compiler.
114507 2006-01-12  Simon Josefsson  <jas@extundo.com>
114509         * lib/base64.c: Fix warning, reported by Bruno Haible
114510         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
114512 2006-01-12  Bruno Haible  <bruno@clisp.org>
114514         * modules/ldd: New file.
114515         * build-aux/ldd.sh.in: New file.
114516         * MODULES.html.sh (Support for building libraries and executables): Add
114517         ldd.
114519 2006-01-12  Bruno Haible  <bruno@clisp.org>
114521         * m4/ldd.m4: New file.
114523 2006-01-12  Bruno Haible  <bruno@clisp.org>
114525         * gnulib-tool (func_import, func_create_testdir): Don't go into an
114526         endless loop while replacing $auxdir with build-aux.
114528 2006-01-11  Simon Josefsson  <jas@extundo.com>
114530         * lib/stdint_.h (SIZE_MAX): Add missing (.
114532 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
114534         Sync from coreutils.
114535         * lib/md5.c: Fix commentary typos.
114536         (alignof, UNALIGNED_P): No need for a GCC-specific version.
114537         * lib/md5.h (__attribute__): Remove; unused.
114538         * lib/sha1.c: Fix commentary to match md5 better.
114539         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
114540         so that we don't need to worry about alignment.  All uses changed.
114541         This merges the 2005-10-28 md5 change into sha1.
114543 2006-01-11  Jim Meyering  <jim@meyering.net>
114545         Sync from coreutils.
114546         * lib/md5.c (OP): Fix spacing.
114548 2006-01-11  Bruno Haible  <bruno@clisp.org>
114550         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114551         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
114552         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
114554 2006-01-11  Bruno Haible  <bruno@clisp.org>
114556         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114557         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
114558         the "early" section as well.
114560 2006-01-11  Bruno Haible  <bruno@clisp.org>
114562         Avoid "ar: no archive members specified" error on MacOS X.
114563         * gnulib-tool (func_modules_add_dummy): New function.
114564         (func_import, func_create_testdir): Invoke it.
114566 2006-01-11  Bruno Haible  <bruno@clisp.org>
114568         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
114569         with $auxdir in AC_CONFIG_FILES statements.
114571 2006-01-11  Bruno Haible  <bruno@clisp.org>
114573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114574         Initialize also noinst_HEADERS to empty.
114576 2006-01-11  Bruno Haible  <bruno@clisp.org>
114578         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
114579         variables.
114580         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
114581         autoreconf.
114583 2006-01-11  Bruno Haible  <bruno@clisp.org>
114585         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
114586         overridable by the user.
114587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114589 2006-01-10  Simon Josefsson  <jas@extundo.com>
114591         * modules/sys_socket: New file.
114593 2006-01-10  Simon Josefsson  <jas@extundo.com>
114595         * m4/sys_socket_h.m4: New file.
114597 2006-01-10  Simon Josefsson  <jas@extundo.com>
114599         * lib/socket_.h: New file.
114601 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114603         * modules/readutmp (Maintainer): Add myself.
114605 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114607         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
114608         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
114609         People who are still concerned with buggy memcmp implementations
114610         can invoke gl_FUNC_MEMCMP themselves.
114612 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114614         * lib/regex_internal.h (BITSET_WORD_BITS):
114615         Work around a bug in 64-bit PGC (before version 6.1-2), where the
114616         preprocessor mishandles large unsigned values as if they were signed.
114617         Problem reported by Claudio Fontana in
114618         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
114620 2006-01-10  Jim Meyering  <jim@meyering.net>
114622         Avoid the double-free (first in fts_read, second in fts_close) that
114623         would occur when an `active' directory is made inaccessible (e.g.,
114624         via chmod a-x) during a traversal.
114625         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114626         before returning.  Reproduce this failure by
114627         mkdir -p a/b; cd a; chmod a-x . b
114628         Reported by Stavros Passas.
114630         Sync from coreutils.
114631         * lib/sha1.c: Tweak grammar in a comment.
114633 2006-01-10  Jim Meyering  <jim@meyering.net>
114635         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
114636         Patch by Joerg Sonnenberger.
114638 2006-01-10  Bruno Haible  <bruno@clisp.org>
114640         * modules/readutmp: Depend on module free.
114641         * modules/strtok_r: Depend on module restrict.
114643 2006-01-10  Bruno Haible  <bruno@clisp.org>
114645         * modules/gettext (configure.ac): Add an invocation of
114646         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
114648 2006-01-10  Bruno Haible  <bruno@clisp.org>
114650         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
114651         Reported by Werner Lemberg <wl@gnu.org>.
114653 2006-01-10  Bruno Haible  <bruno@clisp.org>
114655         * lib/localcharset.c: Update from GNU gettext.
114657 2006-01-10  Bruno Haible  <bruno@clisp.org>
114659         * lib/argp.h (__const): Remove macro. Use const instead.
114660         * lib/argp-fmtstream.h (__const): Likewise.
114661         * lib/glob_.h (__const): Remove macro.
114662         * lib/glob-libc.h: Use const instead of __const.
114664 2006-01-10  Bruno Haible  <bruno@clisp.org>
114666         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114667         variable.
114668         Needed to avoid an automake error regarding the 'gettext' module.
114670 2006-01-09  Simon Josefsson  <jas@extundo.com>
114672         * modules/inet_ntop (Depends-on): Add restrict.
114674 2006-01-09  Simon Josefsson  <jas@extundo.com>
114676         * modules/gc-rijndael-tests (License): Put under LGPL.
114678         * modules/gc-des-tests (License): Likewise.
114680         * modules/gc-arcfour-tests (License): Likewise.
114682         * modules/gc-arctwo-tests (License): Likewise.
114684         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114686         * modules/gc-hmac-sha1-tests (Files): Likewise.
114688         * modules/gc-hmac-md5-tests (License): Likewise.
114690         * modules/gc-sha1-tests (License): Likewise.
114692         * modules/gc-md5-tests (License): Likewise.
114694         * modules/gc-md4-tests (License): Likewise.
114696         * modules/gc-md2-tests (License): Likewise.
114698         * modules/gc-tests (License): Likewise.
114700         * modules/des-tests (License): Likewise.
114702         * modules/md4-tests (License): Likewise.
114704         * modules/md2-tests (License): Likewise.
114706 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114708         Sync from coreutils:
114710         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
114711         * modules/lib-ignore: New file.
114712         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
114713         chdir-safer.m4, lchmod.m4.
114714         * modules/openat: Add mkdirat.c, openat-priv.h.
114716 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114718         Sync from coreutils.
114719         * m4/lib-ignore.m4: New file.
114720         * m4/lchmod.m4: New file.
114722 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114724         Sync from coreutils.
114725         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
114726         for write access: POSIX says that must fail.
114727         * lib/fts.c (diropen): Likewise.
114728         * lib/save-cwd.c (save_cwd): Likewise.
114729         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
114730         well, for minor improvements on hosts that lack O_DIRECTORY.
114731         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
114732         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
114733         Fall back on chown if open failed with EACCES.
114735         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
114736         Report an error at compile-time if only a 1-second nominal clock
114737         resolution is found.
114739         * lib/lchmod.h: New file.
114740         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
114741         (make_dir_parents): Use lchown rather than chown, and
114742         lchmod rather than chmod.
114744         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
114745         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
114746         "proc" reported by n0dalus.
114748         * lib/mountlist.c: Include <limits.h>.
114749         (dev_from_mount_options)
114750         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
114751         New function.  It no longer assumes "dev=" has the System V meaning
114752         on Linux (since it doesn't).  It also parses "dev=" more carefully.
114753         (read_file_system_list)
114754         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
114755         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
114756         dev= in that case.
114758         * lib/posixtm.h (PDS_PRE_2000): New macro.
114759         * lib/posixtm.c (year): Arg is now syntax_bits rather than
114760         allow_century.  All usages changed.  Reject dates outside the range
114761         1969-1999 if PDS_PRE_2000 is used.
114763 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114765         Sync from coreutils.
114766         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
114767         (Time of day items): Mention the possibility of leap seconds.
114768         Problem reported by Dr. David Alan Gilbert.
114770 2006-01-09  Jim Meyering  <jim@meyering.net>
114772         Sync from coreutils.
114774         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
114776         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
114778         * lib/modechange.c (mode_compile): Reject an invalid mode string
114779         that starts with an octal digit.  From Andreas Gruenbacher.
114781         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
114782         and dup to open_safer and dup_safer, respectively.
114783         (openat_permissive): Fix typo in comment.
114785         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
114786         "gettext.h"; either no longer needed or are guaranteed by openat.h.
114787         (_): Remove; no longer needed.
114788         (openat): Renamed from rpl_openat; no need for rpl_openat
114789         since openat.h renames openat for us.
114790         Replace most of the body with a call to openat_permissive,
114791         to avoid duplicate code.
114792         Port to (probably hypothetical) environments were mode_t is
114793         wider than int.
114794         (openat_permissive): Require mode arg, so that we can check
114795         types better.  Put it just after flags.  Change cwd failure
114796         indicator from pointer-to-bool to pointer-to-errno-value.
114797         All callers changed.
114798         Invoke openat_save_fail and/or openat_restore_fail if
114799         cwd_errno is null, so that openat can call us.
114800         (openat_permissive, fdopendir, fstatat, unlinkat):
114801         Simplify errno handling to avoid some duplicate code,
114802         as it's OK to set errno on success.
114803         * lib/openat.h: Revamp code so that function macros depend on
114804         __OPENAT_PREFIX only, not also on AT_FDCWD.
114805         (openat_ro): Remove.  Caller changed to use openat_permissive.
114806         (openat_permissive): Now a macro, if not a function.
114807         (openat_restore_fail, openat_save_fail): Now always functions,
114808         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114810         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114811         and openat.c.
114812         * lib/mkdirat.c: Include openat-priv.h.
114813         Remove definitions of macros defined therein.
114814         * lib/openat.c: Likewise.
114816         * lib/mkdirat.c (mkdirat): New file and function.
114817         * lib/openat.h (mkdirat): Declare.
114819         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114821         * lib/openat.h (openat_permissive): Declare.
114822         (openat_ro): Define.
114824         * lib/openat.c (EXPECTED_ERRNO): New macro.
114825         (openat_permissive): New function -- used in remove.c rewrite.
114826         (all functions): Set errno just before returning, only if there
114827         was an actual failure.
114828         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114830         Emulate openat-family functions using Linux's procfs, if possible.
114831         Idea and some code based on Ulrich Drepper's glibc changes.
114833         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114834         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114835         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114836         before falling back on save_cwd and restore_cwd.
114837         (fdopendir, fstatat, unlinkat): Likewise.
114839         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114840         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114842         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114843         as second argument to va_arg.  Otherwise, some versions of gcc
114844         warn that `if this code is reached, the program will abort'.
114846 2006-01-09  Jim Meyering  <jim@meyering.net>
114848         Sync from coreutils.
114849         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114850         Require openat-priv.h.
114852 2006-01-09  Bruno Haible  <bruno@clisp.org>
114854         * modules/strnlen (Include): Use strnlen.h.
114856 2006-01-09  Bruno Haible  <bruno@clisp.org>
114858         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114860 2006-01-09  Bruno Haible  <bruno@clisp.org>
114862         * lib/sysexit_.h (EX_OK): New macro.
114863         Suggested by Martin Lambers <marlam@marlam.de>.
114865 2006-01-09  Bruno Haible  <bruno@clisp.org>
114867         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114868         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114870 2006-01-09  Bruno Haible  <bruno@clisp.org>
114872         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114873         numbers.
114875 2006-01-09  Bruno Haible  <bruno@clisp.org>
114877         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114878         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114879         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114880         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114882 2006-01-09  Bruno Haible  <bruno@clisp.org>
114884         * build-aux/javacomp.sh.in: New file, moved from lib/.
114885         * modules/javacomp-script (Files): Update.
114886         (configure.ac): Add AC_CONFIG_FILES invocation.
114887         (EXTRA_DIST): Remove variable.
114889         * build-aux/javaexec.sh.in: New file, moved from lib/.
114890         * modules/javaexec (Files): Update.
114891         (configure.ac): Add AC_CONFIG_FILES invocation.
114892         (EXTRA_DIST): Remove javaexec.sh.in.
114894         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114895         * modules/csharpcomp-script (Files): Update.
114896         (configure.ac): Add AC_CONFIG_FILES invocation.
114897         (EXTRA_DIST): Remove variable.
114899         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114900         * modules/csharpexec (Files): Update.
114901         (configure.ac): Add AC_CONFIG_FILES invocation.
114902         (EXTRA_DIST): Remove csharpexec.sh.in.
114904 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114906         Sync from coreutils.
114908         Add POSIX ACL support
114909         * lib/acl.h (copy_acl, set_acl): Add declarations.
114910         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114911         systems other than Linux.
114912         (chmod_or_fchmod): New function: use fchmod when possible,
114913         and chmod otherwise.
114914         (file_has_acl): Add a POSIX ACL implementation, with a
114915         Linux-specific subcase.
114916         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114917         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114918         acls are unsupported.
114919         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114920         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114921         are unsupported.
114923 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114925         Sync from coreutils.
114926         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114928 2006-01-07  Bruno Haible  <bruno@clisp.org>
114930         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114931         gl_EARLY.
114933 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114935         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114936         Problem reported for Mingw by Mark Junker.
114938 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114940         * README: Gnulib normally doesn't generate a tarball.
114942 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114944         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114945         long int, not int, for nanosecond counts, so that people who are
114946         used to POSIX struct timespec won't be surprised.  Reported by Jim
114947         Meyering.
114949 2005-12-28  Bruno Haible  <bruno@clisp.org>
114951         * build-aux/config.rpath: Update from GNU gettext.
114953 2005-12-16  Jim Meyering  <jim@meyering.net>
114955         * modules/fprintftime: New module.
114956         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114958 2005-12-16  Jim Meyering  <jim@meyering.net>
114960         * m4/fprintftime.m4: New file.
114962 2005-12-16  Jim Meyering  <jim@meyering.net>
114964         * lib/fprintftime.c, lib/fprintftime.h: New files.
114966 2005-12-15  Simon Josefsson  <jas@extundo.com>
114968         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114969         new m4/socklen.m4.
114971 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114973         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114974         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114976 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114978         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114979         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114980         struct uparams is valid. Fall back to the default values if it is
114981         not.
114983 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114985         * modules/argp (Files): Add argp-pin.c
114986         (Depends-on): dirname
114987         (lib_SOURCES): Add argp-pin.c
114989 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114991         * m4/argp.m4:  Check if program_invocation_name and
114992         program_invocation_short_name are declared and define appropriate
114993         macros if they are not.
114995 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114997         * lib/argp-help.c (__argp_base_name): New function
114998         (__argp_short_program_name): Rewrite using __argp_base_name
114999         * lib/argp-namefrob.h: Define program_invocation_name and
115000         program_invocation_short_name if requested
115001         (__argp_base_name): Add prototype
115002         * lib/argp-parse.c (argp_def): Use gettext wrappers
115003         (argp_default_parser): Use __argp_base_name
115004         * lib/argp-pin.c: New file. Defines program_invocation_name and
115005         program_invocation_short_name on systems that lack them.
115007 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115009         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
115010         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115011         porting problem reported by Georg Schwarz in
115012         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115014 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115016         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
115017         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115018         porting problem reported by Georg Schwarz in
115019         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115021 2005-12-05  Bruno Haible  <bruno@clisp.org>
115023         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
115024         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
115025         Reported by Mark Junker <mjscod@gmx.de>.
115027 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
115029         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
115030         Use implementation from Albert Chin, with some
115031         comments/corrections by Stepan Kasal and myself.
115033 2005-12-02  Bruno Haible  <bruno@clisp.org>
115035         * gnulib-tool (func_import): Accept GPLed build tool modules when
115036         --lgpl is given.
115037         * modules/csharpcomp-script: New file.
115038         * modules/csharpcomp: Depend on it.
115039         * modules/javacomp-script: New file.
115040         * modules/javacomp: Depend on it.
115041         Suggested by Simon Josefsson.
115043 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
115045         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
115046         statement, to work around an HP-UX 10.20 compiler bug reported by
115047         Peter O'Gorman.
115049 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115051         * modules/savedir (Depends-on): Add openat.
115053 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115055         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
115056         (uintmax_t) [defined uintmax_t]: Do not declare.
115057         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
115058         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
115059         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
115060         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
115061         sake of portability to weird hosts that C allows (though we don't
115062         know of any practical examples).
115064         * lib/savedir.h (fdsavedir): New decl.
115065         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
115066         contains most of the former guts of savedir.
115067         (savedir): Use savedirstream.
115068         Include "openat.h".
115070 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115072         * modules/obstack (Files): Add m4/ulonglong.m4.
115073         Problem reported by Davide Angelocola.
115075 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
115077         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
115078         coreutils no longer futzes with rounding modes.
115080 2005-11-14  Jim Meyering  <jim@meyering.net>
115082         * lib/mkstemp-safer.c: Include <config.h>, required for possible
115083         replacement of mkstemp.
115085 2005-11-10  Simon Josefsson  <jas@extundo.com>
115087         * lib/readline.c: Remove EOL.
115089 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115091         * modules/gethrxtime (Depends-on): Add gettime.
115093 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115095         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
115096         or gettimeofday; no longer needed.
115098 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115100         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
115101         time business.
115102         (gethrxtime) [! (HAVE_NANOUPTIME
115103         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
115104         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
115105         our own approximation.
115107 2005-11-08  Eric Blake  <ebb9@byu.net>
115109         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115111 2005-11-08  Eric Blake  <ebb9@byu.net>
115113         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115115 2005-11-04  Bruno Haible  <bruno@clisp.org>
115117         * gnulib-tool: Implement --update mode.
115119 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115121         Fix porting problem reported by Theodoros V. Kalamatianos.
115122         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
115123         Don't assume that futimes failing means we must fail.
115125 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
115128         variables to suggest the intended function of the PATH_MAX check.
115130 2005-10-30  Kean Johnston  <jkj@sco.com>
115132         Trivial changes to support SCO systems.
115133         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
115134         as PATH_MAX.
115135         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
115136         where __ptr is null when no I/O is pending.
115138 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115140         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
115141         leave errno alone.  Problem reported by Dmitry V. Levin.
115143 2005-10-28  Simon Josefsson  <jas@extundo.com>
115145         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
115146         Test more.
115148         * tests/test-gc-md2.c, tests/test-md2.c: New files.
115150         * modules/md2, modules/md2-tests: New files.
115152 2005-10-28  Simon Josefsson  <jas@extundo.com>
115154         * m4/inet_ntop.m4: More tests.
115156         * m4/gc-md2.m4, md2.m4: New file.
115158 2005-10-28  Simon Josefsson  <jas@extundo.com>
115160         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
115161         "restrict" keywords, as per POSIX.  Protect the function
115162         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
115163         Don't use K&R prototypes.  Check the sprintf return values.
115164         Re-define EAFNOSUPPORT if not present.  Indent.
115166         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
115167         suggested by Bruno Haible <bruno@clisp.org>.
115169         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
115171         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
115173         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
115174         libgcrypt).
115176         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
115178         * lib/md2.h, lib/md2.c: New files.
115180 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
115182         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
115183         errno alone.  Problem reported by Frederic Jolliton.
115185 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
115187         * modules/verify (License): Change from GPL to LGPL.  This is a
115188         tiny module and there are apparently near-equivalents that are
115189         under the BSD license.
115191 2005-10-24  Simon Josefsson  <jas@extundo.com>
115193         * modules/sha1: Relicense to LGPL.
115195 2005-10-24  Simon Josefsson  <jas@extundo.com>
115197         * lib/md4.h: Shrink buffer size, now that we changed the type.
115199 2005-10-23  Simon Josefsson  <jas@extundo.com>
115201         * gnulib-tool (func_import): Fix --tests-base.
115203 2005-10-22  Simon Josefsson  <jas@extundo.com>
115205         * modules/arcfour (Depends-on): Need stdint.
115207 2005-10-22  Simon Josefsson  <jas@extundo.com>
115209         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
115210         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
115212 2005-10-22  Simon Josefsson  <jas@extundo.com>
115214         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
115215         suggested by Bruno Haible <bruno@clisp.org>.
115217 2005-10-22  Simon Josefsson  <jas@extundo.com>
115219         * lib/crc.h: Include stddef.h, for size_t.
115221 2005-10-22  Simon Josefsson  <jas@extundo.com>
115223         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
115224         arcfour_context struct (simplify test vector testing in GNU
115225         Shishi).
115227 2005-10-21  Simon Josefsson  <jas@extundo.com>
115229         * modules/des, modules/des-tests: New files.
115231         * modules/gc-des, modules/gc-des-tests: New files.
115233         * tests/test-des.c, tests/test-gc-des.c: New file.
115235 2005-10-21  Simon Josefsson  <jas@extundo.com>
115237         * modules/arctwo, modules/arctwo-tests: New files.
115239         * tests/test-arctwo.c: New file.
115241         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
115243         * tests/test-gc-arctwo.c: New file.
115245 2005-10-21  Simon Josefsson  <jas@extundo.com>
115247         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
115248         Bruno Haible <bruno@clisp.org>.
115250         * m4/gc-des.m4: New file.
115252 2005-10-21  Simon Josefsson  <jas@extundo.com>
115254         * m4/arctwo.m4: New file.
115256         * m4/gc-arctwo.m4: New file.
115258 2005-10-21  Simon Josefsson  <jas@extundo.com>
115260         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
115261         block.
115263 2005-10-21  Simon Josefsson  <jas@extundo.com>
115265         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
115266         <bruno@clisp.org>.
115268         * lib/hmac-sha1.c (hmac_sha1): Likewise.
115270         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
115271         Bruno Haible <bruno@clisp.org>.
115273         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
115274         <bruno@clisp.org>.
115276 2005-10-21  Simon Josefsson  <jas@extundo.com>
115278         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
115280 2005-10-21  Simon Josefsson  <jas@extundo.com>
115282         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
115284 2005-10-21  Simon Josefsson  <jas@extundo.com>
115286         * lib/des.h, lib/des.c: New files.
115288         * lib/gc-gnulib.c: Support DES.c
115290 2005-10-21  Simon Josefsson  <jas@extundo.com>
115292         * lib/arctwo.h, lib/arctwo.c: New files.
115294         * lib/gc-gnulib.c: Support ARCTWO.
115296 2005-10-21  Simon Josefsson  <jas@extundo.com>
115298         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
115299         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115301 2005-10-21  Simon Josefsson  <jas@extundo.com>
115303         * gnulib-tool (func_import, func_create_testdir): Define automake
115304         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
115305         Makefile.am snippet),
115306         suggested by Bruno Haible <bruno@clisp.org>.
115308         * modules/gc (Makefile.am): Use it.
115310 2005-10-21  Bruno Haible  <bruno@clisp.org>
115312         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
115313         patch.
115315 2005-10-19  Simon Josefsson  <jas@extundo.com>
115317         * tests/test-gc-rijndael.c: New file.
115319         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
115321 2005-10-19  Simon Josefsson  <jas@extundo.com>
115323         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
115324         interface too.
115326 2005-10-19  Simon Josefsson  <jas@extundo.com>
115328         * tests/test-gc-arcfour.c: New file.
115330         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
115332 2005-10-19  Simon Josefsson  <jas@extundo.com>
115334         * modules/gc-md4, modules/gc-md4-tests: New file.
115336         * tests/test-gc-md4.c: New file.
115338 2005-10-19  Simon Josefsson  <jas@extundo.com>
115340         * m4/gc-md4.m4: New file.
115342 2005-10-19  Simon Josefsson  <jas@extundo.com>
115344         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
115345         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
115346         <kasal@ucw.cz>.
115348 2005-10-19  Simon Josefsson  <jas@extundo.com>
115350         * m4/gc-arcfour.m4: New file.
115352         * m4/gc-rijndael.m4: New file.
115354 2005-10-19  Simon Josefsson  <jas@extundo.com>
115356         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
115358 2005-10-19  Simon Josefsson  <jas@extundo.com>
115360         * lib/gc-gnulib.c: Support ARCFOUR.
115362 2005-10-19  Simon Josefsson  <jas@extundo.com>
115364         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
115365         support.
115367         * lib/gc.h: Add ECB enum type.
115369         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
115371 2005-10-18  Simon Josefsson  <jas@extundo.com>
115373         * tests/test-md5.c: New file.
115375         * modules/md5-tests: New file.
115377 2005-10-18  Simon Josefsson  <jas@extundo.com>
115379         * tests/test-md4.c: New file.
115381         * modules/md4, modules/md4-tests: New files.
115383 2005-10-18  Simon Josefsson  <jas@extundo.com>
115385         * m4/md4.m4: New file.
115387 2005-10-18  Simon Josefsson  <jas@extundo.com>
115389         * lib/md4.h, lib/md4.c: New files, based on md5.?.
115391 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
115393         * gnulib-tool (func_create_testdir): Omit the second check whether
115394         BUILT_SOURCES in nonempty.
115396 2005-10-17  Simon Josefsson  <jas@extundo.com>
115398         * tests/test-rijndael.c: New file.
115400 2005-10-17  Simon Josefsson  <jas@extundo.com>
115402         * modules/sha1: Depend on stdint instead of md5.
115404         * modules/md5: Depend on stdint, remove uint32_t.
115406 2005-10-17  Simon Josefsson  <jas@extundo.com>
115408         * modules/gc-sha1-tests: New file.
115410         * tests/test-gc-sha1.c: New file.
115412 2005-10-17  Simon Josefsson  <jas@extundo.com>
115414         * m4/md5.m4: Remove call to uint32_t.m4.
115416 2005-10-17  Simon Josefsson  <jas@extundo.com>
115418         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
115420         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
115421         md5.h.
115423         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
115425         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
115427 2005-10-17  Simon Josefsson  <jas@extundo.com>
115429         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
115431 2005-10-17  Simon Josefsson  <jas@extundo.com>
115433         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
115435 2005-10-17  Simon Josefsson  <jas@extundo.com>
115437         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
115439         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
115441 2005-10-17  Bruno Haible  <bruno@clisp.org>
115443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
115444         that it can also be used in a test.
115446 2005-10-16  Bruno Haible  <bruno@clisp.org>
115448         * gnulib-tool (func_emit_tests_Makefile_am): Also define
115449         TESTS_ENVIRONMENT, so that individual tests can augment it.
115451         * gnulib-tool (func_create_testdir): Use an intermediate target for
115452         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
115453         macros, like $(ALLOCA_H), which cannot be passed through the command
115454         line.
115456 2005-10-15  Simon Josefsson  <jas@extundo.com>
115458         * modules/rijndael-tests: New file.
115460         * modules/rijndael: New file.
115462 2005-10-15  Simon Josefsson  <jas@extundo.com>
115464         * m4/rijndael.m4: New file.
115466 2005-10-15  Simon Josefsson  <jas@extundo.com>
115468         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
115470         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
115472 2005-10-14  Simon Josefsson  <jas@extundo.com>
115474         * tests/test-arcfour.c: New file.
115476         * modules/arcfour, modules/arcfour-tests: New files.
115478 2005-10-14  Simon Josefsson  <jas@extundo.com>
115480         * m4/arcfour.m4: New file.
115482 2005-10-14  Simon Josefsson  <jas@extundo.com>
115484         * lib/arcfour.h, lib/arcfour.c: New files.
115486 2005-10-14  Roland McGrath  <roland@redhat.com>
115488         Import from libc.  [BZ #1331]
115489         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
115490         macro argument.
115491         Reported by Matej Vela <vela@debian.org>.
115493 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115495         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
115496         include <wchar.h>; no longer needed.
115498 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115500         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
115502 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
115503         and  Ulrich Drepper  <drepper@redhat.com>
115505         Import from libc.
115506         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
115507         instead of inline stream orientation test and two separate
115508         function calls.  Pay no attention to USE_IN_LIBIO.
115510 2005-10-13  Simon Josefsson  <jas@extundo.com>
115512         * modules/gc-hmac-md5-tests: New file.
115514         * tests/test-gc-hmac-sha1.c: New file.
115516         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
115518         * modules/gc-hmac-md5-tests: New file.
115520         * tests/test-gc-md5.c: New file.
115522         * modules/gc-md5-tests: New file.
115524 2005-10-13  Simon Josefsson  <jas@extundo.com>
115526         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
115527         Move memory allocation outside of loop.
115529 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
115531         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
115532         intermediate directory is in a read-only file system.  Problem
115533         reported by Eric Blake.
115535 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
115537         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
115539 2005-10-12  Simon Josefsson  <jas@extundo.com>
115541         * tests/test-hmac-sha1.c: New file.
115543         * modules/hmac-sha1-tests: New file.
115545         * modules/hmac-sha1: New file.
115547 2005-10-12  Simon Josefsson  <jas@extundo.com>
115549         * modules/gc-sha1: New file.
115551 2005-10-12  Simon Josefsson  <jas@extundo.com>
115553         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
115555         * tests/test-gc-pbkdf2-sha1.c: New file.
115557 2005-10-12  Simon Josefsson  <jas@extundo.com>
115559         * modules/gc-md5, modules/gc-hmac-md5: New files.
115561         * modules/gc (Files): Remove md5, memxor and hmac files.
115563 2005-10-12  Simon Josefsson  <jas@extundo.com>
115565         * m4/gc-pbkdf2-sha1.m4: New file.
115567         * m4/gc-hmac-sha1.m4: New file.
115569         * m4/gc-sha1: New file.
115571         * m4/hmac-sha1.m4: New file.
115573 2005-10-12  Simon Josefsson  <jas@extundo.com>
115575         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
115577         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
115579 2005-10-12  Simon Josefsson  <jas@extundo.com>
115581         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
115582         suggested by Bruno Haible <bruno@clisp.org>.
115584 2005-10-12  Simon Josefsson  <jas@extundo.com>
115586         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
115588 2005-10-12  Simon Josefsson  <jas@extundo.com>
115590         * lib/gc-pbkdf2-sha1.c: New file.
115592         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
115594 2005-10-12  Simon Josefsson  <jas@extundo.com>
115596         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
115598         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
115600 2005-10-12  Simon Josefsson  <jas@extundo.com>
115602         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
115603         GC_USE_HMAC_MD5, respectively.
115605         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
115606         (gc_md5): Fix typo.
115608         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
115610         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
115612         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
115614 2005-10-12  Bruno Haible  <bruno@clisp.org>
115616         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
115617         Reported by Stepan Kasal <kasal@ucw.cz>.
115619 2005-10-11  Simon Josefsson  <jas@extundo.com>
115621         * tests/test-crc.c: New file.
115623         * modules/crc, modules/crc-tests: New files.
115625 2005-10-11  Simon Josefsson  <jas@extundo.com>
115627         * m4/crc.m4: New file.
115629 2005-10-11  Simon Josefsson  <jas@extundo.com>
115631         * lib/gc.h: Add gc_hash and gc_hash_buffer.
115633         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
115635         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
115637 2005-10-11  Simon Josefsson  <jas@extundo.com>
115639         * lib/crc.h, lib/crc.c: New files.
115641         * lib/gc.h (gc_hash_buffer): Add doc.
115643 2005-10-11  Bruno Haible  <bruno@clisp.org>
115645         * modules/c-strcasestr: New file.
115646         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
115648 2005-10-11  Bruno Haible  <bruno@clisp.org>
115650         * modules/c-strcase: New file.
115651         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
115653 2005-10-11  Bruno Haible  <bruno@clisp.org>
115655         * lib/strcasecmp.c: Include limits.h.
115656         (strcasecmp): Avoid integer overflow on exotic platforms.
115657         * lib/strncasecmp.c: Include limits.h.
115658         (strncasecmp): Avoid integer overflow on exotic platforms.
115659         Reported by Paul Eggert.
115661 2005-10-11  Bruno Haible  <bruno@clisp.org>
115663         * lib/c-strcasestr.h: New file, from GNU gettext.
115664         * lib/c-strcasestr.c: New file, from GNU gettext.
115666 2005-10-11  Bruno Haible  <bruno@clisp.org>
115668         * lib/c-strcase.h: New file, from GNU gettext.
115669         * lib/c-strcasecmp.c: New file, from GNU gettext.
115670         * lib/c-strncasecmp.c: New file, from GNU gettext.
115672 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115674         * modules/mempcpy (License): GPL -> LGPL.
115675         * modules/strchrnul (License): Likewise.
115676         * modules/sysexits (License): Likewise.
115678 2005-10-08  Simon Josefsson  <jas@extundo.com>
115680         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115682 2005-10-07  Simon Josefsson  <jas@extundo.com>
115684         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115686 2005-10-06  Simon Josefsson  <jas@extundo.com>
115688         * tests/test-hmac-md5.c: New file.
115690         * modules/hmac-md5-tests: New file.
115692         * modules/hmac-md5: New file.
115694 2005-10-06  Simon Josefsson  <jas@extundo.com>
115696         * m4/hmac-md5.m4: New file.
115698         * m4/memxor.m4: Require gl_C_RESTRICT.
115700 2005-10-06  Simon Josefsson  <jas@extundo.com>
115702         * lib/memxor.c (memxor): Avoid casts and warnings.
115704 2005-10-06  Simon Josefsson  <jas@extundo.com>
115706         * lib/hmac-md5.c: New file.
115708         * lib/hmac.h: New file.
115710 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
115713         promotes to int, not unsigned int, to catch the AIX 5.3
115714         compiler bug.
115716 2005-10-05  Simon Josefsson  <jas@extundo.com>
115718         * modules/memxor: New file.
115720         * modules/iconv (Files): Move config.rpath to havelib, it is used
115721         there.
115723         * modules/havelib (Files): Add config.rpath.
115725 2005-10-05  Simon Josefsson  <jas@extundo.com>
115727         * m4/memxor.m4: New file.
115729 2005-10-05  Simon Josefsson  <jas@extundo.com>
115731         * lib/memxor.c (memxor): Fix compiler error.
115733         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
115734         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
115736         * lib/memxor.h, lib/memxor.c: New files.
115738         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
115739         we assume all systems have it, suggested by Jim Meyering
115740         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
115741         any systems lack sys/socket.h; mingw32 is known to lack it, but we
115742         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
115743         same reasons.
115745 2005-10-05  Simon Josefsson  <jas@extundo.com>
115747         * config/srclist.txt: Add glibc bug 1423 for md5.h.
115749 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
115751         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
115752         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
115753         needed, since the source code now assumes these .h files.
115755 2005-10-05  Derek Price  <derek@ximbiot.com>
115757         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
115759 2005-10-05  Bruno Haible  <bruno@clisp.org>
115761         * modules/stdint (License): Change to LGPL.
115763 2005-10-04  Simon Josefsson  <jas@extundo.com>
115765         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
115766         D. Baushke" <mdb@gnu.org>.
115768 2005-10-04  Bruno Haible  <bruno@clisp.org>
115770         * lib/verify.h (verify_true): Provide alternative definition for C++.
115772 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
115774         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
115775         (SSIZE_MAX): New macro, if not already defined.
115776         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
115777         than 2 GiB.
115779 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115781         Sync from coreutils.
115782         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
115783         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
115784         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
115785         ULLONG_MAX doesn't work with 2.7.2.1.
115787 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115789         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
115790         From Ben Pfaff.
115792         * modules/exclude (Depends-on): Depend on verify.
115793         * modules/strtoimax (Depends-on): Likewise.
115794         * modules/utimecmp (Depends-on): Likewise.
115796 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115798         * lib/exclude.c: Include verify.h.
115799         (verify): Remove.  All callers changed to use verify.h's version.
115800         * lib/strtoimax.c: Likewise.
115801         * lib/utimecmp.c: Likewis.e
115803         Sync from coreutils.
115804         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
115805         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115806         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115807         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115808         bother returning ENOSYS if settimeofday or stime fails; just let
115809         them return whatever errno they want to return.
115810         * lib/utimens.c: Include unistd.h, for dup2.
115811         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115812         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115814 2005-10-02  Jim Meyering  <jim@meyering.net>
115816         Sync from coreutils.
115817         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115818         from glibc-2.2.5 that fails for read-only files.
115820 2005-10-02  Jim Meyering  <jim@meyering.net>
115822         Sync from coreutils.
115823         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115824         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115825         `#if HAVE_CONFIG_H'.
115826         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115827         Remove AT_FDCWD test.
115828         Do not consume the fd unless successful.
115829         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115830         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115831         block, so that we don't even try to compile it if settimeofday is
115832         available.  This works around a compilation failure on OSF1 V5.1,
115833         due to stime requiring a `long int*' while tv_sec is `int'.
115835 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115837         Sync from coreutils.
115838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115839         against `yes', rather than just testing for nonempty.
115841 2005-10-01  Simon Josefsson  <jas@extundo.com>
115843         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115844         and Darwin.
115846         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115847         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115848         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115849         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115850         Check if struct addrinfo is declared.
115852 2005-10-01  Simon Josefsson  <jas@extundo.com>
115854         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115855         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115856         AI_* and EAI_* definitions.  Protect function declarations.
115858 2005-10-01  Jim Meyering  <jim@meyering.net>
115860         Sync from coreutils.
115862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115863         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115864         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
115865         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115866         in the inet and nsl libraries.  Required on Solaris 5.7.
115868 2005-10-01  Jim Meyering  <jim@meyering.net>
115870         Sync from coreutils.
115871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115872         in the inet and nsl libraries.  Required on Solaris 5.7.
115874 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115876         * lib/getdelim.c (getdelim): Remove unused variables.
115878 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115880         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115881         so that the code works even with ancient cpp.  Portability problem
115882         with GCC 2.7.2.1 reported by Thomas M.Ott.
115884 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115886         * modules/regex (Depends-on): Add strcase.
115888         * modules/gethostname (Licence): Change from GPL to LGPL, since
115889         gethostname.c is a trivial implementation of a standard library
115890         function.
115891         * modules/poll (License): Change from GPL to LGPL, since it's
115892         derived from LGPL code.
115894 2005-09-27  Jim Meyering  <jim@meyering.net>
115896         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115897         HAVE_CONFIG_H.
115899         * lib/intprops.h (signed_type_or_expr__): Define.
115900         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115901         for unsigned types.
115903 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115905         * lib/verify.h (verify_expr): Remove, replacing with:
115906         (verify_true): New macro that returns true instead of void.
115907         (verify_type__): Remove.
115908         (verify): Use verify_true rather than verify_type__.
115910 2005-09-26  Bruno Haible  <bruno@clisp.org>
115912         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115913         is necessary.
115914         (lib_SOURCES): Remove mbchar.c.
115915         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115916         (Files): Add m4/mbrtowc.m4.
115917         * modules/mbiter: Likewise.
115918         * modules/mbuiter: Likewise.
115920 2005-09-26  Bruno Haible  <bruno@clisp.org>
115922         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115923         compile mbchar.c if they are not both present.
115924         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115925         * m4/mbiter.m4 (gl_MBITER): Likewise.
115926         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115927         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115928         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115930 2005-09-25  Jim Meyering  <jim@meyering.net>
115932         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115933         also uses socklen_t.
115935 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115937         * lib/utimens.c (ENOSYS): Define if not already defined.
115938         (futimens): Support having a null PATH if the file descriptor
115939         is nonnegative.
115941         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115942         Remove.
115943         (__attribute): Define to empty unless GCC 3.1 or later.
115944         This works around a core dump on OpenBSD 3.4, which has GCC
115945         2.95.3, which dumps core when given __attribute__(()).  It also
115946         simplifies other tests, since we really don't want to bother with
115947         worrying about which ancient version of GCC supported what.
115948         Original problem reported by Yoann Vandoorselaere, with part of
115949         the fix suggested by Derek Price.
115951 2005-09-24  Jim Meyering  <jim@meyering.net>
115953         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115954         so we can once again use a positive bitfield width of 1 -- now we
115955         don't have to explain why we were using a bitfield width of 2.
115957 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115959         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115960         and similarly for the other external symbols.  Problem reported
115961         by James Gallager.
115963         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115964         bug reported by Jim Meyering.
115966         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115968         not needed, since socklen is a prerequisite module.
115970 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115972         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115973         Problem reported by Eric Blake.
115974         (getaddrinfo): Initialize se so that it's not garbage.
115975         Redo internal storage allocation so that it doesn't make unportable
115976         assumptions about alignment.
115977         Fix a memory leak.
115979         * lib/utimens.c (futimens): Use futimesat if available.
115980         Prefer it to futimes since it doesn't have the futimes bug.
115982         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115983         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115984         Instead, declare a function that returns a pointer to an array,
115985         and use verify_type__ to declare the size of the array.
115986         Problem and germ of a solution reported by Bruno Haible.
115987         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115988         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115990 2005-09-23  Jim Meyering  <jim@meyering.net>
115992         Sync from coreutils.
115993         Correct build failure (socklen_t not defined) on at least
115994         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115997 2005-09-23  Jim Meyering  <jim@meyering.net>
115999         * modules/getaddrinfo (Depends-on): Add socklen.
116001 2005-09-23  Bruno Haible  <bruno@clisp.org>
116003         * tests/test-verify.c: New file.
116005 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116007         Sync from coreutils.
116009         * modules/argmatch (Depends-on): Add verify.
116010         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
116011         unistd-safer.
116012         * modules/save-cwd (Depends-on): Likewise.
116014         * modules/openat (Files): Add lib/openat-die.c.
116015         (Depends-on): Remove error, exitfail.
116016         Add dirname.
116018         * modules/verify: New file.
116019         * MODULES.html.sh (Diagnostics <assert.h>): New section,
116020         with "verify" module.
116022 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116024         Sync from coreutils.
116026         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
116027         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
116028         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
116029         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
116030         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
116031         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
116032         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
116033         Don't bother checking for string.h, stdlib.h, unistd.h.
116034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
116035         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
116036         module's job.
116037         * m4/jm-macros.m4 (gl_MACROS): Likewise.
116038         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
116040         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
116041         (gl_GETDATE): Use it.
116043         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
116045 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116047         Sync from coreutils.
116049         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
116050         stat-time.h.
116051         * lib/argmatch.h: Include verify.h
116052         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
116053         (ARGMATCH_ASSERT): Remove; unused.
116054         * lib/canonicalize.c: Assume STDC_HEADERS.
116055         * lib/exclude.c: Include "strcase.h".
116056         * lib/regex_internal.h [!defined _LIBC]: Likewise.
116057         * lib/getusershell.c: Include stdio--.h rather than stdio.h
116058         and stdio-safer.h.
116059         (getusershell): Call fopen, not fopen_safer.
116060         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
116061         Do not include unistd-safer.h.
116062         (save_cwd): Don't call fd_safer; no longer needed
116063         now that we include fcntl--.h.
116065         * lib/getdate.y (relative_time): New type.
116066         (RELATIVE_TIME_0): New constant.
116067         (parser_control): Use relative_time instead of doing it ourselves.
116068         (%union): Add new relative_time rel member.
116069         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
116070         Now typeless.
116071         (relunit, relunit_snumber): Now of type rel.
116072         (zone, rel, relunit, get_date): Adjust to above changes.
116074         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
116075         Do not include unistd-safer.h.
116076         (getloadavg): Don't call fd_safer; no longer needed
116077         now that we include fcntl--.h.
116079         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
116080         (make_dir_parents): Treat ENOSYS like EEXIST.
116082         Improve quality of diagnostics on restore_cwd failure.
116083         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
116084         (make_dir_parents): Last arg is now int * (for errno), not bool *.
116085         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
116086         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
116087         each time through the loop.  Do not diagnose restore_cwd failure;
116088         that is the caller's job (and perhaps the caller does not care).
116090         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
116091         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
116092         If the file already exists but is not a directory, don't bother
116093         to try to make its parents.
116094         Close potential file descriptor leak if we can't chdir("/") (!).
116095         Don't always return true if chdir($PWD) fails; return true only
116096         if the requested action was done successfully (except for the
116097         chdir($PWD)).
116098         Don't log final directory unless we actually made it.
116099         Refactor to avoid duplicate code to fix up permissions.
116100         Don't attempt to fix up parent permissions if chdir($PWD) fails.
116102         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
116103         to make it a bit faster and (I hope) clearer.
116104         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
116105         Fix bug in formats like %2N.
116107         * lib/verify.h: New file.
116109 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116111         Sync from coreutils.
116112         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
116114 2005-09-22  Jim Meyering  <jim@meyering.net>
116116         Sync from coreutils.
116118         * m4/lstat.m4 (gl_FUNC_LSTAT):
116119         Use AC_LIBSOURCES to require lstat.c and lstat.h.
116120         Remove obsolete comment.
116121         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
116122         * m4/xstrtod.m4: Likewise.
116124         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
116126 2005-09-22  Jim Meyering  <jim@meyering.net>
116128         Sync from coreutils.
116130         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
116132         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
116133         the .tm_year member, since otherwise gcc-4.0 would now warn about
116134         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
116136         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
116137         order to avoid an unsuppressible warning from gcc on 64-bit systems.
116139         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
116140         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
116141         when run in a time zone for which daylight savings time is in effect
116142         for the starting date.
116144         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
116145         stop us from restricting permissions of just-created absolute-named
116146         directories.
116147         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
116148         to restore initial working directory.
116149         * lib/mkdir-p.c (make_dir_parents): New parameter:
116150         different_working_dir, to tell caller if/when we change the working
116151         directory and are unable to return to the initial one.
116152         * lib/mkdir-p.h (make_dir_parents): Update prototype.
116153         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
116154         `return false'.  This fixes a bug introduced on 2004-07-30.
116156         * lib/openat.c (fdopendir): Be sure to close the supplied
116157         file descriptor before returning.  This makes our replacement
116158         implementation a little closer to Solaris's, where fdopendir
116159         ties the file descriptor to the returned DIR* pointer.
116160         * lib/openat.c (unlinkat): New function.
116161         * lib/openat.h (unlinkat): Add prototype.
116162         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
116163         (openat_restore_fail): Rename from openat_restore_die.
116164         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
116166         Provide an alternative to exiting immediately upon save_cwd or
116167         restore_cwd failure.  Now, an application can arrange e.g.,
116168         to perform a longjump in that case.
116169         * lib/openat.c: Include dirname.h.
116170         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
116171         (rpl_openat, fdopendir, fstatat): Call openat_save_die
116172         and openat_restore_die rather than calling error directly.
116173         Don't include "error.h" or "exitfail.h"; they're no longer needed.
116175         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
116176         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
116177         define.
116179         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
116180         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
116181                             int utc, int nanoseconds);
116182         Background:
116183         date should not have to allocate a megabyte of virtual memory to
116184         handle a format argument like +%1048575T.  When implemented with
116185         strftime, it must allocate such a buffer, use strftime to fill it
116186         in, print it, then free it.
116187         With fprintftime, it simply prints everything and exits.
116188         With no need for memory allocation, that's one fewer way to fail.
116189         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
116190         optional field width, not before, so we accept %9:z, not %:9z.
116191         (my_strftime): Be sure to use L_('x') for literals.
116193         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
116194         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
116195         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
116196         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
116197         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
116198         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
116199         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
116200         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
116201         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
116202         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
116203         * lib/xgethostname.c, lib/xreadlink.c:
116204         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
116206         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
116207         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
116208         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
116209         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
116210         and don't include <sys/file.h>).
116212 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
116214         Sync from coreutils.
116216         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
116217         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
116218         [!LDAV_DONE]: Avoid unused variable warning.
116220 2005-09-21  Bruno Haible  <bruno@clisp.org>
116222         * lib/unicodeio.h (unicode_to_mb): New declaration.
116224 2005-09-20  Derek Price  <derek@ximbiot.com>
116226         * lib/getaddrinfo.c: Don't include <netdb.h> included from
116227         getaddrinfo.h.
116229 2005-09-20  Bruno Haible  <bruno@clisp.org>
116231         * gnulib-tool: Remove trailing slashes from the values specified for
116232         --source-base, --m4-base, --tests-base, --aux-dir.
116233         Suggested by Simon Josefsson <jas@extundo.com>.
116235 2005-09-20  Bruno Haible  <bruno@clisp.org>
116237         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
116238         func_modules_to_filelist, func_import, func_create_testdir): Make all
116239         sorting results locale-independent, so that gnulib-cache.m4 doesn't
116240         change when gnulib-tool is invoked in a different locale.
116242 2005-09-19  Simon Josefsson  <jas@extundo.com>
116244         * m4/socklen.m4: Fix typo.
116246 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116248         Use a consistent style for including <config.h>.
116249         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
116250         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
116251         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
116252         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
116253         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
116254         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
116255         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
116256         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
116257         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
116258         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
116259         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
116260         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
116261         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
116262         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
116263         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
116264         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
116265         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
116266         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
116267         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
116268         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
116269         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
116270         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
116271         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
116272         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
116273         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
116274         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
116275         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
116276         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
116277         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
116278         lib/xstrtoumax.c, lib/yesno.c:
116279         Standardize inclusion of config.h.
116280         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
116281         lib/inttostr.h:  Removed inclusion of config.h from header files.
116282         * lib/inttostr.c:  Adjusted in-tree users.
116283         * lib/timespec.h: Remove superfluous warning to include config.h.
116284         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
116285         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
116286         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
116287         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
116288         config.h with HAVE_CONFIG_H.
116290 2005-09-19  Jim Meyering  <jim@meyering.net>
116292         * modules/pathmax (License): Change to LGPL.
116294 2005-09-19  Derek Price  <derek@ximbiot.com>
116296         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
116298 2005-09-19  Bruno Haible  <bruno@clisp.org>
116300         * gnulib-tool (import): Provide default for --tests-base.
116302 2005-09-19  Bruno Haible  <bruno@clisp.org>
116304         * doc/quote.texi: New file, extracted from gnulib.texi.
116305         * doc/ctime.texi: New file, extracted from gnulib.texi.
116306         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
116307         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
116308         * doc/gnulib.texi: Include them.
116310 2005-09-18  Bruno Haible  <bruno@clisp.org>
116312         Portability fix.
116313         * gnulib-tool (func_readlink): New function.
116314         (func_ln_if_changed): Use it.
116316 2005-09-18  Bruno Haible  <bruno@clisp.org>
116318         * gnulib-tool: Support --with-tests also with --import.
116319         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
116320         (func_import): Use variables $testsbase and $inctests. Emit a
116321         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
116322         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
116323         SUBDIRS += $testsdir.
116324         (func_create_testdir): Update.
116326 2005-09-18  Bruno Haible  <bruno@clisp.org>
116328         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
116329         instead of $dry_run.
116330         (func_cp_if_changed, func_mv_if_changed): Remove functions.
116331         (func_ln_if_changed): Don't handle dry-run here.
116332         (func_import): In dry-run mode, detect more precisely which actions
116333         would be performed, and don't use "...ing" verbs.
116335 2005-09-18  Bruno Haible  <bruno@clisp.org>
116337         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
116338         (func_import): Use join on two temporary files instead of three nested
116339         loops, in order to determine which files are new or old.
116341 2005-09-18  Bruno Haible  <bruno@clisp.org>
116343         * gnulib-tool (func_import): Comment out code that spits out the
116344         new files with --dry-run.
116346 2005-09-18  Bruno Haible  <bruno@clisp.org>
116348         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
116350 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116352         * lib/stat-time.h: New file.
116353         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
116354         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
116355         in a different way.
116356         (timespec_cmp): New function.
116357         * lib/utimecmp.c: Include stat-time.h.
116358         (SYSCALL_RESOLUTION): Depend on whether various struct stat
116359         members exist, not on the obsolescent ST_MTIM_NSEC.
116360         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
116362 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116364         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
116366 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116368         * MODULES.html.sh (File system functions): Add stat-time.
116369         * modules/stat-time: New file.
116370         * modules/timespec (Files): Remove m4/st_mtim.m4; this
116371         is now done in a different way, by the stat-time module.
116372         * modules/utimecmp (Depends-on): Add stat-time.
116374 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
116376         * m4/st_mtim.m4: Remove.  Superseded by...
116377         * m4/stat-time.m4: New file.
116378         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
116379         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
116381 2005-09-15  Derek Price  <derek@ximbiot.com>
116383         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
116385 2005-09-15  Derek Price  <derek@ximbiot.com>
116387         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
116388         * lib/regex_internal.c: Ditto, using this...
116389         (__GNUC_PREREQ): ...new macro.
116390         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
116391         using...
116392         (__GNUC_PREREQ): ...this new macro.
116394         * lib/strstr.h: Include string.h. Define strstr as a macro here.
116396 2005-09-15  Derek Price  <derek@ximbiot.com>
116397             Paul Eggert  <eggert@cs.ucla.edu>
116399         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
116400         changes, consolidating in...
116401         * lib/regex_internal.h: ...this file.
116403 2005-09-13  Jim Meyering  <jim@meyering.net>
116405         * lib/canon-host.c: Filter through gnu indent and reword comments
116406         slightly.
116407         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
116409 2005-09-13  Derek Price  <derek@ximbiot.com>
116411         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
116412         failure.
116413         Reported by Jim Meyering  <jim@meyering.net>.
116415 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116417         * lib/base64.c: Typo.
116418         (base64_encode): Put b64str in initialized data section.
116420 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
116422         Merge glibc and coreutils changes into gnulib, plus a few
116423         extra fixes.
116424         * lib/md5.c: Use #error rather than a string.
116425         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
116426         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
116427         (__attribute__): Define to empty for non recent-GCC.
116428         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
116429         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
116430         Renamed from their non-__ counterparts, with new macros replacing
116431         them if not _LIBC.  Add __THROW attribute.
116432         (rol): Remove.
116433         (struct md5_ctx): Align buffer if using GCC.
116434         * lib/sha1.h (struct sha1_ctx): Likewise.
116435         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
116436         The old name was backwards.
116437         (NOTSWAP): Remove; not used.
116438         (rol): New macro, moved here from md5.h.
116439         (sha1_process_block): Remove a FIXME that doesn't make sense.
116441 2005-09-12  Derek Price  <derek@ximbiot.com>
116443         Return usable errors from canon-host.
116444         * lib/canon-host.h: New file.
116445         * lib/canon-host.c (canon_host): Wrap...
116446         (canon_host_r): ...this new function, which now relies exclusively on
116447         getaddrinfo.
116448         (ch_strerror): New function.
116449         (last_cherror): New global.
116450         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
116451         interface.
116452         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
116453         void *.
116454         (freeaddrinfo): Free ai->ai_canonname when set.
116456 2005-09-12  Derek Price  <derek@ximbiot.com>
116458         Make canon-host require getaddrinfo.
116459         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
116460         AC_LIBSOURCE canon-host.h.  Call...
116461         (gl_PREREQ_CANON_HOST): ...this new function, which requires
116462         gl_GETADDRINFO.
116463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
116465 2005-09-12  Derek Price  <derek@ximbiot.com>
116467         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
116468         LGPL.
116469         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
116471 2005-09-12  Derek Price  <derek@ximbiot.com>
116473         * lib/gai_strerror.c: Include config.h when available.  Include
116474         getaddrinfo.h before other headers to test interface.
116475         Reported by Larry Jones <lawrence.jones@ugs.com>.
116477 2005-09-12  Derek Price  <derek@ximbiot.com>
116478             Paul Eggert  <eggert@cs.ucla.edu>
116480         * modules/glob (Files): Add glob-libc.h.
116482 2005-09-12  Derek Price  <derek@ximbiot.com>
116483             Paul Eggert  <eggert@cs.ucla.edu>
116485         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
116486         glob_.h, glob-libc.h.
116487         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
116489 2005-09-12  Derek Price  <derek@ximbiot.com>
116490             Paul Eggert  <eggert@cs.ucla.edu>
116492         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
116493         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
116494         protecting things that should be done only in gnulib contexts.
116495         * lib/glob_.h: New file, containing only the glob things needed for
116496         gnulib.
116497         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
116498         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
116499         (glob, globfree, glob_pattern_p): Now defined simply in terms of
116500         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
116501         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
116502         and to respect the namespace rules better.
116504 2005-09-08  Simon Josefsson  <jas@extundo.com>
116506         * modules/socklen: New file.
116508 2005-09-08  Simon Josefsson  <jas@extundo.com>
116510         * m4/socklen.m4: New file.
116512 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116514         * modules/utimens (Files): Add m4/utimbuf.m4, since
116515         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
116516         Reported by Sergey Poznyakoff.
116518 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116520         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
116521         definitions, since that's the preferred style in glibc.
116522         Fix a minor spacing issue, and update copyright notice to match
116523         glibc's.
116525 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116527         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
116529 2005-09-06  Simon Josefsson  <jas@extundo.com>
116531         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
116532         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
116534 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116536         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
116537         warning.
116539 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116541         * config/srclist.txt: Add glibc bug 1302.
116543 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
116545         Change bitset word type from unsigned int to unsigned long int,
116546         as this has better performance on typical 64-bit hosts.
116547         Port bitset code to hosts with unusual word sizes.
116548         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
116549         (build_collating_symbol):
116550         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
116551         argument is a bitset.  This is merely a style issue, but it makes
116552         it clearer that an entire array is expected.
116553         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
116554         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
116555         Port to the case where bitset_word is not the same as unsigned int.
116556         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116557         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
116558         Likewise.
116559         * lib/regexec.c (check_dst_limits_calc_pos_1,
116560         check_subexp_matching_top):
116561         (build_trtable, group_nodes_into_DFAstates):
116562         Likewise.
116563         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
116564         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
116565         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
116566         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
116567         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
116568         * lib/regcomp.c (optimize_subexps, lower_subexp):
116569         Work even if bitset_word has holes in its bitwise representation.
116570         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
116571         * lib/regexec.c (check_dst_limits_calc_pos_1,
116572         check_subexp_matching_top):
116573         Likewise.
116574         * lib/regex_internal.c (re_string_reconstruct):
116575         Don't assume UCHAR_MAX == 255.
116576         * lib/regex_internal.h (bitset_set_all): Likewise.
116577         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
116578         All uses changed.
116579         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
116580         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
116581         All uses changed.
116582         (BITSET_WORD_MAX): New macro.
116583         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
116584         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
116585         (bitset_empty, bitset_copy):
116586         Prefer sizeof (bitset) to multiplying it out ourselves.
116587         (bitset_not_merge): Remove; unused.
116588         (bitset_contain): Return bool, not unsigned int with one bit on.
116589         All callers changed.
116590         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
116591         alignment than re_node_set; do this by defining a new internal
116592         type struct dests_alloc and using it to allocate memory.
116594 2005-09-05  Bruno Haible  <bruno@clisp.org>
116596         * gnulib-tool (func_import): Fix comparison in handling of symbolic
116597         links.
116599 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
116601         * modules/size_max (Makefile.am): Add size_max.h
116603 2005-09-04  Derek Price  <derek@ximbiot.com>
116605         * gnulib-tool (func_import): Fix reversed $symbolic logic.
116607 2005-09-03  Simon Josefsson  <jas@extundo.com>
116609         * gnulib-tool: Fix typo.
116611 2005-09-03  Simon Josefsson  <jas@extundo.com>
116613         * config/srclist.txt: Add glibc bug 1293.
116615 2005-09-03  Derek Price  <derek@ximbiot.com>
116617         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
116618         From Larry Jones <lawrence.jones@ugs.com>.
116620 2005-09-02  Simon Josefsson  <jas@extundo.com>
116622         * modules/socklen: New file.
116624 2005-09-02  Simon Josefsson  <jas@extundo.com>
116626         * modules/havelib: New module.
116628         * modules/gettext, modules/iconv, modules/lock, modules/readline:
116629         Use havelib.
116631 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116633         Check for arithmetic overflow when calculating sizes, to prevent
116634         some buffer-overflow issues.  These patches are conservative, in the
116635         sense that when I couldn't determine whether an overflow was possible,
116636         I inserted a run-time check.
116637         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
116638         macros.
116639         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
116640         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
116641         (re_xnrealloc, re_x2nrealloc): New inline functions.
116642         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
116643         parse_bracket_exp):
116644         (build_equiv_class, build_charclass): Check for arithmetic overflow
116645         in size expression calculations.
116646         * lib/regex_internal.c (re_string_realloc_buffers):
116647         (build_wcs_upper_buffer, re_node_set_add_intersect):
116648         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
116649         (re_dfa_add_node, register_state): Likewise.
116650         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
116651         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
116652         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
116653         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
116655 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116657         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116658         m4/ulonglong.m4.  Problem reported by Martin Lambers.
116660 2005-09-02  Bruno Haible  <bruno@clisp.org>
116662         Support for lib vs. lib64 distinction on biarch platforms.
116663         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
116664         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
116665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116667 2005-09-02  Bruno Haible  <bruno@clisp.org>
116669         * gnulib-tool (import): In the other first-use case, provide defaults
116670         as well.
116672 2005-09-02  Bruno Haible  <bruno@clisp.org>
116674         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116675         patches not yet found in the latest gettext release.
116677 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116679         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116680         to avoid a collision with bits/local_lim.h in glibc.
116681         All uses changed.  Problem reported by Dmitry V. Levin in
116682         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116684         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116685         bugs in int versus size_t comparisons.
116686         (re_string_context_at): Fix bug where the code assumed that
116687         Idx is signed.
116689         Use bool where appropriate.
116690         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116691         All callers changed.
116692         (calc_eclosure_iter): Likewise, for ROOT arg.
116693         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116694         (build_charclass_op): Likewise, for NON_MATCH arg.
116695         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116696         (re_string_construct_common): Likewise, for ICASE arg.
116697         * lib/regexec.c (re_search_2_stub, re_search_stub):
116698         Likewise, for RET_LEN arg.
116699         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116700         (set_regs): Likewise, for FL_BACKTRACK arg.
116701         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116702         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116703         (calc_eclosure_iter, parse_bracket_exp):
116704         Use bool for internal variables that are booleans.
116705         * lib/regexec.c (re_search_internal, check_matching,
116706         proceed_next_node):
116707         (set_regs, build_sifted_states, sift_states_bkref):
116708         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
116709         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116710         (find_collation_sequence_value):
116711         Likewise.
116712         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
116713         (re_node_set_compare):
116714         Return bool, not int. All callers changed.
116715         * lib/regexec.c (check_halt_node_context, check_dst_limits):
116716         (build_trtable, check_node_accept): Likewise.
116717         * lib/regex_internal.h: Include stdbool.h.
116719         Fix bugs uncovered when converting to bool.
116720         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
116721         failure instead of charging ahead blindly.
116722         * lib/regex_internal.c (register_state): Likewise.
116723         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
116724         for freeing internal storage.
116725         (group_nodes_into_DFA_states): Use unsigned int, not int, for
116726         bitset pieces used as boolean, to avoid undefined behavior
116727         on hosts that do int overflow checking.
116729 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116731         * config/srclist.txt: Add glibc bugs 1285-1287.
116733 2005-09-01  Jim Meyering  <jim@meyering.net>
116735         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
116736         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
116737         Require gl_STAT_MACROS, too.
116739 2005-09-01  Bruno Haible  <bruno@clisp.org>
116741         * gnulib-tool (import): In the first-use case, provide defaults.
116743 2005-09-01  Bruno Haible  <bruno@clisp.org>
116745         * gnulib-tool (func_import): Remove the .tmp files.
116747 2005-09-01  Bruno Haible  <bruno@clisp.org>
116749         * gnulib-tool (func_import): Fix handling of symbolic links.
116751 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116753         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
116754         old glibc regex code mishandles strings longer than 2**31 bytes.
116755         This patch fixes this when the regex code is used in gnulib
116756         (i.e., outside glibc).
116758         This patch should not affect the use of the regex code inside
116759         glibc.  No doubt this problem also needs to be handled for glibc
116760         as well, but the result will be an incompatible change to the
116761         glibc ABI, and the old ABI will have to be supported too.  That
116762         can be the subject for another patch.
116764         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
116765         governing whether the rest of this patch is active.  By default,
116766         the macro is disabled and the patch has no effect.
116767         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
116768         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
116769         (struct re_pattern_buffer, re_search, re_search_2, re_match):
116770         (re_match_2, re_set_registers): Use the new types.
116771         * lib/regex_internal.h (Idx, re_hashval_t): New types.
116772         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
116773         New macros.
116774         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
116775         (re_string_context_at, bin_tree_t, re_dfastate_t):
116776         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
116777         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
116778         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
116779         (re_string_char_size_at, re_string_wchar_at):
116780         (re_string_elem_size_at):
116781         Use the new types and macros to port to 64-bit hosts.
116782         Use unsigned types for internal values, so that the code
116783         mostly works even for arrays larger than SSIZE_MAX.
116784         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
116785         (search_duplicated_node, calc_eclosure_iter, fetch_number):
116786         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
116787         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
116788         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
116789         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
116790         (calc_inveclosure, parse_dup_op, build_range_exp):
116791         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
116792         (fetch_number, create_token_tree, mark_opt_subexp):
116793         Likewise.
116794         * lib/regex_internal.c (re_string_construct_common,
116795         create_ci_newstate):
116796         (create_cd_newstate, re_string_allocate, re_string_construct):
116797         (re_string_realloc_buffers, build_wcs_upper_buffer):
116798         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116799         (re_string_reconstruct, re_string_peek_byte_case):
116800         (re_string_fetch_byte_case, re_string_context_at):
116801         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116802         (re_node_set_init_copy, re_node_set_add_intersect):
116803         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116804         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116805         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116806         (re_acquire_state, re_acquire_state_context, register_state):
116807         Likewise.
116808         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116809         search_cur_bkref_entry):
116810         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116811         (re_search_internal, re_search_2_stub, re_search_stub)
116812         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116813         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116814         (update_cur_sifted_state, check_dst_limits):
116815         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116816         (check_subexp_limits, sift_states_bkref, merge_state_array):
116817         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116818         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116819         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116820         (expand_bkref_cache, check_node_accept_bytes):
116821         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116822         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116823         (acquire_init_state_context, check_halt_node_context):
116824         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116825         (sift_states_backward, clean_state_log_if_needed):
116826         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116827         (find_recover_state, transit_state_sb, transit_state_mb):
116828         (transit_state_bkref, build_trtable, match_ctx_clean):
116829         Likewise.
116830         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116831         to work around an assumption that REG_MISSING is negative.
116833         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116834         (seek_collating_symbol_entry) [defined _LIBC]:
116835         (lookup_collation_sequence_value) [defined _LIBC]:
116836         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116837         Use prototypes rather than old-style function definitions.
116838         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116839         (transit_state_sb) [0]:
116840         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116842         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116843         rm_eo.
116845         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116846         (optimize_subexps, lower_subexp):
116847         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116848         since the signed shift might overflow.  Use 1u<<31 instead.
116849         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116850         Likewise.
116851         * lib/regexec.c (check_dst_limits_calc_pos_1,
116852         check_subexp_matching_top): Likewise.
116854         * lib/regcomp.c (optimize_subexps, lower_subexp):
116855         Use CHAR_BIT rather than 8, for clarity.
116856         * lib/regexec.c (check_dst_limits_calc_pos_1):
116857         (check_subexp_matching_top): Likewise.
116858         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116859         have to worry about portability issues when shifting it left.
116860         Remove no-longer-needed test for table_size > 0.
116861         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116862         in a word, as the resulting behavior is undefined.
116863         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116864         in one case, a <= should have been an <, and in another case the
116865         whole test was missing.
116866         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116867         the standard name CHAR_BIT.
116868         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116869         this is not true on one's complement and signed-magnitude hosts.
116871         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116872         next_last_offset.
116873         (struct re_dfa_t): Remove unused member states_alloc.
116874         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116876 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116878         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116879         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116880         and large-file glibc and in 32-bit large-file Solaris.
116882 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116884         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116885         lengths fit in regoff_t; this isn't true if regoff_t is the same
116886         width as size_t.
116887         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116888         (= START + RANGE) instead of RANGE.  This avoids overflow
116889         problems when regoff_t is the same width as size_t.
116890         All callers changed.
116891         (re_search_2_stub): Check for overflow when adding the
116892         sizes of the two strings.
116893         (re_search_stub): Check for overflow when adding START
116894         to RANGE; if it occurs, substitute the extreme value.
116896 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116898         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116900 2005-08-31  Jim Meyering  <jim@meyering.net>
116902         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116903         a pointer-to-const.
116904         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116905         (register_state): Likewise.
116906         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116907         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116908         (group_nodes_into_DFAstates): Likewise.
116910 2005-08-31  Jim Meyering  <jim@meyering.net>
116912         * check-module: Add a FIXME comment.
116914 2005-08-31  Eric Blake  <ebb9@byu.net>
116916         * modules/unistd-safer (Files): Add unistd--.h.
116917         * modules/stdio-safer (Files): Add stdio--.h.
116919 2005-08-31  Derek Price  <derek@ximbiot.com>
116921         * lib/getdelim.c (getdelim): Return EOF on EOF.
116922         Reported by Larry Jones <lawrence.jones@ugs.com>.
116924 2005-08-31  Bruno Haible  <bruno@clisp.org>
116926         Avoid unnecessary diffs in the generated lib/Makefile.am.
116927         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116928         the generated files.
116929         (func_import): Don't set cmd.
116931 2005-08-31  Bruno Haible  <bruno@clisp.org>
116933         * lib/strstr.c: Include <stddef.h>, for NULL.
116934         * lib/strcasestr.c: Likewise.
116935         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116937 2005-08-31  Bruno Haible  <bruno@clisp.org>
116939         * gnulib-tool: New option --macro-prefix.
116940         (func_import): Use macro_prefix.
116941         (import): Handle option --macro-prefix.
116943 2005-08-31  Bruno Haible  <bruno@clisp.org>
116945         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116946         Also use new variables cached_lgpl, cached_libtool.
116948 2005-08-31  Bruno Haible  <bruno@clisp.org>
116950         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116951         always instantiating them.
116953 2005-08-31  Bruno Haible  <bruno@clisp.org>
116955         * gnulib-tool (func_import): Read the previous cached settings
116956         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116957         earlier added by gnulib but are now dropped. Warn when a gnulib file
116958         overwrites a non-gnulib file.
116960 2005-08-31  Bruno Haible  <bruno@clisp.org>
116962         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116963         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116964         projects that don't keep autogenerated files in CVS. Put into
116965         actioncmd only the specified modules, not the transitive closure.
116967 2005-08-31  Bruno Haible  <bruno@clisp.org>
116969         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116970         Create directories that shall be filled.
116971         (import): Don't look for gl_* macros in configure.ac. Recurse across
116972         all directories containing a gnulib-cache.m4 files, if meaningful.
116974 2005-08-31  Bruno Haible  <bruno@clisp.org>
116976         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116977         (import): Set seen_libtool when we see gl_LIBTOOL.
116979 2005-08-31  Bruno Haible  <bruno@clisp.org>
116981         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116982         declaration macro definitions from generated gnulib.m4.
116984 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116986         * lib/iconvme.h: Add prototype for iconv_alloc.
116988 2005-08-29  Simon Josefsson  <jas@extundo.com>
116990         * lib/iconvme.c: Fix errno.
116992 2005-08-29  Bruno Haible  <bruno@clisp.org>
116994         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116995         that it works when the directory contains spaces.
116997 2005-08-29  Bruno Haible  <bruno@clisp.org>
116999         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
117001 2005-08-29  Bruno Haible  <bruno@clisp.org>
117003         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
117004         Emit more advice.
117006 2005-08-29  Bruno Haible  <bruno@clisp.org>
117007         and Stepan Kasal  <kasal@ucw.cz>
117009         * check-module: If more parameters are given, check each of them
117010         separately; add more exceptions, as noted by Jim Meyering.
117011         (check_module): New procedure.
117012         (%exempt_header): Now contains all exceptions.
117014 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
117016         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
117018 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
117020         * lib/iconvme.c: Split iconv_string into iconv_alloc.
117022 2005-08-28  Bruno Haible  <bruno@clisp.org>
117024         * m4/gnulib-tool.m4: New file.
117026 2005-08-27  Jim Meyering  <jim@meyering.net>
117028         * modules/unistd-safer (Files): Add pipe-safer.c.
117029         * modules/fcntl-safer (Files): Add creat-safer.c.
117031 2005-08-27  Jim Meyering  <jim@meyering.net>
117033         * m4/stdlib-safer.m4: New file.  From coreutils.
117034         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
117035         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
117036         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
117037         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
117038         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
117040 2005-08-27  Jim Meyering  <jim@meyering.net>
117042         * lib/fopen-safer.c: Merge minor changes from coreutils.
117043         * lib/dup-safer.c: Likewise.
117044         * lib/fd-safer.c: Likewise.
117046         Merge from coreutils.
117047         * lib/stdio--.h: New file.
117048         * lib/stdlib--.h: New file.
117049         * lib/mkstemp-safer.c: New file.
117051         GNU tar needs these.
117052         * lib/pipe-safer.c: New file.
117053         * lib/creat-safer.c: New file.
117054         * lib/fcntl--.h (creat): Define to creat_safer.
117055         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
117056         * lib/unistd--.h (pipe): Define to pipe_safer.
117057         * lib/unistd-safer.h: Declare pipe_safer.
117059 2005-08-26  Simon Josefsson  <jas@extundo.com>
117061         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
117062         Haible <bruno@clisp.org>.
117064 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
117066         * lib/regex_internal.h: Remove all references to
117067         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
117068         or better.
117069         (bitset_not, bitset_merge, bitset_not_merge):
117070         (bitset_mask, re_string_allocate, re_string_construct):
117071         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
117072         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
117073         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
117074         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
117075         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117076         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117077         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
117078         (re_acquire_state_context):
117079         Remove unnecessary forward decls.
117080         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
117081         Put __attribute at function definition,
117082         now that the function decl has been removed.
117083         * lib/regex_internal.c (re_string_peek_byte_case):
117084         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
117085         Likewise.
117087 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
117089         * m4/regex.m4: Add AC_PREREQ(2.50).
117090         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
117092 2005-08-25  Simon Josefsson  <jas@extundo.com>
117094         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
117095         __fsetlocking.
117097 2005-08-25  Simon Josefsson  <jas@extundo.com>
117099         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
117100         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
117101         GLIBC specific code.
117103 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117105         Make regex safe for g++.  This fixes one real bug (an "err"
117106         that should have been "*err").  g++ problem reported by
117107         Sam Steingold.
117108         * lib/regex_internal.h (re_calloc): New macro, consistent with
117109         re_malloc etc.  All callers of calloc changed to use re_calloc.
117110         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
117111         not int.  All callers changed.
117112         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
117113         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
117114         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
117115         (find_recover_state): Change "err" to "*err"; this fixes what
117116         appears to be a real bug.
117117         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
117118         versus int.
117120 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117122         * modules/regex (Depends-on): Add malloc, since the code
117123         assumes that !malloc(0) means failure.
117125 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117127         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
117129         alloca modernization/simplification for regex.
117130         * lib/regex.c: Remove portability cruft for alloca.  This no longer
117131         needs to be at the start of the file, and can be moved into
117132         regex_internal.h and simplified.
117133         * lib/regex_internal.h: Include <alloca.h>.
117134         (__libc_use_alloca) [!defined _LIBC]: New macro.
117135         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
117136         now works outside glibc.
117138 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117140         * config/srclist.txt: Add glibc bugs 1241, 1245.
117142 2005-08-25  Jim Meyering  <jim@meyering.net>
117144         * lib/open-safer.c: Include <config.h>.
117145         Otherwise, we'd lose LARGEFILE support in any file using
117146         e.g. "fcntl--.h"
117148 2005-08-25  Bruno Haible  <bruno@clisp.org>
117150         * m4/minmax.m4: Require autoconf 2.52.
117151         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
117152         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
117153         alternatives of translit over the alphabet.
117154         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
117156 2005-08-24  Simon Josefsson  <jas@extundo.com>
117158         * tests/test-getpass.c: New file.
117160 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117162         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
117163         for GNU regex features.
117165 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117167         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
117168         * lib/regex.h (regerror): Likewise.
117170         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
117171         requires this.  (The code never needed it.)
117173         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
117174         All uses of recently-renamed identifiers changed to use the new,
117175         POSIX-compliant names.  The code will build and run just fine
117176         without these changes, but it's better to eat our own dog food
117177         and use the standard-conforming names.
117179         * lib/regex.h: Fix a multitude of POSIX name space violations.
117180         These changes have an effect only for programs that define
117181         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
117182         do not change anything for programs compiled in the normal way.
117183         Also, there is no effect on the ABI.
117185         (_REGEX_SOURCE): New macro.
117186         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
117187         defined and _GNU_SOURCE is not; this fixes a name space violation.
117189         Rename the following macros to obey POSIX requirements.
117190         The old names are still visible as macros if _REGEX_SOURCE is defined.
117191         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
117192         RE_BACKSLASH_ESCAPE_IN_LISTS.
117193         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
117194         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
117195         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
117196         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
117197         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
117198         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
117199         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
117200         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
117201         (REG_INTERVALS): renamed from RE_INTERVALS.
117202         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
117203         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
117204         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
117205         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
117206         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
117207         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
117208         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
117209         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
117210         RE_UNMATCHED_RIGHT_PAREN_ORD.
117211         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
117212         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
117213         (REG_DEBUG): renamed from RE_DEBUG.
117214         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
117215         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
117216         unusual, since we can't clash with the POSIX REG_ICASE.
117217         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
117218         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
117219         (REG_NO_SUB): renamed from RE_NO_SUB.
117220         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
117221         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
117222         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
117223         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
117224         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
117225         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
117226         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
117227         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
117228         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
117229         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
117230         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
117231         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
117232         RE_SYNTAX_POSIX_MINIMAL_BASIC.
117233         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
117234         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
117235         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
117236         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
117237         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
117238         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
117239         (REG_FIXED): Renamed from REGS_FIXED.
117240         (REG_NREGS): Renamed from RE_NREGS.
117242         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
117243         of other REG_* macros, since POSIX says the user is allowed to
117244         #undef these macros selectively.
117246         (reg_errcode_t): Update comment stating what other tables need
117247         to be consistent.
117249         Rename the following enum values to obey POSIX requirements.
117250         The old names are still visible as macros.
117251         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
117252         is not defined, since GNU is supposed to be a superset of POSIX as
117253         much as possible, and since we want reg_errcode_t to be a signed
117254         type for implementation consistency.
117255         (_REG_NOERROR): Renamed from REG_NOERROR.
117256         (_REG_NOMATCH): Renamed from REG_NOMATCH.
117257         (_REG_BADPAT): Renamed from REG_BADPAT.
117258         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
117259         (_REG_ECTYPE): Renamed from REG_ECTYPE.
117260         (_REG_EESCAPE): Renamed from REG_EESCAPE.
117261         (_REG_ESUBREG): Renamed from REG_ESUBREG.
117262         (_REG_EBRACK): Renamed from REG_EBRACK.
117263         (_REG_EPAREN): Renamed from REG_EPAREN.
117264         (_REG_EBRACE): Renamed from REG_EBRACE.
117265         (_REG_BADBR): Renamed from REG_BADBR.
117266         (_REG_ERANGE): Renamed from REG_ERANGE.
117267         (_REG_ESPACE): Renamed from REG_ESPACE.
117268         (_REG_BADRPT): Renamed from REG_BADRPT.
117269         (_REG_EEND): Renamed from REG_EEND.
117270         (_REG_ESIZE): Renamed from REG_ESIZE.
117271         (_REG_ERPAREN): Renamed from REG_ERPAREN.
117272         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
117273         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
117274         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
117275         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
117277         (_REG_RE_NAME, _REG_RM_NAME): New macros.
117278         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
117279         changed.  But support the old name if the new one is not defined
117280         and if _REGEX_SOURCE.
117282         Change the following member names in struct re_pattern_buffer.
117283         The old names are still supported if !_REGEX_SOURCE.
117284         The new names are always supported, regardless of _REGEX_SOURCE.
117285         (re_buffer): Renamed from buffer.
117286         (re_allocated): Renamed from allocated.
117287         (re_used): Renamed from used.
117288         (re_syntax): Renamed from syntax.
117289         (re_fastmap): Renamed from fastmap.
117290         (re_translate): Renamed from translate.
117291         (re_can_be_null): Renamed from can_be_null.
117292         (re_regs_allocated): Renamed from regs_allocated.
117293         (re_fastmap_accurate): Renamed from fastmap_accurate.
117294         (re_no_sub): Renamed from no_sub.
117295         (re_not_bol): Renamed from not_bol.
117296         (re_not_eol): Renamed from not_eol.
117297         (re_newline_anchor): Renamed from newline_anchor.
117299         Change the following member names in struct re_registers.
117300         The old names are still supported if !_REGEX_SOURCE.
117301         The new names are always supported, regardless of _REGEX_SOURCE.
117302         (rm_num_regs): Renamed from num_regs.
117303         (rm_start): Renamed from start.
117304         (rm_end): Renamed from end.
117306         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
117307         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
117308         Prepend __ to parameter names.
117310         Undo yesterday's changes.
117312 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117314         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
117315         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
117316         lib/regex.c.
117318 2005-08-24  Jim Meyering  <jim@meyering.net>
117320         Sync from coreutils.
117321         * m4/fcntl-safer.m4: New file.
117323         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
117324         and object files for this module.
117326 2005-08-24  Jim Meyering  <jim@meyering.net>
117328         Sync from coreutils.
117329         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
117331 2005-08-24  Jim Meyering  <jim@meyering.net>
117333         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
117334         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
117336 2005-08-24  Jim Meyering  <jim@meyering.net>
117338         * modules/fcntl-safer: New module.
117339         * modules/fts (Depends-on): Add fcntl-safer.
117340         * MODULES.html.sh (File descriptor based Input/Output):
117341         Add fcntl-safer.
117343 2005-08-24  Bruno Haible  <bruno@clisp.org>
117345         Support for unit test modules.
117346         * modules/README: Mention tests modules.
117347         * modules/TEMPLATE-TESTS: New file.
117348         * gnulib-tool: New options --extract-tests-module, --with-tests and
117349         --tests-base (unused for the moment).
117350         (testsbase, inctests): New variables.
117351         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
117352         (func_verify_module): Exclude TEMPLATE-TESTS.
117353         (func_verify_nontests_module, func_verify_tests_module): New functions.
117354         (func_get_dependencies): Add implicit dependency for tests modules.
117355         (func_get_tests_module): New function.
117356         (func_modules_transitive_closure): When --with-tests was specified,
117357         include the unit tests as well, unless explicitly avoided.
117358         (func_emit_lib_Makefile_am): Ignore the tests modules here.
117359         (func_emit_tests_Makefile_am): New function.
117360         (func_create_testdir): When --with-tests was specified, emit a
117361         tests/ directory.
117362         * MODULES.html.sh (Future developments): Update.
117364 2005-08-24  Bruno Haible  <bruno@clisp.org>
117366         * modules/tls-tests: New file.
117367         * tests/test-tls.c: New file, from GNU gettext.
117369 2005-08-24  Bruno Haible  <bruno@clisp.org>
117371         * modules/lock-tests: New file.
117372         * tests/test-lock.c: New file, from GNU gettext.
117374 2005-08-24  Bruno Haible  <bruno@clisp.org>
117376         * lib/lock.h: Add multiple inclusion guard.
117377         * lib/tls.h: Add multiple inclusion guard.
117379 2005-08-24  Bruno Haible  <bruno@clisp.org>
117381         * gnulib-tool: Add support for the --aux-dir option to
117382         --create-testdir, --create-megatestdir, --test, --megatest.
117383         (func_create_testdir, func_create_megatestdir): Optionally emit a
117384         AC_CONFIG_AUX_DIR directive.
117385         (create-testdir, create-megatestdir, test, megatest): Provide a
117386         default value for $auxdir.
117388 2005-08-24  Bruno Haible  <bruno@clisp.org>
117390         * gnulib-tool (import): Use compound statement instead of subshell
117391         where possible.
117393 2005-08-24  Bruno Haible  <bruno@clisp.org>
117395         * gnulib-tool (import): Change --aux-dir default to "build-aux".
117397 2005-08-24  Bruno Haible  <bruno@clisp.org>
117399         * gnulib-tool (func_version): Update.
117401 2005-08-24  Bruno Haible  <bruno@clisp.org>
117403         * gnulib-tool (func_import, func_create_testdir,
117404         func_create_megatestdir): Quote all autoconf macro arguments.
117406 2005-08-24  Bruno Haible  <bruno@clisp.org>
117408         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
117409         option --force, because --force causes the aclocal.m4 of each
117410         subdirectory to be newer than the corresponding config.h.in.
117412 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117414         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
117415         All contents moved to gl_REGEX.
117416         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
117417         assume that it does.
117419 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117421         * lib/regex.h (REG_NOSYS)
117422         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
117423         Define, since POSIX requires it as of 2001.
117424         (_REG_ENOSYS)
117425         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
117426         New private symbol, used to keep the enum signed in all cases.
117427         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
117428         Youngman in
117429         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
117431         * lib/regex_internal.c (re_string_skip_chars, register_state):
117432         (calc_state_hash):
117433         Remove forward decls; no longer needed now that we use prototypes.
117434         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
117435         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
117436         (clean_state_log_if_needed): Likewise.
117438 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117440         * config/srclist.txt: Add glibc bugs 1231-1233.
117442 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117444         Fix problems reported by Sam Steingold in
117445         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
117446         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
117447         assumed that reg_errcode_t is a signed type, which is not
117448         necessarily true if _XOPEN_SOURCE is not defined.
117449         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
117450         since some compilers warn about it otherwise.
117452 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117454         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
117455         (init_word_char, create_initial_state, duplicate_node_closure):
117456         (fetch_token, peek_token_bracket, build_range_exp):
117457         (build_collating_symbol): Remove forward decls; no longer needed
117458         now that we use prototypes.
117460         * lib/regcomp.c:
117461         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
117462         (re_compile_fastmap_iter, regcomp, regerror, regfree):
117463         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
117464         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
117465         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
117466         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
117467         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
117468         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
117469         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
117470         (build_range_exp, build_collating_symbol, parse_bracket_exp):
117471         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
117472         (build_charclass, build_charclass_op, fetch_number, create_tree):
117473         (create_token_tree, mark_opt_subexp, duplicate_tree):
117474         Use prototypes rather than old-style definitions.
117476         * lib/regex_internal.c:
117477         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
117478         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
117479         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117480         (re_string_reconstruct, re_string_peek_byte_case):
117481         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
117482         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117483         (re_node_set_init_copy, re_node_set_add_intersect):
117484         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117485         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117486         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117487         (re_acquire_state, re_acquire_state_context, register_state):
117488         (create_ci_newstate, create_cd_newstate, free_state):
117489         Likewise.
117490         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
117491         re_search_2):
117492         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
117493         (re_search_internal, prune_impossible_nodes):
117494         (acquire_init_state_context, check_matching, static):
117495         (check_halt_node_context, check_halt_state_context, proceed_next_node):
117496         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
117497         (update_regs, sift_states_backward, build_sifted_states):
117498         (clean_state_log_if_needed, merge_state_array):
117499         (update_cur_sifted_state, add_epsilon_src_nodes):
117500         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
117501         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
117502         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
117503         (find_recover_state, check_subexp_matching_top, transit_state_mb):
117504         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
117505         (check_arrival, check_arrival_add_next_nodes):
117506         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117507         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117508         (check_node_accept_bytes, check_node_accept, extend_buffers):
117509         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
117510         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
117511         (sift_ctx_init):
117512         Likewise.
117514         * lib/regex_internal.h:
117515         (re_string_allocate, re_string_construct, re_string_reconstruct):
117516         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
117517         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
117518         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
117519         (re_string_context_at, re_string_peek_byte_case):
117520         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
117521         is defined, since we now use prototypes always.
117523         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
117524         C89 or better.  All uses removed.
117526 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117528         * config/srclist.txt: Add glibc bugs 1220-1227.
117530 2005-08-20  Jim Meyering  <jim@meyering.net>
117532         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
117533         of unused local, dfa.
117535 2005-08-20  Bruno Haible  <bruno@clisp.org>
117537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
117539 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117541         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
117542         (re_node_set_insert_last, re_dfa_add_node):
117543         Rename local variables to avoid GCC shadowing warnings.
117545 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117547         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
117548         [defined lint]: Suppress bogus uninitialized-variable warnings.
117550         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
117551         and let the caller return REG_ESPACE if out of space.  This
117552         removes an uninitialied-variable warning with GCC 4.0.1, and also
117553         avoids taking the address of a local variable.  All callers
117554         changed.
117556 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117558         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
117559         $LIBCSRC/posix/regexec.c.
117560         Add glibc bug 1217 for regcomp.c.
117562 2005-08-19  Jim Meyering  <jim@meyering.net>
117564         * lib/regexec.c (proceed_next_node): Redo local variables to
117565         avoid GCC shadowing warnings.
117567 2005-08-18  Bruno Haible  <bruno@clisp.org>
117569         * lib/strstr.c (strstr): Fix return value in multibyte case.
117570         * lib/strcasestr.c (strcasestr): Likewise.
117572 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
117574         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
117576 2005-08-17  Jim Meyering  <jim@meyering.net>
117578         Make the %s format (seconds since the epoch) work for a negative
117579         number and when used with a zero-padded field width, e.g. %015s.
117581         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
117582         label so that it precedes the code to set `digits'.  Otherwise,
117583         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
117584         print `00-22'.  Now, it prints `-0022', as it should.
117586 2005-08-17  Bruno Haible  <bruno@clisp.org>
117588         * modules/strstr (Files): Add m4/mbrtowc.m4.
117589         (Depends-on): Add mbuiter.
117591 2005-08-17  Bruno Haible  <bruno@clisp.org>
117593         * modules/strcasestr: New file.
117594         * MODULES.html.sh (String handling, based on ANSI C 89): Add
117595         strcasestr.
117597 2005-08-17  Bruno Haible  <bruno@clisp.org>
117599         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
117601 2005-08-17  Bruno Haible  <bruno@clisp.org>
117603         * modules/mbuiter: New file.
117604         * MODULES.html.sh (Extended multibyte and wide character utilities):
117605         Add mbuiter.
117607 2005-08-17  Bruno Haible  <bruno@clisp.org>
117609         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
117610         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
117612 2005-08-17  Bruno Haible  <bruno@clisp.org>
117614         * m4/strcasestr.m4: New file.
117616 2005-08-17  Bruno Haible  <bruno@clisp.org>
117618         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
117619         * lib/strstr.c: Completely rewritten, with multibyte locale support.
117621 2005-08-17  Bruno Haible  <bruno@clisp.org>
117623         * lib/strcasestr.h: New file.
117624         * lib/strcasestr.c: New file.
117626 2005-08-17  Bruno Haible  <bruno@clisp.org>
117628         * lib/strcasecmp.c: Use mbuiter.h.
117630 2005-08-17  Bruno Haible  <bruno@clisp.org>
117632         * lib/mbuiter.h: New file.
117634 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
117636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
117637         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
117638         and gl_GETOPT are both invoked via different paths (as happens
117639         with GNU tar CVS because it uses both argp and getopt), the former
117640         wins.
117642 2005-08-16  Bruno Haible  <bruno@clisp.org>
117644         * modules/tls: New file.
117645         * MODULES.html.sh (Multithreading): Add tls.
117647 2005-08-16  Bruno Haible  <bruno@clisp.org>
117649         * modules/strnlen1: New file.
117650         * MODULES.html.sh (String handling): Add strnlen1.
117652 2005-08-16  Bruno Haible  <bruno@clisp.org>
117654         * modules/strcase (Files): Add m4/mbrtowc.m4.
117655         (Depends-on): Add strnlen1, mbchar.
117657 2005-08-16  Bruno Haible  <bruno@clisp.org>
117659         * modules/mbiter: New file.
117660         * MODULES.html.sh (Extended multibyte and wide character utilities):
117661         Add mbiter.
117663 2005-08-16  Bruno Haible  <bruno@clisp.org>
117665         * modules/mbfile: New file.
117666         * MODULES.html.sh (Extended multibyte and wide character utilities):
117667         Add mbfile.
117669 2005-08-16  Bruno Haible  <bruno@clisp.org>
117671         * modules/mbchar: New file.
117672         * MODULES.html.sh (Extended multibyte and wide character utilities):
117673         New section.
117675 2005-08-16  Bruno Haible  <bruno@clisp.org>
117677         * m4/tls.m4: New file, from GNU gettext.
117679 2005-08-16  Bruno Haible  <bruno@clisp.org>
117681         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117682         always.
117683         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117685 2005-08-16  Bruno Haible  <bruno@clisp.org>
117687         * m4/mbiter.m4: New file.
117689 2005-08-16  Bruno Haible  <bruno@clisp.org>
117691         * m4/mbfile.m4: New file.
117693 2005-08-16  Bruno Haible  <bruno@clisp.org>
117695         * m4/mbchar.m4: New file.
117697 2005-08-16  Bruno Haible  <bruno@clisp.org>
117699         * lib/tls.h: New file, from GNU gettext.
117700         * lib/tls.c: New file, from GNU gettext.
117702 2005-08-16  Bruno Haible  <bruno@clisp.org>
117704         * lib/strnlen1.h: New file.
117705         * lib/strnlen1.c: New file.
117707 2005-08-16  Bruno Haible  <bruno@clisp.org>
117709         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
117710         (mbi_init): Update.
117711         (mbi_avail, mbi_advance): Let the iteration end before the terminating
117712         NUL byte, not after it.
117714 2005-08-16  Bruno Haible  <bruno@clisp.org>
117716         * lib/strcase.h (strcasecmp): Add note in comments.
117717         * lib/strncasecmp.c: Use code from strcasecmp.c.
117718         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
117719         (strcasecmp): Work correctly in multibyte locales.
117721 2005-08-16  Bruno Haible  <bruno@clisp.org>
117723         * lib/mbiter.h: New file.
117725 2005-08-16  Bruno Haible  <bruno@clisp.org>
117727         * lib/mbfile.h: New file.
117729 2005-08-16  Bruno Haible  <bruno@clisp.org>
117731         * lib/mbchar.h: New file.
117732         * lib/mbchar.c: New file.
117734 2005-08-16  Bruno Haible  <bruno@clisp.org>
117736         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
117737         the valid ones. Makes the comparison operations transitive:
117738         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
117739         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
117741 2005-08-15  Simon Josefsson  <jas@extundo.com>
117743         * modules/ssize_t (License): Change to 'unlimited'.
117745         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
117747 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
117749         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
117750         Add comments for each pending glibc patch.
117752 2005-08-15  Bruno Haible  <bruno@clisp.org>
117754         * lib/regex.h (__restrict_arr): Don't define to __restrict if
117755         __cplusplus is defined.
117757 2005-08-14  Jim Meyering  <jim@meyering.net>
117759         Sync from coreutils.
117761         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
117762         Use the hash-table-based cycle-detection code not just when
117763         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
117764         Reported by James Youngman in
117765         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
117766         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
117767         FTS_TIGHT_CYCLE_CHECK.
117768         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
117769         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
117770         once again.
117771         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
117772         * lib/fts.c (fd_safer): Remove decl.
117773         Include fcntl--.h rather than unistd-safer.h
117774         (fts_safe_changedir): Don't call fd_safer; no longer needed
117775         now that we include fcntl--.h.
117777 2005-08-12  Simon Josefsson  <jas@extundo.com>
117779         * modules/getndelim2: Use ssize_t module.
117780         * modules/getnline: Likewise.
117781         * modules/safe-read: Likewise.
117782         * modules/xreadlink: Likewise.
117784         * modules/ssize_t: New file.
117786 2005-08-12  Simon Josefsson  <jas@extundo.com>
117788         * m4/readline.m4: Look for termcap, curses or ncurses if required.
117790 2005-08-12  Simon Josefsson  <jas@extundo.com>
117792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117793         ssize_t.
117795 2005-08-12  Simon Josefsson  <jas@extundo.com>
117797         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
117798         readline, getdelim and check_version.
117799         (Support for systems lacking ISO C 99: Sizes of integer types):
117800         Add size_max.
117802 2005-08-12  Bruno Haible  <bruno@clisp.org>
117804         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117806 2005-08-11  Simon Josefsson  <jas@extundo.com>
117808         * modules/readline: New file.
117810         * modules/strnlen (Files): Add strnlen.h.
117812 2005-08-11  Simon Josefsson  <jas@extundo.com>
117814         * m4/readline.m4: New file.
117816 2005-08-11  Simon Josefsson  <jas@extundo.com>
117818         * lib/readline.h, readline.c: New file.
117820 2005-08-11  Simon Josefsson  <jas@extundo.com>
117822         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117823         gl_AVOID.
117825 2005-08-11  Bruno Haible  <bruno@clisp.org>
117827         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117829 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117831         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117833 2005-08-10  Simon Josefsson  <jas@extundo.com>
117835         * tests/test-iconvme.c: New file.
117837 2005-08-10  Simon Josefsson  <jas@extundo.com>
117839         * m4/strnlen.m4: New file.
117841         * m4/strndup.m4: Don't check for strnlen declaration, done in
117842         strnlen.m4.
117844 2005-08-10  Simon Josefsson  <jas@extundo.com>
117846         * lib/strndup.c: Use strnlen.h.
117848         * lib/strnlen.h: New file.
117850 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117852         * README: Typos.
117854 2005-08-02  Simon Josefsson  <jas@extundo.com>
117856         * modules/readline: New file.
117858 2005-08-02  Simon Josefsson  <jas@extundo.com>
117860         * modules/getdelim: New file.
117862         * modules/getline: Rewrite, don't use getndelim2.
117864 2005-08-02  Simon Josefsson  <jas@extundo.com>
117866         * m4/getline.m4: Separate out getdelim stuff into separate module.
117868         * m4/getdelim.m4: New file.
117870 2005-08-02  Simon Josefsson  <jas@extundo.com>
117872         * lib/getline.h, getline.c: Rewrite.
117874         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117876 2005-07-31  Bruno Haible  <bruno@clisp.org>
117878         * lib/lock.h (gl_lock_initializer): New macro.
117879         (gl_lock_define_initialized): Use it.
117880         (gl_rwlock_initializer): New macro.
117881         (gl_rwlock_define_initialized): Use it.
117882         (gl_recursive_lock_initializer): New macro.
117883         (gl_recursive_lock_define_initialized): Use it.
117885 2005-07-30  Karl Berry  <karl@gnu.org>
117887         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117888         Report from Ben Pfaff, regarding getopt.
117890 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117892         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117893         normal way.
117894         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117895         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117896         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117897         (gl_GETOPT): Use the new macros.  Most of the implementation
117898         is moved to the new macros.  This is for programs like Emacs
117899         that don't want all the functionality of gl_GETOPT.
117901 2005-07-26  Bruno Haible  <bruno@clisp.org>
117903         * m4/lock.m4: Update from GNU gettext.
117905 2005-07-26  Bruno Haible  <bruno@clisp.org>
117907         * lib/lock.h: Update from GNU gettext.
117908         * lib/lock.c: Update from GNU gettext.
117910 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117912         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117913         obsolescent AC_TRY_RUN.  Include the default includes files, for
117914         'exit'.
117916 2005-07-24  Bruno Haible  <bruno@clisp.org>
117918         * modules/visibility: New file.
117919         * MODULES.html.sh (Misc): Add visibility.
117921 2005-07-24  Bruno Haible  <bruno@clisp.org>
117923         * m4/visibility.m4: New file.
117925 2005-07-24  Bruno Haible  <bruno@clisp.org>
117927         * doc/visibility.texi: New file.
117929 2005-07-22  Bruno Haible  <bruno@clisp.org>
117931         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117932         $(ALLOCA_H), redundant through BUILT_SOURCES.
117933         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117934         redundant through BUILT_SOURCES.
117935         * modules/byteswap (Makefile.am): Remove explicit dependency on
117936         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117937         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117938         $(FNMATCH_H), redundant through BUILT_SOURCES.
117939         * modules/getopt (Makefile.am): Remove explicit dependency on
117940         $(GETOPT_H), redundant through BUILT_SOURCES.
117941         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117942         redundant through BUILT_SOURCES.
117943         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117944         redundant through BUILT_SOURCES.
117945         * modules/stdbool (Makefile.am): Remove explicit dependency on
117946         $(STDBOOL_H), redundant through BUILT_SOURCES.
117947         * modules/stdint (Makefile.am): Remove explicit dependency on
117948         $(STDINT_H), redundant through BUILT_SOURCES.
117949         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117950         Remove explicit dependency on $(SYSEXITS_H).
117951         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117953 2005-07-18  Simon Josefsson  <jas@extundo.com>
117955         * lib/check-version.c (check_version): Accept identical versions too.
117957 2005-07-18  Bruno Haible  <bruno@clisp.org>
117959         * modules/lock: New file.
117960         * MODULES.html.sh (Multithreading): New section.
117962 2005-07-18  Bruno Haible  <bruno@clisp.org>
117964         * m4/lock.m4: New file, from GNU gettext.
117966 2005-07-18  Bruno Haible  <bruno@clisp.org>
117968         * lib/lock.h: New file, from GNU gettext.
117969         * lib/lock.c: New file, from GNU gettext.
117971 2005-07-18  Bruno Haible  <bruno@clisp.org>
117973         * lib/lock.h (gl_once_t): New type.
117974         (gl_once_define, gl_once): New macros.
117975         * lib/lock.c (fresh_once): New variable.
117976         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117977         functions.
117979 2005-07-16  Simon Josefsson  <jas@extundo.com>
117981         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117982         workaround, suggested by Bruno.
117984 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117986         * modules/xalloc (Depends-on): Add xalloc-die.
117987         * modules/xvasprintf (Depends-on): Add xalloc-die.
117989 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117991         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117992         with a minor change.
117994 2005-07-15  Bruno Haible  <bruno@clisp.org>
117996         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117997         When using lib/poll.c, define poll as rpl_poll.
117999 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
118001         * modules/argp (Depends-on): Remove unlocked-io.
118003 2005-07-14  Derek Price  <derek@ximbiot.com>
118005         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
118006         for glob symlink bug.
118008 2005-07-14  Bruno Haible  <bruno@clisp.org>
118010         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
118011         Instead, test for *_unlocked function declarations directly.
118013 2005-07-11  Simon Josefsson  <jas@extundo.com>
118015         * modules/size_max: New file.
118017         * modules/xsize: Depend on size_max module for size_max.m4.
118019 2005-07-11  Simon Josefsson  <jas@extundo.com>
118021         * lib/size_max.h: New file.
118023 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
118025         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
118026         copyright symbol and the year.
118027         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
118028         (version_etc_va): Use parameterized copyright notice.
118029         Reword to conform to the current GNU coding standards.
118031 2005-07-11  Karl Berry  <karl@gnu.org>
118033         * doc/gnulib.texi (Quoting): new node.
118034         (Initial import): more info, from Patrice.
118036 2005-07-11  Bruno Haible  <bruno@clisp.org>
118038         * gnulib-tool (func_usage): Document option --avoid.
118039         (Command line options): Handle --avoid.
118040         (func_acceptable): New function.
118041         (func_modules_transitive_closure): Use it.
118043 2005-07-11  Bruno Haible  <bruno@clisp.org>
118045         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
118046         Reported by Jim Meyering.
118048 2005-07-10  Bruno Haible  <bruno@clisp.org>
118050         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
118051         Needed when size_t is smaller than 'unsigned int'.
118052         Reported by Paul Eggert.
118054 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118056         * modules/argp (Depends-on): Add unlocked-io
118058 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118060         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
118061         block of defines.
118063 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
118065         * config/srclist.txt: Comment out regcomp.c, since we have a porting
118066         fix now.
118068 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
118069         and Paul Eggert  <eggert@cs.ucla.edu>
118071         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
118072         in wint_t, not wchar_t.  Remove now-unnecessary cast.
118074 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118076         * modules/regex (Files): Add lib/regex_internal.c,
118077         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
118078         (Depends-on): Add extensions.
118079         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
118081 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118083         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
118084         pathconf.
118085         * m4/same.m4 (gl_SAME): Likewise.
118086         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
118088         * m4/regex.m4: Adjust to new libc regex implementation.
118089         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
118090         all the .c and .h parts of (the new) regex.
118091         Quote the m4 stuff better.
118092         Check for RE_ICASE bug of old gnulib.
118093         Check for REG_STARTEND of recent libc.
118094         Rename local variables from jm_* to gl_*.
118095         Quote operand of "test -f".
118096         Say "recent enough" version of libc, not "version 2".
118097         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
118098         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
118099         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
118100         Remove check for btowc, isascii.
118101         Require AM_LANGINFO_CODESET.
118103 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118105         * lib/regex.c, regex.h: Sync from libc.
118106         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
118107         * lib/regexec.c:
118108         New files, synced from libc, except that regex_internal.h
118109         currently has a small porting fix.
118111 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118113         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
118114         regex_internal.c, regexec.c.
118115         Add regex_internal.h too, but as a comment, since the libc version
118116         is currently broken in gnulib mode.
118118 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
118120         Support programs like Emacs that use gnulib but not gettext.
118121         * MODULES.html.sh (Internationalization functions): Add gettext-h.
118122         * modules/gettext-h: New file.
118123         * modules/gettext (Files): Remove lib/gettext.h.
118124         (Depends-on): Add gettext-h.
118125         (Makefile.am): Remove lib_SOURCES.
118126         * modules/argmatch, modules/c-stack, modules/closeout:
118127         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
118128         * modules/execute, modules/file-type, modules/getaddrinfo:
118129         * modules/getopt, modules/human, modules/javacomp:
118130         * modules/javaexec, modules/mkdir-p, modules/obstack:
118131         * modules/openat, modules/pagealign_alloc, modules/pipe:
118132         * modules/quotearg, modules/regex, modules/rpmatch:
118133         * modules/unicodeio, modules/userspec, modules/version-etc:
118134         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
118135         * modules/xsetenv:
118136         Depend on gettext-h, not gettext.
118138 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
118140         * gnulib-tool (func_import): Add support for 'public domain' license.
118141         * modules/alloca, modules/atexit, modules/memmove:
118142         Now public domain, not GPL.
118143         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
118144         * modules/realloc, modules/strerror, modules/strtod:
118145         Now LGPL, not GPL.
118147 2005-07-05  Bruno Haible  <bruno@clisp.org>
118149         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
118150         autoconf CVS. Needed for mingw.
118152 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118154         Remove the dependency of the strftime module on the tzset module.
118155         * modules/strftime (Depends-on): Remove dependency on tzset.
118157 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118159         Remove the dependency of the strftime module on the tzset module.
118160         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
118161         gl_FUNC_TZSET_CLOBBER.
118163 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118165         Remove the dependency of the strftime module on the tzset module.
118166         * lib/strftime.c (my_strftime)
118167         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
118168         Copy the input structure, to work around some of the bug with
118169         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
118170         Solaris releases, you should also use the tzset module, but we won't
118171         require it as a dependency any more since we don't want LGPLed code
118172         to depend on GPLed code.
118174 2005-07-02  Jim Meyering  <jim@meyering.net>
118176         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
118177         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
118178         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
118179         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
118181 2005-07-02  Jim Meyering  <jim@meyering.net>
118183         * lib/backupfile.c (backup_args): Change a `0' to NULL.
118185 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
118187         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
118188         declares only 'struct timespec;' (!).
118190 2005-07-01  Jim Meyering  <jim@meyering.net>
118192         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
118193         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
118194         * lib/save-cwd.c, tempname.c:
118195         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118196         and don't include <sys/file.h>).
118198 2005-06-29  Jim Meyering  <jim@meyering.net>
118200         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
118201         type name.  Use the variable name instead.
118202         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
118203         Likewise.
118205 2005-06-28  Simon Josefsson  <jas@extundo.com>
118207         * modules/check-version (Files): Add check-version.m4.
118209 2005-06-28  Simon Josefsson  <jas@extundo.com>
118211         * m4/check-version.m4: New file, suggested by Jim Meyering
118212         <jim@meyering.net>.
118214 2005-06-28  Simon Josefsson  <jas@extundo.com>
118216         * lib/check-version.h, lib/check-version.c: New files.
118218 2005-06-28  Simon Josefsson  <jas@extundo.com>
118220         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
118221         collision with global variable.  Better indentation.  Don't
118222         increment buffer pointer beyond buffer end.  Based on comments
118223         from Paul Eggert <eggert@cs.ucla.edu>.
118225         * lib/base64.h: Indent.
118227 2005-06-28  Simon Josefsson  <jas@extundo.com>
118229         * doc/gnulib.texi (Library version handling): New section.
118231 2005-06-28  Jim Meyering  <jim@meyering.net>
118233         * check-module (find_included_lib_files): Hard-code another
118234         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
118235         but modules/fts-lgpl (correctly) does not list those files.
118237         * modules/canonicalize (Files): Add lib/pathmax.h.
118239 2005-06-25  Simon Josefsson  <jas@extundo.com>
118241         * modules/check-version: New file.
118243 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
118245         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
118246         initializer of struct addrinfo, as an indication that we don't
118247         care how many members the structure has.
118249 2005-06-24  Derek Price  <derek@ximbiot.com>
118250         and Bruno Haible  <bruno@clisp.org>
118252         Remove stat module & update lstat.
118253         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
118254         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118255         * m4/stat.m4: Remove this file.
118257 2005-06-24  Derek Price  <derek@ximbiot.com>
118258         and Bruno Haible  <bruno@clisp.org>
118260         Remove stat module & update lstat.
118261         * lib/stat.c: Remove this file...
118262         (slash_aware_lstat): ...moving this content and its support...
118263         * lib/lstat.c (rpl_lstat): ...into here.
118264         * lib/lstat.h: New file.
118266 2005-06-24  Derek Price  <derek@ximbiot.com>
118267         and Bruno Haible  <bruno@clisp.org>
118269         Remove stat module & update lstat.
118270         * config/srclist.txt (libc sources): Remove stat.
118272 2005-06-24  Derek Price  <derek@ximbiot.com>
118273         and Bruno Haible  <bruno@clisp.org>
118275         Remove stat module & update lstat.
118276         * MODULES.html.sh (stat): Remove.
118277         * MODULES.html: Regenerated.
118278         * modules/lstat (Description): Correct function name.
118279         (Files): Add "lstat.h".
118280         (Depends-on): Remove stat, add xalloc, stat-macros.
118281         * modules/stat: Remove this file.
118282         (Include): Add "lstat.h", remove <sys/stat.h>.
118284 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
118286         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
118287         (ranged_convert): Don't save conversion in a temporary struct.
118288         This causes a warning with GCC 4.0.0, and anyway in the typical
118289         case it's not worth the extra 100 bytes or so of code.
118290         (ranged_convert, __mktime_internal): When calling a function via a
118291         pointer P, use P () rather than (*P) (), as we now assume C89 or
118292         better.
118294 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
118296         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
118297         "who -r" failed to give output.  Problem reported by Tim Waugh.
118299         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
118300         (xcalloc): Use it to avoid needless tests.
118301         Problem reported by Jim Meyering.
118303 2005-06-20  Derek Price  <derek@ximbiot.com>
118305         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
118306         unnecessary for Autoconfs > 2.59c.
118308 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118310         * lib/argp.h (__option_is_short): Check upper limit of
118311         __key. Isprint() requires its argument to have the value
118312         of an unsigned char or EOF.
118314 2005-06-16  Jim Meyering  <jim@meyering.net>
118316         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
118317         when either N or S is zero.
118319 2005-06-16  Derek Price  <derek@ximbiot.com>
118321         * m4/bison.m4: Declare YACC & YFLAGS precious.
118323 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
118325         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
118326         multibyte string or pattern, fall back on unibyte matching.
118327         Problem reported by James Youngman.
118329 2005-06-08  Bruno Haible  <bruno@clisp.org>
118331         * modules/csharpcomp: New file.
118332         * MODULES.html.sh (C#): Add csharpcomp.
118334 2005-06-08  Bruno Haible  <bruno@clisp.org>
118336         * m4/csharpcomp.m4: New file, from GNU gettext.
118338 2005-06-08  Bruno Haible  <bruno@clisp.org>
118340         * lib/csharpcomp.h: New file, from GNU gettext.
118341         * lib/csharpcomp.c: New file, from GNU gettext.
118342         * lib/csharpcomp.sh.in: New file, from GNU gettext.
118344 2005-06-08  Bruno Haible  <bruno@clisp.org>
118346         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
118347         warning on mingw.
118349 2005-06-07  Derek Price  <derek@ximbiot.com>
118351         Sync from CVS.
118352         * lib/glob_.h: Indent nested #ifdef.
118354 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118356         Sync from coreutils.
118357         Use "file name" when talking about file names, instead of "filename"
118358         or "path", as per the GNU coding standards.
118359         * lib/mkdir-p.c: Renamed from makepath.c.
118360         (make_dir_parents): Renamed from make_path.  All callers changed.
118361         * lib/mkdir-p.h: Likewise.  All includers changed.
118362         * lib/filenamecat.c: Renamed from path-concat.c.
118363         (file_name_concat): Renamed from path_concat.  All callers changed.
118364         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
118365         * lib/filenamecat.h: Likewise.  All includers changed.
118366         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
118367         in comments or local variable names.
118368         * lib/basename.c: Likewise.
118369         * lib/canonicalize.c, canonicalize.h: Likewise.
118370         * lib/dirname.c, dirname.h: Likewise.
118371         * lib/euidaccess.c: Likewise.
118372         * lib/exclude.c: Likewise
118373         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
118374         * lib/fsusage.c, fsuage.h: Likewise.
118375         * lib/fts.c, fts_.h: Likewise.
118376         * lib/getcwd.c: Likewise.
118377         * lib/getloadavg.c: Likewise.
118378         * lib/mkstemp.c: Likewise.
118379         * lib/mountlist.c, mountlist.h: Likewise.
118380         * lib/openat.c, openat.h: Likewise.
118381         * lib/readlink-stub.c: Likewise.
118382         * lib/readutmp.c, readutmp.h: Likewise.
118383         * lib/rename.c: Likewise.
118384         * lib/rmdir.c: Likewise.
118385         * lib/same.c: Likewise.
118386         * lib/savedir.c: Likewise.
118387         * lib/stripslash.c: Likewise.
118388         * lib/tempname.c: Likewise.
118389         * lib/xreadlink.c: Likewise.
118390         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
118391         All uses changed.
118392         * lib/exclude.h: Likewise.
118394         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
118395         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118396         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
118397         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118398         * lib/pathmax.h: Include <limits.h> unconditionally, since other
118399         files have been getting away with it for years (MORE/BSD 4.3
118400         is extinct now).
118401         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
118402         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118404         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
118405         Define to 256, not 255, as per modern POSIX.
118407 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118409         Sync from coreutils.
118410         Use "file name" when talking about file names, instead of "filename"
118411         or "path", as per the GNU coding standards.
118412         * MODULES.html.sh: mkdir-p renamed from makepath.
118413         filenamecat renamed from path-concat.
118414         * modules/filenamecat: Renamed from modules/path-concat.
118415         (Files): filenamecat.h and filenamecat.c renamed from
118416         path-concat.h and path-concat.c.
118417         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
118418         (Include): filenamecat.h, not path-concat.h.
118419         * modules/mkdir-p: Renamed from modules/makepath.
118420         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
118421         makepath.c.
118422         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
118423         (Include): mkdir-p.h, not makepath.h.
118425 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118427         Sync from coreutils.
118428         * m4/mkdir-p.m4: Renamed from makepath.m4.
118429         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
118430         Rename files from makepath.c to mkdir-p.c, and from
118431         makepath.h to mkdir-p.h.
118432         * m4/filenamecat.m4: Renamed from path-concat.m4.
118433         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
118434         Rename files from path-concat.c to filenamecat.c,
118435         and from path-concat.h to filenamecat.h.
118436         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
118437         "file name" in local variables or comments.
118438         * m4/rename.m4: Likewise.
118440 2005-06-01  Bruno Haible  <bruno@clisp.org>
118442         * modules/csharpexec: New file.
118443         * MODULES.html.sh (C#): New section.
118445 2005-06-01  Bruno Haible  <bruno@clisp.org>
118447         * m4/csharp.m4: New file, from GNU gettext.
118448         * m4/csharpexec.m4: New file, from GNU gettext.
118450 2005-06-01  Bruno Haible  <bruno@clisp.org>
118452         * lib/csharpexec.h: New file, from GNU gettext.
118453         * lib/csharpexec.c: New file, from GNU gettext.
118454         * lib/csharpexec.sh.in: New file, from GNU gettext.
118456 2005-05-31  Derek Price  <derek@ximbiot.com>
118457             Paul Eggert  <eggert@cs.ucla.edu>
118459         Sync from cvs.
118460         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118462 2005-05-31  Derek Price  <derek@ximbiot.com>
118463             Paul Eggert  <eggert@cs.ucla.edu>
118465         Sync from cvs.
118466         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118468 2005-05-29  Derek Price  <derek@ximbiot.com>
118470         * config/srclist.txt (glob_.h, glob.c): Add these files.
118472 2005-05-29  Derek Price  <derek@ximbiot.com>
118474         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
118475         * modules/glob: New file.
118476         * modules/getlogin_r: Add link to POSIX spec in description.
118478 2005-05-29  Derek Price  <derek@ximbiot.com>
118479             Paul Eggert  <eggert@cs.ucla.edu>
118481         * m4/glob.m4: New file.
118483 2005-05-29  Derek Price  <derek@ximbiot.com>
118484             Paul Eggert  <eggert@cs.ucla.edu>
118486         * lib/glob_.h, lib/glob.c: New files.
118488 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118490         * modules/fts (Files): Remove m4/inttypes-pri.m4.
118491         * modules/fts-lgpl (Depends-on): Remove gettext.
118493 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
118496         and don't require gt_INTTYPES_PRI.
118498 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118500         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
118502         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
118503         the configuration hassle isn't worth it.
118504         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
118505         (LONGEST_MODIFIER, PRIuMAX): Remove.
118507 2005-05-27  Bruno Haible  <bruno@clisp.org>
118509         * lib/getlogin_r.h: Remove second include of <stddef.h>.
118511 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
118513         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
118514         _POSIX_PTHREAD_SEMANTICS for Solaris.
118516 2005-05-25  Derek Price  <derek@ximbiot.com>
118518         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
118520 2005-05-25  Derek Price  <derek@ximbiot.com>
118521             Paul Eggert  <eggert@cs.ucla.edu>
118523         * modules/getlogin_r, m4/getlogin_r.m4: New files.
118524         * lib/getlogin_r.c, getlogin_r.h: New files.
118526 2005-05-25  Bruno Haible  <bruno@clisp.org>
118527             Derek Price  <derek@ximbiot.com>
118529         * lib/getlogin_r.h: Simplify API documentation.
118531 2005-05-23  Derek Price  <derek@ximbiot.com>
118533         * modules/minmax (Files): Add m4/minmax.m4.
118534         (configure.ac): Add gl_MINMAX.
118536 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
118538         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
118539         so that unistd-safer.h (GPL'ed code) need not be included.
118541 2005-05-22  Bruno Haible  <bruno@clisp.org>
118543         * m4/minmax.m4: New file.
118544         Based on a patch by Derek Price <derek@ximbiot.com>.
118546 2005-05-22  Bruno Haible  <bruno@clisp.org>
118548         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
118549         (INT64_MIN): Fix definition.
118550         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
118552         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
118553         NEED_SIGNED_INT_TYPES.
118555         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
118556         HAVE_SYSTEM_INTTYPES.
118558 2005-05-22  Bruno Haible  <bruno@clisp.org>
118560         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
118561         Also include <sys/param.h> if it defines MIN, MAX.
118562         Based on a patch by Derek Price <derek@ximbiot.com>.
118564 2005-05-21  Jim Meyering  <jim@meyering.net>
118566         * modules/fts (Files): Add m4/inttypes-pri.m4.
118567         (Depends-on): Add lstat and remove gettext.  Alphabetize.
118569 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118571         New fts module.
118572         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
118573         (setup_dir, free_dir): New functions.
118574         (enter_dir, leave_dir): Define trivial
118575         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
118576         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
118577         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
118578         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
118579         Move to fts-cycle.c.
118580         (fts_open): Use setup_dir.
118581         (fts_close): Use free_dir.
118582         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
118583         This adds a label and some gotos, but the alternatives were messier.
118584         Check for memory allocation failure when entering a dir.
118585         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
118586         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
118587         (FTS): New member fts_cycle, that is a union that contains the
118588         old active_dir_ht and cycle_state.  All uses changed to mention
118589         fts_cycle.ht and fts_cycle.state.
118590         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
118591         fts.c, with the following changes:
118592         (setup_dir, free_dir): New functions.
118593         (enter_dir): Now returns bool.  Return true if successful, false
118594         if memory exhausted.  All callers changed.
118595         Do not bother partly cleaning up on
118596         memory allocation failure; that is free_dir's job.
118597         However, free ad if hash_insert fails, to avoid memory leak.
118598         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
118599         fts->fts_options to see which union member to use.
118601 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
118604         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
118606 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118608         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
118610 2005-05-20  Jim Meyering  <jim@meyering.net>
118612         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
118613         Now a macro, to pacify GCC.
118615 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118617         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
118618         of -1.
118620 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118622         * lib/chown.c (rpl_chown): Return -1 on failure.
118624 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118626         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
118627         Don't check for stddef.h.
118628         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
118629         don't use its results.
118630         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
118631         since we include them unconditionally.  Don't require
118632         AM_STDBOOL_H, since stdbool is a prerequisite.
118633         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
118634         since we assume C89 or better.
118635         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
118636         as we don't use their results.
118637         Don't check for fchdir, memmove, memset, strrchr, as we use
118638         them unconditionally.
118639         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
118640         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
118642 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118644         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
118645         Include <stddef.h> unconditionally, since we assume C89 now.
118646         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
118647         * lib/fts.c: Include fts_.h first, to check interface.
118648         Do not include intprops.h; no longer needed.
118649         Include cycle-check.h and hash.h, since fts_.h no longer does.
118650         Remove unnecessary casts of closedir to void.
118651         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
118652         decide whether to decrement nlinks.
118653         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
118654         (FTS): Use struct hash_table * instead of Hash_table, so that
118655         we no longer need to include hash.h here.
118657 2005-05-18  Jim Meyering  <jim@meyering.net>
118659         * modules/dirfd (License): Change to LGPL.  Most of the code
118660         is already in the public domain.
118662 2005-05-18  Jim Meyering  <jim@meyering.net>
118664         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
118665         Reported by Yoann Vandoorselaere.
118667 2005-05-17  Jim Meyering  <jim@meyering.net>
118669         * m4/fts.m4: New file, from coreutils.
118671 2005-05-17  Jim Meyering  <jim@meyering.net>
118673         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118675 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118677         Sync from coreutils.
118678         * m4/unlinkdir.m4: New file.
118680 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118682         Sync from coreutils.
118683         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118684         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118685         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118686         White space changes only.
118687         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118688         special.
118689         * lib/yesno.c: Include getline.h, not ctype.h.
118690         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118691         Use getline to remove arbitrary restriction on response length.
118693 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118695         * config/srclist-update: Spell out "Street" in FSF postal
118696         mail address; this is the style the FSF seems to prefer.
118698         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118699         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118700         this updates FSF postal mail address.
118702         Sync from coreutils.
118703         * modules/unlinkdir: New file.
118704         * modules/yesno (Depends-on): Add getline.
118705         * MODULES.html.sh (File system functions): Add unlinkdir.
118707 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118709         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
118710         lib/strsep.h:
118711         Change the initial comment to refer to GPL, not LGPL.
118712         gnulib-tool will change it to LGPL as needed.
118714         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
118715         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
118716         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
118717         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
118718         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
118719         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
118720         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
118721         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
118722         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
118723         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
118724         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
118725         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
118726         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
118727         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
118728         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
118729         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
118730         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
118731         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
118732         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
118733         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
118734         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
118735         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
118736         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
118737         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
118738         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
118739         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
118740         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
118741         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
118742         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
118743         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
118744         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
118745         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
118746         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
118747         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
118748         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
118749         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
118750         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
118751         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
118752         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
118753         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
118754         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
118755         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
118756         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
118757         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
118758         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
118759         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
118760         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
118761         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
118762         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
118763         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
118764         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118765         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
118766         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
118767         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
118768         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
118769         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
118770         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
118771         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
118772         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
118773         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
118774         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
118775         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
118776         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
118777         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
118778         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
118779         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
118780         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
118781         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
118782         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
118783         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
118784         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
118785         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
118786         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
118787         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
118788         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
118789         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
118790         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
118791         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
118792         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
118793         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
118794         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
118795         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
118796         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
118797         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
118798         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
118799         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
118800         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
118801         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
118802         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
118803         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
118804         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
118805         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118806         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118807         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118808         lib/yesno.c, lib/yesno.h:
118809         Update FSF postal mail address.
118811 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118813         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118814         tests/test-memmem.c, tests/test-stpncpy.c:
118815         Update FSF postal mail address.
118817 2005-05-13  Bruno Haible  <bruno@clisp.org>
118819         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118820         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118821         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118822         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118823         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118824         Add support for 64-bit integers in the MSVC compiler.
118826 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118828         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118830 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118832         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118834 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118836         * doc/getdate.texi (General date syntax): Don't say that date
118837         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118838         Problem reported by Nic Ferrier.
118840 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118842         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118843         specified in ai_socktype. Fix invalid ai_protocol
118844         check. ai_protocol is usually set to 0 or depending on
118845         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118846         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118847         ai_socktype / ai_protocol in the returned addrinfo structure.
118849 2005-05-10  Simon Josefsson  <jas@extundo.com>
118851         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118852         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118854 2005-05-10  Karl Berry  <karl@gnu.org>
118856         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118857         (from http://www.gnu.org/licenses).
118858         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118859         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118860         fdl.texi suffices.
118862 2005-05-10  Karl Berry  <karl@gnu.org>
118864         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118865         (COPYING.DOC): remove.
118867         * config/srclist-update: new FSF address.
118869 2005-05-10  Derek Price  <derek@ximbiot.com>
118871         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118872         possible.
118874 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118875             Bruno Haible  <bruno@clisp.org>
118877         * modules/inet_ntop: New file.
118878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118879         inet_ntop.
118881 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118882             Bruno Haible  <bruno@clisp.org>
118884         * m4/inet_ntop.m4: New file.
118886 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118887             Bruno Haible  <bruno@clisp.org>
118889         * lib/inet_ntop.h: New file.
118890         * lib/inet_ntop.c: New file, from glibc with modifications.
118892 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118894         * modules/time_r (License): Change to LGPL.
118895         * modules/extensions (License): Change to LGPL.  Actually,
118896         the license is more permissive than that, but currently gnulib-tool
118897         doesn't know how to handle more-permissive licenses.
118899         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118900         Problem reported by Dave Love.
118902 2005-05-08  Jim Meyering  <jim@meyering.net>
118904         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118905         blank.
118907 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118909         * modules/argmatch (Depends-on): Add stdbool.
118910         * modules/backupfile (Depends-on): Likewise.
118911         * modules/chdir-long (Depends-on): Likewise.
118912         * modules/closeout (Depends-on): Likewise.
118913         * modules/cycle-check (Depends-on): Likewise.
118914         * modules/dirname (Depends-on): Likewise.
118915         * modules/fnmatch (Depends-on): Likewise.
118916         * modules/fsusage (Depends-on): Likewise.
118917         * modules/fwriteerror (Depends-on): Likewise.
118918         * modules/getcwd (Depends-on): Likewise.
118919         * modules/getloadavg (Depends-on): Likewise.
118920         * modules/hard-locale (Depends-on): Likewise.
118921         * modules/makepath (Depends-on): Likewise.
118922         * modules/mountlist (Depends-on): Likewise.
118923         * modules/nanosleep (Depends-on): Likewise.
118924         * modules/posixtm (Depends-on): Likewise.
118925         * modules/quotearg (Depends-on): Likewise.
118926         * modules/readtokens (Depends-on): Likewise.
118927         * modules/readtokens0 (Depends-on): Likewise.
118928         * modules/readutmp (Depends-on): Likewise.
118929         * modules/save-cwd (Depends-on): Likewise.
118930         * modules/strftime (Depends-on): Likewise.
118931         * modules/userspec (Depends-on): Likewise.
118932         * modules/utimecmp (Depends-on): Likewise.
118933         * modules/xgetcwd (Depends-on): Likewise.
118934         * modules/xnanosleep (Depends-on): Likewise.
118935         * modules/xstrtod (Depends-on): Likewise.
118936         * modules/yesno (Depends-on): Likewise.
118938 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118940         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118941         needless checks.
118943 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118945         Merge from coreutils.  Among other things,
118946         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118947         * lib/fd-safer.c: New file.
118948         * lib/fcntl-safer.h, open-safer.c: Remove.
118949         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118950         * lib/dup-safer.c: Include unistd-safer.h first.
118951         Don't include errno.h.
118952         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118953         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118954         * lib/file-type.c: Rely on file-type.h change.
118955         * lib/getloadavg.c: Include unistd-safer.h.
118956         (getloadavg): Use safer open.
118957         * lib/getusershell.c: Include "stdio-safer.h".
118958         (getusershell): Use safer fopen.
118959         * lib/long-options.c (long_options): Use NULL rather than 0.
118960         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118961         'free'.
118962         * lib/modechange.c: Likewise.
118963         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118964         (MODE_DONE): New constant.
118965         (struct mode_change): Remove 'next' member.
118966         (make_node_op_equals): New function; like the old one of the
118967         same name, except it allocates an array.
118968         (mode_compile, mode_create_from_ref): Use it.
118969         (mode_compile): Allocate result as an array, not a linked list.
118970         Parse octal string ourself, so that we catch mistakes like "+0".
118971         (mode_adjust): Arg is an array, not a linked list.
118972         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118973         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118974         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118975         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118976         Remove.  This is now stat-macros.h's job.
118977         (talloc): Remove.  All callers replaced by xalloc, so that
118978         our invokers don't have to worry about reporting memory failures.
118979         (make_node_op_equals): Remove.
118980         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118981         New constants.
118982         (struct mode_change): Moved here from modechange.h.
118983         (mode_append_entry): Remove.
118984         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118985         apps to have incorrect behavior.  Use simpler algorithm for head
118986         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118987         Detect more invalid usages rather than having somewhat-random behavior.
118988         Don't insert an "a=" action, as that leads to incorrect behavior.
118989         (mode_compile, mode_create_from_ref): Return NULL on error instead
118990         of an enum, since now there's only one way to have an error.  All
118991         callers changed.
118992         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118993         at the correct time.  Simplify calculation of "+u" and its ilk.
118994         Don't mishandle "+X".
118995         (mode_free): Remove "register" and localize decls.
118996         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118997         (struct mode_change): Move to modechange.c; callers don't
118998         need to see this stuff.
118999         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
119000         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
119001         (mode_change, mode_adjust): Reflect the new signatures noted above.
119002         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
119003         that might redefine system include files.
119004         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
119005         (my_usleep): Use NULL rather than (void *) 0.
119006         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
119007         Use siginterrupt to specify that system calls should be interrupted.
119008         (rpl_nanosleep): Move initialization of suspended closer to call of
119009         my_usleep.
119010         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
119011         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
119012         (desirable_utmp_entry): New function.
119013         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
119014         using x2nrealloc, to simplify logic.
119015         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
119016         size calculation.  Do not assume utmp file is a regular file.
119017         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
119018         (READ_UTMP_CHECK_PIDS): New constant.
119019         * lib/save-cwd.c: Include unistd-safer.h.
119020         (save_cwd): Use fd_safer.
119021         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
119022         [!_LIBC] Include "stat-macros.h" instead.
119023         * lib/unistd-safer.h (fd_safer): New decl.
119025 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119027         * modules/getloadavg (Depends-on): Add unistd-safer.
119028         * modules/getusershell (Depends-on): Add stdio-safer.
119029         * modules/lstat (Depends-on): Remove xalloc.
119030         * modules/mkstemp (Depends-on): Add stat-macros.
119031         * modules/modechange (Depends-on): Remove xstrtol.
119032         Add stat-macros, xalloc.
119033         * modules/save-cwd (Depends-on): Add unistd-safer.
119034         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
119035         * modules/unistd-safer (Files): Add lib/fd-safer.c
119036         (Makefile.am): Remove lib_SOURCES.
119038         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
119039         Remove fcntl-safer; unistd-safer supersedes it.
119041 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119043         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
119044         AC_HEADER_STAT.
119045         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
119046         (gl_PREREQ_CHOWN): Remove.
119047         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
119048         it.  Don't require AC_HEADER_STAT.
119049         (gl_PREREQ_LSTAT): Remove.
119050         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
119051         Don't require AC_HEADER_STAT.
119052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
119053         (gl_PREREQ_RMDIR): Remove.
119054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
119055         mention stat-macros.h or AC_HEADER_STAT, since we'll make
119056         the stat-macros module a prerequisite.
119057         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
119058         * m4/filemode.m4 (gl_FILEMODE): Likewise.
119059         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
119060         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
119061         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
119062         variable names.
119063         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
119064         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
119065         variable prefixes.
119066         * m4/fcntl-safer.m4: Remove.
119067         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
119068         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
119069         Invoke gl_PREREQ_FD_SAFER.
119070         (gl_PREREQ_FD_SAFER): New macro.
119071         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
119072         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
119073         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
119074         Remove duplicate call to AC_LIBOBJ(readutmp).
119075         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
119077         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
119078         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
119080 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119082         * MODULES.html.sh (Misc): Add byteswap.
119084 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119086         * modules/getcwd (Depends-on): Add extensions.
119087         * modules/openat (Depends-on): Likewise.
119089 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119091         * modules/byteswap: New file.
119093 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119095         * m4/byteswap.m4: New file.
119097 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119099         * lib/byteswap_.h: New file.
119101 2005-04-25  Karl Berry  <karl@gnu.org>
119103         * m4/gettext.m4: Update from GNU gettext 0.14.4.
119105 2005-04-25  Albert Chin  <china@thewrittenword.com>
119107         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
119108         Toolkit C bug.
119110 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
119112         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
119113         (func_ln_if_changed): Remove forcibly for no error message
119114         in case file does not exist.
119116 2005-04-19  Simon Josefsson  <jas@extundo.com>
119118         * gnulib-tool (Options): Make --symlink mean --symbolic.
119120 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
119122         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
119124 2005-04-16  Simon Josefsson  <jas@extundo.com>
119126         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
119128 2005-04-15  Simon Josefsson  <jas@extundo.com>
119130         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
119132 2005-04-15  Simon Josefsson  <jas@extundo.com>
119134         * gnulib-tool: Rename --symlink to --symbolic.
119136 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
119138         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
119139         symbolic links to files instead of copying/moving.  Add --aux-dir,
119140         specifying directory relative --dir where auxiliary build tools
119141         are placed.
119143 2005-04-14  Bruno Haible  <bruno@clisp.org>
119145         * modules/allocsa (License): Change to LGPL.
119146         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
119148 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
119150         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
119151         that "UTC +1 second" continues to work.  Problem reported
119152         by Dmitry V. Levin.
119153         (relunit_snumber): New rule.
119154         (relunit): Use it.
119156 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
119158         * lib/getdate.y (universal_time_zone_table): New constant.
119159         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
119160         universal_time_zone_table.
119161         (lookup_zone): Prefer universal_time_zone_table to
119162         local_time_zone_table, so that "GMT" time stamps are allowed in
119163         London during the summer.  Problem reported by Ian Abbott.
119165 2005-04-12  Jim Meyering  <jim@meyering.net>
119167         * lib/human.c (humblock): Set *options even when returning due to
119168         xstrtoumax conversion failure.  Thanks to a used-uninitialized
119169         warning from gcc-4.
119171 2005-04-09  Jim Meyering  <jim@meyering.net>
119173         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
119174         -Wuninitialized: initialize tm0.tm_year.
119176 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
119178         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
119179         count, since there's no maximum.  All uses changed.
119180         Add member dsts_seen.
119181         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
119182         not being INT_MAX.
119183         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
119184         Use pc_rels_seen to decide whether a date is absolute.
119186         * lib/getdate.y (number): Don't overwrite year.
119187         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
119188         check.
119190 2005-04-02  Simon Josefsson  <jas@extundo.com>
119192         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
119193         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
119195 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
119197         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
119198         where no absolute path name can be longer than PATH_MAX.
119200 2005-03-27  Jim Meyering  <jim@meyering.net>
119202         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
119204 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
119206         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
119207         "one's complement" -> "ones' complement" in comment, as per Knuth.
119208         "value of type" -> "type or expression" in comment.
119209         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
119211 2005-03-26  Jim Meyering  <jim@meyering.net>
119213         Comment nits.
119214         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
119215         Correct typos: s/or/of/.
119217 2005-03-26  Jim Meyering  <jim@meyering.net>
119219         * modules/check-include-files: Move to ../ and rename to...
119220         * check-module: ...this.
119222 2005-03-25  Jim Meyering  <jim@meyering.net>
119224         * modules/xvasprintf (Files): Add xalloc.h.
119226 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
119228         * modules/gettext (Files): config/config.rpath ->
119229         build-aux/config.rpath
119230         * modules/iconv (Files): Likewise.
119231         Problem reported by Oskar Liljeblad.
119233 2005-03-23  Jim Meyering  <jim@meyering.net>
119235         * modules/check-include-files: New script to check for
119236         missing dependencies, multiple includes, etc.
119238         * modules/c-strtold (Depends-on): Add xalloc.
119239         * modules/c-strtod (Depends-on): Add xalloc.
119240         * modules/hash (Depends-on): Add xalloc.
119241         (Files): Remove lib/xalloc.h.
119243         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
119244         * modules/userspec (Files): Add lib/inttostr.h.
119246 2005-03-23  Jim Meyering  <jim@meyering.net>
119248         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
119250 2005-03-22  Jim Meyering  <jim@meyering.net>
119252         * modules/stat-macros: New module.
119253         * modules/canonicalize, modules/euidaccess, modules/file-type,
119254         * modules/filemode, modules/lchown, modules/makepath,
119255         * modules/rmdir, modules/stat: Depend on new stat-macros module
119256         rather than listing lib/stat-macros.h manually.
119257         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
119259 2005-03-22  Jim Meyering  <jim@meyering.net>
119261         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
119263 2005-03-22  Bruno Haible  <bruno@clisp.org>
119265         * config/srclist.txt: Replace target directory 'config' with
119266         'build-aux'.
119267         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
119268         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
119269         ../build-aux/.
119271 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
119273         * modules/chdir-long (Depends-on): Add mempcpy.
119275         * modules/acl, modules/backupfile, modules/c-strtod,
119276         modules/c-strtold, modules/canon-host, modules/canonicalize,
119277         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
119278         modules/exclude, modules/exitfail, modules/file-type,
119279         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
119280         modules/getdate, modules/getline, modules/getpagesize,
119281         modules/getpass, modules/getugroups, modules/group-member,
119282         modules/hard-locale, modules/hash, modules/human, modules/idcache,
119283         modules/inttostr, modules/long-options, modules/makepath,
119284         modules/md5, modules/memcasecmp, modules/memcoll,
119285         modules/modechange, modules/mountlist, modules/path-concat,
119286         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
119287         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
119288         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
119289         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
119290         modules/strftime, modules/strndup, modules/strverscmp,
119291         modules/timespec, modules/unlocked-io, modules/userspec,
119292         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
119293         modules/yesno:
119294         Remove lib_SOURCES line from Makefile.am section, as this is now
119295         done automatically by the corresponding Autoconf macro.
119297 2005-03-21  Jim Meyering  <jim@meyering.net>
119299         Changes imported from coreutils.
119301         * lib/cycle-check.c: Don't include xalloc.h.
119303         * lib/path-concat.c: Don't include assert.h.
119304         (path_concat): Remove assertion that would have triggered
119305         for ABASE starting with more than one slash.
119306         Reported by Andreas Schwab.
119308         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
119309         properly when ABASE is an absolute file name.
119310         Correct the description of this function.
119311         Include <assert.h>.
119312         Add an assertion and a test driver.
119313         This fixes a bug introduced on 2004-07-02.
119314         Andreas Schwab reported the resulting failure of cp --parents:
119315         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
119317 2005-03-21  Jim Meyering  <jim@meyering.net>
119319         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
119320         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
119322 2005-03-21  Jim Meyering  <jim@meyering.net>
119323         and  Paul Eggert  <eggert@cs.ucla.edu>
119325         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
119326         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
119327         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
119328         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
119329         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
119330         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
119331         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
119332         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
119333         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
119334         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
119335         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
119336         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
119337         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
119338         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
119339         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
119340         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
119341         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
119342         for these modules.
119344 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
119346         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
119347         (which shouldn't happen), generate nothing instead of returning 0
119348         immediately, so that nstrftime (NULL, ...) doesn't return 0.
119350 2005-03-16  Bruno Haible  <bruno@clisp.org>
119352         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
119353         HAVE_LONGLONG_64BIT.
119355 2005-03-16  Bruno Haible  <bruno@clisp.org>
119357         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
119358         HAVE_LONGLONG_64BIT.
119360 2005-03-16  Bruno Haible  <bruno@clisp.org>
119362         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
119363         HAVE_LONGLONG_64BIT.
119365 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119367         * lib/strftime.c (my_strftime): Prepend space to format so that we can
119368         reliably distinguish strftime failure from empty output on POSIX
119369         hosts.
119371 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119373         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
119374         (iconv_string): Don't guess a size-zero buffer, as that might cause
119375         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
119376         result would be 'too large', where 'too large' is (heuristically)
119377         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
119378         overflow concerns.  This will prevent some unwanted malloc failures
119379         when the inputs are very large.
119381 2005-03-15  Karl Berry  <karl@gnu.org>
119383         * config/srclist.txt (config.rpath): from gettext.
119384         * config/config.rpath: update.
119386 2005-03-15  Bruno Haible  <bruno@clisp.org>
119388         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
119389         to 'negate'.
119391         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
119392         variable.
119394         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
119395         results.
119397 2005-03-14  Simon Josefsson  <jas@extundo.com>
119399         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
119400         <fx@gnu.org>.
119402 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
119404         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
119405         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
119406         intprops.h.
119407         * lib/strtol.c: Likewise.
119409 2005-03-14  Jim Meyering  <jim@meyering.net>
119411         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
119412         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
119413         to be nonzero so that we (and caller) can detect the difference
119414         between a valid zero-length expansion and an error return, even
119415         when the underlying strftime fails before writing anything into
119416         that location.
119418 2005-03-14  Bruno Haible  <bruno@clisp.org>
119420         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
119421         Update from GNU gettext 0.14.3.
119423 2005-03-10  Jim Meyering  <jim@meyering.net>
119425         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
119427 2005-03-10  Jim Meyering  <jim@meyering.net>
119429         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
119430         so that this module works on systems without fchdir.
119432 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
119434         Factor int-properties macros into a single file, except for
119435         glibc-related files.
119436         * lib/intprops.h: New file.
119437         * lib/getloadavg.c: Include it instead of limits.h.
119438         (INT_STRLEN_BOUND): Remove.
119439         * lib/human.c: Include intprops.h.
119440         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
119441         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
119442         302/1000.
119443         * lib/inttostr.h: Include intprops.h instead of limits.h.
119444         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
119445         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
119446         for consistency with intprops.h.
119447         (time_t_is_integer, twos_complement_arithmetic): Use them.
119448         * lib/sig2str.h: Include <signal.h>, intprops.h.
119449         (INT_STRLEN_BOUND): Remove.
119450         * lib/strftime.c (TYPE_SIGNED): Remove.
119451         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
119452         * lib/strtol.c: Adjust comments to match intprops.h.
119453         * lib/userspec.c: Include intprops.h.
119454         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
119455         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
119456         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
119457         instead of rolling our own expressions.
119458         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
119460         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
119461         instead of int.
119462         (my_strftime): Do not mishandle years close to INT_MAX, by doing
119463         the right thing even if adding 1900 would overflow.  Similarly
119464         for tm_mon + 1 and tm_yday + 1.
119465         Make %Y always equivalent to %C%y, and similarly for %G and %g.
119466         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
119467         (DO_SIGNED_NUMBER): New macro.
119468         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
119470 2005-03-07  Bruno Haible  <bruno@clisp.org>
119472         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
119474 2005-03-07  Bruno Haible  <bruno@clisp.org>
119476         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
119478 2005-03-04  Derek R. Price  <derek@ximbiot.com>
119480         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
119481         (func_import): Only replace files via --import when they have actually
119482         changed.
119484 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119486         * m4/mmap-anon.m4: New file.
119487         * m4/pagealign_alloc.m4: New file.
119489 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119490             Bruno Haible  <bruno@clisp.org>
119492         * modules/pagealign_alloc: New file.
119493         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
119495 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119496             Bruno Haible  <bruno@clisp.org>
119498         * lib/pagealign_alloc.h: New file.
119499         * lib/pagealign_alloc.c: New file.
119501 2005-03-03  Bruno Haible  <bruno@clisp.org>
119503         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
119504         Use an all-permissive copyright notice, recommended by RMS.
119506 2005-03-02  Bruno Haible  <bruno@clisp.org>
119508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
119509         of AIX, the replacement has to be done only after <string.h> is
119510         included, therefore not in config.h. stpncpy.h does the replacement,
119511         and stpncpy.c uses it.
119513 2005-03-02  Bruno Haible  <bruno@clisp.org>
119515         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
119516         stpncpy.c uses it.
119518 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119520         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
119521         The workaround isn't strictly needed for POSIX conformance, and
119522         it's too much of a pain to configure and maintain.  We'll ask
119523         people to fix their kernels instead.
119524         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
119525         (NANOSLEEP_BUG_WORKAROUND): Remove.
119526         (xnanosleep): Remove the workaround.
119528 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119530         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
119531         Reported by Derek Price.
119532         (Include): Add "timespec.h".
119534         * modules/xnanosleep (Depends-on): Remove gethrxtime.
119536 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119538         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
119539         to detect nanosleep bug.
119541 2005-03-01  Bruno Haible  <bruno@clisp.org>
119543         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
119545 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
119547         * modules/gethrxtime: New file.
119548         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
119549         (Depends-on): Add gethrxtime.
119550         (configure.ac): Add gl_XNANOSLEEP.
119551         (Makefile.am): Remove lib_SOURCES line.
119553 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119555         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
119556         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
119558 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119560         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
119561         * lib/timespec.h (gettime): Return void, since it always
119562         succeeds now.  All uses changed.
119563         * lib/gettime.c (gettime): Likewise.
119564         [HAVE_NANOTIME]: Prefer nanotime.
119565         Assume gettimeofday succeeds, as POSIX requires.
119566         Assime time () succeeds, since other code already does.
119567         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
119568         (timespec_subtract): Remove.
119569         (NANOSLEEP_BUG_WORKAROUND): New constant.
119570         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
119571         things considerably.  Use it only on GNU/Linux hosts, since the
119572         workaround shouldn't be needed elsewhere.
119574 2005-02-24  Bruno Haible  <bruno@clisp.org>
119576         * modules/gettext (Files): Add m4/glibc2.m4.
119578 2005-02-24  Bruno Haible  <bruno@clisp.org>
119580         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
119581         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
119582         * m4/progtest.m4:
119583         Update from GNU gettext 0.14.2.
119584         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
119586 2005-02-24  Bruno Haible  <bruno@clisp.org>
119588         * lib/localcharset.c: Update from GNU gettext 0.14.2.
119589         * lib/config.charset: Update from GNU gettext 0.14.2.
119591 2005-02-24  Bruno Haible  <bruno@clisp.org>
119593         * lib/gettext.h: Update from GNU gettext 0.14.2.
119595 2005-02-23  Simon Josefsson  <jas@extundo.com>
119597         * m4/iconvme.m4: New file.
119599 2005-02-23  Jim Meyering  <jim@meyering.net>
119601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
119602         change.
119603         Thanks to Bruno Haible for catching it.
119605 2005-02-22  Simon Josefsson  <jas@extundo.com>
119607         * modules/iconvme: New file.
119609         * MODULES.html.sh: Add iconvme.
119611 2005-02-22  Simon Josefsson  <jas@extundo.com>
119613         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
119615 2005-02-22  Simon Josefsson  <jas@extundo.com>
119617         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
119619 2005-02-22  Jim Meyering  <jim@meyering.net>
119621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
119622         s/ifndef/ifdef/.
119624 2005-02-20  Neil Conway  <neilc@samurai.com>
119626         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
119627         returned by OSX/Darwin if the specified buffer is not large
119628         enough for the hostname.
119630 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119632         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
119633         pass it to _help, otherwise the latter coredumps trying to
119634         dereference state.root_argp.
119636 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119638         * modules/chdir-long (Depends-on): Add memrchr.
119639         * modules/memrchr (Files): Add lib/memrchr.h.
119640         (Include): "memrchr.h".
119642 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119644         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
119646 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119648         * lib/memrchr.h: New file.
119649         * lib/chdir-long.c: Include it.
119650         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
119651         Don't bother including stddef.h.
119653 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
119655         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
119656         inclusion.
119657         Include <sys/types.h>, for dev_t.
119658         (ME_DUMMY, ME_REMOTE): Move from here....
119659         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
119660         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
119661         Dmitry V. Levin.
119662         Include mountlist.h first, to test the interface.
119664 2005-01-29  Bruno Haible  <bruno@clisp.org>
119666         * lib/progname.c (program_name): Initialize.
119667         Needed when linking statically on MacOS X.
119669 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119671         Sync from coreutils.
119672         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119673         (Depends-on): Add c-strtod.
119674         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119676 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119678         Sync from coreutils.
119679         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119681         Remove files that are specific to coreutils.
119682         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119684 2005-01-28  Bruno Haible  <bruno@clisp.org>
119686         * modules/javacomp: New file.
119687         * MODULES.html.sh (Java): Add javacomp.
119689 2005-01-28  Bruno Haible  <bruno@clisp.org>
119691         * m4/javacomp.m4: New file, from GNU gettext.
119693 2005-01-28  Bruno Haible  <bruno@clisp.org>
119695         * lib/javacomp.sh.in: New file, from GNU gettext.
119696         * lib/javacomp.h: New file, from GNU gettext.
119697         * lib/javacomp.c: New file, from GNU gettext.
119699 2005-01-26  Simon Josefsson  <jas@extundo.com>
119701         * lib/gai_strerror.c: Use GPL in header.
119703 2005-01-26  Bruno Haible  <bruno@clisp.org>
119705         * modules/javaexec: New file.
119706         * MODULES.html.sh (Java): Add javaexec.
119708 2005-01-26  Bruno Haible  <bruno@clisp.org>
119710         * m4/javaexec.m4: New file, from GNU gettext.
119712 2005-01-26  Bruno Haible  <bruno@clisp.org>
119714         * lib/javaexec.sh.in: New file, from GNU gettext.
119715         * lib/javaexec.h: New file, from GNU gettext.
119716         * lib/javaexec.c: New file, from GNU gettext.
119718 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119720         * modules/lchown (Depends-on): Remove lchown.h
119722 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119724         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
119725         must be defined if the header file was not found, in order
119726         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
119728 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119730         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
119731         initializers for struct pentry_state.
119732         (__argp_error): Check return value of __asprintf
119733         (__argp_failure): Translate error message
119735         * lib/argp-parse.c: Removed braces around the expansion of N_()
119737 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
119739         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
119740         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
119741         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
119742         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
119743         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
119744         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
119745         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
119746         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
119747         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
119748         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
119749         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
119750         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
119751         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
119752         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
119753         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
119754         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
119755         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
119756         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
119757         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
119758         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
119759         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
119760         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
119761         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
119762         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
119763         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
119764         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
119765         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
119766         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
119767         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
119768         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
119769         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
119770         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
119771         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
119772         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
119773         xstrtol.m4, xstrtoumax.m4, yesno.m4:
119774         Use an all-permissive copyright notice, recommended by RMS.
119776 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
119778         * modules/chdir-long (Depends-on): Remove mempcpy.
119780 2005-01-21  Jim Meyering  <jim@meyering.net>
119782         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
119783         same value as for Solaris 9.
119785         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
119786         component length.  This included changing the parameter to be
119787         of type `char *' rather than `char const *'.
119788         * lib/chdir-long.h (chdir_long): Update prototype.
119790         * lib/openat.c (fdopendir, fstatat): New functions.
119791         * lib/openat.h: Include headers required for use of DIR and struct
119792         stat.
119793         [AT_SYMLINK_NOFOLLOW]: Define.
119794         (fdopendir, fstatat): Add prototypes.
119796 2005-01-21  Bruno Haible  <bruno@clisp.org>
119798         * modules/classpath: New file.
119799         * MODULES.html.sh (Java): Add classpath.
119801 2005-01-21  Bruno Haible  <bruno@clisp.org>
119803         * lib/classpath.h: New file, from GNU gettext.
119804         * lib/classpath.c: New file, from GNU gettext.
119806 2005-01-20  Simon Josefsson  <jas@extundo.com>
119808         * modules/version-etc-fsf: New file.
119810 2005-01-20  Simon Josefsson  <jas@extundo.com>
119812         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119813         * lib/version-etc.c: Remove version_etc_copyright.
119814         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119815         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119817 2005-01-20  Simon Josefsson  <jas@extundo.com>
119819         * lib/base64.h (isbase64): Add.
119821         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119822         using a unsigned prototype, don't inline.
119823         (base64_decode): Use it.
119825 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119827         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119828         it.
119830 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119832         * lib/save-cwd.c (save_cwd): Remove code to support the case
119833         where fchdir is missing or flaky.
119835 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119837         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119839 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119841         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119842         AC_LIBSOURCES now does this.
119843         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119844         with new ullong_max module.
119846 2005-01-19  Bruno Haible  <bruno@clisp.org>
119848         * modules/sh-quote: New file.
119849         * MODULES.html.sh (Executing programs): Add sh-quote.
119851 2005-01-19  Bruno Haible  <bruno@clisp.org>
119853         * lib/sh-quote.h: New file, from GNU gettext.
119854         * lib/sh-quote.c: New file, from GNU gettext.
119856 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119858         Merge from coreutils.
119859         * m4/ullong_max.m4: New file.
119860         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119861         (gl_MACROS): Assume localeconv exists.
119863 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119865         Merge changes from coreutils, as described below in several
119866         changelogs dated today.
119868         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119869         (O_DIRECTORY): Remove; not needed here, since "." must be
119870         a directory.  All uses removed.
119871         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119872         universal on Suns, and we also need to test for IRIX.
119873         Revamp code to use 'if' rather than '#if'.
119874         Avoid unnecessary comparison of cwd->desc to 0.
119876         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119877         for known valid error numbers rather than observed invalid ones.
119879 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119881         * modules/ullong_max: New file.
119883         * modules/chdir-long, modules/openat: New files.
119884         * modules/save-cwd (Depends-on): Depend on chdir-long.
119885         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119887 2005-01-18  Jim Meyering  <jim@meyering.net>
119889         Merge from coreutils.
119890         * m4/chdir-long.m4, m4/openat.m4: New files.
119891         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119892         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119893         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119894         is sane and DOES follow symlinks.  Besides, testing 20 different
119895         systems found no broken chown implementations.
119896         Prompted by a change in rsync's copy of this macro.
119897         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119901         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119902         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119903         NULL-means-set-to-current-time semantics.
119904         Remove temporary file immediately, rather than waiting
119905         for configure's at-exit trap code to do it.
119907 2005-01-18  Jim Meyering  <jim@meyering.net>
119909         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119911         * lib/utimens.c (futimens): Account for the fact that futimes
119912         can also fail with errno == ENOSYS or errno == ENOENT.
119913         Patch from Dmitry V. Levin.
119915         Change the name of the robust chdir function from chdir to chdir_long.
119916         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119917         (restore_cwd): Use chdir_long, not chdir.
119918         * lib/chdir-long.c: Renamed from chdir.c.
119919         * lib/chdir-long.h: Renamed from chdir.h.
119920         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119921         Hurd.
119923 2005-01-18  Bruno Haible  <bruno@clisp.org>
119925         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119926         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119927         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119928         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119929         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119930         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119931         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119932         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119933         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119934         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119935         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119936         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119937         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119938         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119939         Use an all-permissive copyright notice, recommended by RMS.
119941 2005-01-18  Bob Proulx  <bob@proulx.com>
119943         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119944         simplify offsetof() macro construct to avoid compile failure with
119945         native HP-UX 11.0 ANSI C compiler.
119947 2005-01-17  Bruno Haible  <bruno@clisp.org>
119949         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119950         redundant because stpncpy.m4 takes care of it.
119952 2005-01-17  Bruno Haible  <bruno@clisp.org>
119954         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119956 2005-01-17  Bruno Haible  <bruno@clisp.org>
119958         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119959         used.
119961 2005-01-17  Bruno Haible  <bruno@clisp.org>
119963         * lib/fwriteerror.h (fwriteerror): Change specification to include
119964         fclose.
119965         * lib/fwriteerror.c: Include <stdbool.h>.
119966         (fwriteerror): At the end, close the file stream. Record whether
119967         stdout was already closed.
119969 2005-01-17  Bruno Haible  <bruno@clisp.org>
119971         * lib/execute.c (environ): Declare if needed.
119972         * lib/pipe.c (environ): Likewise.
119973         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119975 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119977         * modules/argp: Depend on vsnprintf
119979 2005-01-10  Jim Meyering  <jim@meyering.net>
119981         * modules/closeout (Depends-on): Add atexit.
119983 2005-01-06  Bruno Haible  <bruno@clisp.org>
119985         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119987 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119989         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119990         definitions to be after all include files, to avoid collisions.
119991         Problem reported by Bob Proulx.
119993 2005-01-04  Jim Meyering  <jim@meyering.net>
119995         Changes imported from coreutils.
119996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119997         as the mkstemp template, use a temporary directory and an
119998         8.3-friendly template to avoid trouble on systems like DJGPP.
119999         Reported by Juan M. Guerrero via Stepan Kasal.
120000         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
120001         close. Remove the temporary directory right away, rather than waiting
120002         for configure's at-exit trap code to do it.
120003         Suggestion from Stepan Kasal.
120005 2005-01-01  Simon Josefsson  <jas@extundo.com>
120007         * gnulib-tool: Print #include directives when --import'ing.
120009 2004-12-28  Simon Josefsson  <jas@extundo.com>
120011         * tests/test-base64.c: Include required header files.  Remove
120012         unused variables.
120014 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120016         * modules/error (Depends-on): Remove gettext.
120018 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120020         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
120021         not needed.  This removes a dependency on the gettext module.
120022         [defined _LIBC]: Do not include <libintl.h>; not needed.
120024 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120026         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
120027         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
120029 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120031         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
120032         HAVE_DECL_STRTOLD.
120034 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120036         * modules/getdate (Depends-on): Remove alloca-opt.
120038 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120040         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
120042 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120044         * lib/argp-parse.c: Include <stddef.h>.
120045         (alignof, alignto): New macros.
120046         (parser_init): Don't assume that void * is aligned sufficiently
120047         for struct option.
120049         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
120050         need to extend the stack.
120051         (YYINITDEPTH): New macro, so that the initial stack isn't overly
120052         large.
120054 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120056         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
120058 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120060         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
120061         (2004-10-24) change.  Apparently this was a false alarm.
120063         * modules/getdate: Depend on alloca-opt, not alloca.
120065 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120067         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
120068         Remove now-obsolete comment about AIX.
120069         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
120070         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
120071         (YYMAXDEPTH): New macro.
120073 2004-12-18  Simon Josefsson  <jas@extundo.com>
120075         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
120077 2004-12-18  Bruno Haible  <bruno@clisp.org>
120079         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
120081 2004-12-18  Bruno Haible  <bruno@clisp.org>
120083         * lib/fatal-signal.c (fatal_signals): Make non-const.
120084         (init_fatal_signals): New function.
120085         (uninstall_handlers, install_handlers): Ignore signals that were set to
120086         SIG_IGN.
120087         (at_fatal_signal): Call init_fatal_signals.
120088         (init_fatal_signal_set): Likewise. Ignore signals that were set to
120089         SIG_IGN.
120090         Reported by Paul Eggert.
120092 2004-12-18  Bruno Haible  <bruno@clisp.org>
120094         * doc/alloca.texi: New file.
120095         * doc/alloca-opt.texi: New file.
120097 2004-12-17  Jim Meyering  <jim@meyering.net>
120099         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
120100         Otherwise, install-sh could exit with improper exit status when
120101         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
120103 2004-12-16  Simon Josefsson  <jas@extundo.com>
120105         * tests/test-base64.c: Add license.
120107 2004-12-15  Stepan Kasal  <address@hidden>
120109         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
120111 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120113         * modules/getcwd (Files): Add m4/d-ino.m4.
120114         Suggested by Mark D. Baushke.
120116 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120118         * lib/getdate.y (textint): New member "negative".
120119         (time_zone_hhmm): New function.
120120         Expect 14 shift-reduce conflicts, not 13.
120121         (o_colon_minutes): New rule.
120122         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
120123         (yylex): Set the "negative" member of signed numbers.
120125 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120127         * doc/getdate.texi (Time of day items, Time zone items):
120128         Describe new formats +00:00, UTC+00:00.
120130 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
120132         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
120133         spurious "-l"s.  Problem reported by Stepan Kasal.
120135 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
120137         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
120138         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
120140 2004-12-04  Simon Josefsson  <jas@extundo.com>
120142         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
120143         Vandoorselaere <yoann@prelude-ids.org>.
120145 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120147         Changes imported from coreutils.
120148         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
120149         exist.
120150         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
120152 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120154         Changes imported from coreutils.
120155         * lib/hard-locale.c: Assume <locale.h> exists.
120156         Include "strdup.h".
120157         (GLIBC_VERSION): New macro.
120158         (hard_locale): Assume setlocale exists.
120159         Rewrite to avoid #ifdef.
120160         Use strdup rather than malloc + strcpy.
120161         * lib/human.c: Assume <locale.h> exists.
120162         (human_readable): Assume localeconv exists.
120164 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120166         * modules/hard-locale (Depends-on): Add strdup.
120168 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
120170         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
120171         convert T2, not T.  (Imported from libc.)
120173 2004-11-30  Simon Josefsson  <jas@extundo.com>
120175         * modules/restrict (License): Change to LGPL.
120177 2004-11-30  Simon Josefsson  <jas@extundo.com>
120179         * m4/restrict.m4: Add copyright and copying conditions.
120181 2004-11-30  Simon Josefsson  <jas@extundo.com>
120183         * m4/base64.m4: New file.
120185 2004-11-30  Simon Josefsson  <jas@extundo.com>
120187         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
120188         base64.
120190         * tests/test-base64.c: New file.
120192         * modules/base64: New file.
120194 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120196         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
120197         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
120199         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
120201 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120203         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
120204         (__getcwd.c): Don't restore errno; glibc doesn't.
120205         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
120206         first, falling back to our code only if its results look suspicious.
120207         Ensure that the resulting buffer is only as large as necessary.
120209         * lib/readutmp.c: Include readutmp.h first.
120210         Include <errno.h>, since readutmp.h no longer does that.
120211         * lib/readutmp.h: Don't include <errno.h>,
120212         <sys/param.h>, <time.h>; not needed to establish interface.
120213         (errno): Remove decl.
120214         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
120215         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
120216         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
120218 2004-11-28  Simon Josefsson  <jas@extundo.com>
120220         * lib/base64.h, base64.c: New file.
120222 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
120224         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
120226 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
120228         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
120229         (Depends-on): Remove pathmax, same.  Add mempcpy.
120230         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
120231         (Makefile.am): Append getcwd.h to lib_SOURCES.
120232         (Include): Add getcwd.h.
120233         (Maintainer): Change from Jim Meyering to "all, glibc",
120234         since getdate now uses intended-for-glibc code.
120235         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
120236         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
120238 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120240         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
120241         HP's ANSI C compiler.
120242         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
120243         Declaring int functions causes warnings on some modern systems and
120244         shouldn't be needed to compile on ancient ones.
120245         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
120246         defined.
120248         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
120249         with the following changes.
120250         (__set_errno): Parenthesize properly.
120251         Include <stdbool.h>.
120252         (MIN, MAX, MATCHING_INO): New macros.
120253         (__getcwd): Define with prototype, not K&R form.
120254         Use heuristics to allocate default buffer on stack if possible.
120255         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
120256         behavior, and to avoid the PATH_MAX limit when computing
120257         ../../../../...
120258         Use MATCHING_INO to compare inode number to file.
120259         Check for arithmetic overflow in size calculations.
120260         Fix bug in reallocation of dot array that caused getcwd to fail
120261         on directories nested deeper than 75.
120262         Be more careful about saving errno on error.
120263         Do not use realloc; use only free+malloc, as this is a bit
120264         more flexible and avoids a needless copy operation.
120265         Do not inspect st_dev and st_ino for symbolic links; POSIX
120266         doesn't specify the latter.
120267         Check for closedir errors.
120268         Avoid needless casts.
120269         Use "#ifdef weak_alias" around weak_alias, to be like other
120270         glibc code.
120271         The following changes to getcwd.c have effect only when used in
120272         gnulib; they have no effect inside glibc proper.
120273         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
120274         as alloca isn't used.
120275         (alloca, __alloca): Likewise.
120276         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
120277         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
120278         unconditionally, as gnulib assumes C89 or better.
120279         Do not include <sys/param.h>.
120280         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
120281         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
120282         better.
120283         (NULL) [!defined NULL]: Remove; we assume C89 or better.
120284         Include <dirent.h> in a way that is compatible with modern Autoconf.
120285         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
120286         New macros, if not already defined.
120287         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
120288         Use "_LIBC", not "defined _LIBC", for consistency.
120289         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
120290         a mempcpy module.
120291         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
120292         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
120293         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
120294         credit only to Jim Meyering and adjust the copyright dates.
120295         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
120296         <stdlib.h>, <unistd.h>, "pathmax.h".
120297         Instead, include "xgetcwd.h" (first) and "getcwd.h".
120298         (INITIAL_BUFFER_SIZE): Remove.
120299         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
120301 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120303         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
120304         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
120305         Use the _ONCE methods, for efficiency.
120306         Check for fcntl.h.  In test program, include <errno.h>
120307         and <fcntl.h> if available.  Remove old K&R cruft from
120308         test program.  Check for common errors in GNU/Linux,
120309         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
120310         don't do AC_LIBOBJ, as that's getcwd.m4's job.
120311         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
120312         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
120313         name accordingly.
120314         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
120315         accommodate new getcwd.c.
120316         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
120317         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
120318         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
120319         that's all we need now.
120321 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120323         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
120324         argp-parse.c depends on getopt internals, that means we should
120325         always use our getopt, to be on the safe side.
120326         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
120327         order not to spoil the result of an eventual previous invocation
120328         of gl_GETOPT_SUBSTITUTE.
120330 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120332         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
120333         redefinition warnings. To avoid them, include the defines
120334         in `#if !defined __need_getopt ... #endif'. The only place
120335         where __getopt_argv_const is used is in definitions
120336         of getopt_long and getopt_long_only below, which are as well
120337         protected by `#ifndef __need_getopt'.
120338         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
120339         __need_getopt after including <stdio.h> and <unistd.h> These
120340         headers might have defined it.
120342 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120344         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
120346 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120348         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
120349         (futimens): New function, which uses futimes if available.
120350         (futimens, utimens): Support timespec==NULL, with same semantics
120351         as utime and utimens.
120352         * lib/utimens.h (futimens): New decl.
120354 2004-11-23  Jim Meyering  <jim@meyering.net>
120356         * lib/getopt_.h: Remove trailing blanks.
120358 2004-11-23  Jim Meyering  <jim@meyering.net>
120360         * lib/__fpending.c: Add comment.
120362 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
120364         * modules/canonicalize (Depends-on): Add xreadlink.
120365         Problem reported by James Youngman.
120367 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
120369         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
120370         New macros.
120371         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
120372         optopt): Use them instead of invoking ## directly; otherwise, the
120373         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
120375 2004-11-19  Bruno Haible  <bruno@clisp.org>
120377         * lib/strtok_r.c: Move comments from here...
120378         * lib/strtok_r.h: ... to here.
120380 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120382         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
120383         implementations that mishandle size_t overflow.
120385 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120387         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
120388         might fail.  Problem reported by Yoann Vandoorselaere.
120389         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
120390         implementations that mishandle size_t overflow.
120392 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120394         * modules/canon-host (Depends-on): Add strdup.
120396 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120398         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
120400 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120402         * lib/canon-host.c: Include "strdup.h".
120403         (canon_host): Use getaddrinfo if available, so that IPv6 works.
120404         Use strdup instead of malloc/strcpy to duplicate strings.
120406         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
120407         (human_space_before_unit): New constant.
120408         * lib/human.c (human_readable): Support it.
120410         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
120411         (xgetcwd): Set errno correctly when failing.
120412         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
120413         the failure is actually due to a PATH_MAX problem.
120415         Further getopt changes to make it more likely that glibc will
120416         buy the changes back.
120417         * lib/getopt.c (POSIXLY_CORRECT): New constant.
120418         (getopt): Use it, so to preserve glibc semantic
120419         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
120420         when compiling for libc.
120421         * lib/getopt_.h (__getopt_argv_const): Bring it back.
120422         (getopt_long, getopt_long_only): Use it.
120424         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120425         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
120426         (getopt): Argv is now char * const *, as per standard.
120427         (_getopt_internal_r, _getopt_internal): Argv is now char **,
120428         not char *__getopt_argv_const *.
120429         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120430         _getopt_long_only_r): Likewise.
120431         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
120432         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120433         _getopt_long_r, _getopt_long_only_r): Likewise.
120434         * lib/getopt_.h (__getopt_argv_const): Remove.
120435         (getopt): Argv is now char * const *, as per standard.
120437         * lib/getdate.y (tORDINAL): New token.
120438         (day, relunit): Allow it for relative times.
120439         (relative_time_table): Use tORDINAL for ordinals.
120441 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120443         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
120444         Document that "second" isn't allowed as an ordinal number.
120446 2004-11-16  Jim Meyering  <jim@meyering.net>
120448         * modules/closeout (Depends-on): Add fpending.
120450 2004-11-15  Jim Meyering  <jim@meyering.net>
120452         * lib/closeout.c: Include "__fpending.h" once again.
120453         Include <stdbool.h>.
120454         (close_stdout): Don't fail just because stdout was closed initially,
120455         since some programs don't write to stdout in the normal course of
120456         operation (other than --version and --help), and we don't want this
120457         function to make e.g. `touch file >&-' fail.
120458         But do fail if it was closed and someone has tried to write to it.
120459         E.g., `printf foo >&-' must fail.
120461 2004-11-13  Jim Meyering  <jim@meyering.net>
120463         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
120465 2004-11-12  Simon Josefsson  <jas@extundo.com>
120467         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
120468         small doc fix is still pending.
120470 2004-11-11  Simon Josefsson  <jas@extundo.com>
120472         * modules/strtok_r: New file.
120474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120475         strtok_r.
120477 2004-11-11  Simon Josefsson  <jas@extundo.com>
120479         * m4/strtok_r.m4: New file.
120481         * m4/getopt.m4: Replace opterr.
120483 2004-11-11  Simon Josefsson  <jas@extundo.com>
120485         * lib/strtok_r.h, strtok_r.c: New file.
120487 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120489         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
120490         of replacing opterr, getopt, etc.  This should handle the
120491         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
120493 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120495         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
120496         we can stop lying to compilers about the constness of argv when we
120497         are compiled outside glibc.
120498         (getopt, getopt_long, getopt_long_only): Use it.
120499         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120500         _getopt_internal, getopt): Likewise.
120501         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120502         _getopt_long_only_r): Likewise.
120503         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120504         _getopt_long_r, _getopt_long_only_r): Likewise.
120506         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
120507         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
120508         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
120509         the other external symbols.
120510         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
120511         declaration, since the above renaming now works around collisions.
120513 2004-11-11  Jim Meyering  <jim@meyering.net>
120515         * lib/linebreak.c: Remove trailing blanks.
120516         * lib/alloca_.h: Likewise.
120517         * lib/acosl.c: Likewise.
120518         * lib/euidaccess.c: Likewise.
120519         * lib/allocsa.h: Likewise.
120521 2004-11-10  Simon Josefsson  <jas@extundo.com>
120523         * m4/getaddrinfo.m4: New file.
120525 2004-11-10  Simon Josefsson  <jas@extundo.com>
120527         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
120529 2004-11-10  Simon Josefsson  <jas@extundo.com>
120531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120532         getaddrinfo.
120534         * modules/getaddrinfo: New file.
120536 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120538         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
120540 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120542         * lib/mktime.c (SHR): New macro, which is a portable
120543         substitute for >> that should work even on Crays.
120544         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
120545         Problem reported by Mark D. Baushke in
120546         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
120547         * lib/getdate.y (SHR): Likewise.
120548         (tm_diff): Use it.
120549         * lib/strftime.c (SHR): Likewise.
120550         (tm_diff): Use it.
120551         * lib/quotearg.c (struct quoting_options): Use unsigned int for
120552         quote_these_too, so that right shifts are well defined.  All uses
120553         changed.
120555 2004-11-10  Jim Meyering  <jim@meyering.net>
120557         Ensure that no close failure goes unreported.
120558         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
120559         return early when it seems there's nothing to flush.
120560         Don't include __fpending.h.
120562 2004-11-10  Jim Meyering  <jim@meyering.net>
120564         * modules/closeout (Depends-on): Remove fpending.
120566 2004-11-10  Jim Meyering  <jim@meyering.net>
120568         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
120570 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120572         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
120573         gl_FUNC_STRFTIME.
120574         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
120575         and AC_REQUIRE when possible, to avoid duplicate checks.
120576         Check for <wchar.h>.
120578 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120580         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
120582 2004-11-09  Bruno Haible  <bruno@clisp.org>
120584         * m4/sockpfaf.m4: New file.
120586 2004-11-05  Bruno Haible  <bruno@clisp.org>
120588         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
120589         Reported by Mark D. Baushke <mdb@cvshome.org>.
120591 2004-11-04  Bruno Haible  <bruno@clisp.org>
120593         2004-09-11  Bruno Haible  <bruno@clisp.org>
120594                 * allocsa.valgrind: New file.
120595         2004-02-06  Bruno Haible  <bruno@clisp.org>
120596                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
120597                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
120598                 Reported by Christopher Seip <chris.seip@hp.com>.
120600 2004-11-04  Bruno Haible  <bruno@clisp.org>
120602         * modules/allocsa (Files): Add lib/allocsa.valgrind.
120603         (Makefile.am): Distribute it.
120605 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
120607         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
120608         with errno == ERANGE if the buffer is too small.
120609         Problem reported by Mark D. Baushke.
120611 2004-11-03  Albert Chin  <china@thewrittenword.com>
120612             Paul Eggert  <eggert@cs.ucla.edu>
120614         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
120615         equivalent, substitute $ac_type for equivalent type rather than
120616         blindly using uint32_t *always* which won't work if uint32_t is not
120617         available.  Define _UINT32_T to work around typedef of uint32_t if
120618         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
120619         2.5.1.
120621 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120623         * m4/jm-macros.m4: Sync from coreutils.
120624         (gl_MACROS): Check for mbrlen, for pathchk.
120625         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
120627 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120629         * lib/xreadlink.c (MAXSIZE): New macro.
120630         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
120631         size does not exceed MAXSIZE.  Avoid cast.
120632         As suggested by Mark D. Baushke in
120633         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
120634         if readlink fails with buffer size just under MAXSIZE, try again
120635         with MAXSIZE.
120637 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120639         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
120641 2004-11-02  Derek R. Price  <derek@ximbiot.com>
120642         and  Paul Eggert  <eggert@cs.ucla.edu>
120644         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
120645         (get_date): Overparenthesize to avoid GCC warning.
120647 2004-11-02  Bruno Haible  <bruno@clisp.org>
120649         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
120650         returns void.
120652 2004-11-02  Bruno Haible  <bruno@clisp.org>
120654         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
120655         function returns void.
120657 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
120660         fflush_unlocked, flockfile, funlockfile, funlockfile,
120661         fputs_unlocked, putc_unlocked.
120663 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120665         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120666         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120667         already declared.
120669 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120671         * modules/getdate (Files): Add doc/getdate.texi.
120672         (Depends-on): Add setenv, xalloc.
120674 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120676         * lib/getdate.y: Add support for TZ="foo" within a date string.
120677         Fix some bugs near time_t boundaries.  Reject dates with
120678         out-of-range components, e.g., "Sept 31".
120679         Include <stdlib.h>, "setenv.h", "xalloc.h".
120680         (ISDIGIT_LOCALE): Remove; unused.
120681         Note that the TZ and time functions used here are not reentrant.
120682         (mktime_ok, get_tz): New functions.
120683         (TZBUFSIZE): New constant.
120684         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120685         This requires that we sometimes generate our own TZ="XXX..." setting.
120687 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120689         * doc/getdate.texi: New file, from coreutils with modifications for
120690         the new TZ parsing.
120692 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120694         * lib/mktime.c (not_equal_tm): Remove redundant check.
120696 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120698         * modules/regex (lib_SOURCES): Add regex.c.
120699         Reported by James Youngman in
120700         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120702 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120704         * lib/getdate.y: Use Bison 1.875 features, and some minor
120705         code cleanups.  This change does not affect semantics.
120706         Don't include <stdlib.h>; no longer needed.
120707         Don't include unlocked-io.h; only the "#if TEST" code uses
120708         stdio, and performance isn't crucial there.
120709         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
120710         Bison 1.875 features as described below.
120711         All uses of "PC." replaced by "pc->".
120712         (YYSTYPE): Add a forward declaration.
120713         (yylex, yyerror): Use full prototypes in forward decls.
120714         Use "%pure-parser" rather than obsolescent "%pure_parser".
120715         Use %parse-param and %lex-param instead of obsolescent
120716         YYPARSE_PARAM and YYLEX_PARAM.
120717         (meridian_table, month_and_day_table, time_units_table,
120718         relative_time_table, time_zone_table, military_table,
120719         lookup_zone, lookup_word, get_date):
120720         Use NULL instead of 0 where appropriate.
120721         (to_hour): Avoid abort (), to avoid a dependency on
120722         stdlib.h.
120723         (yyerror, yylex): Now accepts parser_control * arg.
120724         (main) [TEST]: Use '\0' rather than 0 for char.
120726 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120728         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
120730 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120732         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
120733         It's now the caller's responsibility to handle the case where
120734         !HAVE_GETPAGESIZE && !defined getpagesize.
120736         * lib/mktime.c (leapyear): Arg is long int, not int.
120738 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
120740         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
120742 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
120744         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
120745         missing.  Problem reported by James Youngman.
120747 2004-10-16  Simon Josefsson  <jas@extundo.com>
120749         * gnulib-tool: Fix comments.  Fix parse problem.
120750         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
120752 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
120754         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
120755         implementation of getopt_long.  Problem reported by Alexander Taler in:
120756         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
120758 2004-10-15  Bruno Haible  <bruno@clisp.org>
120760         * gnulib-tool: Untabify. Initialize supplied_libname.
120761         (func_usage): More homogenous output.
120762         (func_modules_transitive_closure, func_modules_to_filelist,
120763         func_emit_lib_Makefile_am): New functions.
120764         (func_import): New function, extracted from big case statement. Use
120765         func_get_license, func_modules_transitive_closure,
120766         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
120767         opt_lgpl. Don't use test -a, as it's not portable.
120768         (func_create_testdir): Use func_modules_transitive_closure,
120769         func_modules_to_filelist, func_emit_lib_Makefile_am.
120771 2004-10-15  Bruno Haible  <bruno@clisp.org>
120773         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
120775 2004-10-15  Bruno Haible  <bruno@clisp.org>
120777         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
120778         the portions belonging to each module.
120779         Suggested by Derek Robert Price <derek@ximbiot.com>.
120781 2004-10-12  Simon Josefsson  <jas@extundo.com>
120783         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120784         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
120785         to real functions.
120787 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120789         * modules/vsnprintf: New file.
120791 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120793         * m4/vsnprintf.m4: New file.
120795 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120797         * lib/vsnprintf.h: New file.
120798         * lib/vsnprintf.c: New file.
120800 2004-10-11  Bruno Haible  <bruno@clisp.org>
120802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
120803         vsnprintf.
120805 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120807         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120809 2004-10-07  Bruno Haible  <bruno@clisp.org>
120811         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120812         fits into the provided buffer.
120814 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120816         * lib/diacrit.c, diacrit.h: Add GPL notice.
120818         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120819         notice.
120820         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120821         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120822         This avoids a potential constant-folding bug.
120824 2004-10-05  Bruno Haible  <bruno@clisp.org>
120826         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120827         for the declaration of strsep.
120829 2004-10-05  Bruno Haible  <bruno@clisp.org>
120831         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120833 2004-10-04  Simon Josefsson  <jas@extundo.com>
120835         * modules/memmem: New file.
120836         * tests/test-memmem.c: New file.
120837         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120839 2004-10-04  Simon Josefsson  <jas@extundo.com>
120841         * m4/memmem.m4: New file.
120843 2004-10-04  Simon Josefsson  <jas@extundo.com>
120845         * lib/memmem.h: New file.
120846         * lib/memmem.c: New file, taken from glibc.
120848 2004-10-04  Simon Josefsson  <jas@extundo.com>
120850         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120851         '#ifdef USE_UNLOCKED_IO'.
120853 2004-10-04  Simon Josefsson  <jas@extundo.com>
120855         * config/srclist.txt: Add memmem from glibc.
120857 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120859         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120861         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120862         modules/exclude, modules/getdate, modules/getline,
120863         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120864         modules/getusershell, modules/linebuffer, modules/md5,
120865         modules/mountlist, modules/posixtm, modules/readtokens,
120866         modules/readutmp, modules/regex, modules/sha1,
120867         modules/version-etc, modules/yesno:
120868         Remove dependency on unlocked-io.
120870 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120872         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120874         * m4/unlocked-io.m4: Add copyright notice.
120875         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120877 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120879         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120880         * lib/xmalloc.c (xmemdup): Likewise.
120881         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120882         XFREE): Remove these long-obsolescent macros.
120883         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120884         * lib/xstrdup.c: Remove.
120886         * lib/regex.c (re_comp): Cast gettext return value to char *,
120887         Problem reported by Martin Neitzel via Mark D. Baushke.
120889 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120891         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120892         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120893         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120894         regex.c, sha1.c, version-etc.c, yesno.c:
120895         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120896         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120897         the includer's responsibility.
120899         Sync from coreutils.
120901         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120902         points to the start of a string, as the C Standard says the
120903         resulting behavior is undefined.
120905         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120906         simple -> simple_backups, numbered_existing ->
120907         numbered_existing_backups, numbered -> numbered_backups
120908         to avoid shadowing problems.  All uses changed.
120909         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120910         * lib/backupfile.c (check_extension, numbered_backup):
120911         Rename locals to avoid shadowing 'basename'.
120912         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120913         once.
120915         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120916         * lib/.cvsignore: Add getopt.h.
120918 2004-10-04  Bruno Haible  <bruno@clisp.org>
120920         * modules/README: New file.
120921         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120922         not a module.
120924 2004-10-02  Jim Meyering  <jim@meyering.net>
120926         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120928 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120930         * modules/strsep: New file.
120932 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120934         * m4/strsep.m4: New file.
120936 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120938         * lib/strsep.h: New file.
120939         * lib/strsep.c: New file.
120941 2004-10-01  Simon Josefsson  <jas@extundo.com>
120943         * lib/snprintf.c (snprintf): Handle size==0.
120945 2004-10-01  Simon Josefsson  <jas@extundo.com>
120946             Bruno Haible  <bruno@clisp.org>
120948         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120949         (snprintf): Declare 'args'.
120951 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120953         * lib/snprintf.c: Remove comments as to why each header is needed.
120955 2004-10-01  Bruno Haible  <bruno@clisp.org>
120957         * MODULES.html.sh: Add strsep.
120959 2004-09-30  Simon Josefsson  <jas@extundo.com>
120961         * modules/snprintf: New file.
120963 2004-09-30  Simon Josefsson  <jas@extundo.com>
120965         * m4/snprintf.m4: New file.
120967 2004-09-30  Simon Josefsson  <jas@extundo.com>
120969         * lib/snprintf.h, lib/snprintf.c: New files.
120971 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120973         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120974         (hol_entry_help): Never translate an empty string.
120975         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120976         * lib/argp.h (OPTION_NO_TRANS): New option.
120978 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120980         * modules/argp (Maintainer): Replace Simon Josefsson
120981         by Sergey Poznyakoff.
120983 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120985         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120986         changes merged back into glibc.
120988 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120990         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120992 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120994         * lib/xvasprintf.c: Include xalloc.h.
120995         (xvasprintf): Use xalloc_die, not xmalloc_die.
120997 2004-09-29  Bruno Haible  <bruno@clisp.org>
120999         * modules/alloca-opt: New file, derived from modules/alloca.
121000         * modules/allocsa: Depend on alloca-opt instead of alloca.
121001         * modules/setenv: Likewise.
121002         * modules/vasnprintf: Likewise.
121003         * MODULES.html.sh: Add alloca-opt.
121005 2004-09-28  Simon Josefsson  <jas@extundo.com>
121007         * gnulib-tool: New parameter --lgpl, to asseert that modules are
121008         LGPL, and to replace license template from GPL to LGPL.
121010 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121012         * modules/dummy: Change license to LGPL.
121014 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121016         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
121018 2004-09-24  Simon Josefsson  <jas@extundo.com>
121020         * modules/minmax (License): Change from GPL to LGPL.
121022 2004-09-23  Simon Josefsson  <jas@extundo.com>
121024         * gnulib-tool (--import): Typo.
121026 2004-09-23  Simon Josefsson  <jas@extundo.com>
121028         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
121030 2004-09-22  Bruno Haible  <bruno@clisp.org>
121032         * modules/*: Add 'License' field.
121033         * gnulib-tool: Accept --extract-license option.
121034         (func_get_license): New function.
121036 2004-09-21  Bruno Haible  <bruno@clisp.org>
121038         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
121039         Reported by Simon Josefsson.
121041 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121043         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
121044         gl_AC_TYPE_LONG_LONG.
121046 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121048         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
121050 2004-09-18  Simon Josefsson  <jas@extundo.com>
121051         and  Paul Eggert  <eggert@cs.ucla.edu>
121053         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
121054         calls with autoreconf.  Define GL_LIB.
121056 2004-09-14  Karl Berry  <karl@gnu.org>
121058         * config/srclist.txt: unsync setenv.c, sigh.
121060 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121062         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
121063         Problem reported by Bruno Haible in:
121064         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
121066 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121068         * config/srclist.txt: Comment out argp-pvh.c.
121070 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
121072         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
121073         in case some system header has #define'd it.  Problem reported by
121074         Soeren D. Schulze in
121075         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
121077 2004-09-09  Karl Berry  <karl@gnu.org>
121079         * regex.[ch]: delete from the root.  These were supposed to be
121080                 synced with emacs cvs, but this has not happened for about
121081                 a year, and anyway nothing else uses emacs regex.[ch].
121082                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
121083                 lib/regex[.ch] is untouched.
121085 2004-09-09  Bruno Haible  <bruno@clisp.org>
121087         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
121089 2004-09-09  Bruno Haible  <bruno@clisp.org>
121091         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
121092         modifications.
121093         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
121095 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121097         * modules/xvasprintf: New file.
121098         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
121100 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121102         * lib/xvasprintf.h: New file.
121103         * lib/xvasprintf.c: New file.
121104         * lib/xasprintf.c: New file.
121106 2004-09-08  Bruno Haible  <bruno@clisp.org>
121108         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
121110 2004-09-08  Bruno Haible  <bruno@clisp.org>
121112         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
121113         length is > INT_MAX.
121114         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
121115         more.
121117 2004-09-08  Bruno Haible  <bruno@clisp.org>
121119         * lib/stdint_.h: New file, taken from GNU clisp.
121121 2004-09-08  Bruno Haible  <bruno@clisp.org>
121122             Oskar Liljeblad  <oskar@osk.mine.nu>
121124         * modules/stdint: New file.
121125         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
121127 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121129         Import from coreutils.
121130         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
121131         strings on unbounded length.  alloca's performance benefits aren't
121132         that important here.
121133         (V_STRDUP): Remove.
121134         (parse_with_separator): New function, with most of the internals
121135         of the old parse_user_spec.  Allow user to omit both user and group,
121136         for compatibility with FreeBSD.
121137         Clone only the user name, not the entire spec.
121138         Do not set *uid, *gid unless entirely successful.
121139         Avoid memory leak in some failing cases.
121140         Fix regression for USER.GROUP reported by Dmitry V. Levin in
121141         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
121142         (parse_user_spec): Rewrite to use parse_with_separator.
121144 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121146         * modules/userspec: Don't depend on alloca.
121148 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121150         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
121152 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121154         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
121155         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
121156         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
121158 2004-08-16  Simon Josefsson  <jas@extundo.com>
121160         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
121161         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
121162         Add --dry-run for --import.
121163         Let user provided command line parameters override configure.ac
121164         settings.
121166 2004-08-12  Simon Josefsson  <jas@extundo.com>
121168         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
121169         as discussed with Paul Eggert in threads rooted at
121170         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
121171         and
121172         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
121173         Before, the test was empty, and relied on ELIDE_CODE in source
121174         code.)
121175         (gl_PREREQ_GETOPT): New macro.
121176         (gl_GETOPT): Use them.
121178 2004-08-12  Simon Josefsson  <jas@extundo.com>
121180         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
121181         * lib/getopt_.h: Renamed from getopt.h.
121183 2004-08-12  Simon Josefsson  <jas@extundo.com>
121185         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
121186         Change default library name from libfoo to libgnu.
121187         Now, if you have a configure.ac that says:
121188                 gl_SOURCE_BASE(gl)
121189                 gl_M4_BASE(gl/m4)
121190                 gl_MODULES(error getopt etcetera)
121191                 gl_INIT
121192         you can import all you need by running:
121193                 ../gnulib/gnulib-tool --import
121195         * modules/getopt (Files): Rename getopt.h to getopt_.h.
121196         (Makefile.am): Rewrite, use logic from argz.
121197         (Include): Use <getopt.h> instead of "getopt.h".
121199 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121201         * modules/argp (Files): Add m4/unlocked-io.m4.
121202         (Depends-on): Add extensions.
121204 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121206         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
121207         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
121208         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
121209         Check for program_invocation_name, program_invocation_short_name,
121210         flockfile, funlockfile, features.h, _getopt_long_only_r.
121212 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121214         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
121215         its complicated substitute.
121216         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
121217         and program_invocation_name.
121218         (__argp_basename) [!_LIBC]: Remove; the only use was
121219         replaced by its body.
121220         (__argp_short_program_name): Change condition from
121221         !defined __argp_short_program_name to
121222         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
121223         to match argp-namefrob.h.
121224         (__argp_failure): Don't assume strerror_r returns char *.
121225         * lib/argp-parse.c (N_): Define unconditionally.
121226         (argp_default_options): Fill out initializers with 0 to avoid
121227         gcc warnings.
121229 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121231         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
121232         getopt1.c.
121234 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121236         Merge from coreutils.
121238         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
121240         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
121241         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
121243 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121245         Merge from coreutils.
121247         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
121248         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
121249         for Reliant Unix 5.43.
121251         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
121252         (union fooround): Use uintmax_t, not long int.
121253         The rest is a merge from libc:
121254         [defined _LIBC]: Include <shlib-compat.h>.
121255         (_obstack) [defined _LIBC]: Remove after 2.3.4.
121257         * lib/settime.c (settime): Recode to avoid warning with
121258         Sun Forte C 6U2.
121260         * lib/strverscmp.c: Convert to UTF-8.
121262 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121264         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
121265         m4/uintmax_t.m4.
121267 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121269         * modules/xalloc-die: New file.
121270         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
121272         * modules/md5 (Files): Add m4/uint32_t.m4.
121273         * modules/sha1: Renamed from modules/sha.
121274         (Files):
121275         Rename lib/sha.h to lib/sha1.h.
121276         Rename lib/sha.c to lib/sha1.c.
121277         Rename m4/sha.m4 to m4/sha1.m4.
121278         (lib_SOURCES): Likewise.
121279         (configure.ac): Rename gl_SHA to gl_SHA1.
121280         (Include): sha.h -> sha1.h.
121282 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121284         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
121285         * m4/sha1.m4: Renamed from sha.m4.
121286         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
121288 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121290         * lib/obstack.h (obstack_empty_p):
121291         Don't assume that chunk->contents is suitably aligned.
121292         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
121293         Likewise. Problem reported by Benno in
121294         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
121296         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
121297         readable.  This could be improved further but it'd take some work.
121299 2004-08-08  Simon Josefsson  <jas@extundo.com>
121301         * modules/xgethostname (Depends-on): Remove exit and error (not
121302         used).
121304         * modules/getpass-gnu: Add getpass.h.
121305         (Depends-on): Add stdbool.
121306         * modules/getpass: Add getpass.h.
121308 2004-08-08  Simon Josefsson  <jas@extundo.com>
121310         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
121311         Check getpass declaration.
121313 2004-08-08  Simon Josefsson  <jas@extundo.com>
121315         * lib/xgethostname.c: Don't include error.h (not used).
121317         * lib/getpass.h: Add.
121318         * lib/getpass.c: Include getpass.h first.
121320 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
121322         * lib/xalloc-die.c: New file.
121323         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
121324         All uses removed.
121325         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
121326         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
121327         xalloc-die.c.
121328         (_, N_, xalloc_die): Move to xalloc-die.c.
121329         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
121330         so that we needn't mess with xalloc_msg_memory_exhausted.
121332         * lib/sha1.h: Renamed from sha.h.
121333         (SHA1_H): Renamed from _SHA_H.
121334         (sha1_ctx): Renamed from sha_ctx.
121335         (sha1_init_ctx): Renamed from sha_init_ctx.
121336         (sha1_process_block): Renamed from sha_process_block.
121337         (sha1_process_bytes): Renamed from sha_process_bytes.
121338         (sha1_finish_ctx): Renamed from sha_finish_ctx.
121339         (sha1_read_ctx): Renamed from sha_read_ctx.
121340         (sha1_stream): Renamed from sha_stream.
121341         (sha1_buffer): Renamed from sha_buffer.
121342         * lib/sha1.c: Likewise; renamed from sha.c.
121343         Do not include <sys/types.h>.
121344         Include <stddef.h> rather than <stdlib.h>.
121346 2004-08-08  Bruno Haible  <bruno@clisp.org>
121348         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
121349         FILESYSTEM_PREFIX_LEN.
121350         * lib/progreloc.c: Likewise.
121351         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
121353 2004-08-06  Simon Josefsson  <jas@extundo.com>
121355         * modules/progname (Depends-on): Don't depend on stdbool.
121357 2004-08-06  Simon Josefsson  <jas@extundo.com>
121359         * modules/getsubopt: New file.
121360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121361         getsubopt.
121363 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121365         More merge from coreutils.
121367         * m4/utimens.m4, m4/utimecmp.m4: New files.
121368         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
121369         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
121370         prereq.m4, sha.m4: Import changes from coreutils.
121372 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121374         More merge from coreutils.
121375         * modules/raise, modules/readtokens0, modules/utimens:
121376         * modules/utimecmp, module/xnanosleep: New files.
121377         * modules/strftime: Add lib/strftime.h.
121378         Change include from <time.h> to "strftime.h".
121379         * modules/yesno: Add lib/yesno.h.
121380         * modules/backupfile: Remove lib/addext.c.
121381         * modules/euidaccess: Add stat-macros.h.
121382         * modules/canonicalize, modules/euidaccess,
121383         modules/filemode, modules/lchown, modules/makepath,
121384         modules/rmdir, modules/stat: Likewise.
121386 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121388         Merge from tar.
121389         * lib/argp-help.c (make_hol, hol_append): Don't assume that
121390         SIZE_MAX is a valid preprocessor constant.
121391         (__argp_basename): Change from "#ifndef _LIBC"
121392         to "#ifndef __argp_short_program_name", so that
121393         we don't compile these functions for tar.
121395         More merges from coreutils.
121396         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
121397         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
121398         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
121399         * lib/addext.c: Remove; no longer needed.
121400         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
121401         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
121402         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
121403         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
121404         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
121405         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
121406         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
121407         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
121408         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
121409         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121410         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
121411         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
121412         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
121413         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
121414         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
121415         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
121416         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
121417         Import changes from coreutils.
121419 2004-08-05  Simon Josefsson  <jas@extundo.com>
121421         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
121423 2004-08-05  Simon Josefsson  <jas@extundo.com>
121425         * m4/getsubopt.m4: New file.
121427 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121429         Merge from coreutils.
121431         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
121432         * m4/getcwd-path-max.m4: New files.
121434         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
121435         FILESYSTEM_PREFIX_LEN ->
121436         FILE_SYSTEM_PREFIX_LEN.
121437         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
121438         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
121439         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
121440         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
121442         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
121443         prerequisite modules now handle the DOS stuff.
121444         Don't check for unistd.h.
121446 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121448         Merge from coreutils.
121450         * lib/.gdb-history: Remove; this doesn't belong here.
121452         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
121453         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
121454         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
121455         * lib/getcwd.c: New files.
121457         * lib/dirname.h: Include <stdbool.h>.
121458         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
121459         for consistency with POSIX terminology.  All uses changed.
121460         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
121461         (strip_trailing_slashes): Use bool for booleans.
121462         * lib/stripslash.c (strip_trailing_slashes): Likewise.
121464         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
121465         sometimes returns a positive errno value even when it succeeds.
121466         (print_errno_message) [!LIBC]: Fall back on strerror if
121467         __strerror_r fails.
121469         * lib/path-concat.c (mempcpy): Don't define if a system header defines
121470         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
121471         (longest_relative_suffix): New function.
121472         (path_concat): Use it.  Assume first argument is not NULL.
121473         Port to DOS.  Omit redundant separators.
121474         Report an error instead of returning NULL.
121475         Use mempcpy instead of memcpy.
121476         (xpath_concat): Remove: not declared or used.
121478         * lib/same.h: Include <stdbool.h>
121479         (same_name): Return bool, not int.
121480         * lib/same.c (same_name): Likewise.
121481         (errno): Don't declare; we assume C89 or better now.
121483         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
121484         if not already defined.
121486         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
121487         * lib/dup-safer.c (errno): Likewise.
121489 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121491         Merge from coreutils.
121492         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
121493         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
121494         * modules/path-concat: Don't depend on strdup.
121496 2004-08-03  Simon Josefsson  <jas@extundo.com>
121498         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
121499         * lib/progname.h: Don't include stdbool.h.
121501 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121503         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
121504         * MODULES.html.sh (func_all_modules): Remove fatal.
121506 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121508         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
121510 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121512         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
121513         working.
121515 2004-08-02  Simon Josefsson  <jas@extundo.com>
121517         * lib/getsubopt.h: New file, with comments from Bruno Haible.
121518         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
121519         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
121521 2004-08-01  Simon Josefsson  <jas@extundo.com>
121523         * lib/xgetdomainname.c: Include stdlib.h, for free().
121525 2004-07-19  Bruno Haible  <bruno@clisp.org>
121527         * MODULES.html.sh (func_all_modules): Add dummy.
121529 2004-07-16  Simon Josefsson  <jas@extundo.com>
121531         * modules/dummy: New file.
121533 2004-07-16  Simon Josefsson  <jas@extundo.com>
121535         * lib/dummy.c: New file.
121537 2004-07-16  Bruno Haible  <bruno@clisp.org>
121539         * lib/backupfile.h: Add extern "C" for C++.
121540         * lib/closeout.h: Likewise.
121541         * lib/copy-file.h: Likewise.
121542         * lib/findprog.h: Likewise.
121543         * lib/full-write.h: Likewise.
121544         * lib/pathname.h: Likewise.
121545         * lib/progname.h: Likewise.
121546         * lib/stpcpy.h: Likewise.
121547         * lib/stpncpy.h: Likewise.
121548         * lib/strcase.h: Likewise.
121549         * lib/strstr.h: Likewise.
121550         * lib/xalloc.h: Likewise.
121552         * lib/mbswidth.h: Add extern "C" for C++.
121553         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
121555 2004-07-13  Robert Millan  <robertmh@gnu.org>
121557         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
121559 2004-07-09  Simon Josefsson  <jas@extundo.com>
121561         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
121562         failed without this.)
121564 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121566         * modules/chown (Files): Add lib/fchown-stub.c, since
121567         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
121569 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121571         * lib/fchown-stub.c: New file.
121573 2004-06-24  Jim Meyering  <jim@meyering.net>
121575         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
121577 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121579         * modules/argz: Omit "#include".
121581         * MODULES.html.sh (func_all_modules): Add calloc, to match
121582         2004-06-01 addition of calloc module.
121584 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121586         * m4/argz.m4: New file, which is autoupdated from libtool.
121588 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121590         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
121591         libtool.
121593 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121595         * config/srclist-update: Don't insist on "USA." before the
121596         close-comment, as libtool omits the period and puts the */ on a
121597         separate line.
121598         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
121599         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
121601 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
121603         * modules/argz: New file.
121604         * MODULES.html.sh (func_all_modules): Add argz.
121606 2004-06-12  Jim Meyering  <jim@meyering.net>
121607         and  Paul Eggert  <eggert@cs.ucla.edu>
121609         * modules/hash (Files): Add lib/xalloc.h.
121610         * modules/pipe (Depends-on): Add wait-process.
121611         * modules/stat (Depends-on): Add xalloc.
121612         * modules/userspec (Files): Add lib/userspec.h.
121613         * modules/xstrto
121615         Upgrade from gettext-0.13.
121616         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
121617         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
121618         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
121620 2004-06-10  Jim Meyering  <jim@meyering.net>
121622         * lib/calloc.c: New file.
121624 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
121626         * lib/getdate.y (yylex): Allow space between sign and number.
121627         Problem reported by Dan Jacobson.
121629 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121631         Merge from coreutils CVS.
121633         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
121634         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
121635         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
121636         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
121637         xstrtol.m4: Fix copyright date and/or serial number.
121639         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
121640         See if we need an fchown replacement.
121641         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
121642         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
121643         and use the replacement function if we detect either defect.
121645         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
121646         gl_UTIMECMP.
121648 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121649         and  Jim Meyering  <jim@meyering.net>
121651         Merge from coreutils CVS.
121653         * lib/stat-macros.h: New file, with contents from file-type.h
121654         and coreutils' system.h.
121655         * lib/file-type.c: Include "stat-macros.h".
121656         * lib/file-type.h (file_type): Move all macro definitions to new file,
121657         stat-macros.h.
121659         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
121660         Wrap old code with this conditional.
121661         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
121662         function that does not dereference symlinks.
121663         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
121665         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
121666         dependency problems.
121667         (xreadlink): Accept new arg SIZE, for efficiency.
121668         All decls and uses changed.
121669         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121671         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121672         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121674         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121675         sysexits.h.
121677 2004-06-01  Jim Meyering  <jim@meyering.net>
121679         * m4/calloc.m4: New file.
121681 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121683         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121684         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121685         Also, fix a typo in a diagnostic.
121687 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121689         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121690         or AC_FUNC_REALLOC.
121692 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121694         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121695         macros to be defined.
121696         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121697         the allocator returns NULL because the requested size is zero.
121699 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121701         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121702         var.  Add comment explaining why libc still defines it.  This
121703         merges the following patch from glibc:
121704         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121706 2004-05-20  Andreas Schwab  <schwab@suse.de>
121708         * m4/free.m4: Replace free if it not known to work, not the other
121709         way round.
121711 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
121713         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
121714         present in glibc since revision 1.1 of this file.
121715         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
121716         obstack_alignment_mask, obstack_alloc, obstack_base,
121717         obstack_blank, obstack_blank_fast, obstack_chunk_size,
121718         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
121719         obstack_grow0, obstack_init, obstack_int_grow,
121720         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
121721         obstack_next_free, obstack_object_size, obstack_ptr_grow,
121722         obstack_ptr_grow_fast, obstack_room): Remove declarations of
121723         nonexistent functions.
121725 2004-05-18  Karl Berry  <karl@gnu.org>
121727         * config/srclist.txt: break link for vasnprintf.c.
121729 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121731         Port obstack to the AS/400, where pointers are 16 bytes wide and
121732         you cannot cast an integer to a valid pointer.  This patch is
121733         currently waiting to be integrated into glibc; see
121734         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
121736         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
121737         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
121738         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
121739         (struct obstack): temp member is now a union of a pointer and
121740         an integer, instead of an integer.  All integer uses changed.
121741         This does not affect the physical layout of struct obstack,
121742         except on hosts (like the AS/400) where the size or alignment of
121743         void * is greater than that of ptrdiff_t.
121744         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
121745         __STDC__)]: Store temporary in pointer member of union, not
121746         integer member.
121747         * lib/obstack.c: Include <stddef.h>, for offsetof.
121748         (struct fooalign): Remove; it doesn't need a name.
121749         (union fooround): Change double to long double, and add void *.
121750         (DEFAULT_ALIGNMENT): Use offsetof to compute.
121751         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
121752         not a macro.  Hence the values are always int; so remove all
121753         casts-to-int in uses.
121755 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121757         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
121758         we can get this patch merged into glibc.
121760 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121761             Paul Eggert  <eggert@cs.ucla.edu>
121763         * m4/argp: Depend on alloca.
121765 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121766             Paul Eggert  <eggert@cs.ucla.edu>
121768         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
121769         freecoding.
121771 2004-05-17  Bruno Haible  <bruno@clisp.org>
121773         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
121774         precision that consists of a '.' followed by an empty digit string.
121775         Patch by Tor Lillqvist <tml@iki.fi>.
121777 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121779         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
121780         for backward compatibility with older code.  We need our own
121781         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
121782         it under some other name, and our alloca.h will define it.
121784 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121785             Derek Price  <derek@ximbiot.com>
121787         * lib/alloca.c: Include <alloca.h>, to get our interface.
121788         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
121789         include <alloca.h> first.  Use C89 prototype for alloca; this
121790         requires including <stddef.h> for size_t.  Use extern "C" if C++.
121791         Use #elif for simplicity, since we can assume C89 now.
121792         Don't try to source the system alloca.h since it will not be found
121793         and to prevent recursively including its replacement.
121794         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
121795         * lib/regex.c: Likewise.
121797 2004-05-16  Derek Price  <derek@ximbiot.com>
121798             Paul Eggert  <eggert@cs.ucla.edu>
121800         getline cleanup.  This changes the getndelim2 API: both order of
121801         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
121802         no delimiter).
121804         * lib/getline.c: Don't include stddef.h or stdio.h, since our
121805         interface does that.
121806         (getline): Always use getdelim, so that we don't have two
121807         copies of this code.
121808         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121809         if available.
121810         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121811         (GETNDELIM2_MAXIMUM): New macro.
121812         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121813         instead of the old practice of delim2==0.  All callers changed.
121814         Return -1 on overflow, instead of returning junk.
121815         Do not set *linesize unless allocation succeeds.
121816         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121817         that we include sys/types.h.
121818         * lib/getnline.h: Likewise.
121819         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121820         (getndelim2): Reorder arguments.
121821         * lib/getnline.c (getnline, getndelim):
121822         Don't discard the NMAX argument.
121823         (getnline): Invoke getndelim, to avoid code duplication.
121824         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121825         of (size_t) -1 by callers of the getnline family.
121827 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121829         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121830         Check for gettimeofday.
121831         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121832         Check for settimeofday, stime.
121834 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121836         * lib/nanosleep.c (suspended): Change its type from int to
121837         sig_atomic_t volatile.
121838         (first_call): Make it private to rpl_nanosleep, and have it
121839         be zero initially as that's a bit faster.
121840         (my_usleep): Round up fractional times instead of truncating them,
121841         as this is the usual meaning for 'sleep'.
121843         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121844         doesn't work.
121845         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121846         (ENOSYS): Define if not defined.
121847         (settime): Fall back on stime if it exists and settimeofday fails.
121848         But don't bother with fallbacks if a method fails with errno == EPERM.
121850 2004-05-11  Jim Meyering  <jim@meyering.net>
121852         Prior to this change, the save_cwd caller required read access to the
121853         current directory on most systems (ones with the fchdir function).
121855         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121856         fails, try write-only, and finally, resort to using xgetcwd.
121858 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121860         * lib/obstack.c, obstack.h: Import changes from libc.
121862 2004-04-28  Bruno Haible  <bruno@clisp.org>
121864         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121865         also implicitly appends .exe to executables.
121866         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121867         accepts Windows pathnames.
121868         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121869         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121870         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121871         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121872         Reported by Derek Robert Price <derek@ximbiot.com>.
121874 2004-04-21  Karl Berry  <karl@gnu.org>
121876         * config/srclist.txt (localcharset.c): break sync.
121878 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121880         * m4/host-os.m4: Add a copyright notice.
121882 2004-04-20  Jim Meyering  <jim@meyering.net>
121884         Change UTILS_ to gl_ in AC_DEFINE'd names.
121885         Change utils_- and jm_-prefixed variables, too.
121886         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121887         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121890         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121891         Don't emit trailing blanks.
121892         Also rename jm_-prefixed variables to have gl_ prefix.
121894         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121895         Also rename jm_-prefixed variables to have gl_ prefix.
121897         * m4/jm-macros.m4: Reflect the renamings.
121898         * m4/prereq.m4: Likewise.
121900 2004-04-20  Jim Meyering  <jim@meyering.net>
121902         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121903         memory.
121905 2004-04-20  Jim Meyering  <jim@meyering.net>
121906             Bruno Haible  <bruno@clisp.org>
121908         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121909         memory when realloc fails.
121911 2004-04-19  Jim Meyering  <jim@meyering.net>
121913         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121914         now that readutmp.c may call `free (0)'.
121916 2004-04-19  Bruno Haible  <bruno@clisp.org>
121918         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121919         * m4/inttypes_h.m4: Likewise.
121920         * m4/stdint_h.m4: Likewise.
121921         * m4/intmax_t.m4: Likewise.
121922         * m4/uintmax_t.m4: Likewise.
121924 2004-04-18  Jim Meyering  <jim@meyering.net>
121926         * m4/prereq.m4: Don't forbid jm_ prefix.
121928         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121929         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121930         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121931         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121932         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121933         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121934         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121935         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121936         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121937         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121938         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121939         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121940         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121941         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121942         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121943         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121944         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121945         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121946         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121948 2004-04-18  Jim Meyering  <jim@meyering.net>
121950         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121951         failure, don't leak memory and do call END_UTMP_ENT.
121953 2004-04-16  Jim Meyering  <jim@meyering.net>
121955         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121956         coreutils' stat program.
121957         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121959 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121961         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121962         C89.
121963         (CHAR_BIT): Remove, since we assume C89.
121964         Include <stdint.h> if available, as per current Autoconf CVS advice.
121966 2004-03-31  Jim Meyering  <jim@meyering.net>
121968         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121969         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121970         * m4/xalloc.m4: Likewise.
121972 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121974         Merge from coreutils.
121976         * m4/inttostr.m4: New file.
121977         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121978         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121979         Require gl_CLOCK_TIME.
121980         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121982 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121984         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121985         not bool, to be more consistent with Unix conventions.
121986         Suggested by Bruno Haible.
121988         Merge from coreutils.
121990         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121991         * lib/umaxtostr.c: New files.
121993         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121994         the usual <time.h> dance.
121995         (get_date): Change signature to support fractional time stamps.
121996         All callers changed.
121997         * lib/getdate.y: Include "getdate.h" first, as we can now
121998         assume C89 and don't need to worry about 'const'.
121999         Similarly, include "unlocked-io.h" near start, not in middle.
122000         Include <limits.h>.
122001         (textint.value): Use long int rather than int.
122002         (textint.digits): Use size_t rather than int.
122003         (BILLION, LOG10_BILLION): New constants.
122004         (parser_control): New member rel_ns.  Members day_ordinal,
122005         time_zone, month, day, hour, minutes, rel_year, rel_month,
122006         rel_day, rel_hour, rel_minutes, rel_seconds
122007         are now long int, not int.  Member seconds is now struct timespec,
122008         not int.  New member timespec_seen.  Members dates_seen, days_seen,
122009         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
122010         not int.
122011         (%union.intval): Now long int, not int.
122012         New member timespec.
122013         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
122014         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
122015         (spec): Now is a timespec or an item list.
122016         (timespec, items): New nonterminals.
122017         (time, rel, relunit, number, get_date):
122018         Add support for fractional seconds.
122019         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
122020         (gmtime, localtime, mktime): Remove decls; not needed with C89.
122021         (to_hour): First arg is now long int, not int.
122022         (to_year): Returns long int, not int.
122023         Don't treat year -70 like 70.
122024         (tm_diff): Returns long int, not int.
122025         (lookup_word): Use bool instead of int when appropriate.
122026         (yylex): Use size_t for count, not int.
122027         Detect overflow when parsing large integer constants.
122028         Add support for fractions.
122029         (get_date): Make pointers 'const' if possible.
122030         Use more-portable code to detect integer overflow.
122031         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
122032         Don't use ctime; it's not reliable if the year has >4 digits.
122034         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
122035         This is for compatibility with BSD.
122037         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
122038         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
122039         From coreutils' system.h.
122041         * lib/userspec.c: Don't include "posixver.h".
122042         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
122043         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
122044         compatible extension.  Simplify code by removing a boolean int
122045         that was always nonzero if a string was nonnull.
122047 2004-03-30  Jim Meyering  <jim@meyering.net>
122049         Merge from coreutils.
122051         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
122052         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
122053         on some systems one must include <grp.h> before it.
122054         Reported by Christian Krackowizer.
122056 2004-03-30  Jim Meyering  <jim@meyering.net>
122058         Merge from coreutils.
122060         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
122062         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
122063         an empty input stream.
122065         * lib/readtokens.c: Include <stdbool.h>.
122066         (readtoken): Use `size_t' rather than int/long.
122067         All callers adjusted.
122068         Use `bool' rather than `int' where appropriate.
122069         Use memset rather than an explicit loop.
122070         Use x2nrealloc rather than xrealloc.
122071         Allow the use of `\0' as a delimiter.
122072         (readtokens): Likewise.
122073         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
122075 2004-03-30  Jim Meyering  <jim@meyering.net>
122077         * m4/realloc.m4: Remove file, since now it does no more than
122078         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
122079         the `configure.ac' section of module/realloc.
122080         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
122082 2004-03-30  Bruno Haible  <bruno@clisp.org>
122084         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
122085         nonnull.
122087 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122089         Merge changes to getloadavg.c from coreutils and Emacs.
122091         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
122092         Define to an expression, not to the empty string.
122093         Include cloexec.h and xalloc.h.
122094         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
122095         Use set_cloexec_flag rather than rolling our own.
122096         * lib/cloexec.c, lib/cloexec.h: New files.
122098 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122100         * m4/cloexec.m4: New file.
122102 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122104         * lib/getopt.h: Sync with libc CVS.
122106 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122107             Bruno Haible  <bruno@clisp.org>
122109         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
122110         mbswidth.
122112 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122113             Bruno Haible  <bruno@clisp.org>
122115         * lib/mbswidth.h: Include <wchar.h> only if
122116         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
122117         <wchar.h>.
122118         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
122120 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122122         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
122123         Sync with libc CVS.
122124         * lib/getopt_int.h: New file, also synced from libc.
122126 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122128         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
122129         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
122130         Bring back getopt.c, getopt.h, getopt1.c.
122132 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122134         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
122135         All uses changed.  Check for sa_sigaction member; this fixes
122136         a bug first reported by Jason Andrade in
122137         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122139 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122141         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
122142         '#if' expressions.  Unlike the code it replaces, it does not
122143         depend on (defined _SC_PAGESIZE).  However, it does depend on
122144         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
122145         first reported by Jason Andrade in
122146         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122148 2004-02-25  Simon Josefsson  <jas@extundo.com>
122150         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
122152 2004-02-25  Simon Josefsson  <jas@extundo.com>
122154         * lib/strdup.h: New file.
122155         * lib/strdup.c: Include it.
122156         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
122157         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
122159 2004-02-23  Karl Berry  <karl@gnu.org>
122161         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
122162         (from fencepost.gnu.org:/gd/gnuorg).
122164 2004-02-23  Karl Berry  <karl@gnu.org>
122166         * config/srclistvars.sh (GNUORG) [karl]: redefine.
122167         * config/srclist.txt: add maintain/standards documents.
122169 2004-02-18  Bruno Haible  <bruno@clisp.org>
122171         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
122172         Reported by Derek Robert Price <derek@ximbiot.com>.
122174 2004-02-16  Karl Berry  <karl@gnu.org>
122176         * config/mkinstalldirs, install-sh: update from automake.
122178 2004-02-06  Karl Berry  <karl@gnu.org>
122180         * m4/po.m4: update from gettext 0.14.1.
122182 2004-02-06  Karl Berry  <karl@gnu.org>
122184         * lib/config.charset: update from gettext 0.14.1.
122186 2004-02-05  Paul Eggert  <eggert@twinsun.com>
122188         Add comments and code, prompted by suggestions from Bruno Haible
122189         for sh-quote.
122190         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
122191         describing the enum quoting_style values.
122192         * lib/quotearg.c (quotearg_alloc): New function.
122193         (quotearg_buffer_restyled): Treat lone { and } as special.
122194         Treat = as special.  Work around bug with older shells
122195         that "see" a '\' that is really the 2nd byte of a multibyte char.
122196         Quote empty string with shell_quoting_style.
122198 2004-02-03  Bruno Haible  <bruno@clisp.org>
122200         * m4/pipe.m4: New file, from GNU gettext.
122202 2004-02-03  Bruno Haible  <bruno@clisp.org>
122204         * lib/pipe.h: New file, from GNU gettext.
122205         * lib/pipe.c: New file, from GNU gettext.
122207 2004-01-27  Bruno Haible  <bruno@clisp.org>
122209         * m4/execute.m4: New file, from GNU gettext.
122211 2004-01-27  Bruno Haible  <bruno@clisp.org>
122213         * lib/execute.h: New file, from GNU gettext.
122214         * lib/execute.c: New file, from GNU gettext.
122215         * lib/w32spawn.h: New file, from GNU gettext.
122217 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122219         Merge from diffutils.
122221         * lib/file-type.c (file_type): Add typed memory objects.
122222         * lib/file-type.h (S_TYPEISTMO): New macro.
122224         * lib/c-stack.h (c_stack_action): Remove argv argument.
122225         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
122226         (die): Don't calculate message unless segv_action returns.
122227         (get_stack_location, min_address_from_argv, max_address_from_argv,
122228         volatile stack_base, volatile_stack_size): Remove.
122229         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
122230         that every segmentation violation is a stack overflow.  (Ouch!)
122231         See Debian bug 136249 (still outstanding) for more info about why
122232         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
122234 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122236         Exit-status fix from coreutils.
122238         Use exit_failure consistently in place of EXIT_FAILURE,
122239         so that program exit statuses are consistent on failure.
122241         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
122242         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
122243         * lib/argmatch.h: Comment fix to match the above.
122244         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
122245         Now a macro referring to exit_failure, instead of a separate
122246         variable.  Include "exitfail.h" to get it.
122247         * lib/xstrtol.h: Include "exitfail.h".
122248         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
122250         * lib/long-options.c (parse_long_options): Use prototype
122251         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
122252         for clarity.
122254 2004-01-21  Jim Meyering  <jim@meyering.net>
122256         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
122257         so as not to conflict with a different-sized __mktime_internal
122258         function in GNU libc.
122259         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
122260         Problem building statically-linked `ls' reported by Michael Brunnbauer.
122262 2004-01-20  Karl Berry  <karl@gnu.org>
122264         * config/config.guess: update from config.
122266         * config/srclistvars.sh: GNUWWWLICENSES for karl.
122268 2004-01-20  Bruno Haible  <bruno@clisp.org>
122270         Safer stack allocation.
122271         * lib/setenv.c: Include allocsa.h.
122272         (alloca): Remove fallback definition.
122273         (freea): Remove macro.
122274         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
122275         instead of freea.
122277 2004-01-20  Bruno Haible  <bruno@clisp.org>
122279         * m4/eealloc.m4: New file, from GNU gettext.
122281 2004-01-20  Bruno Haible  <bruno@clisp.org>
122283         * m4/allocsa.m4: New file, from GNU gettext.
122285 2004-01-20  Bruno Haible  <bruno@clisp.org>
122287         * lib/xallocsa.h: New file, from GNU gettext.
122288         * lib/xallocsa.c: New file, from GNU gettext.
122290 2004-01-20  Bruno Haible  <bruno@clisp.org>
122292         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
122294 2004-01-20  Bruno Haible  <bruno@clisp.org>
122296         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
122297         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
122298         specially.
122300 2004-01-20  Bruno Haible  <bruno@clisp.org>
122302         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
122303         patch.
122305 2004-01-20  Bruno Haible  <bruno@clisp.org>
122307         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
122309 2004-01-20  Bruno Haible  <bruno@clisp.org>
122311         * lib/eealloc.h: New file.
122313 2004-01-20  Bruno Haible  <bruno@clisp.org>
122315         * lib/binary-io.h: Avoid warnings on Cygwin.
122317 2004-01-20  Bruno Haible  <bruno@clisp.org>
122319         * lib/allocsa.h: New file, from GNU gettext.
122320         * lib/allocsa.c: New file, from GNU gettext.
122322 2004-01-18  Karl Berry  <karl@gnu.org>
122324         * doc/gpl.texi, doc/lgpl.texi: new files.
122326 2004-01-18  Karl Berry  <karl@gnu.org>
122328         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
122329         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
122331 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122333         Merge from coreutils.
122335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
122336         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
122337         (gl_DEFAULT_POSIX2_VERSION): Move
122338         the documentation from 'configure' into 'config.hin',
122339         so that 'configure --help' isn't burdened by it and
122340         we don't have to worry about its formatting there.
122341         Reword the documentation so that it's more succinct
122342         and can be run together into a single paragraph.
122343         * m4/same.m4 (gl_SAME): Check for pathconf.
122345 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122347         Merge from coreutils.
122349         * lib/posixver.c: Include posixver.h.
122351         * lib/same.c: Include <stdbool.h>, <limits.h>.
122352         (_POSIX_NAME_MAX): Define if not defined.
122353         (MIN): New macro.
122354         (same_name): If file names are silently truncated, report
122355         that the file names are the same if they are the same after
122356         the silent truncation.
122358         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
122359         conversion function.
122360         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
122361         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
122362         longer needed.
122364 2004-01-15  Jim Meyering  <jim@meyering.net>
122366         Merge from coreutils.
122368         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
122369         if no library is required.
122370         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
122371         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
122372         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
122373         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
122374         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
122375         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
122376         value, $ac_cv_search_crypt, if it's "none required".
122377         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
122378         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
122379         not gl_FUNC_GETLOADAVG.
122380         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
122381         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
122383 2004-01-15  Jim Meyering  <jim@meyering.net>
122385         Merge from coreutils.
122387         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
122388         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
122389         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
122391         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
122392         optional configure-time default.
122394         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122396         * lib/xreadlink.c (xreadlink): Correct outdated comment.
122398 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
122400         Merge from coreutils.
122402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
122403         value, $ac_cv_search_nanosleep, if it's "none required".
122405 2004-01-14  Paul Eggert  <eggert@twinsun.com>
122407         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
122408         with like-named macro in fnmatch.c.
122409         (EXT): Use an internal constant instead.
122411         Merge fnmatch patches from glibc.
122412         * lib/fnmatch.c (mbsinit): Remove define.
122413         Add libc_hidden_ver (__fnmatch, fnmatch).
122414         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
122415         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
122417 2004-01-14  Karl Berry  <karl@gnu.org>
122419         * config/install-sh: update from automake.
122421 2004-01-13  Karl Berry  <karl@gnu.org>
122423         * config/install-sh: update from automake.
122425 2004-01-09  Karl Berry  <karl@gnu.org>
122427         * config/install-sh: update from automake.
122429 2004-01-05  Karl Berry  <karl@gnu.org>
122431         * config/config.{sub,guess}: update from config.
122433 2003-12-31  Karl Berry  <karl@gnu.org>
122435         * config/depcomp: update from automake.
122437 2003-12-14  Karl Berry  <karl@gnu.org>
122439         * lib/config.charset: update from gettext-runtime.
122441 2003-12-03  Paul Eggert  <eggert@twinsun.com>
122443         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
122444         Bug reported by Alfred M. Szmidt.
122446 2003-12-03  Bruno Haible  <bruno@clisp.org>
122448         * m4/gettext.m4: Upgrade from gettext-0.13.
122449         * m4/po.m4: Upgrade from gettext-0.13.
122450         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
122451         * m4/intmax.m4: New file, from gettext-0.13.
122452         * m4/printf-posix.m4: New file, from gettext-0.13.
122454 2003-11-29  Karl Berry  <karl@gnu.org>
122456         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
122458 2003-11-25  Paul Eggert  <eggert@twinsun.com>
122459             Bruno Haible  <bruno@clisp.org>
122461         * lib/printf-parse.h: Don't include sys/types.h.
122462         (ARG_NONE): New macro.
122463         (char_directive): Change type of *arg_index fields to size_t.
122464         * lib/printf-parse.c: Don't include sys/types.h.
122465         (SSIZE_MAX): Remove macro.
122466         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
122467         Remove unnecessary overflow check.
122468         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
122469         fields.
122471 2003-11-25  Bruno Haible  <bruno@clisp.org>
122473         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
122475 2003-11-25  Bruno Haible  <bruno@clisp.org>
122477         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
122478         gt_TYPE_SSIZE_T.
122480 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122482         * modules/alloca: Remove dependency on xalloc.
122484 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122486         * lib/alloca.c: Remove dependency on xalloc module.
122487         (xalloc_die): Remove.
122488         (memory_full) [!defined emacs]: New macro.
122489         [!defined emacs]: Don't include xalloc.h.
122490         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
122491         address arithmetic overflows.  Change datatypes a bit to avoid
122492         unnecessary casts.
122494 2003-11-22  Jim Meyering  <jim@meyering.net>
122496         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
122497         s/size/size_t/.
122499 2003-11-21  Karl Berry  <karl@gnu.org>
122501         * config/config.{sub,guess}: update from config.
122503 2003-11-18  Karl Berry  <karl@gnu.org>
122505         * config/config.{sub,guess}: update from config.
122507         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
122509 2003-11-17  Paul Eggert  <eggert@twinsun.com>
122511         * README: Mention that S+T cannot overflow if S is the size of
122512         an existing object and T is sufficiently small.
122514 2003-11-17  Jim Meyering  <jim@meyering.net>
122516         On systems without utime and without a utimes function capable of
122517         dealing with a NULL struct utimbuf* argument, this utime replacement
122518         could -- in unusual circumstances -- leak a file descriptor.
122519         * lib/utime.c: Include <unistd.h> and <errno.h>.
122520         (utime_null): Be sure to close `fd' and to preserve errno.
122521         Reported by Geoff Collyer via Arnold Robbins.
122523 2003-11-17  Bruno Haible  <bruno@clisp.org>
122525         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
122526         (Depends-on): Add xsize.
122528 2003-11-17  Bruno Haible  <bruno@clisp.org>
122530         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
122532 2003-11-17  Bruno Haible  <bruno@clisp.org>
122534         * lib/vasnprintf.c (alloca): Remove fallback definition.
122535         (freea): Remove definition.
122536         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
122537         Reported by Paul Eggert.
122539 2003-11-16  Paul Eggert  <eggert@twinsun.com>
122540             Bruno Haible  <bruno@clisp.org>
122542         Protect against address arithmetic overflow.
122543         * lib/printf-args.h: Include stddef.h.
122544         (arguments): Change type of field 'count' to size_t.
122545         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
122546         'unsigned int' where appropriate.
122547         * lib/printf-parse.h: Include sys/types.h.
122548         (char_directive): Change type of *arg_index fields to ssize_t.
122549         (char_directives): Change type of fields 'count', max_*_length to
122550         size_t.
122551         * lib/printf-parse.c: Include sys/types.h and xsize.h.
122552         (SSIZE_MAX): Define fallback value.
122553         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
122554         instead of 'int' where appropriate. Check a_allocated, d_allocated
122555         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
122556         * lib/vasnprintf.c: Include xsize.h.
122557         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
122558         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
122559         overflow. Avoid wraparound when converting a width or precision from
122560         decimal to binary.
122562 2003-11-16  Bruno Haible  <bruno@clisp.org>
122564         Update from GNU gettext.
122565         * lib/printf-parse.c: Generalize to it can be compiled for wide
122566         strings.
122567         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
122568         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
122569         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
122570         SNPRINTF): New macros.
122571         Don't include <alloca.h> if the file is used inside libintl.
122572         (local_wcslen): New function, for Solaris 2.5.1.
122573         (VASNPRINTF): Use it instead of wcslen.
122575 2003-11-16  Bruno Haible  <bruno@clisp.org>
122577         * lib/xsize.h (xmax): New function.
122578         (xsum, xsum3, xsum4): Declare as "pure" functions.
122580 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122582         * modules/xalloc (Files): Undo latest change, since xalloc.h
122583         no longer needs SIZE_MAX or PTRDIFF_MAX.
122585 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122587         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
122588         gl_PTRDIFF_MAX.
122590 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122592         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
122593         "return", to pacify some unknown compiler.  Problem reported
122594         by Joerg Schilling.
122596 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122598         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
122599         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
122600         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
122601         heuristic is just as accurate as far as we know, and it removes a
122602         dependency on size_max.m4 and ptrdiff_max.m4.
122604 2003-11-11  Bruno Haible  <bruno@clisp.org>
122606         * modules/xsize (Files): Add m4/size_max.m4.
122607         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
122609 2003-11-11  Bruno Haible  <bruno@clisp.org>
122611         * m4/size_max.m4: New file.
122612         * m4/ptrdiff_max.m4: New file.
122613         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
122614         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
122615         (gl_XALLOC): Invoke it.
122617 2003-11-11  Bruno Haible  <bruno@clisp.org>
122619         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
122620         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
122621         defined.
122623 2003-11-10  Paul Eggert  <eggert@twinsun.com>
122625         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
122626         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
122627         rejected some allocations of exactly SIZE_MAX - 2 bytes.
122628         From Bruno Haible.
122629         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
122630         not (size_t) -1, since it's defined here.
122632 2003-11-09  Karl Berry  <karl@gnu.org>
122634         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
122636 2003-11-06  Paul Eggert  <eggert@twinsun.com>
122638         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
122639         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
122640         Reject sizes of exactly SIZE_MAX bytes.
122641         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
122642         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
122644 2003-11-05  Bruno Haible  <bruno@clisp.org>
122646         * lib/xsize.h: Include limits.h, to avoid a possible collision with
122647         SIZE_MAX defined in <limits.h> on Solaris.
122649 2003-11-04  Jim Meyering  <jim@meyering.net>
122651         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
122652         variable names, rather than @VAR@.
122653         * modules/poll: Likewise.
122655 2003-11-04  Bruno Haible  <bruno@clisp.org>
122657         * modules/xsize: New file.
122658         * modules/linebreak: Depend on xsize.
122659         * MODULES.html.sh (func_all_modules): Add xsize.
122661 2003-11-04  Bruno Haible  <bruno@clisp.org>
122663         * m4/xsize.m4: New file.
122665 2003-11-04  Bruno Haible  <bruno@clisp.org>
122667         * lib/xsize.h: New file.
122668         * lib/linebreak.c: Include xsize.h.
122669         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122670         argument for overflow.
122671         Suggested by Paul Eggert.
122673 2003-11-03  Karl Berry  <karl@gnu.org>
122675         * config/config.{guess,sub}: update from config.
122677 2003-11-03  Jim Meyering  <jim@meyering.net>
122679         * modules/userspec (lib_SOURCES): Add userspec.h.
122680         (Include): Add "userspec.h".
122681         Improve description.
122683 2003-11-03  Jim Meyering  <jim@meyering.net>
122685         * lib/userspec.c: Include "userspec.h".
122686         * lib/userspec.h: New file.
122688 2003-11-03  Bruno Haible  <bruno@clisp.org>
122690         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122692 2003-11-03  Bruno Haible  <bruno@clisp.org>
122694         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122695         available, to avoid (extremely rare) race condition.
122696         Suggested by Paul Eggert.
122698 2003-11-02  Karl Berry  <karl@gnu.org>
122700         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122702 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122704         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122705         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122706         (read_filesystem_list): Set and use me_type_malloced.
122707         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
122708         whatever the type happens to be), for brevity and consistency.
122709         Check for size calculation overflow on Alphas running OSF/1.
122711 2003-10-31  Jim Meyering  <jim@meyering.net>
122713         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
122715         * lib/linebuffer.c: Include <string.h> for declaration of memset.
122717 2003-10-30  Paul Eggert  <eggert@twinsun.com>
122718             Bruno Haible  <bruno@clisp.org>
122720         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
122721         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
122723 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
122725         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
122726         netbsd*-gnu*.  Suggested by Robert Millan.
122728 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122730         * modules/group-member: Depend on stdbool.
122732 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122734         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
122736 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122738         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
122739         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
122740         after the 'gnu' in these cases.  This fixes some bugs in the
122741         previous change, and is based on suggestions by Robert Millan.
122743 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122745         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
122746         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
122747         no longer needed.
122748         * lib/quotearg.c (quotearg_n_options): Use it.
122749         * lib/group-member.c: Include <stdbool.h>.
122750         (free_group_info): Arg is now const *; don't free arg.
122751         (get_group_info): Now returns bool and accepts struct group_info *,
122752         rather than returning a malloc'ed struct group_info *.
122753         All uses changed.  Check for overflow in internal size calculation.
122755         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
122756         rather than xmalloc/xrealloc.
122757         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
122758         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
122759         conformance bug: the old code used a pointer after freeing the
122760         storage that it addressed.
122761         * lib/hash.c (hash_initialize): Simplify the code by using
122762         xalloc_oversized rather than doing it by hand.
122763         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
122764         the buffer preserved.  Use free and xmalloc instead.
122765         * lib/quotearg.c (quotearg_n_options): Likewise.
122766         Use a simpler test for size overflow.  Don't use xalloc_oversized
122767         because unsigned int might be wider than size_t (!); this suggests
122768         that we should switch from unsigned int to size_t for slot numbers.
122770 2003-10-28  Paul Eggert  <eggert@twinsun.com>
122772         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
122773         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
122774         NetBSD kernels.  Requested by Richard Stallman.
122776 2003-10-27  Paul Eggert  <eggert@twinsun.com>
122778         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
122779         to allocate the returned structure.  Do not allocate a subarray,
122780         as x2nrealloc will do that.
122781         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
122782         instead of xnrealloc.
122783         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
122785 2003-10-27  Bruno Haible  <bruno@clisp.org>
122787         * lib/stdbool_.h: Better support for BeOS.
122789 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122791         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
122792         now uses inline.
122794 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122796         * lib/xalloc.h (xalloc_oversized): New static inline function, for
122797         callers that want to do their own size-overflow checking.  Include
122798         <stdbool.h>, since xalloc_oversized returns bool.
122799         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
122800         to use xalloc_oversized.
122802         Add two functions x2realloc, x2nrealloc, for programs that grow
122803         arrays dynamically by doubling their sizes.
122804         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
122805         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122806         New functions.
122808         Port to C99 semantics for 'inline' of external functions.
122809         Bug reported by Bruno Haible.
122810         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122811         with the old contents of xnmalloc.
122812         (xnmalloc, xmalloc): Use it.
122813         (xnrealloc_inline): New static inline function,
122814         with the old contents of xnrealloc.
122815         (xnrealloc, xrealloc): Use it.
122817         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122818         that.
122820 2003-10-26  Karl Berry  <karl@gnu.org>
122822         * config/srclist.txt (COPYING.DOC): no longer available from
122823         /gd/gnuorg; don't know where the ultimate source is.
122825 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122827         Fix several address-calculation bugs in the hash modules,
122828         plus some minor code cleanup.
122830         * lib/hash.h: Include <stdbool.h>, for bool.
122831         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122832         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122833         hash_get_n_entries, hash_get_max_bucket_length,
122834         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122835         hash_rehash): Use size_t rather than unsigned.
122836         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122837         hash_get_n_buckets_used, hash_get_n_entries,
122838         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122839         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122840         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122841         Likewise.
122842         (SIZE_MAX): Define if not defined.
122843         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122844         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122845         hash_print):
122846         Use const * when possible.
122847         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122848         (check_tuning): Fix bug: if tuning parameters were very close to
122849         0 or 1, rounding errors could have caused subscript violations.
122850         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122851         (hash_initialize): Add 'fail:' label
122852         to free table and return NULL, and use it to simplify code.
122853         Use calloc rather than clearing the storage ourself.
122854         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122855         buffer size calculations.
122856         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122857         Include <stddef.h>, for size_t.
122858         * lib/hash-pjw.c (hash_pjw): Likewise.
122859         Switch to method described by Bruno Haible.
122860         Include <limits.h>, for CHAR_BIT.
122861         (SIZE_BITS): New macro.
122863 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122865         * m4/getline.m4 (AM_FUNC_GETLINE):
122866         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122867         hosts.  Problem reported by Derek Robert Price in
122868         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122869         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122870         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122872 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122874         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122875         ceiling the allocation at NMAX bytes rather than silently
122876         discarding input bytes before NMAX is reached.  This makes
122877         a difference only if NMAX exceeds SIZE_MAX / 2.
122879         * lib/obstack.c: Merge from glibc.
122880         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122881         Add libc_hidden_def (_obstack_newchunk).
122882         (_obstack_free) [! defined _LIBC]: Remove.
122883         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122884         a clone of the function body.
122885         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122886         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122888         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122889         glibc.
122890         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122891         arg to memcpy.
122893         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122894         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122895         Don't use lvalue casts, as GCC plans to remove support for them
122896         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122897         was also present in the non-GCC version, indicating that this
122898         code had always been buggy and had never been widely used.
122899         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122900         Use the fast variant of each macro, rather than copying the
122901         definiens of the fast variant; that way, we'll be more likely to
122902         catch future bugs in the fast variants.
122904 2003-10-20  Bruno Haible  <bruno@clisp.org>
122906         * modules/wait-process: New file.
122907         * MODULES.html.sh (func_all_modules): Add wait-process.
122909 2003-10-20  Bruno Haible  <bruno@clisp.org>
122911         * m4/wait-process.m4: New file.
122913 2003-10-20  Bruno Haible  <bruno@clisp.org>
122915         * lib/wait-process.h: New file, from GNU gettext.
122916         * lib/wait-process.c: New file, from GNU gettext.
122918 2003-10-19  Jim Meyering  <jim@meyering.net>
122920         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122921         HPUX 10.20.
122923 2003-10-18  Karl Berry  <karl@gnu.org>
122925         * config/config.guess: update from config.
122927 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122929         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122930         (getgroups): First arg is int, not size_t.
122931         Don't let 'free' mangle errno.
122933 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122935         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122937 2003-10-16  Karl Berry  <karl@gnu.org>
122939         * config/config.{guess,sub}: update from config.
122941 2003-10-16  Jim Meyering  <jim@meyering.net>
122943         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122944         memcpy.
122946 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122948         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122949         (SIZE_MAX): Remove.
122950         (new_exclude, add_exclude_file): Initial size no longer needs to
122951         be a power of 2.
122952         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122953         our own address arithmetic overflow checking.
122955         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122956         (fnmatch): Do not alloca more than 2000 wide characters;
122957         instead, use malloc for large buffers.
122958         Check for address arithmetic overflow, and return -1
122959         with errno set to ENOMEM in that case.
122960         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122961         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122962         instead, return -1.  Check for address arithmetic overflow.
122964 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122966         Handle invalid suffixes and overflow independently, so that
122967         callers can treat them independently as needed.  Fix some bugs in
122968         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122969         suffix for a human-readable blocksize.  The major caller-visible
122970         change is the addition of a new
122971         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122972         that both overflow and suffix chars were found.
122974         * lib/human.c (humblock): Don't check separately for invalid suffix
122975         char; that is xstrtoumax's job (now that its bug is fixed).
122976         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122977         INTMAX_MAX]: New macros.
122978         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122979         TYPE_MAXIMUM): New macros.
122980         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122981         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122982         if overflow occurs, as it's what __strtol does and it's more useful
122983         in practice.
122984         (__xstrtol): If __strtol reports some error other than ERANGE,
122985         reflect it to the caller as LONGINT_INVALID.  If it reports
122986         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122987         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122988         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122989         value.
122990         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122991         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122992         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122993         [defined UINTMAX_MAX]: New macros.
122995 2003-10-14  Bruno Haible  <bruno@clisp.org>
122997         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122999 2003-10-14  Bruno Haible  <bruno@clisp.org>
123001         * m4/sig_atomic_t: New file, from GNU gettext.
123002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
123004 2003-10-14  Bruno Haible  <bruno@clisp.org>
123006         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
123007         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
123008         Also use volatile where needed.
123010 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123012         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
123013         Change maintainer from Bruno Haible to 'all'.
123015 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123017         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
123019 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123021         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
123022         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
123023         and define in terms of the other primitives.
123024         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
123025         (SIZE_MAX): Define if not already defined.
123026         (array_size_overflow): New function.
123027         (xalloc_die): Abort instead of exiting if 'error' returns.
123028         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
123029         (xmalloc, xrealloc): Use them.
123030         (xcalloc): Check for address arithmetic overflow.
123031         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
123032         a bit faster than strcpy.
123034 2003-10-10  Simon Josefsson  <jas@extundo.com>
123036         * modules/argp (Depends-on): Add restrict and strcase.
123038 2003-10-10  Simon Josefsson  <jas@extundo.com>
123040         * m4/argp.m4: Add AC_C_INLINE.
123042 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123044         Merge getpass from libc, plus a few fixes.
123046         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
123047         Include <stdbool.h>.
123048         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
123049         __fsetlocking to empty.
123050         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
123051         do include <bits/libc-lock.h>.
123052         Do not include <fcntl.h>; not needed.
123053         [_LIBC]: Include <wchar.h>.
123054         (NOTCANCEL_MODE): New macro.
123055         (flockfile, funlockfile) [_LIBC]: New macros.
123056         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
123057         [!_LIBC]: New macros.
123058         (call_fclose): New function.
123059         (getpass): Use it.  Save tty stream separately; this simplifies the
123060         code and makes it more reliable if stdin happens to equal stdout.
123061         Invoke __fsetlocking on tty.
123062         Handle thread cancellation if needed.
123063         Namespace cleanup (use __tcgetattr, __getline).
123064         Use bool for Booleans.
123065         [USE_IN_LIBIO]: Handle wide streams.
123066         [!_LIBC]: Unconditionally do the fseek, since we don't know what
123067         stream might go where.
123069         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
123070         doesn't have to include <stdio.h> before us.
123071         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
123072         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
123073         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
123074         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
123075         if not declared, so that we can use getpass.c code from libc without
123076         rewriting it.
123077         (flockfile, ftrylockfile, funlockfile): New macros.
123079 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123081         * modules/getpass: Depend on stdbool.
123083 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123085         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
123087 2003-10-07  Karl Berry  <karl@gnu.org>
123089         * config/config.{guess,sub}: update from config.
123091 2003-10-06  Jim Meyering  <jim@meyering.net>
123092             Bruno Haible  <bruno@clisp.org>
123094         This lets translators provide better translations for the
123095         "Written by ..." part of --version output.
123096         * lib/version-etc.h: Include stdarg.h.
123097         (version_etc_copyright): Declare as readonly.
123098         (version_etc): Make this function variadic with a NULL-terminated list
123099         of author name strings.
123100         (version_etc_va): New declaration.
123101         * lib/version-etc.c: Include stdarg.h, stdlib.h.
123102         (version_etc_copyright): Declare as readonly.
123103         (version_etc_va): New function. Provide a different translatable string
123104         for each possible number of authors < 10. Abbreviate when there are 10
123105         authors or more.
123106         (version_etc): Make this function variadic. Call version_etc_va.
123107         Suggestion from Gary V. Vaughan.
123109         * lib/long-options.h (parse_long_options): Change prototype: the
123110         authors string is moved to the end and becomes variadic.
123111         * lib/long-options.c: Include stdarg.h.
123112         (parse_long_options): Make this function variadic, too.
123113         Call version_etc_va, not version_etc.
123115 2003-10-06  Bruno Haible  <bruno@clisp.org>
123117         * modules/version-etc-2: Remove file.
123118         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
123120 2003-10-06  Bruno Haible  <bruno@clisp.org>
123122         * modules/fatal-signal: New file.
123123         * MODULES.html.sh (func_all_modules): Add fatal-signal.
123125 2003-10-06  Bruno Haible  <bruno@clisp.org>
123127         * m4/fatal-signal.m4: New file.
123128         * m4/signalblocking.m4: New file, from GNU gettext.
123130 2003-10-06  Bruno Haible  <bruno@clisp.org>
123132         * lib/version-etc-2.h: Remove file.
123133         * lib/version-etc-2.c: Remove file.
123135 2003-10-06  Bruno Haible  <bruno@clisp.org>
123137         * lib/fatal-signal.h: New file, from GNU gettext.
123138         * lib/fatal-signal.c: New file, from GNU gettext.
123140 2003-10-05  Paul Eggert  <eggert@twinsun.com>
123142         * README: Rework advice for preventing empty .o files.
123143         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
123144         not <sys/types.h>.
123146 2003-10-04  Karl Berry  <karl@gnu.org>
123148         * lib/argp*: update from libc.
123150 2003-10-04  Karl Berry  <karl@gnu.org>
123152         * config/config.{guess,sub}: update from config.
123154 2003-10-02  Bruno Haible  <bruno@clisp.org>
123156         * modules/lchown (Include): Add lchown.h.
123157         * modules/time_r (Include): Use "..." syntax.
123158         * modules/xgetdomainname (Include): Add xgetdomainname.h.
123160 2003-10-01  Simon Josefsson  <jas@extundo.com>
123162         * MODULES.html.sh (func_all_modules): Move gethostname from section
123163         'based on' to section 'lacking' POSIX:2001.
123165 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
123167         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
123168         to output mode on the same stream.
123170 2003-09-29  Paul Eggert  <eggert@twinsun.com>
123172         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
123173         Fix arg typo in previous patch.
123175 2003-09-28  Jim Meyering  <jim@meyering.net>
123177         * lib/error.c: Correct cpp indentation.
123179 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123181         * modules/free: New file.
123183 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123185         * m4/free.m4: New file.
123187 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123189         * lib/minmax.h (MIN, MAX)
123190         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
123191         Omit the special code that used __typeof__, since we worry that
123192         it could be more trouble than it's worth.  See:
123193         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
123194         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
123196         * lib/free.c: New file.
123198 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
123200         Trivial fixes to Makefile.am parts of module listings.
123201         * modules/strstr: Append strstr.h to lib_SOURCES.
123202         * modules/strcase: Likewise, for strcase.h.
123204 2003-09-27  Karl Berry  <karl@gnu.org>
123206         * config/mkinstalldirs: update from automake.
123208 2003-09-26  Paul Eggert  <eggert@twinsun.com>
123210         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
123211         (error_tail): Do not loop, reallocating temporary buffer, since
123212         the output cannot contain more wide characters than the input
123213         contains bytes, the size must be big enough already.  This avoids
123214         one potential size overflow calculation.  Check for size overflow
123215         when calculating temporary buffer size.  Free temporary buffer
123216         when done, if it was allocated with malloc; this plugs a memory
123217         leak.  Remove casts from void * to pointers, that are no longer
123218         needed now that we're assuming C89 or better.
123220         Merge error changes from glibc.
123222         * lib/error.c, error.h: Update copyright notice header to match glibc.
123223         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
123224         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
123225         Disable cancellation while printing error.
123226         * lib/error.h: Prepend __ to parameter names.
123228 2003-09-26  Jim Meyering  <jim@meyering.net>
123230         * lib/error.c (error_tail): Move some declarations
123231         into inner scope where the local variables are used.
123233 2003-09-26  Bruno Haible  <bruno@clisp.org>
123235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
123236         stpncpy().
123237         Don't define stpncpy through config.h; it's now done through stpncpy.h.
123239 2003-09-26  Bruno Haible  <bruno@clisp.org>
123241         * lib/stpncpy.h (gnu_stpncpy): New declaration.
123242         (stpncpy): Define as alias for gnu_stpncpy.
123243         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
123245 2003-09-25  Simon Josefsson  <jas@extundo.com>
123247         * lib/xgetdomainname.h: New file.
123248         * lib/xgetdomainname.c: New file.
123250 2003-09-25  Simon Josefsson  <jas@extundo.com>
123251             Bruno Haible  <bruno@clisp.org>
123253         * modules/getdomainname: New file.
123254         * modules/xgetdomainname: New file.
123255         * MODULES.html.sh (func_all_modules): Add getdomainname,
123256         xgetdomainname.
123258 2003-09-25  Simon Josefsson  <jas@extundo.com>
123259             Bruno Haible  <bruno@clisp.org>
123261         * m4/getdomainname.m4: New file.
123263 2003-09-25  Simon Josefsson  <jas@extundo.com>
123264             Bruno Haible  <bruno@clisp.org>
123266         * lib/getdomainname.h: New file.
123267         * lib/getdomainname.c: New file.
123269 2003-09-25  Karl Berry  <karl@gnu.org>
123271         * lib/argp-fmtstream.c, argp-help.c: update from libc.
123273 2003-09-25  Karl Berry  <karl@gnu.org>
123275         * config/install-sh: update from automake.
123277 2003-09-25  Bruno Haible  <bruno@clisp.org>
123279         * modules/version-etc-2: New file, from modules/version-etc with
123280         modifications.
123281         * MODULES.html.sh (func_all_modules): Add version-etc-2.
123283 2003-09-25  Bruno Haible  <bruno@clisp.org>
123285         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
123286         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
123288 2003-09-24  Simon Josefsson  <jas@extundo.com>
123290         * modules/xgethostname: Add xgethostname.h.
123292 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123294         * lib/linebuffer.c (freebuffer): Don't free the argument, just
123295         the buffer associated with the argument.  Bug reported by
123296         Simon Josefsson.
123298 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123300         * README: Document assumptions that 'int' is at least 32 bits
123301         wide, that integer arithmetic is 2's complement without overflow,
123302         that there are no holes in integer values, that adding sizes of
123303         two nonoverlapping objects can't overflow, and that all-bits-zero
123304         yields scalar zero.  Fix spelling and capitalization typos.
123306 2003-09-19  Karl Berry  <karl@gnu.org>
123308         * lib/argp.h: update from libc.
123310 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
123313         to avoid spurious warnings like "AC_RUN_IFELSE was called before
123314         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
123316 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123318         * gnulib-tool: Use "test -h", not "test -L", for portability
123319         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
123320         (tags_regexp): Remove, since \| doesn't conform to POSIX.
123321         (sed_extract_prog): Issue s commands one-by-one, rather than
123322         using \| in one s command.
123324 2003-09-16  Paul Eggert  <eggert@twinsun.com>
123326         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
123327         input error, instead of returning NULL the next time we are called
123328         (and therefore losing track of errno).
123330 2003-09-16  Bruno Haible  <bruno@clisp.org>
123332         * gnulib-tool (func_create_testdir): Warn about duplicated
123333         dependencies.
123335 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123337         * modules/argmatch, modules/fatal, modules/obstack,
123338         modules/xalloc, modules/xgethostname: Sort dependencies by
123339         importance, not alphabetically.
123341 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123343         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
123344         fails, so that the caller gets the proper errno.
123346         * lib/readutmp.c (read_utmp): Likewise.
123347         Check for fstat error.  Close stream and free storage
123348         when failing.
123350 2003-09-14  Karl Berry  <karl@gnu.org>
123352         * config/srclist.txt (strdup.c): disable for c89 changes.
123354 2003-09-14  Jim Meyering  <jim@meyering.net>
123356         * lib/getloadavg.c: Correct cpp indentation.
123357         * lib/strdup.c: Likewise.
123358         * lib/vasnprintf.c: Likewise.
123360 2003-09-14  Bruno Haible  <bruno@clisp.org>
123362         * modules/fwriteerror: New file.
123363         * MODULES.html.sh (func_all_modules): Add fwriteerror.
123365 2003-09-14  Bruno Haible  <bruno@clisp.org>
123367         * lib/fwriteerror.h: New file.
123368         * lib/fwriteerror.c: New file.
123370 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123372         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
123373         modules/xgethostname, modules/xalloc: Depend on exit.
123375 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123377         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
123379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
123380         and AC_MINIX, too, so that their extensions are available.
123382         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
123383         This macro has been superseded by gl_BACKUPFILE.
123385         More patches to assume C89 or better.
123387         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
123389         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
123390         unconditionally.
123391         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
123392         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
123393         Include <string.h>, <stdlib.h> unconditionally.
123394         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
123395         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
123396         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
123397         headers or for string.h.
123398         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
123399         or strtoul.
123401         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
123402         headers.
123403         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
123404         * m4/userspec.m4 (gl_USERSPEC): Likewise.
123405         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
123406         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
123407         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
123408         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
123409         memcpy, memset.
123410         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
123411         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
123412         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
123413         strtol.
123414         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
123415         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
123416         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
123417         strtoul.
123419 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123421         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
123422         * lib/obstack.c [!defined _LIBC]: Likewise.
123423         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
123424         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
123425         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
123427         More changes to assume C89 or better.
123429         * lib/error.c (error_tail): Assume vprintf.
123431         * lib/argmatch.c (getenv): Remove decl.
123432         * lib/progreloc.c (get_full_program_name): Define via prototype.
123433         * lib/setenv.c (clearenv): Likewise.
123434         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
123435         needed.
123436         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
123437         (malloc, memcpy): Remove decls.
123438         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
123439         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
123440         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123441         (memcpy): Remove macro.
123442         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
123443         (__P): Remove.  All uses removed.
123444         (PTR): Remove.  All uses changed to void *.
123445         (CHAR_BIT, NULL): Remove.
123446         (spaces, zeros, memset_space, memset_zero)
123447         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
123448         Remove.
123449         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
123450         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
123451         Define with prototype.
123452         Remove now-unnecessary prototype decl.
123453         (extra_args_spec): Assume ANSI C.  All uses changed.
123454         (extra_args_spec_iso): Remove.
123455         (my_strftime, emacs_strftimeu): Define via prototype.
123456         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
123457         unconditionally.
123458         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
123459         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
123460         (strtoul, strtol): Remove decls.
123461         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
123462         LONG_MAX): Remove.
123463         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123464         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
123465         (LOCALE_PARAM_PROTO): New macro.
123466         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
123467         (INTERNAL (strtol), strtol): Define with a prototype.
123468         (PARAMS): Remove.  All uses removed.
123469         * lib/tempname.c: Include <string.h> unconditionally.
123470         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
123471         * lib/xgethostname.c (main): Define with a prototype.
123472         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
123473         Include <stdlib.h> unconditionally.
123474         (calloc, malloc, realloc, free): Remove decls.
123475         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
123476         Include <stdlib.h> unconditionally.  Sort include file names.
123477         (strtod): Remove.
123478         (xstrtod): Define with a prototype.
123479         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
123480         (strtol, strtoul): Remove decls.
123482 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123484         More patches to assume C89 or better.
123485         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
123486         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
123487         string.h, memchr, STDC_HEADERS.
123489 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123491         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
123492         Include <stdlib.h>, <string.h> unconditionally.
123493         Remove now-unnecessary cast to char *.
123494         * lib/strnlen.c: Include <string.h> unconditionally.
123495         * lib/yesno.c (yesno): Define with a prototype.
123497 2003-09-11  Bruno Haible  <bruno@clisp.org>
123499         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
123501 2003-09-10  Jim Meyering  <jim@meyering.net>
123503         * lib/error.c: Correct indentation of cpp directives.
123505 2003-09-10  Bruno Haible  <bruno@clisp.org>
123507         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
123508         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
123509         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
123510         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
123511         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
123512         <stdlib.h> and <string.h> checks.
123513         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
123514         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
123516 2003-09-10  Bruno Haible  <bruno@clisp.org>
123518         * lib/strcspn.c: Include <string.h> unconditionally.
123519         * lib/strpbrk.c: Include <string.h> unconditionally.
123520         * lib/strstr.c: Include <string.h> unconditionally.
123521         * lib/unicodeio.c: Include <string.h> unconditionally.
123522         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
123523         * lib/unsetenv.c: Likewise.
123524         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
123525         * lib/yesno.c: Include <stdlib.h> unconditionally.
123526         (rpmatch): Add prototype.
123528 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123530         More patches to assume C89 or better.
123531         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
123532         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
123533         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
123534         or for string.h.
123535         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
123536         stdlib.h.
123537         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
123538         C headers.
123539         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
123540         string.h.
123541         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
123542         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
123543         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
123544         or for string.h.
123545         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
123546         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
123547         C headers.
123548         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
123549         memcpy.
123550         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
123551         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
123552         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
123553         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
123554         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
123555         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
123556         string.h, free.
123557         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
123558         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
123559         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
123560         C headers, or for string.h.
123561         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
123562         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
123563         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
123564         headers, memory.h, stdlib.h, string.h, strings.h.
123565         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
123566         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
123567         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
123568         strchr.
123569         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
123570         headers, memory.h, string.h.
123571         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
123572         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
123573         free.
123574         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
123575         headers.
123576         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
123577         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
123578         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
123579         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
123580         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
123582 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123584         More K&R removal.
123586         * lib/acosl.c (main): Use a prototype.
123587         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
123588         tanl.c: Likewise.
123590         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
123592         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
123593         (getopt, etopt_long, getopt_long_only, _getopt_internal)
123594         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
123595         with a prototype.
123596         * lib/getopt.c (const): Remove macro.
123597         Include <string.h> unconditionally.
123598         (my_index): Remove; all uses changed to strchr.
123599         (strlen): Remove decl.
123600         (exchange): Remove forward decl; no longer needed.
123601         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
123602         Define with prototype.
123603         * lib/getopt1.c (const): Remove macro.
123604         (getopt_long, getopt_long_only, main): Define with prototype.
123606         * lib/getugroups.c: Include <string.h> unconditionally.
123608         * lib/getusershell.c: Include <stdlib.h> unconditionally.
123609         (getusershell, setusershell, endusershell, readname, main):
123610         Define with prototypes.
123612         * lib/group-member.c: Include group-member.h first.
123613         Include <stdlib.h> unconditionally.
123615         * lib/hard-locale.c: Include hard-locale.h first.
123616         Include <stdlib.h>, <string.h> unconditionally.
123618         * lib/hash.c (free, malloc): Remove decls.
123619         Include <stdlib.h> unconditionally.
123621         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
123622         (getenv): Do not declare.
123624         * lib/idcache.c: Include <string.h> unconditionally.
123626         * lib/long-options.c: Include long-options.h first, to test interface.
123627         Include <stdlib.h> unconditionally.
123629         * lib/makepath.c: Include makepath.h first, to test interface.
123630         Include <stdlib.h> and <string.h> unconditionally.
123632         * lib/linebuffer.c: Include <stdlib.h>.
123633         (free): Remove decl.
123635         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
123636         stddef.h. rpl_malloc returns void *, not char *.
123637         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
123638         prototype.
123640         * lib/md5.h: Include <limits.h> unconditionally.
123641         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
123642         (__P): Remove; all uses removed.
123643         * lib/md5.c: Include "md5.h" first.
123644         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
123645         md5_buffer, md5_process_bytes, md5_process_block):
123646         Define with prototypes.
123647         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
123648         * lib/sha.c: Include "sha.h" first.
123649         Include <stdlib.h>, <string.h> unconditionally.
123651         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
123652         * lib/memcmp.c (__ptr_t): Likewise.
123653         * lib/memrchr.c (__ptr_t): Likewise.
123654         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
123655         Include <string.h> unconditionally.
123656         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
123657         * lib/memchr.c: Include <stdlib.h> unconditionally.
123658         * lib/memchr.c (LONG_MAX): Remove.
123659         * lib/memrchr.c (LONG_MAX): Likewise.
123660         * lib/memchr.c (__memchr): Define via a prototype.
123661         * lib/memrchr.c (__memrchr): Likewise.
123662         * lib/memcmp.c (__P): Remove, and remove all uses.
123663         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
123664         Remove forward decls; no longer needed.
123665         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
123666         Use types required by C89 in prototype.
123668         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123669         * lib/savedir.c: Likewise.
123670         * lib/mkdir.c (free): Remove decl.
123671         * lib/rmdir.c (rmdir): Define with a prototype.
123672         * lib/savedir.c: Include savedir.h first, to test interface.
123674         * lib/mktime.c (STDC_HEADERS): Remove.
123675         Include <stdlib.h>, <string.h> unconditionally.
123677         * lib/modechange.c: Include <stdlib.h> unconditionally.
123678         (malloc): Remove decl.
123680         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123681         (free): Remove decl.
123683         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123684         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123685         (This type really should be intptr_t, but that's a C99ism.)
123686         (_obstack_memcpy): Remove: all uses changed to memcpy.
123687         Include <string.h> unconditionally.
123688         (struct obstack): Assume __STDC__ for types of members
123689         chunkfun, freefun, extra_arg.
123690         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123691         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123692         obstack_begin, obstack_specify_allocation,
123693         obstack_specify_allocation_with_arg, obstack_chunkfun,
123694         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123695         Remove unprototyped decls and the macros that use them.
123696         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123697         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123698         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123699         (defined __STDC__ && __STDC__)]:
123700         Remove nonprototyped code.
123701         Include <stdlib.h> unconditionally.
123702         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123703         _obstack_allocated_p, _obstack_free, obstack_free,
123704         _obstack_memory_used, print_and_abort):
123705         Define using prototypes.
123706         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123707         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
123708         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
123709         obstack_next_free, obstack_object_size, obstack_room) [0]:
123710         Remove unused, unprototyped code.
123712         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
123714         * lib/physmem.c (physmem_total, physmem_available, main): Define
123715         with prototypes.
123717         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
123718         (main): Define with a prototype.
123720         * lib/posixver.c (getenv): Remove decl.
123722         * lib/putenv.c (malloc): Returns void *, not char *.
123723         Include <string.h> unconditionally.
123724         (strchr, memcpy, NULL): Do not define.
123726         * lib/readtokens.c: Include readtokens.h first, to test interface.
123727         Include <stdlib.h>, <string.h> unconditionally.
123728         (init_tokenbuffer): Define with a prototype.
123730         * lib/regex.c (PARAMS): Remove.  All uses removed.
123731         All uses of _RE_ARGS removed, too.
123732         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123733         unconditionally.
123734         (bzero): Assume memset exists.
123735         (memcmp, memcpy, NULL): Remove.
123736         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
123737         char, or assignments to local vars of type signed char.
123738         (init_syntax_once, PREFIX(extract_number_and_incr),
123739         PREFIX(print_partial_compiled_pattern),
123740         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
123741         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
123742         PREFIX(regex_grow_registers), PREFIX(regex_compile),
123743         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
123744         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
123745         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
123746         wcs_compile_range, byte_compile_range, truncate_wchar,
123747         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
123748         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
123749         count_mbs_length, wcs_re_match_2_internal,
123750         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
123751         PREFIX(alt_match_null_string_p),
123752         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
123753         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
123754         regfree, PREFIX(extract_number)): Define with prototype.  Remove
123755         now-unnecessary declaration, if any.
123756         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
123757         regcomp, regexec):
123758         Remove now-unnecessary casts among pointer types.
123759         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
123761         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
123762         (free): Remove decl.
123764         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
123766         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
123767         (free): Remove decl.
123769         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
123770         * lib/xgetcwd.c: Likewise.
123772         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
123773         (free): Remove decl.
123775         * lib/strchrnul.c (strchrnul): Define with a prototype.
123776         Fix bug: c_in was not converted to char before searching.
123778         The following changes are not K&R related:
123780         * lib/group-member.h: Include <sys/types.h>, so that this file is
123781         self-contained.
123782         * lib/makepath.h: Likewise.
123784         * lib/getusershell.c (readname, default_index, line_size, readname):
123785         Use size_t, not int, for sizes.
123786         (readname): If the size overflows, report an error instead of
123787         looping forever.
123789 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123791         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
123792         libc.
123794 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123796         * README: New section: portability guidelines.
123798 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123800         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
123801         C89 spec.
123803 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123805         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123807 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123809         Assume C89 or better; remove K&R cruft.
123810         A few of these changes were first proposed by Derek Robert Price
123811         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123813         * lib/addext.c: Include <string.h> unconditionally.
123814         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123815         Don't declare getenv or malloc.
123817         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123818         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123819         (NULL): Remove.
123820         (find_stack_direction, alloca): Use prototypes.
123822         * lib/atexit.c (atexit): Define using a prototype.
123824         * lib/basename.c, dirname.c, stripslash.c:
123825         Include <string.h> unconditionally.
123827         * lib/bcopy.c: Include <stddef.h>.
123828         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123830         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123832         * lib/error.h (error, error_at_line, error_print_progname)
123833         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123834         * lib/error.c: Include error.h first, to check interface.
123835         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123836         (VA_START): Remove; all uses changeed to va_start.
123837         (exit, strerror): Remove decls.
123838         (error_print_progname): Prototype uncondionally.
123839         Don't include <errno.h>; no longer needed.
123840         (private_strerror): Remove.
123841         (error_tail): Always define.
123842         (error, error_at_line): Assume C89 or better; always use prototypes.
123843         * lib/fatal.c: Include "fatal.h" first, to test interface.
123844         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123845         (VA_START): Remove; all uses changed to va_start.
123846         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123847         this case.
123848         (exit): Remove decl.
123849         (fatal): Prototype unconditionally.  Assume va_start works.
123850         Abort at end, to pacify gcc.
123852         * lib/euidaccess.c (main): Define with a prototype.
123854         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123856         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123858         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123859         prototypes.
123860         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123861         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123862         (getenv): Remove decl.
123863         (fnmatch): Define using a prototype.
123864         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123865         (FCT): Define using a prototype.
123867         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123869         * lib/gethostname.c: Include <stddef.h>.
123870         (gethostname): Define with prototype.  Length is size_t, not int.
123872 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123874         Assume C89 or better; remove K&R cruft.
123875         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123876         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123877         string.h, getenv, malloc.
123878         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123879         headers.
123880         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123881         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123882         do not check for strerror.
123883         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123884         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123885         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123886         do not check for doprnt or vprintf.
123887         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123888         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123890 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123892         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123893         getversion.c should have been removed then, but was accidentally
123894         preserved.
123896         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123897         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123899 2003-09-08  Karl Berry  <karl@gnu.org>
123901         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123902                 config, forget about prep.
123904         * config/depcomp, missing: update from automake.
123906 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123908         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123909         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123911 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123913         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123914         copy_tm_result.  Bug reported by Simon Josefsson in
123915         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123917 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123919         * m4/time_r.m4: New file.
123920         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123921         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123922         is. Check for timegm declaration.
123923         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123924         Do not check for gmtime_r.
123925         Replace mktime if __mktime_internal does not exist and if mktime
123926         hasn't been replaced already.
123928 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123930         * lib/time_r.c, lib/time_r.h: New files.
123932         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123933         __localtime_r.
123934         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123935         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123937         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123938         __gmtime_r.
123939         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123940         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123941         Include <time_r.h>.
123943         * lib/timegm.c: Switch to glibc implementation, with the following
123944         changes:
123945         [defined HAVE_CONFIG_H]: Include <config.h>.
123946         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123947         (__mktime_internal) [!defined _LIBC]: New decl.
123948         (__gmtime_r) [!defined _LIBC]: New macro and function.
123949         (timegm): Use a prototype, since gnulib assumes C89.
123950         Do not bother declaring tmp to be const, as it's not really usefu.
123951         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123952         (timegm): Declare only if HAVE_DECL_TIMEGM.
123954 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123956         * MODULES.html.sh (func_all_modules): Add time_r.
123957         * modules/time_r: New file.
123958         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123959         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123961 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123963         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123964         Bug reported by Lute Kamstra in
123965         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123967         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123968         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123969         course with correspondingly smaller numbers for tomorrow and
123970         yesterday.  From Tadayoshi Funaba.  Originally installed into
123971         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123972         coreutils merge?).
123974 2003-08-31  Simon Josefsson  <jas@extundo.com>
123976         * modules/timegm: New file.
123977         * MODULES.html.sh (func_all_modules): Add timegm.
123979 2003-08-31  Simon Josefsson  <jas@extundo.com>
123981         * m4/timegm.m4: New file.
123983 2003-08-31  Simon Josefsson  <jas@extundo.com>
123985         * lib/timegm.h: New file.
123986         * lib/timegm.c: New file.  Based on
123987         wget-1.8.2/src/http.c:mktime_from_utc.
123989 2003-08-31  Karl Berry  <karl@gnu.org>
123991         * lib/argp.h: update from libc.
123993 2003-08-28  Bruno Haible  <bruno@clisp.org>
123995         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123996         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123997         followed by '#define fnmatch fnmatch_posix' gives an error.
123999 2003-08-28  Bruno Haible  <bruno@clisp.org>
124001         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
124002         warning on QNX, which defines O_BINARY to 000000.
124004 2003-08-27  Jim Meyering  <jim@meyering.net>
124006         * m4/mkstemp.m4: Require that the system mkstemp be able to create
124007         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
124008         would fail after 32.  Reported by Danny Levinson.  Details here:
124009         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
124011 2003-08-24  Bruno Haible  <bruno@clisp.org>
124013         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
124014         MSVC7 <stdio.h> is included later.
124016 2003-08-22  Simon Josefsson  <jas@extundo.com>
124018         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
124020 2003-08-20  Karl Berry  <karl@gnu.org>
124022         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
124024 2003-08-20  Bruno Haible  <bruno@clisp.org>
124026         * modules/progname: New file.
124027         * MODULES.html.sh (func_all_modules): Add progname.
124029 2003-08-20  Bruno Haible  <bruno@clisp.org>
124031         * lib/progname.h: New file, from GNU gettext.
124032         * lib/progname.c: New file, from GNU gettext.
124033         * lib/progreloc.c: New file, from GNU gettext.
124035 2003-08-19  Jim Meyering  <jim@meyering.net>
124037         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
124038         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
124040 2003-08-19  Bruno Haible  <bruno@clisp.org>
124042         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
124043         more.
124045 2003-08-19  Bruno Haible  <bruno@clisp.org>
124047         * lib/xstrdup.c: Assume <string.h> exists.
124049 2003-08-18  Paul Eggert  <eggert@twinsun.com>
124051         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
124052         in makefile rules.
124054 2003-08-18  Jim Meyering  <jim@meyering.net>
124056         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
124057         * m4/lib-ld.m4: Likewise.
124059 2003-08-18  Jim Meyering  <jim@meyering.net>
124061         * lib/setenv.h: Indent nested cpp directive.
124062         * lib/vasnprintf.c: Remove trailing blanks.
124064 2003-08-17  Simon Josefsson  <jas@extundo.com>
124066         * modules/xstrndup: New file.
124067         * MODULES.html.sh (func_all_modules): Add xstrndup.
124069 2003-08-17  Simon Josefsson  <jas@extundo.com>
124071         * modules/argp: Fix autoconf macro name. Add more dependencies.
124073 2003-08-17  Simon Josefsson  <jas@extundo.com>
124075         * m4/xstrndup.m4: New file.
124077 2003-08-17  Simon Josefsson  <jas@extundo.com>
124079         * m4/argp.m4: New file.
124081 2003-08-17  Simon Josefsson  <jas@extundo.com>
124082             Bruno Haible  <bruno@clisp.org>
124084         * lib/xstrndup.h: New file.
124085         * lib/xstrndup.c: New file.
124087 2003-08-17  Bruno Haible  <bruno@clisp.org>
124089         * modules/strndup (Files, Include): Add lib/strndup.h.
124091 2003-08-17  Bruno Haible  <bruno@clisp.org>
124093         * modules/euidaccess (Files): Add lib/euidaccess.h.
124095 2003-08-17  Bruno Haible  <bruno@clisp.org>
124097         * lib/strndup.h: New file.
124099 2003-08-17  Bruno Haible  <bruno@clisp.org>
124101         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
124102         like AC_GNU_SOURCE.
124103         * modules/extensions (configure.ac): Comment out the invocation of
124104         gl_USE_SYSTEM_EXTENSIONS.
124106 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124108         Merges from coreutils, etc.
124109         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
124110         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
124111         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
124112         fixing a typo.
124113         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
124114         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
124116 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124118         Document merge from coreutils.
124119         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
124120         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
124121         * modules/utime: Add m4/utimes-null.m4.
124123 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124125         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
124126         space, undoing this 2003-08-12 change:
124127         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124129 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124131         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
124132         strtoul.c from libc, undoing this 2003-08-12 change:
124133         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124135 2003-08-16  Jim Meyering  <jim@meyering.net>
124137         Merges from coreutils.
124138         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
124139         prefix.  Adjust cache variables similarly.  Create 500 rather than
124140         just 300 files, to exercise bug on Darwin6.5, too.
124141         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
124142         $missing_dir.
124143         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
124144         AM_SYS_POSIX_TERMIOS.
124145         Reported by mkc@mathdogs.com.
124146         Also change use of $am_cv_sys_posix_termios
124147         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
124148         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
124149         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
124150         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
124151         in /proc/mounts until it finds one with matching device number.  This
124152         is unnecessary when the FILE argument *is* a mount point.  No stat call
124153         is necessary in that case.  So, disable the statvfs-testing code on
124154         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
124155         as RedHat bug# 84846.
124156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124157         to 1MB, so as not to render systems with no stack size limit (e.g.,
124158         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124159         Include <unistd.h>.  On some systems,
124160         it is required for the definition of _SC_PAGESIZE.
124162 2003-08-16  Jim Meyering  <jim@meyering.net>
124164         Merge from coreutils.
124165         * lib/xstrtoimax.c: #else #if -> #elif.
124166         * lib/xstrtoumax.c: Likewise.
124168 2003-08-16  Jim Meyering  <jim@meyering.net>
124170         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
124171         * m4/utimes.m4: Removed.
124172         * m4/utimes-null.m4: Renamed from utimes.m4.
124174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124175         to 1MB, so as not to render systems with no stack size limit (e.g.,
124176         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124177         Include <unistd.h>.  On some systems,
124178         it is required for the definition of _SC_PAGESIZE.
124180 2003-08-16  Jim Meyering  <jim@meyering.net>
124181         and Paul Eggert  <eggert@cs.ucla.edu>
124183         Merges from coreutils, etc.
124185         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
124186         using the latest version from cvs.  This avoids problems with #line
124187         directives using a vendor (Sun) compiler.
124188         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
124189         Don't set GETGROUPS_LIB here; now it's
124190         done via getgroups.m4's wrapper function.
124191         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
124192         rather than just in sh-util/configure.in, so that the
124193         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
124194         same.
124195         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
124196         AC_FUNC_GETLOADAVG where to find getloadavg.c.
124197         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
124198         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
124199         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
124200         Remove code that is now done by the newly-required macros.
124201         Append $(EXEEXT) to DF_PROG.
124202         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
124203         Do not invoke or require the following here,
124204         since prereq.m4 or some gnulib .m4 now does this for us:
124205         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
124206         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
124207         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
124208         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
124209         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
124210         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
124211         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
124212         AC_FUNC_OBSTACK.
124213         Do not replace the following functions, as this is now the job
124214         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
124215         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
124216         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
124217         atexit getpass, strdup, getpagesize.
124218         Replace 'raise'.
124219         Do not check for the following functions, as this is now the job
124220         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
124221         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
124222         setregid.
124223         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
124224         Check for sys/sysctl.h.
124225         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
124226         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
124227         of checking for ssize_t ourselves.
124229         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
124230         Require every macro that gnulib/modules/* suggests for us.
124231         (jm_PREREQ_ADDEXT): New macro.
124232         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
124233         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
124235         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
124236         (gl_PHYSMEM): Use it.
124237         Also check for `table' function.
124238         Check for new headers and functions.
124239         Add check for sys/sysmp.h.
124240         With suggestions from Kaveh Ghazi.
124241         Ignore headers that are present but cannot be compiled.  This
124242         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
124243         C 5.4.
124245 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124247         Document merge from coreutils.
124248         * modules/userspec: Depend on posixver.
124249         * modules/strftime: Depend on tzset.
124251 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124253         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
124254         rather than tab, after '#' in shell-script copyright notices.
124255         Suggested by Bruno Haible.
124257 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124259         * config/srclist-update: Use three spaces, rather than tab, after '#'
124260         in shell-script copyright notices.  Suggested by Bruno Haible.
124261         Remove unnecessary parenthesization in regular expression.
124263 2003-08-15  Jim Meyering  <jim@meyering.net>
124265         Merge from coreutils.
124266         * lib/xgethostname.c: Include <stdlib.h>.
124267         (xghostname): Don't exit for anything other than memory-related
124268         failure; just return NULL.
124269         * lib/userspec.c: Include "posixver.h".
124270         (parse_user_spec): Accept `.' as a separator only
124271         in pre-POSIX-200112 mode.
124272         * lib/strtoimax.c: Use #elif rather than #else #if.
124273         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
124274         Remove function, now that we can rely on a working tzset function.
124275         [!_LIBC]: Ensure that the required autoconf test has been run.
124276         [!defined _NL_CURRENT && HAVE_STRFTIME]:
124277         Use underlying_strftime for %r.
124278         * lib/sha.c: Merge in some clean-up and optimization changes from
124279         glibc.
124280         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
124281         Ensure that it is a multiple of 64.
124282         Rearrange loop exit tests so as to avoid performing an
124283         additional fread after encountering an error or EOF.
124284         * lib/realloc.c: Update copyright date.
124286 2003-08-15  Jim Meyering  <jim@meyering.net>
124287         and Paul Eggert  <eggert@twinsun.com>
124289         Merge from coreutils.
124290         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
124291         member but strut utmpx does not.  Needed for AIX 4.3.3.
124292         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
124294 2003-08-15  Jim Meyering  <jim@meyering.net>
124295         and Paul Eggert  <eggert@cs.ucla.edu>
124297         Merges from coreutils, etc.
124298         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
124299         Require gl_FUNC_TZSET_CLOBBER.
124300         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
124301         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
124302         members.
124304 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124306         Help the merge from coreutils.
124307         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
124308         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
124309         * m4/tzset.m4: Use it too.
124311 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124313         * modules/tzset: New file.
124315 2003-08-14  Jim Meyering  <jim@meyering.net>
124317         Merges from coreutils.
124318         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
124319         variable names, rather than @FNMATCH_H@.
124320         * modules/alloca: Likewise for $(ALLOCA_H).
124322         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
124323         the three copies of the literal target, `fnmatch.h'.
124324         * modules/alloca (alloca.h): Likewise.
124326 2003-08-14  Jim Meyering  <jim@meyering.net>
124328         Merge from coreutils.
124329         * m4/tzset.m4: New file.
124330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
124331         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
124332         otherwise, AIX 5.1 systems would end up using the latter.
124333         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
124334         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
124335         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
124336         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
124338 2003-08-14  Jim Meyering  <jim@meyering.net>
124340         Merge from coreutils.
124341         * lib/obstack.h: Whitespace changes.
124342         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
124343         and xcalloc return values.
124344         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
124345         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
124346         hang on OSF/1 5.1 for DIR on both local and remote file systems.
124347         Reported by (and fix confirmed by) Nelson H. F. Beebe.
124348         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124349         error from mntctl.
124350         Use mntctl's return value to drive the entry-processing loop, since
124351         we can't rely on the value of the vmt_length member in the last
124352         entry.  On some systems doing so could result in exhausting
124353         virtual memory.  Based in part on a patch from Mike Jetzer.
124355 2003-08-14  Jim Meyering  <jim@meyering.net>
124356         and Paul Eggert  <eggert@twinsun.com>
124358         Merges from coreutils, plus other fixes.
124359         * lib/physmem.c: Merge in portability changes from gcc/libiberty
124360         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
124361         for credits and details.  Thanks to Kaveh Ghazi for helping
124362         to keep these files in sync.
124363         (ARRAY_SIZE): Define it.
124364         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
124365         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
124366         (memcasecmp): Don't assume size_t fits in unsigned int.
124367         Remove casts and duplicate code.
124368         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
124369         (memcpy): Remove definition.
124370         Merge in some clean-up and optimization changes from glibc.
124371         [BLOCKSIZE]: Move definition to top of file.
124372         Ensure that it is a multiple of 64.
124373         Rearrange loop exit tests so as to avoid performing an
124374         additional fread after encountering an error or EOF.
124375         * lib/md5.h (md5_uintptr): Define.
124376         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
124377         return to the initial working directory.  Preserve errno
124378         for caller.
124379         * lib/idcache.c: Include "xalloc.h".
124380         (xmalloc, xrealloc): Remove decls.
124381         (getuser): Remove casts no longer required in C89.
124382         * lib/human.c: Include stdio.h, for sprintf.
124383         * lib/group-member.c: Include "xalloc.h".
124384         (xmalloc, xrealloc): Remove decls.
124385         (get_group_info): Remove casts no longer required in C89.
124386         * lib/getusershell.c (readname): Remove casts no longer required in
124387         C89.
124388         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
124389         * lib/getline.c: Whitespace fix, from coreutils.
124391 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124393         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
124394         Check for isascii.
124396         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124397         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124398         Undo previous (whitespace-only) change.
124400 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124402         * lib/exclude.c: Include <ctype.h>
124403         (IN_CTYPE_DOMAIN): New macro.
124404         (is_space): New fn.
124405         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
124406         and empty lines.
124408         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124409         Undo previous (whitespace-only) change.
124411 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124413         * config/srclist-update: Change update back to the old behavior,
124414         leaving whitespace alone.  Use one 'sed' command rather than a
124415         pipeline.
124416         (fixlicense): Now a variable, not a function.
124417         (remove_trailing_blanks): Remove.
124418         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
124419         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124420         Undo previous (whitespace-only) change.
124422 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124424         Merge from coreutils.
124425         * modules/euidaccess: Add lib_SOURCES, include for new
124426         file euidaccess.h
124428 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124430         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124431         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124432         Normalize leading white space and remove trailing white space.
124434         Merge from coreutils
124435         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
124437         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
124438         0.12.1.  These files are now being upgraded automatically by
124439         ../config/srclist-update.
124441 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124443         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124444         Normalize leading white space and remove trailing white space.
124445         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
124446         notice, as per ../config/srclist-update.
124448         Merge from coreutils.
124449         * lib/euidaccess.h: New file.
124450         * lib/euidaccess.c: Include it.
124451         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
124452         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
124453         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
124455 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124457         * config/srclist-update: Add copyright notice.
124458         (remove_id_lines, remove_trailing_blanks): New constants.
124459         (fixfile): Use them to normalize spacing a bit in copied files.
124460         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124461         Normalize leading white space and remove trailing white space.
124463         * config/texinfo.tex: Sync with texinfo.
124465         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
124466         strtoul.c from libc, to merge coreutils whitespace changes.
124468         * config/srclist.txt: Get the following m4 files from gettext:
124469         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
124470         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
124471         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
124472         wint_t.m4.
124474 2003-08-12  Karl Berry  <karl@gnu.org>
124476         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
124477         been made.
124479 2003-08-11  Paul Eggert  <eggert@twinsun.com>
124481         * modules/gnu-source, m4/gnu-source.m4:
124482         Remove; we're assuming Autoconf 2.54 or later now.
124483         Suggested by Bruno Haible.
124484         * MODULES.html.sh (func_all_modules): Remove gnu-source.
124486 2003-08-11  Bruno Haible  <bruno@clisp.org>
124488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
124490 2003-08-11  Bruno Haible  <bruno@clisp.org>
124492         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
124493         (vasnprintf): Use it instead of wcslen.
124495 2003-08-11  Bruno Haible  <bruno@clisp.org>
124497         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
124498         value to ensure that _Bool promotes to int. Use #define for _Bool when
124499         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
124501 2003-08-10  Karl Berry  <karl@gnu.org>
124503         * lib/regex.h: update from libc (whitespace fix).
124505 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124507         Merge some files from coreutils.  These changes were
124508         originally made by Jim Meyering.
124509         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
124510         many older Unixes require this.
124511         * lib/alloca.c (alloca): Remove cast to argument of free;
124512         no longer needed in C89.
124513         * lib/alloca_.h, regex.h: Fix white space to match
124514         what GNU indent does.
124516 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124518         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
124519         apparently Emacs's Unicode mode got confused before my 2003-08-05
124520         checkin.
124522 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124524         * m4/extensions.m4: New file.
124525         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
124526         Require gl_USE_SYSTEM_EXTENSIONS.
124527         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
124528         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
124530 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124532         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
124533         * modules/extensions, modules/gnu-source: New files.
124534         * modules/timespec, modules/unlocked-io: Depend on extensions.
124536 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124538         * modules/restrict: New file.
124539         * MODULES.html.sh (func_all_modules): Add restrict.
124540         * modules/regex: Depend on restrict.
124542 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124544         * m4/restrict.m4: New file.
124545         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
124547 2003-08-07  Bruno Haible  <bruno@clisp.org>
124549         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
124550         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
124552 2003-08-07  Bruno Haible  <bruno@clisp.org>
124554         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
124555         makes the module 'getndelim2' compatible with the module 'getline'.
124557 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124559         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
124560         byte with "\201" to avoid glitches when editing that source file
124561         with multi-gnome-terminal.
124563 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124565         * lib/bumpalloc.h: Remove.
124567 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124569         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
124570         * modules/bumpalloc: Remove.
124572 2003-08-04  Paul Eggert  <eggert@twinsun.com>
124574         * lib/getloadavg.c: Change copyright notice and spacing to conform to
124575         GNU coding style.
124577         Merge from coreutils.
124578         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
124579         1. From glibc.
124580         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
124581         from Karl Berry, implemented by Jim Meyering.
124582         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
124583         from Dmitry V. Levin.
124584         Remove anachronistic cast of xrealloc.
124585         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
124586         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
124587         type. Otherwise, it wouldn't compile with at least /bin/cc on
124588         ymp-cray-unicos9.0.2.X.
124589         Combine two mostly-identical uses of alloca into one.
124590         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
124592 2003-08-04  Dave Love  <d.love@dl.ac.uk>
124594         [From Emacs.]
124596         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
124597         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
124598         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
124599         obsolete NLIST_NAME_UNION.
124600         [__GNU__]: Undef BSD and FSCALE.
124601         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
124603 2003-08-03  Paul Eggert  <eggert@twinsun.com>
124605         * lib/stdbool_.h (_Bool): Make it signed char, instead of
124606         an enum type, so that it's guaranteed to promote to int.  See:
124607         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
124609 2003-08-03  Karl Berry  <karl@gnu.org>
124611         * config/depcomp: update from automake.
124613 2003-07-31  Paul Eggert  <eggert@twinsun.com>
124615         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
124616         (strerror): Don't assume that a printable int fits in 14 bytes.
124618 2003-07-31  Bruno Haible  <bruno@clisp.org>
124620         * modules/getpass-gnu: New file.
124621         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
124623 2003-07-31  Bruno Haible  <bruno@clisp.org>
124625         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
124627 2003-07-24  Karl Berry  <karl@gnu.org>
124629         * config/missing: update from automake.
124631 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
124632             Bruno Haible  <bruno@clisp.org>
124634         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
124635         * lib/getline.c (getline, getdelim): Likewise.
124636         Remove _GNU_SOURCE define; now it's defined in config.h through
124637         m4/getline.m4.
124639 2003-07-23  Karl Berry  <karl@gnu.org>
124641         * config/config.sub: update from prep.
124643 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124645         * modules/xalloc (Depends-on): Add exitfail.
124646         * modules/xmemcoll: Likewise.
124648 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124650         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
124651         over-parenthesization in macros.
124653         Sync with coreutils.
124655         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
124656         required by C99.
124658         Use `exit_failure' for xalloc and xmemcoll instead of their own
124659         private exit-failure variables.
124660         * lib/xalloc.h (xalloc_exit_failure): Remove.
124661         * lib/xmalloc.c: Likewise.  Include exitfail.h.
124662         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
124663         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
124664         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
124665         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124667 2003-07-20  Jim Meyering  <jim@meyering.net>
124669         * modules/closeout (Depends-on): Add exitfail.
124670         Suggestion from Bruno Haible.
124672 2003-07-19  Karl Berry  <karl@gnu.org>
124674         * config/config.sub: update from prep.
124676 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124678         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124679         Remove.
124680         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124681         to test that it can stand by itself.  Include "exitfail.h".
124682         Clients should set exit_failure instead.
124683         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124685 2003-07-18  Bruno Haible  <bruno@clisp.org>
124687         * modules/getndelim2: New file.
124688         * modules/getline: Share files with module getndelim2.
124689         * modules/getnline: Depend on getndelim2 instead of sharing files with
124690         it. Add getnline.c to lib_SOURCES.
124691         * MODULES.html.sh (func_all_modules): Add getndelim2.
124693 2003-07-18  Bruno Haible  <bruno@clisp.org>
124695         * m4/getndelim2.m4: New file.
124696         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124697         invoke gl_PREREQ_GETNDELIM2.
124698         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124699         gl_PREREQ_GETNDELIM2.
124700         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124701         gl_GETNDELIM2.
124703 2003-07-18  Bruno Haible  <bruno@clisp.org>
124705         * lib/getndelim2.h: New file.
124706         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124707         getndelim2.h.
124708         (getndelim2): Make non-static. Change return type to ssize_t.
124709         * lib/getline.h: Change argument names.
124710         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
124711         * lib/getnline.c: Include getndelim2.h.
124713 2003-07-18  Andreas Schwab  <schwab@suse.de>
124715         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
124717 2003-07-17  Karl Berry  <karl@gnu.org>
124719         * config/config.sub: update from prep.
124721 2003-07-17  Bruno Haible  <bruno@clisp.org>
124723         * modules/getnline: New file.
124724         * modules/getline: Add lib/getndelim2.c to source file list.
124725         * MODULES.html.sh (func_all_modules): Add getnline.
124727 2003-07-17  Bruno Haible  <bruno@clisp.org>
124729         * m4/getnline.m4: New file.
124731 2003-07-17  Bruno Haible  <bruno@clisp.org>
124733         * m4/Makefile.am.in: Remove file.
124734         * m4/Makefile.am: Remove file.
124735         * m4/Makefile.in: Remove file.
124737 2003-07-17  Bruno Haible  <bruno@clisp.org>
124739         * lib/getnline.h: New file.
124740         * lib/getnline.c: New file.
124741         * lib/getndelim2.c: New file, extracted from getline.c.
124742         (getndelim2): Renamed from getdelim2, with added nmax argument.
124743         * lib/getline.c: Include getndelim2.c.
124744         (getdelim2): Moved out to getndelim2.c.
124745         (getline, getdelim): Update.
124747 2003-07-17  Bruno Haible  <bruno@clisp.org>
124749         * lib/Makefile.am: Remove file.
124750         * lib/Makefile.in: Remove file.
124752 2003-07-17  Bruno Haible  <bruno@clisp.org>
124754         * configure.in: Remove file.
124755         * Makefile.in: Remove file.
124757 2003-07-17  Bruno Haible  <bruno@clisp.org>
124759         * MODULES.html.sh: Put the </BODY> right before </HTML>.
124761 2003-07-16  Karl Berry  <karl@gnu.org>
124763         * config/srclist-update: was running fixlicense twice, which caused
124764                 texinfo.tex to be nullified for some reason.  Simplify,
124765                 $gplsrc is no longer needed as far as I can see?
124767 2003-07-16  Jim Meyering  <jim@meyering.net>
124769         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
124771 2003-07-15  Paul Eggert  <eggert@twinsun.com>
124773         * config/srclist.txt: Get the following files from gettext-runtime/intl
124774         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
124775         ref-del.sin.  From Bruno Haible.
124776         * config/srclist-update (fixfile): Change grep pattern again, since the
124777         previous fix didn't work (there was another trailing $).  Use
124778         '[$]' to escape the $s.
124780 2003-07-15  Karl Berry  <karl@gnu.org>
124782         * lib/vasnprintf.c: update from gettext.
124784 2003-07-15  Karl Berry  <karl@gnu.org>
124786         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
124787         gets expanded when surrounded by '$'.
124789 2003-07-15  Jim Meyering  <jim@meyering.net>
124791         * modules/save-cwd: Don't depend on error.  From Derek Price.
124793 2003-07-15  Jim Meyering  <jim@meyering.net>
124795         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
124797 2003-07-14  Simon Josefsson  <jas@extundo.com>
124799         * modules/mempcpy: New file.
124800         * MODULES.html.sh (func_all_modules): Add mempcpy.
124802 2003-07-14  Simon Josefsson  <jas@extundo.com>
124804         * m4/mempcpy.m4: New file.
124806 2003-07-14  Simon Josefsson  <jas@extundo.com>
124808         * lib/mempcpy.h: New file.
124809         * lib/mempcpy.c: New file.
124811 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124813         * modules/getdate, modules/posixtm: Depend on mktime.
124815 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124817         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124818         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124819         unicodeio.c, unicodeio.h, unlocked-io.h:
124820         Switch from LGPL to GPL.
124822 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124824         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124825         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124826         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124827         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124828         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124829         updated automatically by ../config/srclist-update.  This changes
124830         their license from LPGL to GPL.
124832 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124834         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124835         assumed to refer to the root of the most recent stable gettext version.
124836         * config/srclistvars.sh: Add defaults for eggert.
124837         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124838         Match "This program" as well as "The program".  This is needed
124839         for gettext.
124841 2003-07-14  Jim Meyering  <jim@meyering.net>
124843         Don't emit diagnostics.  Let callers do that.
124844         * lib/save-cwd.c: Don't include "error.h".
124845         (save_cwd): Don't call error.  Ensure that errno is valid
124846         when returning nonzero.
124848         * lib/save-cwd.h (restore_cwd): Update prototype.
124849         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124850         Simplify.  Don't call error upon failure.  Let callers do that.
124851         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124852         when auditing is enabled.  But don't bother updating the #if.
124854 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124856         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124857         it breaks C++ compilation.
124858         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124860 2003-07-10  Simon Josefsson  <jas@extundo.com>
124862         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124864 2003-07-10  Jim Meyering  <jim@meyering.net>
124866         * m4/clock_time.m4: Remove trailing blank.
124867         * m4/intmax_t.m4: Likewise.
124869 2003-07-10  Jim Meyering  <jim@meyering.net>
124871         * lib/vasnprintf.c: Remove trailing blanks.
124872         Make cpp indentation consistent.
124874 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124876         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124877         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124878         Switch from LGPL to GPL.
124880 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124882         * config/srclist.txt: Sort sublists.  Add
124883         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124884         that differ from gnulib for one reason or another; we'd like this list
124885         to be smaller but for now let's document what we have.
124887 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124889         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124890         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124891         and sweeter "eval x=$x".
124892         * config/srclist.txt: Get lib/argp* from glibc.
124894 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124896         * lib/mktime.c: Fix some boundary cases and remove need for floating
124897         point.
124899         Issue a compile-time diagnostic if time_t is floating point, or if
124900         two's complement arithmetic is not in effect, or if arithmetic
124901         right shift does not propagate the sign.  These assumptions were
124902         all in the original code but they weren't checked.
124904         (TIME_T_MIDPOINT, verify): New macros.
124905         (__isleap): Remove; it has integer overflow problems.
124906         (leapyear): New function, without those problems.
124907         (ydhms_tm_diff): Remove; splitting into two parts.
124908         (ydhms_diff): New function, containing the arithmetic part of
124909         the old ydhms_tm_diff function.  Issue a compile-time
124910         diagnostic if we are not using C99 integer division.
124911         Avoid casts when possible.
124912         (guess_time_tm): New function, containing the checking part of
124913         the old ydhms_tm_diff function.  Return the new value, rather than
124914         the difference between it and the old.  Accept a new argument T
124915         so that *T specifies the old value.  Check for overflow in the result.
124917         (__mktime_internal): Use a time_t offset, not a long int offset.
124918         This undoes the 2003-06-04 change, which is no longer needed now
124919         that we have better overflow checking.
124920         (localtime_offset): Likewise.
124922         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124923         and long are 64-bit but int is only 32-bit.
124924         (ydhms_diff): Use long int to store year1 and yday1.
124925         Issue a compile-time diagnostic if long int is not wide enough.
124927         (__mktime_internal): Use long int to store adjusted year and yday.
124928         Use plain C rather than preprocessor commands, if that doesn't
124929         affect efficiency.
124930         Check for overflow (and try to repair) after each probe
124931         rather than checking only at the very end.  This avoids some bugs
124932         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124933         does not equal GMT offset at maximum time).
124934         Use integer to check for overflow rather than floating point; this
124935         is more portable to non-IEEE hosts, and is a tad faster.
124936         When we detect that we are oscillating between two values,
124937         don't check whether tm_isdst has the requested value, since
124938         we already know the answer.  When tm_isdst has the wrong value,
124939         use a different heuristic to find the right one, based on the
124940         extreme values actually observed in practice in tz2003a,
124941         rather than the (overly optimistic) "previous 3 calendar quarters".
124943         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124944         "T const" to accommodate glibc style.
124945         (check_result): Use less-confusing report format.  "long" -> "long int.
124946         (main): Likewise.
124947         Don't loop if the iteration overflows time_t.
124948         Allow a negative step in the iteration.
124950 2003-07-06  Karl Berry  <karl@gnu.org>
124952         * config/depcomp: update from automake.
124953         * config/config.sub: update from prep.
124955 2003-07-03  Karl Berry  <karl@gnu.org>
124957         * config/config.guess: update from prep.
124959 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124961         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124962         xreadlink.c now includes it unconditionally.
124964 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124966         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124967         having it depend on HAVE_SYS_TYPES_H.
124969 2003-07-01  Bruno Haible  <bruno@clisp.org>
124971         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124972         <sys/types.h> should be sufficient.
124973         Reported by Paul Eggert.
124975 2003-06-26  Karl Berry  <karl@gnu.org>
124977         * config/depcomp: update from automake.
124979 2003-06-26  Bruno Haible  <bruno@clisp.org>
124981         * modules/human: Depend on module stdbool.
124983 2003-06-25  Bruno Haible  <bruno@clisp.org>
124985         * modules/readlink: New file.
124986         * modules/xreadlink: Depend on it.
124987         * MODULES.html.sh (func_all_modules): Add readlink.
124989 2003-06-25  Bruno Haible  <bruno@clisp.org>
124991         * m4/readlink.m4: New file.
124993 2003-06-25  Bruno Haible  <bruno@clisp.org>
124995         * lib/readlink.c: New file.
124997 2003-06-22  Karl Berry  <karl@gnu.org>
124999         * config/srclist.txt: update mkinstalldirs from automake.
125000         * config/mkinstalldirs: update.
125002 2003-06-22  Bruno Haible  <bruno@clisp.org>
125004         Portability to mingw32.
125005         * m4/ssize_t.m4: New file, from GNU gettext.
125006         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
125007         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
125009 2003-06-22  Bruno Haible  <bruno@clisp.org>
125011         * modules/safe-read: Add m4/ssize_t.m4.
125012         * modules/xreadlink: Add m4/ssize_t.m4.
125014 2003-06-20  Bruno Haible  <bruno@clisp.org>
125016         Assume C89, so PARAMS isn't needed.
125017         * lib/unicodeio.h (PARAMS): Remove.
125018         * lib/unicodeio.c: Don't use PARAMS.
125020 2003-06-18  Karl Berry  <karl@gnu.org>
125022         * config/config.{guess,sub}: update from prep.
125024 2003-06-18  Jim Meyering  <jim@meyering.net>
125026         Merge changes from coreutils.
125027         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
125028         Remove explicit declarations of xmalloc and realloc.
125029         Include xalloc.h.
125030         (read_utmp): Remove anachronistic cast of xmalloc.
125032 2003-06-17  Paul Eggert  <eggert@twinsun.com>
125034         Assume C89, so PARAMS isn't needed.
125035         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
125036         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
125037         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
125038         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
125039         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
125040         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
125041         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
125042         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
125043         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
125044         lib/xstrtod.h, lib/xstrtol.h: Likewise.
125045         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
125046         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
125047         no longer needed. Anyway, config.h should always be included before any
125048         other file.
125050 2003-06-11  Simon Josefsson  <jas@extundo.com>
125052         * modules/sysexits: New file.
125053         * MODULES.html.sh (func_all_modules): Add sysexits.
125055 2003-06-11  Simon Josefsson  <jas@extundo.com>
125057         * lib/sysexit_.h: New file.
125059 2003-06-11  Derek Price  <derek@ximbiot.com>
125061         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
125062         necessary.
125064 2003-06-11  Bruno Haible  <bruno@clisp.org>
125066         * m4/sysexits.m4: New file.
125068 2003-06-10  Simon Josefsson  <jas@extundo.com>
125070         * lib/argp.h: New file, from glibc.
125071         * lib/argp-ba.c: New file, from glibc.
125072         * lib/argp-eexst.c: New file, from glibc.
125073         * lib/argp-fmtstream.c: New file, from glibc.
125074         * lib/argp-fmtstream.h: New file, from glibc.
125075         * lib/argp-fs-xinl.c: New file, from glibc.
125076         * lib/argp-help.c: New file, from glibc.
125077         * lib/argp-namefrob.h: New file, from glibc.
125078         * lib/argp-parse.c: New file, from glibc.
125079         * lib/argp-pv.c: New file, from glibc.
125080         * lib/argp-pvh.c: New file, from glibc.
125081         * lib/argp-xinl.c: New file, from glibc.
125083 2003-06-10  Simon Josefsson  <jas@extundo.com>
125085         * modules/strchrnul: New file.
125087 2003-06-10  Simon Josefsson  <jas@extundo.com>
125089         * modules/argp: New file.
125091 2003-06-10  Simon Josefsson  <jas@extundo.com>
125093         * m4/strchrnul.m4: New file.
125095 2003-06-10  Simon Josefsson  <jas@extundo.com>
125097         * lib/strchrnul.h: New file.
125098         * lib/strchrnul.c: New file.
125100 2003-06-10  Bruno Haible  <bruno@clisp.org>
125102         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
125104 2003-06-07  Karl Berry  <karl@gnu.org>
125106         * config/config.{guess,sub}: update from prep.
125108 2003-06-07  Jim Meyering  <jim@meyering.net>
125110         * modules/strtod: Use $(...) notation, not @...@ for
125111         AC_REPLACE'd variables.
125112         * modules/localcharset: Likewise.
125114 2003-06-07  Jim Meyering  <jim@meyering.net>
125116         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
125117         in place of my name in the copyright comment.
125118         Remove definition and uses of __P.
125120         From coreutils.
125121         * lib/stat.c: Don't declare xmalloc explicitly.
125122         Instead, include "xalloc.h".
125123         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
125124         xrealloc, and xcalloc return values.
125125         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
125126         Improve comment.
125127         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
125129 2003-06-07  Bruno Haible  <bruno@clisp.org>
125131         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
125132         avoid AC_CONFIG_LINKS.
125133         * modules/fnmatch (Makefile.am): Use explicit creation rule for
125134         fnmatch.h, to avoid AC_CONFIG_LINKS.
125135         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
125137 2003-06-07  Bruno Haible  <bruno@clisp.org>
125139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
125140         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
125141         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125142         directory.
125143         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
125144         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125145         directory.
125147 2003-06-06  Jim Meyering  <jim@meyering.net>
125149         Merge from coreutils.
125150         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
125151         Consolidate declarations and initializations of *_base* locals.
125153         Merge from coreutils.
125154         This avoids a core dump on systems without GNU putenv,
125155         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
125156         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
125157         (unsetenv): New static function, from GNU libc.
125158         (rpl_putenv): Use it.
125160         * lib/modechange.c: Remove trailing blanks.
125162         Merge from coreutils.
125163         * lib/fsusage.c: Remove declaration of statfs.
125164         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
125166         * lib/posixtm.c: Include <stdbool.h> unconditionally.
125168 2003-06-06  Jim Meyering  <jim@meyering.net>
125170         * lib/stdbool_.h: Renamed from stdbool.h.in.
125172 2003-06-06  Jim Meyering  <jim@meyering.net>
125173             Bruno Haible  <bruno@clisp.org>
125175         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
125176         Adjust Makefile.am snippet not to redirect directly to target.
125177         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
125179 2003-06-05  Paul Eggert  <eggert@twinsun.com>
125181         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
125182         mismatch, look in future quarters as well as past.  This fixes a
125183         bug when processing fall-backwards gaps immediately after a long
125184         period of daylight-saving time.
125186         * lib/mktime.c: Assume freestanding C89 or better.
125187         (HAVE_LIMITS_H): Remove.  Assume it's 1.
125188         (__P): Remove; not used.
125189         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
125190         (mktime, not_equal_tm, print_tm, check_result,
125191         main): Use prototypes.  Use const * where appropriate.
125192         (main): Fix typo in testing code that uncovered by above changes.
125193         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
125195 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125197         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
125198         locale.h, localeconv.  This merges changes from coreutils.
125200         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
125201         It can be removed after the next Autoconf is released.
125202         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
125203         needed.
125205 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125207         * lib/mktime.c: Fix Debian bug 177940
125208         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
125209         (localtime_offset): Now long int, not time_t, because we want it
125210         to be guaranteed to be signed.  All uses changed.
125211         (__mktime_internal): If overflow would occur when adding offset,
125212         don't add it.
125214         Merge 'human' changes from coreutils.  Rewrite to support
125215         locale-specific notations like thousands separators.
125216         * lib/human.c: Simplify authorship notice.
125217         Include human.h immediately after config.h.
125218         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
125219         <limits.h>: Do not include, since human.h does.
125220         (SIZE_MAX, UINTMAX_MAX): New macros.
125221         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
125222         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
125223         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
125224         (power_letter): Renamed from suffixes.
125225         (generate_suffix_backwards): Remove.
125226         (adjust_value): Now takes int style (because of human.h changes)
125227         and long double value (for greater precision on some platforms).
125228         (group_number): New function.
125229         (human_readable): Use it.  Use integer options, not enum.
125230         Put the options before the sizes in the arg list.
125231         Support all the new options.
125232         The old human_readable function has been removed;
125233         use inttostr.h instead.
125234         (human_readable, default_block_size, humblock):
125235         Use uintmax_t, not int, for block sizes.
125236         (human_readable_inexact, block_size_types): Remove.
125237         (block_size_opts): New constant.
125238         (human_options): Renamed from human_block_size, with new signature
125239         that allows block sizes up to UINTMAX_MAX.  All callers changed.
125240         * lib/human.h: Add copyright and authorship notice.
125241         Include <limits.h> and <stdbool.h> unconditionally.
125242         (PARAMS): Remove.  All uses removed.
125243         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
125244         (enum human_inexact_style): Remove tag; now a nameless enum.
125245         (human_floor, human_ceiling, human_round_to_even): Now have
125246         values 2, 0, 1 rather than -1, 1, 0.
125247         (human_group_digits, human_suppress_point_zero, human_autoscale,
125248         human_base_1024, human_SI, human_B): New constants.
125249         (human_readable_inexact, human_block_size): Remove.
125250         (human_readable): Size args are now uintmax_t, not int.
125251         (human_options): New decl.
125253         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
125254         unnecessary now that we assume C89 or better.  This change
125255         imported from coreutils.
125257         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125258         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
125259         in the 2003-05-30 sync from glibc.
125261         .h files should stand alone, but we shouldn't include <sys/types.h>
125262         if we can get away with just <stddef.h>.
125264         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
125265         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
125266         rather than <sys/types.h>, as we merely need size_t.
125267         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
125268         to get size_t.
125269         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
125270         Include <stdio.h>, to get FILE.
125271         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
125272         memcasecmp.h has included <stddef.h> and all we need is size_t.
125273         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
125274         our interface, instead of including <sys/types.h>
125276 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125278         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
125279         now, as glibc mktime is buggy on non-glibc systems.
125281 2003-06-03  Karl Berry  <karl@gnu.org>
125283         * config/config.sub: update from prep.
125285 2003-06-02  Paul Eggert  <eggert@twinsun.com>
125287         [from coreutils]
125288         Fix some minor time-related bugs with POSIX time arguments.
125289         Some valid time stamps were being rejected (notably -1, and
125290         time stamps before 1900 on 64-bit hosts).  And some invalid
125291         time stamps were being accepted, e.g. September 31.
125293         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
125294         that we can return (time_t) -1 successfully.
125295         * lib/posixtm.c: Likewise.
125296         [HAVE_STDBOOL_H]: Include <stdbool.h>.
125297         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
125298         (t): Remove static var.
125299         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
125300         of static var.  All uses changed.
125301         (year): Do not reject years before 1900; they can occur with
125302         64-bit time_t.
125303         (posix_time_parse): Do not check for out-of-range components;
125304         that is now the caller's responsibility, since our checks were
125305         only approximations.
125306         (posixtime): Use mktime to check for out-of-range components,
125307         since it knows them exactly.
125308         If mktime returns (time_t) -1, check whether an error actually occurred
125309         by invoking localtime on -1.
125310         (main) [TEST_POSIXTIME]: Check for input data errors, and report
125311         posixtime failures better.
125312         Improve the test data (in comments only).
125314 2003-06-02  Karl Berry  <karl@gnu.org>
125316         * config/mkinstalldirs (version): new variable.
125317         (--version): new option.
125318         (usage): improve message.
125320 2003-05-30  Karl Berry  <karl@gnu.org>
125322         * lib/mktime.c: update from libc.
125324 2003-05-30  Bruno Haible  <bruno@clisp.org>
125326         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
125327         * config/config.rpath: Upgrade to gettext-0.12.1.
125329 2003-05-30  Bruno Haible  <bruno@clisp.org>
125331         * m4/gettext.m4: Upgrade to gettext-0.12.1.
125332         * m4/nls.m4: New file, from gettext-0.12.1.
125333         * m4/po.m4: New file, from gettext-0.12.1.
125334         * m4/progtest.m4: Upgrade to gettext-0.12.1.
125336 2003-05-30  Bruno Haible  <bruno@clisp.org>
125338         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
125339         * lib/localcharset.h: Likewise.
125340         * lib/localcharset.c: Likewise.
125342 2003-05-29  Karl Berry  <karl@gnu.org>
125344         * config/config.rpath: update from gettext.
125346 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125348         Assume the headers required for C89 freestanding compilers.
125349         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
125350         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
125351         * m4/human.m4 (gl_HUMAN): Likewise.
125352         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
125353         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
125354         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125355         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
125356         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125357         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
125359 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125361         Assume the headers required for C89 freestanding compilers.
125362         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
125363         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
125364         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
125365         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
125366         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
125367         define, since <limits.h> is guaranteed to do that.
125368         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
125369         * lib/exclude.c: Include <stdbool.h> unconditionally.
125370         * lib/tempname.c: Include <stddef.h> unconditionally.
125371         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
125372         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
125373         <stddef.h> does that.
125374         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
125375         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
125376         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
125377         needed.
125378         * lib/xstrtol.c: Likewise.
125379         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
125380         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
125382         * lib/addext.c (addext): Use assignment rather than cast, to avoid
125383         warnings on some platforms.
125385         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125386         arbitrarily.
125388 2003-05-26  Jim Meyering  <jim@meyering.net>
125390         Merge in a change from coreutils:
125391         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
125392         that is guaranteed to be `no'.  Use `no_such_member' to indicate
125393         that condition, rather than `-1' which is slightly misleading.
125394         Change the name of the cache variable to have the gl_ prefix.
125395         Prompted by a patch from Richard Dawe for DJGPP.
125397 2003-05-24  Karl Berry  <karl@gnu.org>
125399         * config/config.guess: update from prep.
125401 2003-05-22  Karl Berry  <karl@gnu.org>
125403         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
125405 2003-05-20  Karl Berry  <karl@gnu.org>
125407         * config/config.guess: update from prep.
125409 2003-05-18  Karl Berry  <karl@gnu.org>
125411         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
125412         might actually be set by the user.
125414         * config/depcomp, install-sh, mdate-sh: update from automake.
125416 2003-05-17  Bruno Haible  <bruno@clisp.org>
125418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
125419         invalid expansion for AC_EGREP_CPP.
125420         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
125421         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
125422         Suggested by Akim Demaille <akim@epita.fr> in
125423         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
125425 2003-05-12  Jim Meyering  <jim@meyering.net>
125427         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
125428         the space-padded-by-default conversion specifiers, %e, %k, %l.
125430 2003-05-12  Bruno Haible  <bruno@clisp.org>
125432         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
125433         the string is longer than 4 KB.
125435 2003-05-11  Karl Berry  <karl@gnu.org>
125437         * config/config.{guess,sub}: update from prep.
125439 2003-05-09  Bruno Haible  <bruno@clisp.org>
125441         * modules/error: Add m4/strerror_r.m4 to file list.
125443 2003-05-03  Bruno Haible  <bruno@clisp.org>
125445         Upgrade to Unicode-4.0.
125446         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
125447         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
125448         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
125449         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
125450         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
125451         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
125452         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
125453         Change width of U+E0100..U+E01EF from 1 to 0.
125455 2003-04-25  Jim Meyering  <jim@meyering.net>
125457         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
125458         of type size_t, not int.
125460 2003-04-25  Bruno Haible  <bruno@clisp.org>
125462         * lib/copy-file.c: Include <stddef.h>, for size_t.
125464 2003-04-21  Paul Eggert  <eggert@twinsun.com>
125466         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
125467         code which expansion is under static control.  Patch imported from
125468         Akim Demaille's patch to Bison; see
125469         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
125471 2003-04-14  Bruno Haible  <bruno@clisp.org>
125473         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
125475 2003-04-11  Jim Meyering  <jim@meyering.net>
125477         Merge changes from Coreutils.
125479         2003-03-22  Jim Meyering  <jim@meyering.net>
125481         * lib/strftime.c (widen): Cast alloca return value to proper type.
125483         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
125485         From GNU libc.
125486         * lib/strftime.c (my_strftime): Handle very large width
125487         specifications for numeric values correctly.  Improve checks for
125488         overflow.
125490         2003-01-19  Jim Meyering  <jim@meyering.net>
125492         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
125493         definitions.
125494         (nl_get_alt_digit) [! defined my_strftime]: Define.
125495         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
125496         _nl_get_alt_digit and _nl_get_walt_digit.
125498         * lib/strftime.c (my_strftime): Merge in locale-related changes from
125499         libc. These changes have no effect outside of _LIBC.
125501 2003-04-10  Bruno Haible  <bruno@clisp.org>
125503         * modules/findprog: New file.
125504         * MODULES.html.sh (func_all_modules): Add it.
125506 2003-04-10  Bruno Haible  <bruno@clisp.org>
125508         * m4/findprog.m4: New file.
125509         * m4/eaccess.m4: New file.
125511 2003-04-10  Bruno Haible  <bruno@clisp.org>
125513         * lib/findprog.h: New file, from GNU gettext.
125514         * lib/findprog.c: New file, from GNU gettext.
125516 2003-04-05  Jim Meyering  <jim@meyering.net>
125518         Merge changes from Coreutils.
125520         * lib/exclude.h (PARAMS): Remove definition and uses.
125521         * lib/exclude.c: Remove uses of `PARAMS'.
125523         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
125524         Add test-cases for DOS filenames. Declare program_name.
125525         (main): Set up program_name.  Patch by Rich Dawe.
125527         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125528         error from mntctl.
125529         Use mntctl's return value to drive the entry-processing loop, since
125530         we can't rely on the value of the vmt_length member in the last
125531         entry.  On some systems doing so could result in exhausting
125532         virtual memory.  Based in part on a patch from Mike Jetzer.
125534 2003-04-04  Bruno Haible  <bruno@clisp.org>
125536         * modules/linebreak: New file.
125537         * MODULES.html.sh (func_all_modules): Add it.
125539 2003-04-04  Bruno Haible  <bruno@clisp.org>
125541         * m4/linebreak.m4: New file.
125543 2003-04-04  Bruno Haible  <bruno@clisp.org>
125545         * lib/linebreak.h: New file, from GNU gettext.
125546         * lib/linebreak.c: New file, from GNU gettext with slight
125547         modifications.
125548         * lib/lbrkprop.h: New file, from GNU gettext.
125550 2003-04-03  Bruno Haible  <bruno@clisp.org>
125552         * modules/utf8-ucs4: New file.
125553         * modules/utf16-ucs4: New file.
125554         * modules/ucs4-utf8: New file.
125555         * modules/ucs4-utf16: New file.
125556         * MODULES.html.sh (func_all_modules): Add them.
125558 2003-04-03  Bruno Haible  <bruno@clisp.org>
125560         * m4/utf-ucs4.m4: New file.
125561         * m4/ucs4-utf.m4: New file.
125563 2003-04-03  Bruno Haible  <bruno@clisp.org>
125565         * lib/utf8-ucs4.h: New file, from GNU gettext.
125566         * lib/utf16-ucs4.h: New file, from GNU gettext.
125567         * lib/ucs4-utf8.h: New file, from GNU gettext.
125568         * lib/ucs4-utf16.h: New file, from GNU gettext.
125570 2003-04-02  Bruno Haible  <bruno@clisp.org>
125572         * modules/binary-io: New file.
125573         * MODULES.html.sh (func_all_modules): Add it.
125575 2003-04-02  Bruno Haible  <bruno@clisp.org>
125577         * lib/binary-io.h: New file, from GNU gettext.
125579 2003-04-01  Bruno Haible  <bruno@clisp.org>
125581         * modules/pathname: New file.
125582         * MODULES.html.sh (func_all_modules): Add it.
125584 2003-04-01  Bruno Haible  <bruno@clisp.org>
125586         * lib/pathname.h: New file, from GNU gettext.
125587         * lib/concatpath.c: New file, from GNU gettext.
125589 2003-03-30  Bruno Haible  <bruno@clisp.org>
125591         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
125593 2003-03-30  Bruno Haible  <bruno@clisp.org>
125595         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
125596         function chown() doesn't exist.
125598 2003-03-28  Bruno Haible  <bruno@clisp.org>
125600         * modules/copy-file: New file.
125601         * MODULES.html.sh (func_all_modules): Add it.
125603 2003-03-28  Bruno Haible  <bruno@clisp.org>
125605         * m4/copy-file.m4: New file.
125607 2003-03-28  Bruno Haible  <bruno@clisp.org>
125609         * lib/copy-file.h: New file, from GNU gettext.
125610         * lib/copy-file.c: New file, from GNU gettext.
125612 2003-03-18  Jim Meyering  <jim@meyering.net>
125614         * lib/quote.c (quote_n): Fix typo in comment.
125616 2003-03-18  Bruno Haible  <bruno@clisp.org>
125618         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
125619         checking.
125620         * m4/onceonly_2_57.m4: Likewise.
125622 2003-03-17  Bruno Haible  <bruno@clisp.org>
125624         * m4/onceonly.m4: Require autoconf 2.54 or newer.
125625         (m4_quote): Remove macro.
125626         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
125628 2003-03-14  Jim Meyering  <jim@meyering.net>
125630         Merge changes from Coreutils.
125631         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
125632         to be const, in order to avoid warnings.
125633         (obstack_room): Likewise.
125634         (obstack_empty_p): Likewise.
125636 2003-03-14  Bruno Haible  <bruno@clisp.org>
125638         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
125639         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
125641 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125643         Merge changes from Bison.
125644         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
125645         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
125646         when compiling Bison 1.875's `bitset bset = obstack_alloc
125647         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
125648         * lib/hash.c: Include <stdbool.h> unconditionally.
125650 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125652         * m4/onceonly.m4 (m4_quote): New macro.
125653         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
125654         Quote AC_FOREACH variable-expansions properly.
125656 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125658         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
125660 2003-03-09  Paul Eggert  <eggert@twinsun.com>
125662         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
125663         Reported by Bruce Becker; see:
125664         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
125666 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125667             Bruno Haible  <bruno@clisp.org>
125669         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125670         Reported by John Hughes, see
125671         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125673 2003-02-20  Bruno Haible  <bruno@clisp.org>
125675         * MODULES.html.sh (func_all_modules): Add poll.
125677 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125679         * modules/poll: New file.
125681 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125683         * lib/poll_.h: New file.
125684         * lib/poll.c: New file.
125686 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125688         * m4/poll.m4: New file.
125690 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125692         * modules/mathl: New file.
125694 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125696         * lib/mathl.h: New file.
125697         * lib/acosl.c: New file.
125698         * lib/asinl.c: New file.
125699         * lib/atanl.c: New file.
125700         * lib/ceill.c: New file.
125701         * lib/cosl.c: New file.
125702         * lib/expl.c: New file.
125703         * lib/floorl.c: New file.
125704         * lib/frexpl.c: New file.
125705         * lib/ldexpl.c: New file.
125706         * lib/logl.c: New file.
125707         * lib/sincosl.c: New file.
125708         * lib/sinl.c: New file.
125709         * lib/sqrtl.c: New file.
125710         * lib/tanl.c: New file.
125711         * lib/trigl.c: New file.
125712         * lib/trigl.h: New file.
125714 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125716         * m4/mathl.m4: New file.
125718 2003-02-18  Bruno Haible  <bruno@clisp.org>
125720         * MODULES.html.sh (func_all_modules): Add mathl.
125722 2003-02-17  Bruno Haible  <bruno@clisp.org>
125724         * modules/mkdtemp: New module.
125725         * MODULES.html.sh (func_all_modules): Add it.
125727 2003-02-17  Bruno Haible  <bruno@clisp.org>
125729         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
125731 2003-02-17  Bruno Haible  <bruno@clisp.org>
125733         * lib/mkdtemp.h: New file, from GNU gettext.
125734         * lib/mkdtemp.c: New file, from GNU gettext.
125736 2003-02-02  Jim Meyering  <jim@meyering.net>
125738         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
125739         e.g. glibc-2.2.93.
125741 2003-01-31  Bruno Haible  <bruno@clisp.org>
125743         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
125744         'rpl_rename'.
125745         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
125746         'rpl_strnlen'.
125747         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
125748         'rpl_strtod'.
125749         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
125750         'rpl_utime'.
125752 2003-01-31  Bruno Haible  <bruno@clisp.org>
125754         * lib/rename.c: #undef rename before defining rpl_rename.
125755         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
125757 2003-01-30  Bruno Haible  <bruno@clisp.org>
125759         * modules/vasnprintf, modules/vasprintf: New modules.
125760         * MODULES.html.sh (func_all_modules): Add them.
125762 2003-01-30  Bruno Haible  <bruno@clisp.org>
125764         * m4/signed.m4: New file, from GNU gettext.
125765         * m4/longdouble.m4: New file, from GNU gettext.
125766         * m4/wchar_t.m4: New file, from GNU gettext.
125767         * m4/wint_t.m4: New file, from GNU gettext.
125768         * m4/vasnprintf.m4: New file.
125769         * m4/vasprintf.m4: New file.
125771 2003-01-30  Bruno Haible  <bruno@clisp.org>
125773         * lib/printf-args.h: New file, from GNU gettext.
125774         * lib/printf-args.c: New file, from GNU gettext.
125775         * lib/printf-parse.h: New file, from GNU gettext.
125776         * lib/printf-parse.c: New file, from GNU gettext.
125777         * lib/vasnprintf.h: New file, from GNU gettext.
125778         * lib/vasnprintf.c: New file, from GNU gettext.
125779         * lib/asnprintf.c: New file, from GNU gettext.
125780         * lib/vasprintf.h: New file, from GNU gettext with modifications.
125781         * lib/vasprintf.c: New file, from GNU gettext.
125782         * lib/asprintf.c: New file, from GNU gettext.
125784 2003-01-29  Bruno Haible  <bruno@clisp.org>
125786         * modules/stpncpy: New module.
125787         * MODULES.html.sh (func_all_modules): Add it.
125789 2003-01-29  Bruno Haible  <bruno@clisp.org>
125791         * m4/stpncpy.m4: New file.
125793 2003-01-29  Bruno Haible  <bruno@clisp.org>
125795         * lib/stpncpy.h: New file, from GNU gettext with modifications.
125796         * lib/stpncpy.c: New file, from GNU gettext with modifications.
125798 2003-01-28  Bruno Haible  <bruno@clisp.org>
125800         * modules/c-ctype: New module.
125801         * MODULES.html.sh (func_all_modules): Add it.
125803 2003-01-28  Bruno Haible  <bruno@clisp.org>
125805         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125806         Paul Eggert.
125807         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125808         Paul Eggert.
125810 2003-01-27  Bruno Haible  <bruno@clisp.org>
125812         * modules/xsetenv: New module.
125813         * MODULES.html.sh (func_all_modules): Add it.
125815 2003-01-27  Bruno Haible  <bruno@clisp.org>
125817         * lib/xsetenv.h: New file, from GNU gettext.
125818         * lib/xsetenv.c: New file, from GNU gettext.
125820 2003-01-23  Jim Meyering  <jim@meyering.net>
125822         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125823         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125825 2003-01-23  Bruno Haible  <bruno@clisp.org>
125827         * modules/minmax: New module.
125828         * MODULES.html.sh (func_all_modules): Add it.
125830 2003-01-23  Bruno Haible  <bruno@clisp.org>
125832         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125833         Eggert.
125835 2003-01-22  Bruno Haible  <bruno@clisp.org>
125837         * modules/exit: New module.
125838         * MODULES.html.sh (func_all_modules): Add it.
125840 2003-01-22  Bruno Haible  <bruno@clisp.org>
125842         * lib/exit.h: New file, from GNU gettext.
125844 2003-01-19  Bruno Haible  <bruno@clisp.org>
125846         * gnulib-tool: Recognize option --extract-maintainer.
125847         (func_get_maintainer): New function.
125848         * modules/*: Add Maintainer entry.
125850 2003-01-16  Jim Meyering  <jim@meyering.net>
125852         * m4/regex.m4: The `regex' struct is both input and output.
125853         Initialize it before each use.  Patch by Tim Waugh.
125855 2003-01-16  Bruno Haible  <bruno@clisp.org>
125857         * MODULES.html.sh: Add a table of contents. Add the module name as
125858         leftmost column. Add hyperlinks.
125860 2003-01-15  Bruno Haible  <bruno@clisp.org>
125862         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125864 2003-01-15  Bruno Haible  <bruno@clisp.org>
125866         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125867         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125868         suffix.
125870 2003-01-15  Bruno Haible  <bruno@clisp.org>
125872         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125874 2003-01-15  Bruno Haible  <bruno@clisp.org>
125876         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125877         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125879 2003-01-14  Jim Meyering  <jim@meyering.net>
125881         * lib/same.c (same_name): Tweak a comment.
125883 2003-01-14  Bruno Haible  <bruno@clisp.org>
125885         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125886         when a string comparison is sufficient.
125888 2003-01-14  Bruno Haible  <bruno@clisp.org>
125890         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125891         'unsigned int'.
125893 2003-01-14  Bruno Haible  <bruno@clisp.org>
125895         * lib/hash-pjw.c: Add comment about low quality of this function.
125897 2003-01-13  Bruno Haible  <bruno@clisp.org>
125899         * modules/stpcpy: Distribute lib/stpcpy.h.
125900         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125902 2003-01-13  Bruno Haible  <bruno@clisp.org>
125904         * modules/*: Add a description.
125905         * modules/strpbrk: Fix Makefile.am snippet.
125906         * modules/strtoimax: Fix dependencies.
125907         * modules/strtoumax: Likewise.
125909 2003-01-13  Bruno Haible  <bruno@clisp.org>
125911         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125912         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125913         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125915 2003-01-13  Bruno Haible  <bruno@clisp.org>
125917         * gnulib-tool (func_create_testdir): Store config/* files in the main
125918         directory.
125919         * config.rpath: Move to ...
125920         * config/config.rpath: ... here.
125921         * modules/gettext: Contains config/config.rpath, not config.rpath.
125922         * modules/iconv: Likewise.
125924 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125926         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125927         to avoid collisions with libcurses and libreadline.
125929         * m4/getstr.m4: Remove.
125930         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125932 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125934         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125935         to avoid collisions with libcurses and libreadline.
125937         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125938         * lib/getstr.h, getstr.c: Remove.
125939         * lib/getline.c: Include "getline.h", to check interface.
125940         Move body of old getstr.c here: this defines MIN_CHUNK and
125941         declares getdelim2, which is renamed from getstr.
125942         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125944         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125945         All uses changed.
125946         * lib/linebuffer.h: Likewise.
125947         (readline): Remove backward-compatibility macro.
125949 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125951         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125952         to avoid collisions with libcurses and libreadline.
125953         * getstr: Remove.
125954         * MODULES.html.sh: Remove getstr.
125955         * modules/getline: Depend on unlocked-io, not getstr.
125957 2003-01-12  Jim Meyering  <jim@meyering.net>
125959         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125961 2003-01-10  Bruno Haible  <bruno@clisp.org>
125963         * modules/alloca: Change Makefile.am requirements. Simplify Include
125964         requirements. Add lib/alloca_.h to file list.
125966 2003-01-10  Bruno Haible  <bruno@clisp.org>
125968         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125970 2003-01-10  Bruno Haible  <bruno@clisp.org>
125972         * lib/alloca_.h: New file.
125973         * lib/getdate.y: Unconditionally include alloca.h.
125974         * lib/makepath.c: Likewise.
125975         * lib/setenv.c: Likewise.
125976         * lib/userspec.c: Likewise.
125978 2003-01-09  Karl Berry  <karl@gnu.org>
125980         * MODULES.html.sh: include `dirname $0` in PATH, to find
125981         gnulib-tool.
125983 2003-01-09  Bruno Haible  <bruno@clisp.org>
125985         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125986         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125988 2003-01-09  Bruno Haible  <bruno@clisp.org>
125990         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125992 2003-01-09  Bruno Haible  <bruno@clisp.org>
125994         * lib/stdbool.h.in: New file.
125996 2003-01-09  Bruno Haible  <bruno@clisp.org>
125998         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125999         * MODULES.html.sh: Likewise.
126001 2003-01-08  Jim Meyering  <jim@meyering.net>
126003         * lib/full-write.c: Undefine and define-away `const' after inclusion
126004         of errno.h, not before.  Suggestion from Bruno Haible.
126006 2003-01-08  Bruno Haible  <bruno@clisp.org>
126008         * modules/full-read: Depend on full-write.
126010 2003-01-08  Bruno Haible  <bruno@clisp.org>
126012         * lib/safe-read.c: Include specification header first, to ensure its
126013         selfcontainedness.
126014         * lib/full-write.c: Likewise.
126016 2003-01-07  Jim Meyering  <jim@meyering.net>
126018         * lib/full-write.c: Rework so that it may serve to define full_read,
126019         too.
126020         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
126022 2003-01-07  Bruno Haible  <bruno@clisp.org>
126024         * lib/strtoimax.c: Include <stdint.h> as an alternative to
126025         <inttypes.h>.
126026         * lib/xstrtol.h: Likewise.
126027         * lib/xstrtoimax.c: Likewise.
126028         * lib/xstrtoumax.c: Likewise.
126029         * lib/human.h: Likewise.
126031         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
126032         on systems that have <inttypes.h> but not <stdint.h>.
126034 2003-01-07  Bruno Haible  <bruno@clisp.org>
126036         * MODULES.html.sh: Add copyright notice.
126037         (missed_files): Omit CVS directory entries.
126038         (func_module): Make it work with sed-3.02.
126039         * MODULES.txt: Remove file.
126041 2003-01-06  Jim Meyering  <jim@meyering.net>
126043         * lib/version-etc.c: Update year in translatable copyright string.
126045 2003-01-03  Karl Berry  <karl@gnu.org>
126047         * config/config.{guess,sub}: update from prep.
126049 2003-01-02  Karl Berry  <karl@gnu.org>
126051         * doc/COPYING.DOC: belatedly updated to 1.2.
126053 2003-01-01  Karl Berry  <karl@gnu.org>
126055         * gnulib-tool (func_verify_module): report module name $module in
126056         error message, not $1.
126057         * gnulib-tool (create-testdir): don't complain if destdir couldn't
126058         be created, only if it doesn't exist.
126059         * gnulib-tool (last_checkin_date): don't expand the $Date here.
126061 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126063         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
126065 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126067         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
126068         memcmp if strcoll doesn't work.
126070 2002-12-31  Bruno Haible  <bruno@clisp.org>
126072         * lib/utime.c (utime_null): No need to call ftruncate if the file was
126073         nonempty.
126075 2002-12-31  Bruno Haible  <bruno@clisp.org>
126077         * lib/memcoll.c (STRCOLL): New macro.
126078         (memcoll): Use it.
126080 2002-12-31  Bruno Haible  <bruno@clisp.org>
126082         * lib/localcharset.h: New file.
126083         * lib/localcharset.c: Include it.
126084         * lib/unicodeio.c: Likewise.
126086 2002-12-31  Bruno Haible  <bruno@clisp.org>
126088         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
126089         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
126091 2002-12-31  Bruno Haible  <bruno@clisp.org>
126093         * lib/getline.h: Include <stddef.h>, for size_t.
126095         * lib/unicodeio.h: Include <stddef.h>, for size_t.
126096         * lib/unicodeio.c: Don't include <stddef.h>.
126098 2002-12-31  Bruno Haible  <bruno@clisp.org>
126100         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
126101         HAVE_TM_ZONE.
126103 2002-12-24  Karl Berry  <karl@gnu.org>
126105         * config/config.guess: update from prep.
126107 2002-12-24  Bruno Haible  <bruno@clisp.org>
126109         General infrasructure.
126110         * m4/README: Rewritten.
126111         * m4/onceonly.m4: New file.
126112         * m4/onceonly_2_57.m4: New file.
126114         Module atexit.
126115         * m4/atexit.m4: New file.
126117         Module strtod.
126118         * m4/strtod.m4: New file.
126120         Module strtol.
126121         * m4/strtol.m4: New file.
126123         Module strtoul.
126124         * m4/strtoul.m4: New file.
126126         Module memchr.
126127         * m4/memchr.m4: New file.
126129         Module memcmp.
126130         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
126131         (jm_FUNC_MEMCMP): Invoke it.
126133         Module memcpy.
126134         * m4/memcpy.m4: New file.
126136         Module memmove.
126137         * m4/memmove.m4: New file.
126139         Module memset.
126140         * m4/memset.m4: New file.
126142         Module strcspn.
126143         * m4/strcspn.m4: New file.
126145         Module strpbrk.
126146         * m4/strpbrk.m4: New file.
126148         Module strstr.
126149         * m4/strstr.m4: New file.
126151         Module strerror.
126152         * m4/strerror.m4: New file.
126154         Module mktime.
126155         * m4/mktime.m4: Renamed from jm-mktime.m4.
126156         (gl_PREREQ_MKTIME): New macro.
126157         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
126159         Module malloc.
126160         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
126161         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
126162         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
126164         Module realloc.
126165         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
126166         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
126167         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
126169         Module strftime.
126170         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
126171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
126172         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
126173         gl_TM_GMTOFF.
126174         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
126176         Module xalloc.
126177         * m4/xalloc.m4: New file.
126179         Module alloca.
126180         * m4/alloca.m4: New file.
126182         Module putenv.
126183         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
126184         (jm_FUNC_PUTENV): Invoke it.
126186         Module setenv.
126187         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
126188         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
126189         when invoked twice.
126190         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
126191         gt_FUNC_SETENV.
126193         Module memrchr.
126194         * m4/memrchr.m4: New file.
126196         Module stpcpy.
126197         * m4/stpcpy.m4: New file.
126199         Module strcase.
126200         * m4/strcase.m4: New file.
126202         Module strdup.
126203         * m4/strdup.m4: New file.
126205         Module strnlen.
126206         * m4/strnlen.m4: New file.
126208         Module strndup.
126209         * m4/strndup.m4: New file.
126211         Module xstrtod.
126212         * m4/xstrtod.m4: New file.
126214         Module xstrtol.
126215         * m4/xstrtol.m4: New file.
126217         Module getdate.
126218         * m4/getdate.m4: New file.
126220         Module unlocked-io.
126221         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
126222         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
126223         * m4/jm-glibc-io.m4n: Remove file.
126225         Module long-options.
126226         * m4/long-options.m4: New file.
126228         Module md5.
126229         * m4/md5.m4: New file.
126231         Module sha.
126232         * m4/sha.m4: New file.
126234         Module getstr.
126235         * m4/getstr.m4: New file.
126237         Module getline.
126238         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
126239         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
126240         <sys/types.h>, for size_t. Use the function name gnu_getline, not
126241         simply getline. Infoke gl_PREREQ_GETLINE.
126243         Module obstack.
126244         * m4/obstack.m4: New file.
126246         Module hash.
126247         * m4/hash.m4: New file.
126249         Module readtokens.
126250         * m4/readtokens.m4: New file.
126252         Module strverscmp.
126253         * m4/strverscmp.m4: New file.
126255         Module stdbool.
126256         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
126257         OSF/1.
126259         Module strtoll.
126260         * m4/strtoll.m4: New file.
126262         Module strtoull.
126263         * m4/strtoull.m4: New file.
126265         Module strtoimax.
126266         * m4/strtoimax.m4: New file.
126268         Module strtoumax.
126269         * m4/strtoumax.m4: New file.
126271         Module xstrtoimax.
126272         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
126273         jm_AC_PREREQ_XSTRTOIMAX.
126274         Moved the strtol prerequisites to strtol.m4.
126275         Moved the strtoll prerequisites to strtoll.m4.
126276         Moved the strtoimax prerequisites to strtoimax.m4.
126278         Module xstrtoumax.
126279         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
126280         jm_AC_PREREQ_XSTRTOUMAX.
126281         Moved the strtoul prerequisites to strtoul.m4.
126282         Moved the strtoull prerequisites to strtoull.m4.
126283         Moved the strtoumax prerequisites to strtoumax.m4.
126285         Module chown.
126286         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
126287         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
126289         Module dup2.
126290         * m4/dup2.m4: New file.
126292         Module ftruncate.
126293         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
126294         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
126296         Module getgroups.
126297         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
126298         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
126300         Module gettimeofday.
126301         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
126302         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
126303         gl_PREREQ_GETTIMEOFDAY.
126305         Module mkdir.
126306         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
126307         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
126309         Module mkstemp.
126310         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
126311         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
126312         jm_AC_TYPE_UINTMAX_T.
126313         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
126315         Module stat.
126316         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
126317         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
126319         Module lstat.
126320         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
126321         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
126323         Module timespec.
126324         * m4/timespec.m4 (gl_TIMESPEC): New macro.
126325         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
126326         * m4/st_mtim.m4: Indentation.
126328         Module nanosleep.
126329         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
126330         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
126331         gl_PREREQ_NANOSLEEP.
126333         Module regex.
126334         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
126335         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
126336         (gl_REGEX): New macro.
126338         Module rename.
126339         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
126340         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
126342         Module rmdir.
126343         * m4/rmdir.m4: New file.
126345         Module utime.
126346         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
126347         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
126348         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
126350         Module dirname.
126351         * m4/dirname.m4: New file.
126353         Module getopt.
126354         * m4/getopt.m4: New file.
126356         Module unistd-safer.
126357         * m4/unistd-safer.m4: New file.
126359         Module fnmatch.
126360         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
126361         declaration.
126362         (gl_PREREQ_FNMATCH_EXTRA): New macro.
126363         (gl_FUNC_FNMATCH_POSIX): New macro.
126364         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
126365         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
126366         simply fnmatch.
126368         Module exclude.
126369         * m4/exclude.m4: New file.
126371         Module human.
126372         * m4/human.m4: New file.
126374         Module acl.
126375         * m4/acl.m4: Nop.
126377         Module backupfile.
126378         * m4/backupfile.m4: New file.
126379         * m4/d-ino.m4: Indentation.
126381         Module fsusage.
126382         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
126383         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
126384         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
126386         Module dirfd.
126387         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
126388         requirements.
126390         Module euidaccess.
126391         * m4/euidaccess.m4: New file.
126393         Module file-type.
126394         * m4/file-type.m4: New file.
126396         Module fileblocks.
126397         * m4/fileblocks.m4: New file.
126399         Module filemode.
126400         * m4/filemode.m4: New file.
126402         Module isdir.
126403         * m4/isdir.m4: New file.
126405         Module lchown.
126406         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
126407         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
126409         Module makepath.
126410         * m4/makepath.m4: New file.
126412         Module modechange.
126413         * m4/modechange.m4: New file.
126415         Module mountlist.
126416         * m4/mountlist.m4: New file.
126417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
126418         Indentation.
126420         Module path-concat.
126421         * m4/path-concat.m4: New file.
126423         Module pathmax.
126424         * m4/pathmax.m4: New file.
126426         Module same.
126427         * m4/same.m4: New file.
126429         Module save-cwd.
126430         * m4/save-cwd.m4: New file.
126432         Module savedir.
126433         * m4/savedir.m4: New file.
126435         Module xgetcwd.
126436         * m4/xgetcwd.m4: New file.
126437         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
126439         Module xreadlink.
126440         * m4/xreadlink.m4: New file.
126442         Module safe-read.
126443         * m4/safe-read.m4: New file.
126445         Module safe-write.
126446         * m4/safe-write.m4: New file.
126448         Module closeout.
126449         * m4/closeout.m4: New file.
126451         Module stdio-safer.
126452         * m4/stdio-safer.m4: New file.
126454         Module getpass.
126455         * m4/getpass.m4: New file.
126457         Module getugroups.
126458         * m4/getugroups.m4: New file.
126460         Module group-member.
126461         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
126462         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
126464         Module idcache.
126465         * m4/idcache.m4: New file.
126467         Module userspec.
126468         * m4/userspec.m4: New file.
126470         Module gettime.
126471         * m4/clock_time.m4: New file.
126472         * m4/gettime.m4: New file.
126474         Module settime.
126475         * m4/settime.m4: New file.
126477         Module posixtm.
126478         * m4/posixtm.m4: New file.
126480         Module gethostname.
126481         * m4/gethostname.m4: New file.
126483         Module canon-host.
126484         * m4/canon-host.m4: New file.
126486         Module gettext.
126487         * m4/codeset.m4: New file, from gettext-0.11.5.
126488         * m4/gettext.m4: New file, from gettext-0.11.5.
126489         * m4/glibc21.m4: New file, from gettext-0.11.5.
126490         * m4/iconv.m4: New file, from gettext-0.11.5.
126491         * m4/intdiv0.m4: New file, from gettext-0.11.5.
126492         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
126493         * m4/inttypes.m4: New file, from gettext-0.11.5.
126494         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
126495         * m4/isc-posix.m4: New file, from gettext-0.11.5.
126496         * m4/lcmessage.m4: New file, from gettext-0.11.5.
126497         * m4/lib-ld.m4: New file, from gettext-0.11.5.
126498         * m4/lib-link.m4: New file, from gettext-0.11.5.
126499         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
126500         * m4/progtest.m4: New file, from gettext-0.11.5.
126501         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
126502         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
126503         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
126505         Module localcharset.
126506         * m4/localcharset.m4: New file.
126508         Module hard-locale.
126509         * m4/hard-locale.m4: New file.
126511         Module mbswidth.
126512         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
126513         onceonly macros.
126514         * m4/mbrtowc.m4: Add comment.
126516         Module memcasecmp.
126517         * m4/memcasecmp.m4: New file.
126519         Module memcoll.
126520         * m4/memcoll.m4: New file.
126522         Module unicodeio.
126523         * m4/unicodeio.m4: New file.
126525         Module rpmatch.
126526         * m4/rpmatch.m4: New file.
126528         Module yesno.
126529         * m4/yesno.m4: New file.
126531         Module exitfail.
126532         * m4/exitfail.m4: New file.
126534         Module c-stack.
126535         * m4/c-stack.m4 (gl_C_STACK): New macro.
126536         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
126538         Module error.
126539         * m4/error.m4 (gl_ERROR): New macro.
126540         (jm_PREREQ_ERROR): Use onceonly macros.
126542         Module fatal.
126543         * m4/fatal.m4: New file.
126545         Module getloadavg.
126546         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
126547         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
126549         Module getpagesize.
126550         * m4/getpagesize.m4: New file.
126552         Module getusershell.
126553         * m4/getusershell.m4: New file.
126555         Module physmem.
126556         * m4/physmem.m4: New file.
126558         Module posixver.
126559         * m4/posixver.m4: New file.
126561         Module quotearg.
126562         * m4/quotearg.m4: New file.
126564         Module quote.
126565         * m4/quote.m4: New file.
126567         Module readutmp.
126568         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
126570         Module sig2str.
126571         * m4/sig2str.m4: New file.
126573         Other.
126574         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
126575         ulonglong.m4.
126576         * m4/intmax_t.m4: New file.
126577         * m4/d-type.m4: Indentation.
126578         * m4/jm-macros.m4: Update.
126579         * m4/prereq.m4 (jm_PREREQ): Update.
126580         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
126581         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
126582         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
126583         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
126584         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
126585         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
126586         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
126587         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
126588         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
126589         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
126590         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
126591         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
126592         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
126593         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
126594         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
126595         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
126596         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
126597         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
126598         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
126600 2002-12-24  Bruno Haible  <bruno@clisp.org>
126602         * MODULES.txt: Update according to m4/ changes.
126604         Module gettext.
126605         * config.rpath: New file, from gettext-0.11.5.
126607         * modules/*: New module descriptions.
126608         * gnulib-tool: New file.
126609         * MODULES.html.sh: New file.
126611 2002-12-21  Karl Berry  <karl@gnu.org>
126613         * doc/fdl.texi: update to version 1.2.
126615 2002-12-19  Karl Berry  <karl@gnu.org>
126617         * config/config.guess: update from prep.
126619 2002-12-18  Bruno Haible  <bruno@clisp.org>
126621         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
126622         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
126624 2002-12-17  Bruno Haible  <bruno@clisp.org>
126626         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
126627         stdlib.h, string.h.
126629 2002-12-17  Bruno Haible  <bruno@clisp.org>
126631         * lib/canon-host.c (strdup): Remove unused declaration.
126633         * lib/fsusage.c: Include full_read.h.
126634         (get_fs_usage): Use full_read instead of safe_read.
126636         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
126638 2002-12-12  Karl Berry  <karl@gnu.org>
126640         * config/config.guess: update from prep.
126642 2002-12-11  Bruno Haible  <bruno@clisp.org>
126644         * m4/setenv.m4: New file, from gettext-0.11.5.
126646 2002-12-11  Bruno Haible  <bruno@clisp.org>
126648         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
126649         not unsetenv().
126650         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
126651         modifications:
126653         2002-12-11  Bruno Haible  <bruno@clisp.org>
126655                 * setenv.c (alloca): Fall back to malloc.
126656                 (freea): New macro.
126657                 (setenv): Use freea() to free memory allocated with alloca().
126659         2002-11-13  Bruno Haible  <bruno@clisp.org>
126661                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
126662                 function declarations.
126663                 * unsetenv.c (unsetenv): Likewise.
126665         2002-03-04  Bruno Haible  <bruno@clisp.org>
126667                 Portability to AIX 4.3.3.
126668                 * unsetenv.c: New file, extracted from setenv.c.
126669                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126671         2001-12-20  Bruno Haible  <bruno@clisp.org>
126673                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126674                 use malloc instead. For SunOS 4.
126676         2001-12-11  Bruno Haible  <bruno@clisp.org>
126678                 * setenv.c: Declare alloca.
126679                 (compar_fn_t): New typedef.
126680                 (KNOWN_VALUE, STORE_VALUE): Use it.
126682         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126683         setenv.h.
126685 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126687         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126688         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126689         Choose values that are less likely to collide with system fnmatch
126690         options.
126691         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126692         defined (e.g., a pure POSIX system).
126693         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126694         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126696 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126698         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126699         a pain in practice to deal with generated m4 files.  This change
126700         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126702         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126703         and jm-glibc-io.m4, as they are no longer a special case.
126704         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126705         kludge and the auto-generation stuff.  Check only whether the
126706         functions are declared, not whether they exist, since older hosts
126707         that don't declare the functions can't use the optimization anyway.
126709 2002-12-06  Jim Meyering  <jim@meyering.net>
126711         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
126713         Merge in changes from libc's misc/error.c, in preparation
126714         for the merge of gnulib's changes back into libc.
126716         * lib/error.c (_): Define only if not already defined.
126717         Move definition to follow all #include directives.
126718         Include unlocked-io.h only if !_LIBC.
126719         [_LIBC]: Include <libio/libioP.h>.
126720         [USE_IN_LIBIO]: Include <libio/iolibio.h>
126721         (fflush): Tweak definition to use INTUSE.
126722         (putc): Define.
126724 2002-12-05  Paul Eggert  <eggert@twinsun.com>
126726         * lib/alloca.c [defined emacs]: Include "lisp.h".
126727         (xalloc_die) [defined emacs]: New macro.
126728         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
126729         [! defined emacs]: Include <xalloc.h>.
126730         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
126731         (pointer): Typedef to POINTER_TYPE *.
126732         (malloc): Remove decl; we now always use xmalloc.
126733         (alloca): Use old-style definition, since Emacs needs this.
126734         Check for arithmetic overflow when computing combined size.
126736 2002-12-04  Paul Eggert  <eggert@twinsun.com>
126738         Do not generate unlocked-io.h automatically, since it's easier to
126739         maintain it by hand.
126741         * lib/unlocked-io.h: New file, from GNU diffutils,
126742         but with proper copyright notice and attribution.
126743         * lib/gen-uio: Remove.
126744         * lib/Makefile.am: Add copyright notice.
126745         (libfetish_a_SOURCES): Add unlocked-io.h.
126746         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
126747         (DISTCLEANFILES, io_functions): Remove macros.
126748         (EXTRA_DIST): Remove gen_uio.
126749         (unlocked-io.h): Remove rule.
126751 2002-12-04  Jim Meyering  <jim@meyering.net>
126753         Reflect the fact that stat.c and lstat.c are no longer generated.
126754         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
126755         (DISTCLEANFILES): Likewise.
126756         (EXTRA_DIST): Likewise.
126757         (all_local): Don't depend on stat.c or lstat.c.
126758         (stat.c, lstat.c): Remove rules.
126759         (EXTRA_DIST): Remove xstat.in.
126761         * lib/xstat.in: Remove file.  Contents moved into stat.c.
126762         * lib/stat.c: New file.  Contents mostly from xstat.in.
126763         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
126764         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
126766         * lib/safe-read.c: Rework so that it may serve to define safe_write,
126767         too.
126768         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
126770 2002-12-03  Jim Meyering  <jim@meyering.net>
126772         * lib/safe-read.c, safe-write.c: Change variable names and comments,
126773         but not semantics, to minimize the differences between these two files.
126774         (safe_read): Change comment to mention SAFE_READ_ERROR.
126776         * lib/safe-read.c (IS_EINTR): Define.
126777         (safe_read): Use IS_EINTR in place of in-function cpp directives.
126779 2002-12-02  Jim Meyering  <jim@meyering.net>
126781         * lib/safe-read.c (EINTR): Define.
126782         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126783         (INT_MAX): Provide fallback.
126784         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
126786         * lib/safe-read.h (SAFE_READ_ERROR): Define.
126788 2002-12-02  Bruno Haible  <bruno@clisp.org>
126790         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
126791         Define, taken from safe-read.c.
126792         (INT_MAX): Provide fallback.
126793         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
126794         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
126796         * lib/safe-read.c (EINTR): Remove definition.
126797         (safe_read): Don't use EINTR if it is absent.
126799 2002-12-01  Jim Meyering  <jim@meyering.net>
126801         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
126802         zero.
126803         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
126805 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126807         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126808         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126809         with `if (! (value < limit)) abort ();', for readability.
126811 2002-11-26  Karl Berry  <karl@gnu.org>
126813         * lib/strdup.c: copy from libc again, with jim's ok.
126814         * lib/.cppi-disable: re-add strdup.c
126816 2002-11-25  Karl Berry  <karl@gnu.org>
126818         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126819         instead of "strtol.c".
126821 2002-11-25  Karl Berry  <karl@gnu.org>
126823         * config/install-sh: update from automake for variable quoting, $0 in
126824         error msgs, etc.
126826         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126827         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126828         entry.
126830 2002-11-25  Jim Meyering  <jim@meyering.net>
126832         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126834 2002-11-24  Karl Berry  <karl@gnu.org>
126836         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126837         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126839 2002-11-24  Jim Meyering  <jim@meyering.net>
126841         Update from coreutils:
126843         * lib/mktime.c: Merge in changes from libc.
126845         Avoid a link-time failure on some Linux systems.
126846         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126847         (otherwise).
126848         (__mon_yday): Declare with the STATIC attribute.
126849         (__mktime_internal): Likewise.
126850         Based on a report from Greg Schafer.
126852 2002-11-23  Jim Meyering  <jim@meyering.net>
126854         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126855         Use `unsigned', not `int', as type of index.
126857         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126859         * lib/fsusage.c: Remove unneeded parentheses around operands of
126860         `defined'.
126862 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126864         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126865         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126866         so that we can be included first.
126867         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126868         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126869         No need to include stddef.h or sys/types.h any more.
126870         Surround local include files with "", not "<>".
126871         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126872         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126873         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126874         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126875         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126876         (ISPRINT): Remove; no longer needed now that we assume C89.
126878         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126879         Preserve errno.
126881         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126882         quotearg_char): Use SIZE_MAX rather than
126883         (size_t) -1 when we are talking about "infinity".
126885         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126887 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126889         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126890         hint that one should use `if (! x) abort ();' rather than `assert
126891         (x);', and anyway it's one less thing to worry about configuring.
126892         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126893         hash_rehash, hash_insert): Use abort rather than assert.
126895 2002-11-22  Bruno Haible  <bruno@clisp.org>
126897         * lib/safe-read.h: Assume C89. Add comments.
126898         (safe_read): Change return type to size_t.
126899         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126900         byte counts > SSIZE_MAX correctly.
126901         * lib/safe-write.h: New file.
126902         * lib/safe-write.c: New file.
126903         * lib/full-read.h: New file.
126904         * lib/full-read.c: New file.
126905         * lib/full-write.h: Assume C89. Add comments.
126906         * lib/full-write.c: Include safe-write.h.
126907         (full_write): Rewritten to use safe_write.
126908         Suggested by Jim Meyering and Paul Eggert.
126910 2002-11-21  Jim Meyering  <jim@meyering.net>
126912         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126914         Merge in changes from the coreutils.
126916         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126917         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126918         <stdint.h>.
126919         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126920         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126921         int.  Work more efficiently if X is the same width as uintmax_t.
126922         Do not compare X to -1, to avoid bogus compiler warning.
126923         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126924         Don't assume that f_frsize and f_bsize are the same type.
126926         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126927         warning on FreeBSD.
126929         * lib/makepath.c (make_path): Restore umask *before* creating the final
126930         component.
126931         (make_path): Minor reformatting.
126933         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126934         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126935         HAVE_MALLOC/HAVE_REALLOC.
126937         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126938         dummy ones.  At least on GNU/Linux systems, `auto' means something
126939         else.
126940         From Michael Stone.
126942 2002-11-21  Bruno Haible  <bruno@clisp.org>
126944         Remove case insensitive option matching.
126945         * lib/argmatch.h (argcasematch): Remove declaration.
126946         (ARGCASEMATCH): Remove macro.
126947         (__xargmatch_internal): Remove case_sensitive argument.
126948         (XARGMATCH): Update.
126949         (XARGCASEMATCH): Remove macro.
126950         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126951         case_sensitive argument.
126952         (argcasematch): Remove function.
126953         (__xargmatch_internal): Remove case_sensitive argument.
126954         (main): Use XARGMATCH instead of XARGCASEMATCH.
126956         * lib/xmalloc.c: Change compile-time error message. Add comment about
126957         required autoconf version.
126959 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126961         Merge argmatch cleanups from Bison.  Assume C89.
126963         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126964         Include stdlib.h, for EXIT_FAILURE.
126965         Always include <string.h>, since we assume C89.
126966         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126967         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126968         Include <stddef.h> instead, since it's all we need for size_t.
126969         (PARAMS): Remove.  All uses removed.
126970         (ARRAY_CARDINALITY): Do not bother to #undef.
126971         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126972         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126973         Remove unnecessary parentheses.
126974         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126975         Insert necessary parentheses.
126976         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126977         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126979 2002-11-19  Bruno Haible  <bruno@clisp.org>
126981         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126982         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126984         * lib/mbswidth.h (PARAMS): Remove macro.
126985         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126986         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126988         * lib/gcd.h (PARAMS): Remove macro.
126989         (gcd): Use ANSI C function declarations.
126990         * lib/gcd.c (gcd): Likewise.
126992 2002-11-15  Bruno Haible  <bruno@clisp.org>
126994         * lib/strcspn.c: Include <stddef.h>.
126995         (strcspn): Use ANSI C function declaration. Change return type to
126996         size_t. Use NULL.
126997         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126998         (strpbrk): Use NULL.
126999         * lib/strpbrk.h (PARAMS): Remove macro.
127000         (strpbrk): Use ANSI C function declaration.
127001         * lib/strstr.c: Don't include <sys/types.h>.
127002         * lib/strstr.h (PARAMS): Remove macro.
127003         (strstr): Use ANSI C function declarations.
127005 2002-11-14  Karl Berry  <karl@gnu.org>
127007         * config/mkinstalldirs: `do' on separate line, instead of
127008         `for var; do'.
127010 2002-11-06  Bruno Haible  <bruno@clisp.org>
127012         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
127013         * lib/gcd.c (gcd): Likewise.
127015 2002-11-05  Bruno Haible  <bruno@clisp.org>
127017         * lib/gcd.h: New file, from gettext-0.11.5.
127018         * lib/gcd.c: New file, from gettext-0.11.5.
127020 2002-11-05  Bruno Haible  <bruno@clisp.org>
127022         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127023         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127024         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127025         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127027         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
127028         <libintl.h>.
127029         * lib/makepath.c: Include gettext.h instead of <locale.h> and
127030         <libintl.h>.
127032         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
127033         * lib/human.c: Include gettext.h instead of <libintl.h>.
127034         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
127035         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
127036         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
127037         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
127038         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
127039         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
127040         (textdomain): Remove definition.
127041         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
127043         * lib/long-options.c: Remove include of <libintl.h> and definition of
127044         _.
127045         * lib/same.c: Remove include of <libintl.h> and definition of _.
127047 2002-11-04  Owen Taylor  <otaylor@redhat.com>
127049         * lib/config.charset: A few additions for Solaris.
127051 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127053         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
127054         * lib/localcharset.c (locale_charset): Declare as extern "C".
127056 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127058         * lib/config.charset: msdos in uk_UA uses CP1125.
127060 2002-11-04  Bruno Haible  <bruno@clisp.org>
127062         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
127063         * lib/strcase.h: New file, from GNU gettext-0.11.5.
127064         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
127065         * lib/strstr.h: New file, from GNU gettext-0.11.5.
127066         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
127068 2002-11-04  Bruno Haible  <bruno@clisp.org>
127070         * lib/localcharset.c (locale_charset): Don't return an empty string.
127072 2002-11-04  Bruno Haible  <bruno@clisp.org>
127074         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
127075         aliases.
127077 2002-11-04  Bruno Haible  <bruno@clisp.org>
127079         * lib/config.charset: Update for newest glibc. Add canonical names
127080         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
127082 2002-11-04  Bruno Haible  <bruno@clisp.org>
127084         * lib/config.charset: Add support for NetBSD.
127086 2002-11-04  Bruno Haible  <bruno@clisp.org>
127088         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
127090 2002-11-01  Bruno Haible  <bruno@clisp.org>
127092         * configure.in: Add AC_CONFIG_AUX_DIR call.
127093         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
127094         test/Makefile.
127095         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
127097 2002-09-28  Karl Berry  <karl@gnu.org>
127099         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
127100         installed automake until the next release, since changes have been
127101         made.
127103 2002-09-25  Karl Berry  <karl@gnu.org>
127105         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
127106         * lib/getopt*: copy from libc/posix.
127107         * lib/gettext.h: copy from gettext.
127108         * lib/.cppi-disable: add strdup.c, gettext.h.
127110 2002-09-25  Karl Berry  <karl@gnu.org>
127112         * config/srclist.txt: enable gettext.h check.
127113         * config/config.{guess,sub}: update from prep.
127114         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
127115                 from automake 1.6.3.
127116         See srclist*.
127118 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
127120         * regex.c (PATFETCH): Remove the translating fetch.
127121         (PATFETCH_RAW): Rename to PATFETCH.
127122         (set_image_of_range): New fun.
127123         (SET_RANGE_TABLE_WORK_AREA): Use it.
127124         (regex_compile): Don't translate the pattern chars so eagerly.
127125         Only do it when inserting an `exactn' bytecode or when handling
127126         a char-range.
127127         (mutually_exclusive_p): Avoid empty statement.
127129 2002-07-06  Jim Meyering  <meyering@lucent.com>
127131         * m4/README: Don't mention Makefile.am.in.
127132         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
127134 2002-07-01  Jim Meyering  <meyering@lucent.com>
127136         * lib/c-stack.c: Include sys/time.h.
127137         From Volker Borchert.
127139 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127141         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
127143 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127145         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
127146         New macro.  Use it uniformly instead of
127147         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
127148         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
127149         reported by Vin Shelton.
127151 2002-06-22  Paul Eggert  <eggert@twinsun.com>
127153         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
127154         Do not assume SA_SIGINFO behavior.
127155         Bug reported by Jim Meyering on NetBSD 1.5.2.
127157 2002-06-22  Jim Meyering  <meyering@lucent.com>
127159         * m4/c-stack.m4: New file, from diffutils-2.8.2.
127160         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
127162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
127163         now that configure.ac uses AC_GNU_SOURCE.
127164         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
127165         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
127167         Update to latest tools.  Suggestions from Paul Eggert.
127168         * m4/stdbool.m4: New file, from diffutils-2.8.2.
127169         * m4/gnu-source.m4: Update from diffutils-2.8.2.
127170         * m4/fnmatch.m4: Likewise.
127171         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
127172         to AC_HEADER_STDBOOL
127174 2002-06-22  Jim Meyering  <meyering@lucent.com>
127176         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
127177         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
127179 2002-06-22  Jim Meyering  <meyering@lucent.com>
127181         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
127183         * lib/exitfail.c, exitfail.h: Likewise.
127184         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
127186         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
127187         of fnmatch.h.
127188         (EXTRA_DIST): Add fnmatch_loop.c.
127189         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
127191         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
127192         * lib/fnmatch.c: Update from diffutils-2.8.2.
127193         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
127194         * lib/fnmatch.h: Remove file.
127196 2002-06-21  Jim Meyering  <meyering@lucent.com>
127198         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
127199         * m4/mbrtowc.m4: Likewise.
127201         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
127202         * m4/mbswidth.m4: Reflect name change:
127203         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
127204         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127206         * m4/lib-link.m4: Update from gettext-0.11.2.
127207         * m4/gettext.m4: Likewise.
127209         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
127210         From Alfred M. Szmidt.
127212 2002-06-18  Paul Eggert  <eggert@twinsun.com>
127214         * lib/file-type.h: Report an error if neither S_ISREG nor
127215         S_IFREG is defined, instead of using a test specific to glibc
127216         2.2.  This should be safe, since POSIX requires S_ISREG and
127217         Unix Version 7 had S_IFREG.  We don't need to check for
127218         <sys/types.h> since we don't use any symbols that it defines.
127220 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
127222         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
127223         $@-t, so that each temporary file name is unique and valid in the first
127224         8 characters, for operation under DOS.
127226 2002-06-15  Paul Eggert  <eggert@twinsun.com>
127228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
127230 2002-06-15  Jim Meyering  <meyering@lucent.com>
127232         Work even with DJGPP 2.03, which lacks support for symlinks.
127233         From Richard Dawe.
127234         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
127235         is defined.
127236         * lib/lchown.c (S_ISLNK): Likewise.
127238 2002-06-15  Jim Meyering  <meyering@lucent.com>
127240         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
127241         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
127242         have been included before this file.
127244 2002-06-14  Jim Meyering  <meyering@lucent.com>
127246         * lib/file-type.h: Use the version from diffutils-2.8.2.
127247         * lib/file-type.c: Likewise.
127249 2002-06-07  Jim Meyering  <meyering@lucent.com>
127251         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
127252         They're needed at least for NetBSD 1.5.2.
127253         ($statxfs_includes): Include those same headers.
127254         ($statxfs_includes): Include sys/vfs.h if available.
127255         ($statxfs_includes): Likewise for sys/statvfs.h.
127256         Check for the following members in both structs statfs and statvfs:
127257         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
127259 2002-06-01  Jim Meyering  <meyering@lucent.com>
127261         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
127262         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
127264 2002-05-28  Jim Meyering  <meyering@lucent.com>
127266         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
127267         Reported by Volker Borchert.
127269 2002-05-27  Jim Meyering  <meyering@lucent.com>
127271         Fix a problem seen only on nonconforming systems whereby ls.c's
127272         use of localtime, and then of gettimeofday would cause trouble:
127273         the localtime call used to initialize rpl_gettimeofday's save
127274         mechanism would clobber ls's current local time information so
127275         that in any long listing the first file would always be listed
127276         with date 1970-01-01.  Analysis by Volker Borchert.
127278         * lib/gettimeofday.c (localtime): Undefine.
127279         (rpl_localtime): New function.
127281 2002-05-27  Jim Meyering  <meyering@lucent.com>
127283         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
127284         localtime.
127286         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
127287         use the replacement function; it wouldn't resolve at link time.
127288         Reported by Volker Borchert.
127290 2002-05-22  Jim Meyering  <meyering@lucent.com>
127292         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
127293         file-type.h.
127294         * lib/file-type.h: New file.
127295         * lib/file-type.c (file_type): New file/function.  Extracted from
127296         diffutils.
127298 2002-04-30  Jim Meyering  <meyering@lucent.com>
127300         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
127302 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127304         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
127306 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127308         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
127309         Do not check for alloca.h (no longer used) or stdbool.h (was never
127310         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
127312 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127314         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
127316 2002-04-29  Jim Meyering  <meyering@lucent.com>
127318         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
127319         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
127320         Use AC_FUNC_STRNLEN here instead.
127322         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
127323         With autoconf-2.53a, it's part of AC_PROG_CC.
127325 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127327         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
127328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
127330 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127332         * lib/sig2str.h, lib/sig2str.c: New files.
127333         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
127335 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127337         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
127338         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
127339         of 127, since 64 is the largest conceivable number for ancient
127340         nonstandard hosts.
127341         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
127343 2002-04-28  Jim Meyering  <meyering@lucent.com>
127345         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
127347 2002-04-24  Jim Meyering  <meyering@lucent.com>
127349         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
127350         (jm_PREREQ): Use it.
127352         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
127353         mach/mach.h fcntl.h.
127354         Check for this function: setlocale.
127356 2002-04-24  Jim Meyering  <meyering@lucent.com>
127358         * lib/gettext.h: New file, from Gettext.
127359         * lib/Makefile.am (INCLUDES): Remove -I../intl.
127360         (libfetish_a_SOURCES): Add gettext.h.
127362 2002-04-16  Jim Meyering  <meyering@lucent.com>
127364         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
127365         ut_pid, ut_id, ut_exit.
127367 2002-04-16  Jim Meyering  <meyering@lucent.com>
127369         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
127370         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
127371         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
127373 2002-04-12  Jim Meyering  <meyering@lucent.com>
127375         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
127376         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
127377         existence of the getmntinfo function.  Needed for Darwin 5.3.
127379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
127380         This is necessary at least on Darwin 5.3.
127382         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
127383         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
127384         strnlen.o in the library, and that makes some versions of ranlib
127385         object.
127387 2002-04-12  Jim Meyering  <meyering@lucent.com>
127389         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
127391 2002-04-09  Jim Meyering  <meyering@lucent.com>
127393         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
127394         to be more precise.  Rather than saying we're checking whether the
127395         function `works', say what we're testing.
127396         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
127397         Reported by Bruno Haible.
127399 2002-03-10  Jim Meyering  <meyering@lucent.com>
127401         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
127402         Suggestion from Santiago Vila.
127404 2002-03-08  Jim Meyering  <meyering@lucent.com>
127406         * lib/rename.c: Mention that this wrapper is needed also on
127407         mips-dec-ultrix4.4 systems.
127409 2002-03-02  Jim Meyering  <meyering@lucent.com>
127411         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
127412         not HAVE_CLOCK_SETTIME.
127414 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127416         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
127417         Check for clock_settime.
127419 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127421         * lib/nanosleep.h: Rename to....
127422         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
127424         * lib/gettime.c: New file.
127425         * lib/settime.c: New file.
127426         * lib/stime.c: Remove.
127428         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
127429         timespec.h.  Remove nanosleep.h.
127431 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127433         * m4/acl.m4: New file.
127434         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
127435         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
127437 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127439         * lib/acl.c, lib/acl.h: New files.
127440         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
127442 2002-02-24  Jim Meyering  <meyering@lucent.com>
127444         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
127445         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
127446         cause trouble.  Reported by Nelson Beebe.
127448 2002-02-23  Paul Eggert  <eggert@twinsun.com>
127450         * lib/path-concat.c (xpath_concat): Reorder code to pacify
127451         compilers that don't know that xalloc_die never returns.
127453 2002-02-20  Jim Meyering  <meyering@lucent.com>
127455         * lib/getdate.c: Regenerate using bison-1.33.
127457 2002-02-17  Jim Meyering  <meyering@lucent.com>
127459         * config/config.guess (main): Don't use `head -1'; it's no longer
127460         portable. Use `sed 1q' instead.
127462 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
127464         * m4/codeset.m4: Upgrade to gettext-0.11.
127465         * m4/gettext.m4: Upgrade to gettext-0.11.
127466         * m4/glibc21.m4: Upgrade to gettext-0.11.
127467         * m4/iconv.m4: Upgrade to gettext-0.11.
127468         * m4/isc-posix.m4: Upgrade to gettext-0.11.
127469         * m4/lcmessage.m4: Upgrade to gettext-0.11.
127470         * m4/lib-ld.m4: New file, from gettext-0.11.
127471         * m4/lib-link.m4: New file, from gettext-0.11.
127472         * m4/lib-prefix.m4: New file, from gettext-0.11.
127473         * m4/progtest.m4: Upgrade to gettext-0.11.
127475 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127477         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
127478         (jm_PREREQ): Use it.
127480 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127482         * lib/posixver.c, lib/posixver.h: New files.
127483         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127485 2002-02-02  Paul Eggert  <eggert@twinsun.com>
127486             Bruno Haible  <bruno@clisp.org>
127488         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
127489         (fwrite_success_callback): New declaration.
127490         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
127491         print_unicode_char. Call failure callback instead of error.
127492         (fwrite_success_callback): New function.
127493         (exit_failure_callback): New function.
127494         (fallback_failure_callback): New function.
127495         (print_unicode_char): Call unicode_to_mb.
127497 2002-01-26  Jim Meyering  <meyering@lucent.com>
127499         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
127500         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
127502 2002-01-26  Jim Meyering  <meyering@lucent.com>
127504         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
127506 2002-01-22  Paul Eggert  <eggert@twinsun.com>
127508         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
127510 2002-01-22  Jim Meyering  <meyering@lucent.com>
127512         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
127513         Otherwise, some versions of automake would omit the rule that makes
127514         Makefile from Makefile.in.
127516 2002-01-21  Paul Eggert  <eggert@twinsun.com>
127518         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
127519         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127520         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
127521         (memcoll): Set errno to zero if there is no error.
127523         * lib/quotearg.c (quotearg_buffer_restyled):
127524         Fix bug with quoting buffers containing NUL when backslashing escapes.
127525         This bug was exposed by the other changes in this patch.
127526         (quotearg_n_options): New arg ARGSIZE.
127527         All callers changed.
127528         (quoting_options_from_style): New function.
127529         (quotearg_n_style): Use it.
127530         (quotearg_n_style_mem): New function.
127532         * lib/quotearg.h (quotearg_n_style_mem): New function.
127534 2002-01-19  Jim Meyering  <meyering@lucent.com>
127536         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
127537         Remove useless quotes: DF_PROG="df".
127538         * m4/strnlen.m4: New file.
127540 2002-01-16  Paul Eggert  <eggert@twinsun.com>
127542         * lib/backupfile.c (ISDIGIT): Comment fix.
127543         * lib/getdate.y (ISDIGIT): Likewise.
127544         * lib/posixtm.c (ISDIGIT, year): Likewise.
127545         * lib/strverscmp.c (ISDIGIT): Likewise.
127546         * lib/userspec.c (ISDIGIT): Likewise.
127548 2002-01-16  Jim Meyering  <meyering@lucent.com>
127550         * lib/getdate.y: Add three semicolons, each just before a closing
127551         brace. Bison (as of version 1.31) no longer papers over that mistake.
127553 2002-01-05  Jim Meyering  <meyering@lucent.com>
127555         * lib/version-etc.c (version_etc_copyright): Update copyright year.
127557 2001-12-19  Paul Eggert  <eggert@twinsun.com>
127559         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
127560         not silently exit merely because the output buffer happens to
127561         have nothing pending.
127563 2001-12-18  Paul Eggert  <eggert@twinsun.com>
127565         See the big note in ../ChangeLog.
127566         * lib/human.c (suffixes): Prefer K to k for 1024.
127567         (generate_suffix_backwards): New function.
127568         (human_readable_inexact): Use it.
127569         * lib/xstrtol.c (__xstrtol): If there is no number but there
127570         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
127571         Accept 'K' as well as 'k'.
127573 2001-12-15  Jim Meyering  <meyering@lucent.com>
127575         * lib/regex.h (__restrict_arr): Update from libc.
127577         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
127578         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
127579         (STREQ): Define.
127581 2001-12-14  Jim Meyering  <meyering@lucent.com>
127583         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
127584         Suggestion from Bruno Haible.
127586 2001-12-10  Jim Meyering  <meyering@lucent.com>
127588         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
127589         xrealloc, Instead, include "xalloc.h".
127590         (initbuffer): Don't cast xmalloc return value to char*.
127591         (readline): Reword comment.
127592         Don't cast xrealloc return value to char*
127593         Return NULL, not 0.
127595 2001-12-09  Jim Meyering  <meyering@lucent.com>
127597         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
127598         about `signed and unsigned type in conditional expression'.
127599         * lib/posixtm.c (posix_time_parse): Likewise.
127601         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
127603         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
127604         to avoid a pedantic warning.
127606         * lib/getstr.c: Don't include assert.h.
127607         (getstr): Remove warning-evoking assertions.
127608         Return -1 if offset parameter is out of bounds.
127609         Change the type of a local from int to size_t.
127611         * lib/strftime.c (my_strftime_localtime_r): Include this function
127612         definition in the `#if ! HAVE_TM_GMTOFF' block.
127614         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
127615         Include xalloc.h instead.
127617 2001-12-02  Jim Meyering  <meyering@lucent.com>
127619         * lib/tempname.c: Don't declare getenv, thus reverting the change of
127620         2001-11-18.  It's no longer necessary, now that stdlib.h is always
127621         included.
127623         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
127624         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
127626 2001-11-30  Akim Demaille  <akim@epita.fr>
127628         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
127629         before being defined.
127631 2001-11-27  Paul Eggert  <eggert@twinsun.com>
127633         * lib/quotearg.h (quotearg_n, quotearg_n_style):
127634         First arg is int, not unsigned.
127635         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
127636         (SIZE_MAX, UINT_MAX): New macros.
127637         (quotearg_n_options): Abort if N is negative.
127638         Avoid overflow check on hosts where size_t is 64 bits and int
127639         is 32 bits, as overflow is impossible there.
127640         Fix off-by-one typo that caused unnecessary reallocation.
127642 2001-11-27  Jim Meyering  <meyering@lucent.com>
127644         * lib/tempname.c: Merge with version from libc.
127645         * lib/regex.c: Likewise.
127647         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
127648         systems for which STDC_HEADERS is 0, it was not included, resulting in
127649         a warning about an integer-to-pointer conversion problem with getenv.
127650         Reported by Volker Borchert.
127652 2001-11-26  Jim Meyering  <meyering@lucent.com>
127654         * lib/gtod.h: Remove file.
127655         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
127656         * lib/gettimeofday.c: Don't include gtod.h.
127657         (GTOD_init): Remove function.
127658         (rpl_gettimeofday): Do its job here instead, rather than aborting.
127659         Suggestion from Volker Borchert.
127661 2001-11-23  Jim Meyering  <meyering@lucent.com>
127663         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
127664         it.
127665         * lib/hash.c (struct hash_table): Define it here instead.
127667 2001-11-22  Jim Meyering  <meyering@lucent.com>
127669         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127671 2001-11-20  Jim Meyering  <meyering@lucent.com>
127673         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127674         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127676 2001-11-19  Jim Meyering  <meyering@lucent.com>
127678         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127679         directory.  Use "conftestXXXXXX" as the template.
127680         Suggestion from Paul Eggert.
127682         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127683         immediately, so the test doesn't mistakenly hit the max-open-files
127684         limit.
127686 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127688         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127689         (TEMPORARIES): New macro.
127690         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127691         removes an artificial limitation (e.g. HP-UX 10.20, where
127692         TMP_MAX is 17576).
127694 2001-11-18  Jim Meyering  <meyering@lucent.com>
127696         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127698 2001-11-18  Jim Meyering  <meyering@lucent.com>
127700         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127701         on SunOS 4.
127703         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127704         files will be created before anything else.
127706 2001-11-17  Paul Eggert  <eggert@twinsun.com>
127708         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
127709         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
127711 2001-11-17  Jim Meyering  <meyering@lucent.com>
127713         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
127714         Prompted by a report from Bob Proulx.
127716         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
127717         Instead, require UTILS_FUNC_MKSTEMP.
127719 2001-11-17  Jim Meyering  <meyering@lucent.com>
127721         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
127722         Now, that's done as part of AC_FUNC_STRTOD.
127724 2001-11-17  Jim Meyering  <meyering@lucent.com>
127726         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
127727         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
127728         rather than group writable.  Patch by Juan F. Codagnone.
127730         * lib/readtokens.c: Remove explicit declarations of xmalloc and
127731         xrealloc, Instead, include "xalloc.h".
127733         * lib/mountlist.c: Include unlocked-io.h after all system headers.
127734         Remove explicit declarations of xmalloc, xrealloc,
127735         and xstrdup.  Instead, include "xalloc.h".
127737         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
127738         unlocked-io.h.
127739         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
127740         Likewise.
127741         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
127743         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
127744         Reported by Padraig Brady.
127746         * lib/mkstemp.c: #undef mkstemp.
127747         Include config.h.
127748         (rpl_mkstemp): Rename from mkstemp.
127749         Protoize.
127751 2001-11-16  Jim Meyering  <meyering@lucent.com>
127753         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
127754         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
127755         determine the amount of total physical memory, use pstat_getstatic.
127756         HPUX-11 doesn't define _SC_PHYS_PAGES.
127757         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
127758         If sysconf couldn't be used to determine the amount of available
127759         physical memory, use both pstat_getstatic and pstat_getdynamic.
127760         Based on a patch from Bob Proulx.
127762 2001-11-10  Jim Meyering  <meyering@lucent.com>
127764         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
127765         (jm_PREREQ): Use it.
127767 2001-11-09  Jim Meyering  <meyering@lucent.com>
127769         * m4/jm-macros.m4: Require autoconf-2.52f.
127770         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
127771         Use these AC_-prefixed names, not the AM_-prefixed ones.
127773         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
127775 2001-11-05  Jim Meyering  <meyering@lucent.com>
127777         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
127779 2001-11-04  Jim Meyering  <meyering@lucent.com>
127781         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
127782         $DEFS.
127784 2001-11-03  Jim Meyering  <meyering@lucent.com>
127786         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
127787         of AC_DEFUN.
127789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
127790         know the name of the variable in the macro definition.
127792 2001-11-03  Jim Meyering  <meyering@lucent.com>
127794         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
127795         in argmatch_to_argument call.
127797         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
127798         argument.
127800         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
127801         e.g., a fault due to an attempt to free a NULL pointer.
127803 2001-11-01  Jim Meyering  <meyering@lucent.com>
127805         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127806         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127808 2001-11-01  Jim Meyering  <meyering@lucent.com>
127810         * lib/dirfd.c, lib/dirfd.h: New files.
127811         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127813         * lib/hash.c (hash_print) [TESTING]: Clean up.
127815 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127817         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127818         to avoid a warning if -Wall.
127820 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127822         * README: New file
127823         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127824         (per RMS's instructions, this is now the canonical source)
127825         * lgpl/, gpl/: New directories.
127827 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127829         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127831 2001-10-21  Jim Meyering  <meyering@lucent.com>
127833         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127834         this code would end up calling gettext even in packages built
127835         with --disable-nls.
127836         * lib/getopt.c (_): Likewise.
127837         * lib/regex.c (_): Likewise.
127839 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127841         * m4/error.m4 (jm_PREREQ_ERROR):
127842         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127843         AC_FUNC_STRERROR_R does that.
127844         Check for strerror declaration.
127846         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127847         are supposed to have them these days.
127848         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127849         Merge changes from latest Autoconf CVS.
127850         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127851         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127852         POSIX decided to standardize on the int flavor of strerror_r.
127854 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127856         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127857         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127858         Use strerror_r that is only a macro, even if it is not a function.
127859         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127860         (private_strerror): Use prototypes, not old-style function definition.
127861         (print_errno_message): New function.
127862         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127863         char*-flavored one.
127864         (error_tail, error, error_at_line): Use it.
127866 2001-10-11  Jim Meyering  <meyering@lucent.com>
127868         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127869         and quote_n (1, ... to avoid clobbering a buffer.
127871 2001-10-05  Jim Meyering  <meyering@lucent.com>
127873         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127874         hash-pjw.h.
127875         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127876         * lib/hash-pjw.h: New file.
127878 2001-09-30  Jim Meyering  <meyering@lucent.com>
127880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127881         `struct fsstat' has the `f_fstypename' member.
127882         Use that to define FS_TYPE, which is now used to make
127883         the getfsstat link test tighter.
127885 2001-09-30  Jim Meyering  <meyering@lucent.com>
127887         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127888         Include <sys/ucred.h>, for Apple Darwin.
127889         Include sys/mount.h and sys/fs_types.h only if available.
127890         (FS_TYPE): Define.
127891         (read_filesystem_list): Use FS_TYPE.
127893 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127895         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127896         a boolean context.
127898 2001-09-29  Jim Meyering  <meyering@lucent.com>
127900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127901         [one-argument getmntent function]): Include stdio.h before mntent.h.
127902         SunOS 4.1.x needs it for the declaration of `FILE'.
127903         Patch by Volker Borchert.
127905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127906         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127907         sys/fs_types.h, and make the link-test for getfsstat guard #include
127908         directives with appropriate #if HAVE_*_H tests so that we can
127909         detect getfsstat on Apple Darwin1.3.7 systems.
127910         Reported by Nelson Beebe.
127911         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
127913 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127915         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127916         #defines strtoimax.  Also treat the other strto* functions
127917         like strtoimax.
127919         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127920         Check for strtoul and strtoumax,
127921         as those declarations are made even in the signed case.
127922         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127923         Likewise, for strtol and strtoimax.
127925 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127927         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127928         #defines strtoimax.  Also treat the other strto* functions
127929         like strtoimax.
127931         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127932         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127933         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127935 2001-09-26  Jim Meyering  <meyering@lucent.com>
127937         Most macros in unlocked-io.h had the wrong number of arguments.
127938         * lib/gen-uio: New script.
127939         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127940         * lib/unlocked-io.hin: Remove file.
127941         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127942         rather than trying to embed it here.
127943         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127944         Reported by Padraig Brady.
127946 2001-09-25  Volker Borchert  <bt@teknon.de>
127948         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127949         `result'.
127951 2001-09-24  Jim Meyering  <meyering@lucent.com>
127953         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127955 2001-09-23  Jim Meyering  <meyering@lucent.com>
127957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127958         instead of the mere test for existence of mntent.h.  The latter
127959         would get a false-positive on AIX 3.4 systems.
127960         In the outer getmntent if-block, don't die if neither of the getmntent
127961         tests succeeds.  Instead, just fall through and continue with the
127962         remaining tests.
127964 2001-09-23  Jim Meyering  <meyering@lucent.com>
127966         * lib/mountlist.c: Remove useless parentheses in #if directives.
127967         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127968         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127970 2001-09-22  Jim Meyering  <meyering@lucent.com>
127972         * m4/gettext.m4: New file.  From gettext.
127973         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127974         * m4/progtest.m4: Likewise
127975         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127976         * m4/glibc21.m4: Likewise.
127978         * m4/libintl.m4: Remove.  No longer used.
127980 2001-09-22  Jim Meyering  <meyering@lucent.com>
127982         * lib/localcharset.c: Update from latest gettext.
127983         * lib/config.charset: Likewise.
127985 2001-09-20  Jim Meyering  <meyering@lucent.com>
127987         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127988         strtoimax.
127989         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127990         strtoumax.
127992 2001-09-20  Jim Meyering  <meyering@lucent.com>
127994         * lib/xstrtol.c (strtoimax): Guard declaration with
127995         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127996         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127997         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127998         (strtoumax): Likewise, for completeness (it wasn't necessary).
128000 2001-09-17  Paul Eggert  <eggert@twinsun.com>
128002         * lib/strtoimax.c (HAVE_LONG_LONG):
128003         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
128004         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
128005         to work around bug in IBM C compiler.
128007 2001-09-17  Jim Meyering  <meyering@lucent.com>
128009         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
128010         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
128011         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
128012         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
128013         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
128014         whenever the right hand side need not be expanded by the shell.
128016 2001-09-16  Paul Eggert  <eggert@twinsun.com>
128018         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
128019         library.  It's not correct, as some older glibcs are buggy.
128020         fnmatch wasn't fixed until glibc 2.2.
128022         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
128023         special shell magic here.
128025 2001-09-16  Jim Meyering  <meyering@lucent.com>
128027         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
128028         * m4/jm-macros.m4: Require it.
128030 2001-09-16  Jim Meyering  <meyering@lucent.com>
128032         * lib/mkdir.c: New file.
128034 2001-09-15  Jim Meyering  <meyering@lucent.com>
128036         * m4/jm-macros.m4: Check for help2man.
128038 2001-09-11  Jim Meyering  <meyering@lucent.com>
128040         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
128041         The body, by Paul Eggert, was moved here from configure.in.
128042         * m4/jm-macros.m4: Require UTILS_HOST_OS.
128044 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128046         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
128047         (jm_PREREQ): Use it.
128049 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128051         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
128052         Use ssize_t, not int, to store result of readlink.
128053         Check for ssize_t overflow as well as size_t overflow,
128054         as POSIX says the result of readlink is implementation-defined
128055         when ssize_t overflows.
128056         Remove unnecessary cast to char*.
128057         Use free+malloc instead of realloc, as the storage doesn't need
128058         to be preserved and it's clearer and can be more efficient that way.
128059         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
128060         * lib/xreadlink.h (xreadlink): Update prototype.
128062 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128064         * lib/xgetcwd.c: Revert some of the previous change; intead,
128065         fix the HAVE_GETCWD_NULL code to behave more like the
128066         !HAVE_GETCWD_NULL code used to.
128068         Include "xalloc.h".
128069         (xgetcwd): Do not return NULL when memory is exhausted; instead,
128070         invoke xalloc_die.
128072 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128074         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
128075         sys/param.h, as pathmax.h includes them.
128077 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128079         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
128080         (jm_PREREQ_XGETCWD): New macro.
128082         * m4/getcwd.m4: New file.
128084 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128086         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
128087         like the HAVE_GETCWD_NULL code.
128088         Include pathmax.h if not HAVE_GETCWD.
128089         Do not include xalloc.h.
128090         (INITIAL_BUFFER_SIZE): New symbol.
128091         Do not use xmalloc / xrealloc, since the caller is responsible for
128092         handling errors.  Preserve errno around `free' during failure.
128093         Do not overrun buffer when using getwd.
128095 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128097         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
128098         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
128099         getcwd (NULL, 0).
128101 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128103         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
128104         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
128105         spotted by Jim Meyering.
128107 2001-09-03  Jim Meyering  <meyering@lucent.com>
128109         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
128110         failure.
128112 2001-09-02  Jim Meyering  <meyering@lucent.com>
128114         * lib/error.c: Update from GNU libc.
128116 2001-09-01  Jim Meyering  <meyering@lucent.com>
128118         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
128119         Used by df.
128121 2001-09-01  Jim Meyering  <meyering@lucent.com>
128123         * lib/xreadlink.c: New file.
128124         * lib/xreadlink.h: New file.
128125         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
128126         xreadlink.h.
128128         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
128129         doesn't conflict with sparc Solaris 7's definition in
128130         /usr/include/sys/int_types.h.
128132         * lib/exclude.c: Use `""', not `<>' to #include non-system header
128133         files.
128134         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
128135         and strncasecmp as r-values.  Unixware didn't have declarations.
128137 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128139         * lib/xstrtol.h: Add copyright notice.
128140         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
128141         LONGINT_INVALID_SUFFIX_CHAR.
128143 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128145         * lib/xstrtol.c (strtoimax): New decl.
128147 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128149         * lib/xgetcwd.c: Don't include pathmax.h.
128150         Include stdlib.h and unistd.h if available.
128151         Include xalloc.h.
128152         (xmalloc, xstrdup, free): Remove decls.
128153         (xgetcwd): Don't assume sizes fit in unsigned.
128154         Check for overflow when computing sizes.
128155         Simplify reallocation code.
128157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128159         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
128160         a directory's st_size can have an arbitrary value, so the old
128161         usage could waste an arbitrary amount of memory.  All uses
128162         changed.
128163         * lib/savedir.h: Update prototype.
128165 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128167         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
128169         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
128170         old strtoimax.c.
128172         Also, make the following further changes to make this file's
128173         configuration more similar to that of strtol.c:
128174         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
128175         (strtoumax, uintmax_t, strtoull, strtol): Remove.
128176         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
128177         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
128178         changed to signed values.
128180         And make the following changes as well:
128181         Fix copyright notice, as 1999 was missing.
128182         (verify): New macro.
128183         (strtoimax): Check sizes at compile-time, not run-time.
128184         Prefer strtol to strtoll if both work.
128185         (main): Remove; it was not that useful and was a pain to maintain.
128187         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
128189 2001-08-31  Jim Meyering  <meyering@lucent.com>
128191         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
128192         Use an initial, malloc'd, buffer of length 128 rather than
128193         a statically allocated one of length 1024.
128195 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128197         Simplify code, partly by assuming autoconf 2.52 semantics.
128199         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
128201         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
128202         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
128203         All uses removed.
128204         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
128205         Move AC_REQUIRE to next-to-top level, to avoid confusion.
128206         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
128207         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
128208         jm_AC_HEADER_INTTYPES_H.
128209         * m4/jm-macros.m4 (jm_MACROS): Likewise.
128211         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
128213         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128214         Quote first arg of AC_DEFUN.
128215         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
128216         since they are needed to parse the include file even if we need
128217         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
128218         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
128219         but with opposite signedness.
128221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128223         Merge 'exclude' changes from tar 1.13.22.
128224         This fixes one or two unlikely storage allocation overflow bugs,
128225         but doesn't change user-visible behavior otherwise.
128227 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
128230         (jm_PREREQ_EXCLUDE): New macro.
128232 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128234         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
128235         tm to be declared.
128237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128239         * lib/hash.c: Remove '2001' from copyright notice.
128241 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128243         * lib/full-write.h: New file.
128244         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
128245         * lib/full-write.c: Correct credits, as cccp.c no longer
128246         exists and anyway it was so heavily changed from the old cccp
128247         code as to be unrecognizable.  Include full-write.h.
128248         (full_write): Return size_t, with short writes meaning failure.
128249         All callers changed.  This fixes a bug with large buffers
128250         on 64-bit hosts.
128251         * lib/utime.c: Include full-write.h.
128253 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128255         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
128256         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
128257         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
128258         Include if available.
128259         (<xalloc.h>): Include
128260         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
128261         (verify): New macro.  Use it to verify that EXCLUDE macros do not
128262         collide with FNM macros.
128263         (struct patopts): New struct.
128264         (struct exclude): Use it, as exclude patterns now come with options.
128265         (new_exclude): Support above changes.
128266         (new_exclude, add_exclude_file):
128267         Initial size must now be a power of two to simplify overflow checking.
128268         (free_exclude, fnmatch_no_wildcards): New function.
128269         (excluded_filename): No longer requires options arg, as the options
128270         are determined by add_exclude.  Now returns bool, not int.
128271         (excluded_filename, add_exclude):
128272         Add support for the fancy new exclusion options.
128273         (add_exclude, add_exclude_file): Now takes int options arg.
128274         Check for arithmetic overflow when computing sizes.
128275         (add_exclude_file): xrealloc might modify errno, so don't
128276         realloc until after errno might be used.
128278         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
128279         New macros.
128280         (free_exclude): New decl.
128281         (add_exclude, add_exclude_file): Now takes int options arg.
128282         (excluded_filename): No longer requires options arg, as the options
128283         are determined by add_exclude.  Now returns bool, not int.
128285 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128287         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
128289 2001-08-27  Jim Meyering  <meyering@lucent.com>
128291         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
128293         * lib/version-etc.c (N_): Remove definition.
128294         Revert most of last change.
128295         Instead, simply don't mark the `Copyright...' string for translation.
128296         Based on advice from Paul Eggert.
128298         * lib/strtoxmax.c: Tweak comment.
128300 2001-08-26  Jim Meyering  <meyering@lucent.com>
128302         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
128304         * m4/xstrtoimax.m4: New file.
128305         * m4/xstrtoumax.m4: Add comments explaining why we
128306         AC_REPLACE_FUNCS(strtol).
128308 2001-08-26  Jim Meyering  <meyering@lucent.com>
128310         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
128311         of copyright with `%s' so translators don't get an untranslated
128312         message in 2002.
128313         (COPYRIGHT_YEAR): Define.
128314         (version_etc): Use fprintf rather than fputs.
128315         Suggestion from Ulrich Drepper.
128317         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
128319         * lib/strtoll.c: New file, from GNU libc.
128320         * lib/xstrtoimax.c: New file.
128322         * lib/xstrtol.h: Add xstrtoimax.
128323         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
128324         * lib/strtoimax.c: New file.  Likewise, but first define
128325         STRTOUXMAX_SIGNED.
128327         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
128328         ...
128329         * lib/strtoxmax.c: ... then renamed to this.
128331 2001-08-18  Paul Eggert  <eggert@twinsun.com>
128333         * m4/inttypes.m4: Add AC_PREREQ(2.13).
128334         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
128335         (jm_AC_TYPE_INTMAX_T): New macro.
128336         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
128338         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
128340         * m4/longlong.m4: Renamed from ulonglong.m4.
128341         * m4/inttypes.m4: Renamed from inttypes_h.m4.
128342         * m4/uintmax_t.m4: Removed.
128344 2001-08-13  Paul Eggert  <eggert@twinsun.com>
128346         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
128347         Port to Solaris 8, where 'sed' requires a space after the 'r'
128348         command, and where sh dislikes "$/".  Clean up the spacing a bit.
128349         Redirect output to $tmp just once.
128351 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
128353         * lib/addext.c (<errno.h>): Include.
128354         (errno): Declare if not defined.
128355         (addext): Work correctly when pathconf returns -1 and leaves
128356         errno alone because there is no limit.  Also, work even if
128357         pathconf returns a value greater than SIZE_MAX.
128359 2001-08-12  Jim Meyering  <meyering@lucent.com>
128361         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
128362         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
128363         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
128364         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
128365         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
128366         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
128367         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
128368         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
128369         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
128370         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
128371         utime.m4, utimes.m4, xstrtoumax.m4:
128372         Quote the first argument in each use of AC_DEFUN.
128374 2001-08-12  Jim Meyering  <meyering@lucent.com>
128376         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
128377         Simply `return getcwd (NULL, 0);'.
128378         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
128379         Use 1300 as initial value for length, not PATH_MAX.
128381         * lib/pathmax.h: Clean up cpp syntax.
128383 2001-08-12  Jim Meyering  <meyering@lucent.com>
128385         * lib/gettimeofday.c: New file.
128386         * lib/gtod.h: New file.
128387         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
128389 2001-08-05  Jim Meyering  <meyering@lucent.com>
128391         * m4/jm-macros.m4: Require autoconf-2.52.
128393 2001-08-04  Jim Meyering  <meyering@lucent.com>
128395         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
128396         stmt, to get in sync with glibc.
128398 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128400         The following changes are from gettext 0.10.39 as maintained by
128401         Bruno Haible.
128403         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
128404         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
128405         with inverted sense.  All uses changed.
128407         * lib/mbswidth.c: Don't include <limits.h>.
128408         Include <stdlib.h> and <string.h> unconditionally.
128409         (iswcntrl, mbsinit, ISCNTRL): New macros.
128410         (mbsnwidth): Use K&R style function declarations.
128411         Don't bother checking for MB_LEN_MAX == 1, since the compiler
128412         can optimize it when MB_CUR_MAX == 1.
128413         The width of control characters is zero, not 1.
128415 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128417         The following changes are from gettext 0.10.39 as maintained by
128418         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
128420         * m4/codeset.m4: Upgrade to serial AM1.
128421         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
128422         all uses changed.  Quote first arg of AC_DEFUN.
128423         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
128425         * m4/iconv.m4: Upgrade to serial AM2.
128426         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
128427         Add --with-libconv-prefix.
128428         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
128429         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
128430         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
128431         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
128432         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
128434         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
128435         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
128436         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
128437         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
128438         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
128439         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
128440         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
128441         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
128442         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
128444         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
128445         string.h any more.
128447         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
128448         not the default value.
128450         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
128451         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
128452         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
128453         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
128454         Also check for iswcntrl, used for wcwidth fallback.
128455         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
128456         to Autoconf 2.13.
128458 2001-08-03  Jim Meyering  <meyering@lucent.com>
128460         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
128461         as it was in the original.  Reported by Paul Eggert.
128463 2001-07-16  Jim Meyering  <meyering@lucent.com>
128465         * m4/gettimeofday.m4: New file.
128466         Prompted by a report from Bernhard Baehr.
128468 2001-07-15  Jim Meyering  <meyering@lucent.com>
128470         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
128471         stuff. Now it's in ../Makefile.cfg.
128473 2001-07-15  Jim Meyering  <meyering@lucent.com>
128475         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
128476         (BUILT_SOURCES): Add unlocked-io.h.
128477         (io_functions): Define.
128478         (unlocked-io.h): New rule.
128479         (DISTCLEANFILES): Add unlocked-io.h.
128480         (all-local): Depend on unlocked-io.h, to ensure it is created.
128482         * lib/unlocked-io.hin: New file
128484         * lib/regex.c: Update from glibc.
128486 2001-07-05  Jim Meyering  <meyering@lucent.com>
128488         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
128489         recommendation.
128490         (libfetish_a_SOURCES): Put all .h files here instead.
128491         Remove a thus-exposed (better checks in automake) duplicate and
128492         two unnecessary .h files.
128494 2001-07-04  Jim Meyering  <meyering@lucent.com>
128496         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
128497         that generates jm-glibc-io.m4 so that it doesn't trigger any make
128498         distcheck failure.
128500 2001-07-02  Jim Meyering  <meyering@lucent.com>
128502         The following changes were prompted by suggestions from Bruno Haible.
128504         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
128505         is now generated.
128506         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
128507         definition of EXTRA_DIST.
128508         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
128509         ensure that the generated file is created/updated whenever the list
128510         of $(unlocked_functions) is changed.
128511         (jm-glibc-io.m4): New rule.
128512         (unlocked-io.h): New rule -- currently unused.
128514 2001-06-24  Jim Meyering  <meyering@lucent.com>
128516         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
128517         unmatched right bracket, rather than kludging it with an extra,
128518         falsely-matching quote in a comment.  Patch by Akim Demaille.
128520 2001-06-11  Jim Meyering  <meyering@lucent.com>
128522         * lib/regex.c: Update from GNU libc.
128524 2001-05-27  Jim Meyering  <meyering@lucent.com>
128526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
128527         Check for ut_type in struct utmp.
128529 2001-05-27  Jim Meyering  <meyering@lucent.com>
128531         * lib/readutmp.h (UT_TYPE): Define.
128533 2001-05-24  Jim Meyering  <meyering@lucent.com>
128535         * lib/argmatch.c: Include "quote.h".
128536         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
128537         quote function.  Reported by Göran Uddeborg.
128539 2001-05-22  Jim Meyering  <meyering@lucent.com>
128541         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
128542         now that we use the package-supplied version unconditionally.
128543         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
128545 2001-05-21  Jim Meyering  <meyering@lucent.com>
128547         * m4/regex.m4: Change a couple backticks to single quotes to avoid
128548         shell syntax errors.
128550 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128552         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
128554 2001-05-20  Paul Eggert  <eggert@twinsun.com>
128556         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
128557         Don't bother to check library strftime, since
128558         we'll be using our own my_strftime function anyway.
128559         Define my_strftime instead of strftime.
128561 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
128563         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
128564         which is not yet declared.
128566 2001-05-15  Jim Meyering  <meyering@lucent.com>
128568         * m4/regex.m4: Use proper quoting so brackets appear in the test
128569         program.
128570         Reported by, and with help from, Bruno Haible.
128572 2001-05-13  Jim Meyering  <meyering@lucent.com>
128574         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
128575         undefined.
128577 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128579         dirname code cleanup.  base_name now behaves more compatibly
128580         with POSIX basename when given file names that have trailing
128581         slashes, and similarly for dir_name.  Add new primitives
128582         base_len and dir_len.  Put the directory-name-related decls
128583         into dirname.h.
128585         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
128586         * lib/backupfile.c (base_name): Likewise.
128587         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
128588         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
128589         * lib/makepath.c (strip_trailing_slashes): Likewise.
128590         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
128591         ISSLASH): Likewise.
128592         * lib/rename.c (strip_trailing_slashes): Likewise.
128593         * lib/same.c (base_name): Likewise.
128594         * lib/stripslash.c (ISSLASH): Likewise.
128596         * lib/addext.c: Include <dirname.h> after size_t is defined.
128597         * lib/backupfile.c: Likewise.
128599         * lib/addext.c (addext): Use base_len to trim redundant
128600         trailing slashes instead of doing it ourselves.
128601         But do not trim the last slash if it is not redundant.
128603         * lib/backupfile.c (find_backup_file_name,
128604         max_backup_version): Use base_len instead of rolling it ourselves.
128605         Handle the case of "" and (on DOS) "C:" correctly.
128607         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
128608         needed. Include <string.h>, <dirname.h>.
128609         (base_name): Allow file names ending in slashes, other than names
128610         that are all slashes.  In this case, return the basename followed
128611         by the slashes.  This is more general, and can be used in places
128612         where the original base_name purposely had an assertion failure.
128613         (base_len): New function.
128615         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
128616         Do not include <assert.h>; no longer needed.
128617         Include xalloc.h.
128618         (memrchr): Remove decl.
128619         (dir_name_r): Remove.
128620         (dir_len): Renamed from dirlen.  All callers changed.
128621         Rewrite in terms of base_name, for simplicity and consistency.
128622         (dir_name): Never return NULL.  All callers changed.
128623         Do not include <stdlib.h> in test program; no longer needed.
128624         return 0; is fine for test program.
128626         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
128627         New macros.
128628         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
128630         * lib/path-concat.c (path_concat): Use base_len to compute
128631         base length, not strlen; this means we cannot rely on memcpy
128632         to null-terminate.
128634         * lib/same.c (STREQ): Remove.
128635         (same_name): Handle the case where the basename ends in trailing '/'.
128637         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
128638         a slash was stripped.  Do not strip the last slash after a
128639         file system prefix.
128641 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128643         * lib/Makefile.am (libfetish_a_SOURCES):
128644         Add strftime.c, since we now compile it on all hosts.
128646         * lib/strftime.c (my_strftime):
128647         Define to nstrftime if emacs, but only if my_strftime is not defined.
128648         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
128649         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
128650         Add one more extra argument: a nanoseconds value.
128651         All uses changed.
128652         (ns): New macro.
128653         (my_strftime function): Add %N format.
128654         (emacs_strftimeu): Renamed from emacs_strftime,
128655         with extra ut argument.
128657 2001-05-09  Paul Eggert  <eggert@twinsun.com>
128659         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
128661 2001-04-21  Jim Meyering  <meyering@lucent.com>
128663         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
128664         doesn't interfere.
128666 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128668         * m4/ftruncate.m4: Check for chsize.
128669         Link with ftruncate.o unconditionally if ftruncate is missing.
128670         This was required when cross-compiling to i586-mingw32msvc.
128672 2001-04-08  Jim Meyering  <meyering@lucent.com>
128674         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128675         recomputed; that's necessary when the offset spans a DST transition.
128676         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128678 2001-04-02  Jim Meyering  <meyering@lucent.com>
128680         * lib/regex.h, regex.c: Update from GNU libc.
128682 2001-03-24  Jim Meyering  <meyering@lucent.com>
128684         * m4/jm-macros.m4: Require autoconf-2.49d.
128686 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128688         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128690 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128692         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128694 2001-03-17  Jim Meyering  <meyering@lucent.com>
128696         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128697         now that the version in autoconf is equivalent.
128698         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128700         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128701         Suggestion from Akim Demaille.
128703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128704         (jm_PREREQ_TEMPNAME): New function.
128706 2001-03-16  Paul Eggert  <eggert@twinsun.com>
128708         * lib/tempname.c (uint64_t): Define to uintmax_t if
128709         not defined, and if UINT64_MAX is not defined.
128710         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
128711         Reported by John David Anglin.
128713 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
128715         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
128716         resolve alias if codeset is empty.
128717         * lib/config.charset (BeOS): Use wildcard syntax.
128719 2001-03-13  Jim Meyering  <meyering@lucent.com>
128721         * lib/path-concat.c (path_concat)
128722         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
128723         concatenating e.g., `C:' and `foo'.
128724         From Bruno Haible.
128726 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128728         * lib/localcharset.c (locale_charset): Don't use
128729         setlocale(LC_CTYPE,NULL). Don't return NULL.
128730         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
128732 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128734         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
128735         support for DOS/DJGPP.
128737 2001-03-01  Paul Eggert  <eggert@twinsun.com>
128739         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
128740         lacks mkstemp.  Compile our own tempname.c if we compile our own
128741         mkstemp.c, as mkstemp relies on tempname.
128743 2001-03-01  Jim Meyering  <meyering@lucent.com>
128745         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
128746         AH_VERBATIM really does output its argument verbatim.
128748 2001-02-28  Paul Eggert  <eggert@twinsun.com>
128750         * lib/Makefile.am (libfetish_a_SOURCES):
128751         Add dup-safer.c, fopen-safer.c.
128752         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
128754         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
128755         * lib/unistd-safer.h: New files.
128757 2001-02-25  Paul Eggert  <eggert@twinsun.com>
128759         The mkstemp replacement is taken from glibc 2.2.2, with some
128760         portability fixes for use outside glibc, as follows:
128762         * lib/tempname.c (struct_stat64): New macro.
128763         (direxists, __gen_tempname): Use it.
128764         This avoids a portability problem with Solaris 8.
128766         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
128767         (<stddef.h>, <stdint.h>, <string.h>):
128768         Include only if STDC_HEADERS || _LIBC.
128769         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
128770         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
128771         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
128772         (__set_errno): Define this macro if <errno.h> doesn't.
128773         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
128774         Define these macros if <stdio.h> doesn't.
128775         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
128776         Define these macros if <sys/stat.h>
128777         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
128778         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
128779         __xstat64): Define if not _LIBC.
128780         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
128781         (__gen_tempname): Invoke gettimeofday only if
128782         HAVE_GETTIMEOFDAY || _LIBC;
128783         otherwise, fall back on plain "time".
128784         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
128786         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
128788         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
128790 2001-02-18  Paul Eggert  <eggert@twinsun.com>
128792         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
128794 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128796         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
128797         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
128798         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
128799         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128801 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128803         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
128804         Remove workaround macros for hosts that have mbrtowc but not
128805         mbstate_t, as we now insist on proper declarations for both
128806         before using mbrtowc.
128808 2001-02-17  Jim Meyering  <meyering@lucent.com>
128810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128811         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128812         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128813         UnixWare 7.1.1.
128815         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128816         rather than AC_CACHE_VAL.
128818 2001-02-17  Jim Meyering  <meyering@lucent.com>
128820         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128821         around included file name.
128823         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128825         * lib/strftime.c: Update from GNU libc (the only changes were to
128826         comments).
128828 2001-02-17  Jim Meyering  <meyering@lucent.com>
128830         * lib/regex.c: Update from libc.
128832 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128834         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128835         clash.
128837 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128839         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128840         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128841         Reported by Mark Hounschell via Paul Eggert.
128843 2001-02-07  Jim Meyering  <meyering@lucent.com>
128845         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128847 2001-02-05  Jim Meyering  <meyering@lucent.com>
128849         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128850         it includes the patch required for `large file' support with at least
128851         HP-UX's 10.20 /bin/cc.
128853 2001-02-03  Jim Meyering  <meyering@lucent.com>
128855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128856         AS_IF, now that it works once again (mysteriously).
128857         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128859 2001-01-30  Jim Meyering  <meyering@lucent.com>
128861         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128862         * m4/chown.m4: Rename conftestchown to conftest.chown.
128863         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128864         s/conftestdir2/conftest.d2/.
128865         * m4/utimes.m4: s/conftestdata/conftest.data/
128866         Inspired by Pavel Roskin's change in autoconf.
128868 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128870         * lib/config.charset: Update for FreeBSD 4.2.
128872 2001-01-27  Jim Meyering  <meyering@lucent.com>
128874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128875         a use of AS_IF.
128876         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128878 2001-01-26  Jim Meyering  <meyering@lucent.com>
128880         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128881         quotearg.c includes it.
128883 2001-01-26  Jim Meyering  <meyering@lucent.com>
128885         * lib/quotearg.c: Include stddef.h.
128886         * lib/quote.c: Include stddef.h.
128887         Reported by Axel Kittenberger.
128889         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128890         line in double quotes so that it evokes a better diagnostic.
128891         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128892         Reported by Axel Kittenberger.
128894 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128896         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128897         as if it was a `charset'.
128899 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128901         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128902         has const.
128904 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128906         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128907         to avoid a warning.  Add back 'const' to inptr.
128909 2001-01-20  Jim Meyering  <meyering@lucent.com>
128911         Be sure that headers are checked before used in code compiled
128912         for the type checks.
128913         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128914         In place of that, invoke jm_CHECK_ALL_TYPES.
128915         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128916         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128917         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128918         The check for ssize_t was mistakenly run before the test for unistd.h.
128920         The configure-time check for stdbool.h was missing.
128921         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128922         (jm_PREREQ_HASH): New function.
128924 2001-01-17  Jim Meyering  <meyering@lucent.com>
128926         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128927         for autoconf-2.49c.
128928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128930 2001-01-16  Jim Meyering  <meyering@lucent.com>
128932         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128933         From Bruno Haible.
128935 2001-01-14  Jim Meyering  <meyering@lucent.com>
128937         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128938         foo and bar.  Create conftestdir/ in the script, not in the C code.
128939         Remove directories in the script, not in the C code.
128940         Remove conftestdir{,2} before trying to create the directory.
128941         Make the entire configure script fail if the mkdir fails.
128943 2001-01-14  Jim Meyering  <meyering@lucent.com>
128945         * lib/rename.c: New file.  From Volker Borchert.
128946         Include stdlib.h, string.h or strings.h, and xalloc.h.
128947         Use strip_trailing_slashes rather than open-coding it.
128949 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128951         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128953 2001-01-03  Jim Meyering  <meyering@lucent.com>
128955         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128956         of local `inptr' to avoid warning with some system declarations of
128957         iconv.
128959 2001-01-02  Volker Borchert  <bt@teknon.de>
128961         * m4/rename.m4: New file.
128962         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128964 2001-01-01  Jim Meyering  <meyering@lucent.com>
128966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128967         even on systems with utmpx.h.  It's necessary for the declaration of
128968         utmp's ut_user member.  Reported by Andreas Jaeger.
128970         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128971         available. They are required for the declarations of getgrgid and
128972         getpwuid resp.
128973         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128974         Reported by Andreas Jaeger.
128976 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128978         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128979         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128980         so `make install' also works in VPATH builds.
128982 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128984         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128985         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128986         can be used in subdirectories.
128988 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128990         * lib/modechange.c: Do not assume that mode_t uses the
128991         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128992         the other-execute bit of FOO even if S_IXOTH != 1.
128994         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128995         WOTH, XOTH, ALLM): New macros.
128996         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128997          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128998         Use them.
128999         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
129000         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
129001         (mode_compile):
129002         No need to use uintmax_t; unsigned long is long enough.
129003         Don't bother to get suffix since we don't use it.
129005 2000-12-26  Jim Meyering  <meyering@lucent.com>
129007         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
129008         better with autoheader.
129010 2000-12-24  Jim Meyering  <meyering@lucent.com>
129012         * lib/hash.c (is_prime): Return explicit boolean values.
129013         (hash_get_first): Return NULL to appease Irix5.6's 89.
129014         Reported by Nelson Beebe.
129016 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
129018         * lib/localcharset.c (locale_charset): Add support for Win32.
129020 2000-12-18  Paul Eggert  <eggert@twinsun.com>
129022         * lib/physmem.h, lib/physmem.c: New files.
129024         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
129025         (noinst_HEADERS): Add physmem.h.
129027         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
129028         't' for compatibility with Solaris 8 sort.
129030 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
129032         * lib/config.charset: Add support for BeOS.
129034 2000-12-17  Jim Meyering  <meyering@lucent.com>
129036         * m4/dos.m4 (jm_AC_DOS): New file and macro.
129037         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
129039 2000-12-16  Jim Meyering  <meyering@lucent.com>
129041         This bug had a serious impact on chown: `chown N:M FILE' (for integer
129042         N and M) would have treated it like `chown N:N FILE'.
129044         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
129046 2000-12-16  Jim Meyering  <meyering@lucent.com>
129048         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
129049         SHELLS_FILE to a file name that's useful on djgpp systems.
129050         Include stdlib.h.
129051         (ADDITIONAL_DEFAULT_SHELLS): Define.
129052         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
129053         Based mostly on a patch from Prashant TR.
129055 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
129057         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
129058         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
129059         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
129061 2000-12-08  Andreas Schwab  <schwab@suse.de>
129063         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
129064         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
129066 2000-12-07  Jim Meyering  <meyering@lucent.com>
129068         * lib/stripslash.c (ISSLASH): Define.
129069         (strip_trailing_slashes): Use ISSLASH rather than comparing against
129070         `/'.
129071         From Prashant TR.
129073         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
129074         (dir_name_r): Declare this function as static.
129075         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
129076         manifest itself on a name containing a mix of slashes and
129077         backslashes.
129078         Make this function work with names starting with a DOS-style
129079         drive letter and colon prefix.
129080         (dir_name): Append `.' if necessary.
129081         Based mostly on patches from Prashant TR and Eli Zaretskii.
129083         * lib/dirname.h (dir_name_r): Remove prototype.
129085 2000-12-06  Paul Eggert  <eggert@twinsun.com>
129087         * m4/off_t-format.m4: Remove this file.
129088         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
129090 2000-12-06  Jim Meyering  <meyering@lucent.com>
129092         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
129093         replacement strtoull, we may well need the replacement strtoul, too.
129094         Check for declarations of strtoul and strtoull.
129095         Check for strtol.  Mainly as a cue to cause automake to include
129096         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
129097         Check for limits.h -- strtol.c needs it.
129099 2000-12-05  Jim Meyering  <meyering@lucent.com>
129101         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
129103 2000-12-04  Jim Meyering  <meyering@lucent.com>
129105         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
129106         Also include memory.h, stdlib.h, unistd.h if appropriate.
129107         Reported by Andreas Jaeger (conflicting declaration of malloc).
129109 2000-12-02  Jim Meyering  <meyering@lucent.com>
129111         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
129112         * m4/jm-macros.m4 (jm_MACROS): require it.
129114 2000-12-02  Jim Meyering  <meyering@lucent.com>
129116         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
129118 2000-12-01  Paul Eggert  <eggert@twinsun.com>
129120         * lib/memrchr.c: Include <config.h> before any system include file.
129122 2000-11-30  Jim Meyering  <meyering@lucent.com>
129124         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
129126 2000-11-30  Jim Meyering  <meyering@lucent.com>
129128         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
129130 2000-11-29  Paul Eggert  <eggert@twinsun.com>
129132         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
129134 2000-11-26  Jim Meyering  <meyering@lucent.com>
129136         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
129138 2000-11-22  Paul Eggert  <eggert@twinsun.com>
129140         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
129141         size of (size_t) -1; it's not portable.
129143 2000-11-17  Jim Meyering  <meyering@lucent.com>
129145         * lib/strstr.c: Update from GNU libc.
129147 2000-11-17  Akim Demaille  <akim@epita.fr>
129149         * lib/obstack.h: Formatting changes.
129150         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
129151         prevent type checking.
129152         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
129153         cast the value to (void *): assigning a `foo *' to a `void *'
129154         variable is valid.
129155         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
129157 2000-11-16  Jim Meyering  <meyering@lucent.com>
129159         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
129161 2000-11-11  Jim Meyering  <meyering@lucent.com>
129163         * lib/error.c: Add a couple #includes, merging from GNU libc version.
129165 2000-11-10  Jim Meyering  <meyering@lucent.com>
129167         * lib/obstack.h: Update from GNU libc.
129168         * lib/obstack.c: Likewise.
129170 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
129172         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
129174 2000-11-06  Paul Eggert  <eggert@twinsun.com>
129176         * lib/getusershell.c (setusershell): Use rewind rather than
129177         fseek/fseeko, to avoid configuration hassles with fseeko.
129178         Don't bother opening SHELLS_FILE if shellstream is NULL;
129179         it's not necessary.
129181 2000-11-05  Jim Meyering  <meyering@lucent.com>
129183         * lib/makepath.h (make_dir): Declare.
129184         * lib/makepath.c (make_dir): Remove `static' attribute.
129185         Tweak a comment.
129187 2000-11-04  Jim Meyering  <meyering@lucent.com>
129189         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
129191 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
129193         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
129194         last one in a bucket, advance to the next bucket.
129196 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
129198         * lib/fnmatch.c: Do not comment out all the code if we are using
129199         the GNU C library, because in some cases we are replacing buggy
129200         code in the GNU C library itself.
129202 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
129204         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
129205         (regex_compile): Catch bogus \(\1\).
129207 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129209         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
129210         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
129211         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
129213 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129215         * lib/error.h, getline.h, modechange.h:
129216         Remove "2000" from Copyright line, as the file hasn't been
129217         changed this year other than in the copyright notice.
129219         * lib/xalloc.h: Add "2000" to Copyright line, as this file
129220         was changed this year.
129222 2000-10-29  Jim Meyering  <meyering@lucent.com>
129224         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
129225         renaming.
129226         * m4/ls-mntd-fs.m4: Likewise
129228 2000-10-29  Jim Meyering  <meyering@lucent.com>
129230         * lib/xstat.in: Fix grammar in comment.
129232 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
129234         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
129235         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
129236         doesn't define __restrict_arr.
129238 2000-10-28  Jim Meyering  <meyering@lucent.com>
129240         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
129241         (jm_PREREQ_MEMCHR): New function.
129243 2000-10-28  Jim Meyering  <meyering@lucent.com>
129245         * lib/memchr.c: Update from libc.
129246         Adjust for portability:
129247         [HAVE_STDLIB_H]: Include stdlib.h.
129248         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
129249         Undef __memchr, too.
129250         [!weak_alias]: Define __memchr to memchr.
129252         * lib/regex.c: Update from libc.
129253         * lib/regex.h: Likewise.
129254         * lib/getopt1.c: Likewise.
129255         * lib/memcmp.c: Likewise.
129257         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
129258         Avoid using fseek, when possible -- it's broken by design.
129259         Patch by Ulrich Drepper.
129261 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
129263         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
129264         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
129265         Giving in to popular pressure to shut up the compiler with casts.
129267 2000-10-26  Jim Meyering  <meyering@lucent.com>
129269         * lib/strftime.c: Update from libc.
129271 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
129273         * regex.c: More `unsigned char' -> `re_char' changes.
129274         Also change several `int' into `re_wchar_t'.
129275         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
129276         (PUSH_FAILURE_POINTER): Don't cast any more.
129277         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
129278         We want GCC to complain, since this piece of code makes
129279         re_match non-reentrant, which *should* be fixed.
129280         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
129281         (EXTEND_BUFFER): Use RETALLOC.
129282         (SET_LIST_BIT): Don't cast.
129283         (re_wchar_t): New type.
129284         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
129285         that those two functions will always properly return.
129286         (IMMEDIATE_QUIT_CHECK): Cast to void.
129287         (analyse_first): Use recursion rather than an explicit stack.
129288         (re_compile_fastmap): Can't fail anymore.
129289         (re_search_2): Don't check re_compile_fastmap for failure.
129290         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
129291         Now also sets the new value (passed in a new argument).
129292         (re_match_2_internal): Use it.
129293         Also, use a new var `reg' of type size_t when looping through regs
129294         rather than reuse the inappropriate `mcnt'.
129296 2000-10-25  Jim Meyering  <meyering@lucent.com>
129298         * lib/obstack.c: Update from libc.
129300 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
129302         * regex.c (regex_compile): Change the way of handling a range from
129303         a char less than 256 to a char not less than 256.
129305 2000-10-24  Andrew Innes  <andrewi@gnu.org>
129307         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
129308         NT-Emacs only.
129309         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
129310         so that re_search functions only quit when callers expect them to.
129312 2000-10-23  Jim Meyering  <meyering@lucent.com>
129314         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
129315         wrong.  That set_locale call must not have any side effects.
129316         From Paul Eggert.
129318 2000-10-22  Jim Meyering  <meyering@lucent.com>
129320         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
129321         [CYCLIC]: Remove now-unused definition.
129323         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
129324         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
129325         Suggestion from Ulrich Drepper.
129327 2000-10-21  Jim Meyering  <meyering@lucent.com>
129329         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
129330         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
129331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
129333 2000-10-21  Jim Meyering  <meyering@lucent.com>
129335         * lib/dirname.c (memrchr): Declare if necessary.
129336         (dir_name): Remove the restriction that there be no
129337         trailing slashes.  Now, this code skips past them, effectively
129338         ignoring them.
129339         [TEST_DIRNAME] (main): New unit tests.
129341         * lib/memrchr.c: New file from GNU libc.
129342         Undef __memrchr, too.
129343         [!weak_alias]: Define __memrchr to memrchr.
129344         Guard weak_alias use with `#ifdef weak_alias'.
129346 2000-10-21  Jim Meyering  <meyering@lucent.com>
129348         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
129349         (dir_name): Use dir_name_r.
129350         * lib/dirname.h (dir_name_r): Declare it.
129352 2000-10-17  Jim Meyering  <meyering@lucent.com>
129354         * lib/quote.h (PARAMS): Define and use.
129355         Reported by Akim Demaille.
129357         * lib/getopt.c: Update from libc.
129359 2000-10-16  Jim Meyering  <meyering@lucent.com>
129361         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
129362         setlocale.
129363         From Jan Fedak.
129365 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
129367         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
129369 2000-09-25  Jim Meyering  <meyering@lucent.com>
129371         * lib/md5.h (rol): Define (from GnuPG).
129373         * lib/sha.c: Give credit (GnuPG) where due.
129374         (M): Use rol rather than open-coding it.
129375         Add a FIXME comment.
129377 2000-09-21  Jim Meyering  <meyering@lucent.com>
129379         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
129380         Reported by Michael Stone.
129382 2000-09-20  Jim Meyering  <meyering@lucent.com>
129384         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
129385         (noinst_HEADERS): Add sha.h.
129386         Based on code from Scott G. Miller and from GnuPG.
129388 2000-09-18  Jim Meyering  <meyering@lucent.com>
129390         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
129391         LIBS. Otherwise, everyone ends up linking with -lelf for some
129392         configurations.
129393         Reported by Mike Stone.
129395 2000-09-15  Jim Meyering  <meyering@lucent.com>
129397         * lib/regex.c: Update from libc.
129399 2000-09-10  Jim Meyering  <meyering@lucent.com>
129401         * lib/getopt.c (_getopt_internal): Update from glibc.
129403 2000-09-09  Jim Meyering  <meyering@lucent.com>
129405         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
129406         think it should be used as a general replacement for isascii.
129407         * lib/fnmatch.c: Likewise.
129408         * lib/mbswidth.c: Likewise
129409         * lib/regex.c: Likewise.
129411         Don't use atoi.
129412         * lib/userspec.c: Include sys/param.h and limits.h.
129413         Include xstrtol.h.
129414         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129415         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
129416         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
129417         UID, GID.  Check range.
129419 2000-09-06  Jim Meyering  <meyering@lucent.com>
129421         * lib/getopt.c (_getopt_internal): Update from glibc.
129423 2000-08-30  Jim Meyering  <meyering@lucent.com>
129425         * lib/strftime.c: Merge in changes from GNU libc.
129427 2000-08-26  Jim Meyering  <meyering@lucent.com>
129429         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
129430         * m4/fpending.m4: New file.
129432 2000-08-26  Jim Meyering  <meyering@lucent.com>
129434         * lib/closeout.c: Include "__fpending.h".
129435         (close_stdout_status): Return right away if there's nothing to flush.
129437         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
129438         * lib/__fpending.c: New file.
129439         * lib/__fpending.h: New file.
129441 2000-08-20  Jim Meyering  <meyering@lucent.com>
129443         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
129444         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
129445         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
129447 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
129449         Improve fileutils installation on systems where running
129450         programs (like install) can't be unlinked.
129451         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
129452         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
129454 2000-08-07  Paul Eggert  <eggert@twinsun.com>
129456         Standardize on "memory exhausted" instead of "Memory exhausted"
129457         or "virtual memory exhausted".
129458         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
129459         "virtual memory exhausted".
129460         * lib/same.c (same_name): Invoke xalloc_die instead of printing
129461         our own message.
129462         * lib/userspec.c (parse_user_spec): Likewise.
129463         * lib/bumpalloc.h: comment fix
129464         * lib/same.c, userspec.c: Include xalloc.h.
129466         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
129467         not char *const and pointing to a constant array.
129468         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
129469         (xrealloc): Comment fix.
129471         * lib/userspec.c (parse_user_spec):
129472         Don't translate a message until just before returning,
129473         to avoid unnecessary translation.
129475 2000-08-07  Jim Meyering  <meyering@lucent.com>
129477         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
129478         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
129479         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
129480         getgroups.c, gethostname.c, getopt.h, group-member.c,
129481         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
129482         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
129483         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
129484         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
129485         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
129486         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
129487         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
129488         yesno.c: Back out Copyright date changes for each file with no change
129489         this year.  This eases coordination with other programs using the same
129490         source code modules.  From Paul Eggert.
129492 2000-08-06  Paul Eggert  <eggert@twinsun.com>
129494         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
129495         not char, for compatibility with glibc 2.1.3 strftime.c.
129497 2000-08-03  Greg McGary  <greg@mcgary.org>
129499         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
129500         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
129501         (EXTEND_BUFFER): Use them.
129503 2000-08-01  Jim Meyering  <meyering@lucent.com>
129505         * lib/dirname.c (ISSLASH): Define.
129506         (BACKSLASH_IS_PATH_SEPARATOR): Define.
129507         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
129508         both `\' and `/' may be use as path separators.
129509         Based on a patch from Prashant TR.
129511 2000-07-31  Paul Eggert  <eggert@twinsun.com>
129513         * lib/quotearg.c (quotearg_n_options): Don't make the initial
129514         slot vector a constant, since it might get modified.
129516 2000-07-31  Jim Meyering  <meyering@lucent.com>
129518         * lib/xmalloc.c: Use `virtual memory exhausted', not
129519         `Memory exhausted'.
129520         * lib/obstack.c (print_and_abort): Likewise.
129522 2000-07-30  Paul Eggert  <eggert@twinsun.com>
129524         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
129525         buffer, so that the caller can always quote one small
129526         component of a "memory exhausted" message in slot 0.
129527         From a suggestion by Jim Meyering.
129529 2000-07-30  Jim Meyering  <meyering@lucent.com>
129531         * lib/makepath.c (make_path): Quote the other instance, too.
129533         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
129534         (STATIC_BUF_SIZE): Define.
129535         (quotearg_n_options): Use only statically allocated storage when
129536         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
129537         than STATIC_BUF_SIZE.
129539 2000-07-29  Jim Meyering  <meyering@lucent.com>
129541         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
129542         * lib/dirname.c (dir_name): Likewise.
129544         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
129545         `/'.
129547         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
129548         (dir_name): Assert that there are no trailing slashes.
129550 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
129552         * lib/mbswidth.h (mbswidth): Add a flags argument.
129553         (mbswidth): New declaration.
129554         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
129555         * lib/mbswidth.c (mbswidth): Add a flags argument.
129556         (mbsnwidth): New function.
129558 2000-07-24  Jim Meyering  <meyering@lucent.com>
129560         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
129562 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129564         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
129566 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129568         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
129569         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
129570         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
129571         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
129572         invoke multibyte primitives.
129574 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129576         * lib/quotearg.c:
129577         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
129578         so that mbstate_t is always defined.
129580         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
129581         be 1 in at least one GCC installation, and this configuration
129582         error is likely to be common.  Ignoring MB_LEN_MAX hurts
129583         performance on hosts that have mbrtowc but have only unibyte
129584         locales, but I assume these hosts are rare.
129586 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129588         * lib/mbswidth.c (_XOPEN_SOURCE):
129589         Don't define; this causes problems on Solaris 7.
129590         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
129592 2000-07-23  Jim Meyering  <meyering@lucent.com>
129594         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
129595         too: getgrgid, getpwuid, getuid.
129597 2000-07-23  Jim Meyering  <meyering@lucent.com>
129599         * lib/basename.c (base_name): Add an assertion.
129601 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
129603         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
129604         shadow its mbsinit function.
129606 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129608         * lib/mbswidth.h: New file.
129609         * lib/mbswidth.c: New file.
129610         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
129611         (noinst_HEADERS): Add mbswidth.h.
129613 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129615         * lib/config.charset: Add support for FreeBSD. Improve support for
129616         HP-UX and IRIX 6.
129618 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
129620         * m4/mbswidth.m4: New file.
129621         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
129623 2000-07-15  Jim Meyering  <meyering@lucent.com>
129625         * lib/makepath.c: Include quote.h.
129626         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
129627         corresponding argument in a `quote (...)' call.
129628         Give better diagnostics.
129630         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
129631         (noinst_HEADERS): Add quote.h.
129633         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
129634         from tar's src/misc.c.
129635         * lib/quote.h: New file.  Prototypes for same.
129637 2000-07-14  Paul Eggert  <eggert@twinsun.com>
129639         From a suggestion by Bruno Haible.
129640         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
129641         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
129642         to decide whether to define the BeOS workaround macro;
129643         this adjusts to the change to AC_MBSTATE_T.
129645 2000-07-14  Jim Meyering  <meyering@lucent.com>
129647         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
129648         jm_AC_TYPE_UINTMAX_T.
129650 2000-07-13  Paul Eggert  <eggert@twinsun.com>
129652         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
129654         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
129655         quotearg_buffer_restyled): Add support for
129656         clocale_quoting_style.  Undo previous change to
129657         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
129658         and "{RIGHT QUOTATION MARK}" msgids.
129660 2000-07-10  Paul Eggert  <eggert@twinsun.com>
129662         From a suggestion by Bruno Haible.
129663         * m4/mbstate_t.m4 (AC_MBSTATE_T):
129664         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
129665         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
129666         and mbstate_t, to a single-part test that simply defines mbstate_t.
129667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129668         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129670 2000-07-10  Jim Meyering  <meyering@lucent.com>
129672         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129674         * m4/gnu-source.m4: Output to confdefs.h directly.
129675         Suggestion from Akim Demaille.
129677 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129679         The old behavior of quoting `like this' doesn't look good with
129680         newer, ISO-style fonts.  See:
129681         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129683         Instead, quote "like this" by default.  Let the translator
129684         tailor the locale-specific quoting behavior by providing
129685         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129687         * lib/quotearg.c (N_): New macro.
129688         (gettext_default): New function.
129689         (quotearg_buffer_restyled): Use
129690         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129691         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129693 2000-07-09  Jim Meyering  <meyering@lucent.com>
129695         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129696         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129698         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129701 2000-07-09  Jim Meyering  <meyering@lucent.com>
129703         * lib/Most files: Update copyright dates to include 2000.
129705 2000-07-08  Jim Meyering  <meyering@lucent.com>
129707         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
129708         if not defined.
129709         (xgethostname): Remove now-unnecessary #ifdef.
129710         Move declaration of `err' into loop where it's used.
129712 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129713         and Bruno Haible  <haible@clisp.cons.org>
129715         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
129716         only if the test for an object-type mbstate_t fails.  This
129717         prevents us from mistakenly reporting that mbstate_t is a
129718         system object type after we "#define mbstate_t int" to work
129719         around its lack.
129721 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129722         and Bruno Haible  <haible@clisp.cons.org>
129724         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
129726 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129728         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
129729         to strerror_r.
129730         Include <ctype.h> for use of isalpha.
129732 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129734         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
129735         by allocating a larger buffer. Test the gethostname return value for
129736         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
129737         returns an error and ENAMETOOLONG isn't defined.
129739 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129741         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
129742         dimension.
129744 2000-07-04  Jim Meyering  <meyering@lucent.com>
129746         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
129747         of the deprecated AC_CHECKING.
129749 2000-07-04  Jim Meyering  <meyering@lucent.com>
129751         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
129752         Reported by Bruno Haible.
129754 2000-07-04  Jim Meyering  <meyering@lucent.com>
129756         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
129757         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
129758         lacks mbrtowc.
129760 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129762         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
129763         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
129765 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129766         and Bruno Haible  <haible@clisp.cons.org>
129768         * lib/quotearg.c (mbrtowc):
129769         Assign to *pwc, and return 1 only if result is nonzero.
129770         (iswprint): Use ISPRINT when substituting our own mbrtowc.
129772 2000-07-03  Jim Meyering  <meyering@lucent.com>
129774         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
129776 2000-07-03  Jim Meyering  <meyering@lucent.com>
129778         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
129779         This is necessary to get a definition of e.g., UTMP_FILE on
129780         HP-UX 10.20.
129781         From Bob Proulx.
129783 2000-07-02  Jim Meyering  <meyering@lucent.com>
129785         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
129787         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
129788         AC_LIBOBJ(function_name).
129789         * m4/chown.m4: Likewise.
129790         * m4/fnmatch.m4: Likewise.
129791         * m4/ftruncate.m4: Likewise.
129792         * m4/getgroups.m4: Likewise.
129793         * m4/getline.m4: Likewise.
129794         * m4/group-member.m4: Likewise.
129795         * m4/jm-macros.m4: Likewise.
129796         * m4/lstat.m4: Likewise.
129797         * m4/malloc.m4: Likewise.
129798         * m4/memcmp.m4: Likewise.
129799         * m4/nanosleep.m4: Likewise.
129800         * m4/putenv.m4: Likewise.
129801         * m4/realloc.m4: Likewise.
129802         * m4/regex.m4: Likewise.
129803         * m4/stat.m4: Likewise.
129804         * m4/strftime.m4: Likewise.
129806 2000-07-02  Jim Meyering  <meyering@lucent.com>
129808         * lib/quotearg.c (mbstate_t): Don't define here.
129810 2000-07-02  Jim Meyering  <meyering@lucent.com>
129812         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129814 2000-07-01  Jim Meyering  <meyering@lucent.com>
129816         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129818 2000-07-01  Jim Meyering  <meyering@lucent.com>
129820         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129821         problem.
129823 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129826         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129828 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129830         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129831         per change in ../m4/ls-mntd-fs.m4.
129832         (read_filesystem_list): Ignore symbolic links.
129834 2000-06-29  Jim Meyering  <meyering@lucent.com>
129836         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129837         for declaration of strcmp.
129839         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129841         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129842         Avoid warning by casting result to `char *' to remove `const'.
129844 2000-06-28  Jim Meyering  <meyering@lucent.com>
129846         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129847         included by quotearg.c, for which we perform this test.  From
129848         Bruno Haible.
129850 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129852         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129853         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129854         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129856 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129858         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129860 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129862         savedir now sets errno on failure and invokes xmalloc to get memory.
129863         Fix a couple of other minor bugs while we're at it.
129865         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129866         (NAMLEN): Remove macro.
129867         (malloc, realloc): Remove decls.
129868         (stpcpy): Likewise.
129869         ("xalloc.h"): Include.
129870         (NAME_SIZE_DEFAULT): New macro.
129871         (savedir): Use xmalloc / xrealloc to allocate memory.
129872         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129873         Skip "" directory entries.
129874         Use strlen to calculate directory entry length, since the old method
129875         is rarely used these days and isn't worth supporting.
129876         Don't use a pointer after freeing it.
129877         Check for integer overflow when calculating allocation size.
129878         Use memcpy to copy entries, instead of stpcpy.
129879         Set errno properly when returning NULL.
129880         Check for readdir error.
129882 2000-06-26  Jim Meyering  <meyering@lucent.com>
129884         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129886 2000-06-25  Jim Meyering  <meyering@lucent.com>
129888         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129889         Linux header bug when _XOPEN_SOURCE is defined to 500.
129891 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129893         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129894         deficiency.
129896 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129898         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129899         Include xalloc.h.
129900         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129902 2000-06-24  Jim Meyering  <meyering@lucent.com>
129904         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129905         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129906         for which strerror does return char*, but which lacks a conveniently
129907         accessible declaration of the function.  If the compile-test says
129908         strerror_r doesn't work, then resort to a `run'-test that works on
129909         BeOS and segfaults on DEC Unix.
129911 2000-06-24  Jim Meyering  <meyering@lucent.com>
129913         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129915 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129917         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129918         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129920 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129922         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129923         (mbrtowc, mbstate_t): Define substitutes if
129924         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129925         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129926         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129928 2000-06-23  Jim Meyering  <meyering@lucent.com>
129930         * m4/afs.m4: Add missing AC_MSG_RESULT.
129931         Reported by Bruno Haible.
129933         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129934         Suggestion from Bruno Haible.
129936 2000-06-23  Jim Meyering  <meyering@lucent.com>
129938         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129940 2000-06-21  Jim Meyering  <meyering@lucent.com>
129942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129944 2000-06-21  Jim Meyering  <meyering@lucent.com>
129946         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129947         (noinst_HEADERS): Add getstr.h.
129949         * lib/getline.c (getstr): Move into a separate file.
129950         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129951         the following changes: new parameter, delim2; both delim[12]
129952         parameters have type `int', not `char'.  The latter would lose
129953         with 8-bit delimiters.
129954         * lib/getstr.h: New file.
129956 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129958         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129959         than 1024, return a memory chunk of least possible size, instead
129960         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129961         Use free/xmalloc instead of xrealloc to avoid copying for very long
129962         paths.
129964 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129966         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129967         the empty string.
129969 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129971         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129972         address, not strdup.  Include <stdlib.h> and don't declare free().
129974 2000-06-19  Jim Meyering  <meyering@lucent.com>
129976         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129978 2000-06-18  Jim Meyering  <meyering@lucent.com>
129980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129982         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129983         `checking whether...' message to be consistent with that of the
129984         lstat test.
129986 2000-06-18  Jim Meyering  <meyering@lucent.com>
129988         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129989         Besides, these days every porting target provides a mkdir function.
129991         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129992         needed. (this snippet comes from src/system.h).
129994 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129996         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129998 2000-06-15  Paul Eggert  <eggert@twinsun.com>
130000         * lib/human.c (adjust_value): New function.
130001         (human_readable_inexact): Apply rounding style even when
130002         printing approximate values.
130004 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130006         * lib/human.c (human_readable_inexact): Allow an input block
130007         size that is not a multiple of the output block size, and vice versa.
130008         Reported by Piergiorgio Sartor.
130010 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130012         * lib/getdate.y (get_date): Apply relative times after time
130013         zone indicator, not before.  Reported by Todd A. Jacobs.
130015 2000-06-13  Jim Meyering  <meyering@lucent.com>
130017         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
130019         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
130021 2000-06-12  Paul Eggert  <eggert@twinsun.com>
130023         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
130025 2000-06-12  Jim Meyering  <meyering@lucent.com>
130027         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
130028         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
130029         optional argument.
130030         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
130031         the optional argument, `lib'.
130033 2000-06-08  Jim Meyering  <meyering@lucent.com>
130035         * m4/largefile.m4: Remove file (now that it's part of autoconf).
130037 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130039         Rewrite largefile configuration so that we don't need to run
130040         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
130041         AC_CANONICAL_HOST in configure.in -- jmm]
130043         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
130044         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
130045         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
130046         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
130047         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
130048         All uses changed.
130049         Instead of inspecting the output of getconf, try to compile the
130050         test program without and with the macro definition.
130051         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
130052         for getconf.  Instead, check for the needed flags by compiling
130053         test programs.
130055 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130057         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
130059 2000-06-04  Jim Meyering  <meyering@lucent.com>
130061         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
130062         SunOS 4.1.4 for which gid_t is an unsigned type.
130064 2000-06-03  Jim Meyering  <meyering@lucent.com>
130066         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
130067         now that autoconf requires that.
130069         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
130070         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
130071         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
130073 2000-06-03  Jim Meyering  <meyering@lucent.com>
130075         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
130077 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130079         * m4/glibc21.m4: New file.
130080         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
130082 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130084         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
130085         newer, don't install charset.alias.
130086         * lib/config.charset: Change the Linux/glibc rules so they become empty
130087         on glibc-2.1 or newer.
130089 2000-06-02  Jim Meyering  <meyering@lucent.com>
130091         * lib/mountlist.c: Back out last change.  Instead, do this...
130092         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
130093         me_dummy member using the same `ignore'-testing code.
130094         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
130095         fs_type strings.
130096         From Mark D. Roth.
130098 2000-05-29  Jim Meyering  <meyering@lucent.com>
130100         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
130101         mounts with the `ignore' attribute.  Based on a patch from
130102         Mark D. Roth.
130104 2000-05-28  Jim Meyering  <meyering@lucent.com>
130106         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
130107         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130108         * m4/stat.m4: Likewise.
130109         * m4/lstat.m4: Likewise.
130110         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
130112         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
130113         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
130115 2000-05-26  Jim Meyering  <meyering@lucent.com>
130117         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
130119 2000-05-24  Jim Meyering  <meyering@lucent.com>
130121         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
130122         autoconf requires that.
130123         * m4/lib-check.m4: Likewise.
130124         * m4/jm-macros.m4: Likewise.
130125         * m4/strftime.m4: Likewise.
130127         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
130128         AC_CHECK_DECLS, now that autoconf requires that.
130130 2000-05-22  Jim Meyering  <meyering@lucent.com>
130132         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130133         * m4/lstat.m4: Likewise.
130135 2000-05-22  Jim Meyering  <meyering@lucent.com>
130137         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
130139 2000-05-20  Jim Meyering  <meyering@lucent.com>
130141         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
130142         (jm_PREREQ): Use it.
130144 2000-05-18  Jim Meyering  <meyering@lucent.com>
130146         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
130147         back, too, since it may have been modified by allocate_entry.
130148         (hash_delete): Rewrite to use neither the assignment operator
130149         nor the comma operator in an if-expression.
130151 2000-05-15  Paul Eggert  <eggert@twinsun.com>
130153         * lib/closeout.c:
130154         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
130155         Remove; no longer needed.
130156         "quotearg.h": Add include.
130157         (file_name): Do not bother to explicitly initialize to NULL; it's less
130158         efficient on some hosts.
130159         (close_stdout_status): Remove test as to whether stdout was already
130160         closed; it breaks for the case "echo x | sort >&-".
130161         Quote file name colons.
130162         Do not assume that _("write error") lacks format strings.
130164 2000-05-15  Jim Meyering  <meyering@lucent.com>
130166         * lib/version-etc.c (version_etc_copyright): Update the copyright
130167         string used in all --version output.
130169 2000-05-14  Jim Meyering  <meyering@lucent.com>
130171         * lib/closeout.c (close_stdout_set_file_name): New function.
130172         (close_stdout_status): Use new file-scoped global.
130173         Return right away if fstat says the stdout file descriptor is invalid.
130174         * lib/closeout.h (close_stdout_set_file_name): Declare.
130176 2000-05-10  Jim Meyering  <meyering@lucent.com>
130178         * lib/closeout.c [default_exit_status]: New file-scoped variable.
130179         (close_stdout_set_status): New function.
130180         * lib/closeout.h (close_stdout_set_status): Declare.
130182 2000-05-09  Jim Meyering  <meyering@lucent.com>
130184         * m4/gettext.m4: Rename this...
130185         * m4/libintl.m4: ...to this.
130187 2000-05-08  Jim Meyering  <meyering@lucent.com>
130189         * lib/long-options.c: Don't include closeout.h.
130190         (parse_long_options): Don't call close_stdout for --version.
130192 2000-05-06  Paul Eggert  <eggert@twinsun.com>
130194         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
130195         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
130196         2.1.3 bug.  This avoids a clash when files like regex.c define
130197         _GNU_SOURCE.
130199 2000-05-06  Jim Meyering  <meyering@lucent.com>
130201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
130202         (AC_REPLACE_FUNCS): Add strnlen.
130204         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
130205         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
130207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
130208         AC_SEARCH_LIBS call for nanosleep.
130209         (LIB_NANOSLEEP): Set and AC_SUBST.
130211 2000-05-06  Jim Meyering  <meyering@lucent.com>
130213         * lib/strnlen.c: Undefine __strnlen and strnlen.
130214         [!weak_alias]: Define __strnlen to strnlen.
130216         * lib/atexit.c: New file, from libiberty.
130218 2000-05-06  Jim Meyering  <meyering@lucent.com>
130220         * lib/closeout.c (close_stdout_status): Also check for errors on the
130221         stderr stream.
130223 2000-05-05  Jim Meyering  <meyering@lucent.com>
130225         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
130226         AC_SEARCH_LIBS call for clock_gettime.
130227         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
130229         * m4/search-libs.m4: Update from autoconf.
130231         su doesn't work on Solaris 2.6.
130232         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
130233         <shadow.h>.  Reported by Dragos Harabor.
130235 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
130237         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
130238         memcpy instead of xmalloc, xrealloc, path_concat.
130239         (locale_charset): Treat empty environment variables as absent.
130240         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
130242 2000-05-04  Jim Meyering  <meyering@lucent.com>
130244         * lib/getopt.c: Update from glibc.
130245         * lib/obstack.c: Likewise.
130246         * lib/obstack.h: Likewise.
130247         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
130248         file
130250         * lib/regex.h: Likewise.
130251         * lib/strndup.c: Likewise.
130252         * lib/strnlen.c: New file, from glibc.
130254 2000-05-03  Jim Meyering  <meyering@lucent.com>
130256         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
130258 2000-05-02  Paul Eggert  <eggert@twinsun.com>
130260         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
130261         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
130262         compile-time test, rather than inspecting host and OS, to
130263         decide whether to define _LARGEFILE_SOURCE.
130265 2000-05-01  Jim Meyering  <meyering@lucent.com>
130267         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
130269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
130270         Based on a patch from Bruno Haible.
130272 2000-05-01  Jim Meyering  <meyering@lucent.com>
130274         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
130276 2000-04-29  Jim Meyering  <meyering@lucent.com>
130278         * lib/path-concat.c: Declare strdup only if it's not defined.
130279         * lib/canon-host.c: Likewise.
130281 2000-04-28  Jim Meyering  <meyering@lucent.com>
130283         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
130284         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
130285         is included first, then limits.h is included by locale.h by libintl.h.
130286         From John David Anglin.
130288 2000-04-25  Jim Meyering  <meyering@lucent.com>
130290         * lib/makepath.c (S_IRWXUGO): Define.
130291         (make_path): Always perform explicit chmod if MODE specifies any
130292         of the `special' permission bits.  Prompted by a bug report against
130293         install from Mate Wierdl and Joost van Baal.
130295 2000-04-18  Jim Meyering  <meyering@lucent.com>
130297         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
130298         (jm_PREREQ): Use it.
130300 2000-04-18  Jim Meyering  <meyering@lucent.com>
130302         * lib/README: New file.
130304         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
130305         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
130307 2000-04-17  Jim Meyering  <meyering@lucent.com>
130309         Get it right :-)
130310         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
130311         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
130312         Suggestion from Akim Demaille.
130314 2000-04-17  Jim Meyering  <meyering@lucent.com>
130316         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
130317         the definition of it to rpl_strftime also defined-away the system's
130318         declaration.
130320 2000-04-15  Jim Meyering  <meyering@lucent.com>
130322         Use `C' to denote so-called `contiguous' files, the same way
130323         that tar does.
130324         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
130325         (ftypelet): Use S_ISCTG.
130326         From Michael Deutschmann.
130328 2000-04-14  Jim Meyering  <meyering@lucent.com>
130330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
130331         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
130332         clobbered.
130334 2000-04-14  Jim Meyering  <meyering@lucent.com>
130336         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
130338 2000-04-13  Jim Meyering  <meyering@lucent.com>
130340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
130341         AH_VERBATIM to insert required #ifndef into config.h.in.
130342         Suggestion from Akim Demaille.
130344 2000-04-12  Jim Meyering  <meyering@lucent.com>
130346         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
130347         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
130348         Christian Krackowizer.
130350         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
130351         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
130352         (AC_SYS_LARGEFILE): Require.
130353         (AM_C_PROTOTYPES): Require.
130355 2000-04-08  Jim Meyering  <meyering@lucent.com>
130357         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
130358         names don't conflict.  Reported by Eli Zaretskii.
130360 2000-04-07  Jim Meyering  <meyering@lucent.com>
130362         * lib/putenv.c: Move inclusion of errno.h so it follows that of
130363         sys/types.h, to work around system header problems on AIX 3.2.5.
130364         From Bruno Haible.
130366 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
130368         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
130369         bug.  Deal with the different error behavior of Irix iconv.
130371 2000-04-05  Paul Eggert  <eggert@twinsun.com>
130373         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
130374         IRIX if the installer said otherwise.
130376 2000-04-05  Jim Meyering  <meyering@lucent.com>
130378         Portability tweaks required for ultrix4.3.
130379         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
130380         (jm_CHECK_DECLS): Add getutent to the list of functions.
130381         (_jm_DECL_HEADERS): Add utmpx.h.
130382         From John David Anglin.
130384         * m4/strftime.m4: Back out the 2000-04-02 change.
130385         Instead of that change, simply undefine putenv in the test program.
130387 2000-04-05  Jim Meyering  <meyering@lucent.com>
130389         Portability tweaks required for ultrix4.3.
130390         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
130391         getutent.
130392         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
130393         * lib/canon-host.c: Declare strdup.
130394         * lib/path-concat.c: Likewise.
130395         From John David Anglin.
130397 2000-04-04  Jim Meyering  <meyering@lucent.com>
130399         Be more DOS 8.3-friendly.
130400         * lib/ref-add.sin: Renamed from ref-add.sed.in.
130401         * lib/ref-del.sin: Renamed from ref-del.sed.in.
130402         * lib/Makefile.am: Reflect renaming.
130403         Reported by Eli Zaretskii.
130405         Use a temporary file name that won't clash with `charset.alias'
130406         in the DOS 8.3 name space.
130407         * lib/Makefile.am (charset_tmp): Define.
130408         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
130409         (uninstall-local): Likewise.
130410         Reported by Eli Zaretskii.
130412 2000-04-03  Jim Meyering  <meyering@lucent.com>
130414         * m4/gettext.m4: Fix typo in comment.
130416         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
130417         textutils/configure.in).  Suggestion from Paul Eggert.
130418         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
130420 2000-04-02  Paul Eggert  <eggert@twinsun.com>
130422         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
130423         variable in the shell rather than using putenv, which isn't
130424         portable.  This avoids the configure-time inter-test dependency
130425         on the potentially-renamed putenv function.
130427 2000-03-30  Paul Eggert  <eggert@twinsun.com>
130429         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
130430         before checking struct stat.st_blksize, so that
130431         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
130433 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130435         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
130436         since strftime.c uses HAVE_STRFTIME to decide whether to use
130437         the underlying strftime.
130439 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130441         * lib/time/strftime.c (my_strftime): Make sure we call the system
130442         strftime, not ourselves, when invoking the underlying strftime.
130444 2000-03-24  Jim Meyering  <meyering@lucent.com>
130446         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
130447         (charset_alias): Define.
130448         (install-exec-local): Factor out common code.
130449         (uninstall-local): Split lines longer than 80.
130450         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
130451         (SUFFIXES): Define.
130452         (.sed.in.sed): New rule.  Don't redirect directly to $@.
130453         (CLEANFILES): Add ref-add.sed and ref-del.sed.
130455 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
130457         * lib/config.charset: Output a line containing "Packages using this
130458         file".
130459         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
130460         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
130461         ref-del.sed): New rules.
130463 2000-03-17  Jim Meyering  <meyering@lucent.com>
130465         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
130466         Otherwise, include <strings.h>
130468 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
130470         * lib/unicodeio.c (utf8_wctomb): New function.
130471         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
130472         format instead of in UCS-4 with platform dependent endianness.
130474 2000-03-10  Jim Meyering  <meyering@lucent.com>
130476         * m4/lib-check.m4: Look for getspnam in -lgen, too.
130477         From Marco Franzen.
130479 2000-03-07  Paul Eggert  <eggert@twinsun.com>
130481         * lib/savedir.c (savedir): Work even if directory size is
130482         negative; this can happen with some screwy NFS configurations.
130484 2000-03-06  Jim Meyering  <meyering@lucent.com>
130486         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
130487         if it's NULL (because we ran out of memory).  From Bruno Haible.
130489 2000-03-05  Jim Meyering  <meyering@lucent.com>
130491         * lib/localcharset.c ("path-concat.h"): Include.
130492         (get_charset_aliases): Use path_concat instead of ANSI string
130493         concatenation.
130495         * lib/unicodeio.h (PARAMS): Define.
130496         Use it to guard prototype.
130498 2000-03-04  Jim Meyering  <meyering@lucent.com>
130500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
130501         for lib/localcharset.c.
130503 2000-03-04  Jim Meyering  <meyering@lucent.com>
130505         * lib/Makefile.am (install-exec-local): Create $(libdir) before
130506         installing into it.
130507         (uninstall-local): Uncomment this rule so `make distcheck' works
130508         once again.
130510         * lib/unicodeio.c (<errno.h>): Include it.
130511         (errno): Declare if not defined.
130513         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
130515         * lib/config.charset: New version, incorporating remarks from a linux
130516         i18n mailing list.  From Bruno Haible.
130518 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
130520         * m4/codeset.m4: New file.
130521         * m4/iconv.m4: New file.
130522         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
130524 2000-03-03  Jim Meyering  <meyering@lucent.com>
130526         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
130528 2000-03-02  Jim Meyering  <meyering@lucent.com>
130530         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
130531         the messages come out on separate lines.
130533         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
130534         rather than jm_CHECK_DECLARATIONS.
130535         * m4/decl.m4: Remove now-unused file.
130537         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
130538         geteuid.
130540 2000-03-02  Jim Meyering  <meyering@lucent.com>
130542         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
130544 2000-03-01  Jim Meyering  <meyering@lucent.com>
130546         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
130547         * lib/unicodeio.c: Likewise.
130549 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
130551         * lib/config.charset: New file.
130552         * lib/localcharset.c: New file.
130553         * lib/unicodeio.h, lib/unicodeio.c: New files.
130554         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
130555         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
130556         (noinst_HEADERS): Add unicodeio.h.
130557         (all-local, install-exec-local, charset.alias): New targets.
130559 2000-02-28  Paul Eggert  <eggert@twinsun.com>
130561         * lib/quotearg.c (ALERT_CHAR): New macro.
130562         (quotearg_buffer_restyled): Use it.
130564 2000-02-27  Jim Meyering  <meyering@lucent.com>
130566         * m4/check-decl.m4: Add getenv to the list.
130568 2000-02-27  Jim Meyering  <meyering@lucent.com>
130570         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
130571         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
130573         * lib/backupfile.c: Guard inclusion of stdlib.h with
130574         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
130575         Declare malloc if needed.
130577         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
130578         `#ifndef HAVE_DECL..'
130579         now that autoconf always defines the HAVE_DECL_ symbols.
130580         * lib/human.c: Likewise.
130581         * lib/same.c: Likewise.
130582         * lib/strtoumax.c: Likewise.
130584         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
130585         declaration check was not run.
130586         * lib/hash.c: Likewise.
130587         * lib/human.c: Likewise.
130588         * lib/same.c: Likewise.
130589         * lib/strtoumax.c: Likewise.
130591         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
130592         `.', then first look up the entire `.'-containing string as a login
130593         name.
130595 2000-02-23  Jim Meyering  <meyering@lucent.com>
130597         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
130598         in place of my hack.
130600 2000-02-18  Paul Eggert  <eggert@twinsun.com>
130602         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
130603         (textint): New typedef.
130604         (parser_control): Member year changed from int to textint.
130605         All uses changed.
130606         (YYSTYPE): Removed; replaced by %union with int and textint members.
130607         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
130608         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
130609         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
130610         (tSNUMBER, tUNUMBER): Now of type <textintval>.
130611         (date, number, to_year): Use width of number in digits, not its value,
130612         to determine whether it's a 2-digit year, or a 2-digit time.
130613         (yylex): Store number of digits of numeric tokens.
130614         Reported by John Kendall.
130616         (parser_control): Changed from struct parser_control to typedef (for
130617         consistency).  All uses changed.
130619         (tID): Removed; not used.
130620         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
130622 2000-02-14  Paul Eggert  <eggert@twinsun.com>
130624         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
130625         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
130627 2000-02-12  Jim Meyering  <meyering@lucent.com>
130629         * lib/userspec.c (ISDIGIT): Define it.
130630         (isdigit): Remove definition.
130631         (is_number): Use ISDIGIT, not isdigit.
130632         <libintl.h>: Include.
130633         (_ and N_): Define.
130634         (parse_user_spec): Mark translatable strings.
130636 2000-02-10  Jim Meyering  <meyering@lucent.com>
130638         With these changes, nanosleep.[ch] are finally enough like the other
130639         lib/* replacement files to compile on a few more losing systems.
130641         * lib/nanosleep.h: Don't include config.h.
130642         Remove prototype from declaration of nanosleep.
130643         (PARAMS): Remove now-unneeded definition.
130644         * lib/nanosleep.c: #undef nanosleep.
130645         (rpl_nanosleep): Rename from nanosleep.
130647 2000-02-10  Jim Meyering  <meyering@lucent.com>
130649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
130650         gnu_nanosleep to rpl_nanosleep.
130652 2000-02-09  Jim Meyering  <meyering@lucent.com>
130654         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
130655         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
130657 2000-02-08  Akim Demaille  <akim@epita.fr>
130659         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
130660         `[' and `]' and remove uses of `changequote'.
130661         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
130662         (AC_SYS_LARGEFILE): Likewise.
130663         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
130664         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
130665         of changequote.
130666         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130667         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130668         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130669         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130671 2000-02-05  Jim Meyering  <meyering@lucent.com>
130673         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130674         Remove explicit use of AC_HEADER_TIME.  It is required by
130675         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130676         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130677         in autoconf whereby the expansion of the latter ended up preceding
130678         the expansion of its prerequisite, AC_HEADER_TIME.
130679         Reported by Volker Borchert.
130681 2000-02-03  Jim Meyering  <meyering@lucent.com>
130683         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130685 2000-02-03  Jim Meyering  <meyering@lucent.com>
130687         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130688         rather than with `#if HAVE_UTMPNAME'.
130690 2000-02-02  Jim Meyering  <meyering@lucent.com>
130692         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130693         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130694         Reported by Eli Zaretskii.
130696 2000-02-01  Jim Meyering  <meyering@lucent.com>
130698         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130700 2000-01-31  Jim Meyering  <meyering@lucent.com>
130702         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130703         functions.  Add the time.h and sys/time.h headers along with the
130704         AC_REQUIRE'ment of AC_HEADER_TIME.
130706 2000-01-31  Jim Meyering  <meyering@lucent.com>
130708         * lib/nanosleep.h (nanosleep): Guard declaration with
130709         `#if ! HAVE_DECL_NANOSLEEP'.
130710         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
130711         the declaration in that vendor's sys/timers.h.
130712         Reported by Christian Krackowizer.
130714         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
130715         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
130716         (ISPRINT): Likewise.
130717         Reported by Tom Tromey.
130719 2000-01-30  Jim Meyering  <meyering@lucent.com>
130721         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
130723         * m4/prereq.m4 (utmp_includes): Define.
130724         Check for ut_user and ut_name members in both struct utmpx
130725         and struct utmp.
130727 2000-01-30  Jim Meyering  <meyering@lucent.com>
130729         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
130730         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
130731         header files where only utmpx.ut_user is declared.
130733         * lib/readutmp.h (UT_USER): Define.
130735 2000-01-29  Jim Meyering  <meyering@lucent.com>
130737         * m4/lib-check.m4: New file containing library-related checks from
130738         fileutils and sh-utils (textutils had none).
130740 2000-01-28  Jim Meyering  <meyering@lucent.com>
130742         * m4/perl.m4: Change format of warning message to look more like that
130743         from the missing script.  Suggestion from François Pinard.
130745 2000-01-25  Jim Meyering  <meyering@lucent.com>
130747         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
130748         well as time.h in the compile check.
130749         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
130750         Fix typo in cross-compiling case: s/yes/no/.
130752 2000-01-23  Jim Meyering  <meyering@lucent.com>
130754         * m4/jm-macros.m4: Move df-related tests here from
130755         fileutils/configure.in
130757         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
130758         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
130760         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
130761         s/space/ac_fsusage_space/.
130762         (jm_FILE_SYSTEM_USAGE): Take two parameters.
130764         * m4/ftruncate.m4: New file (derived from part of
130765         fileutils/configure.in).
130766         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
130767         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
130769         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
130770         AC_SUBST these here, rather than just in sh-util/configure.in, so
130771         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
130772         all the same.
130773         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
130774         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
130775         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
130776         (AC_SUBST(POW_LIBM)): Likewise.
130777         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
130779 2000-01-23  Jim Meyering  <meyering@lucent.com>
130781         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
130782         obstack.c.
130784 2000-01-22  Jim Meyering  <meyering@lucent.com>
130786         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
130788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
130790         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
130791         configure.in
130792         (AC_CHECK_HEADERS): Likewise for sh-utils.
130793         (AC_CHECK_HEADERS): Likewise for textutils.
130794         Merge the three lists of headers.
130796         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
130797         from fileutils' configure.in.
130799         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
130800         code. Moved tests into their own function (_jm_DECL_HEADERS) in
130801         check-decl.m4.
130803         * m4/check-decl.m4: Use #if rather than #ifdef.
130804         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
130805         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130806         (_jm_DECL_HEADERS): Define new function.
130807         (jm_CHECK_DECLARATIONS): Require it.
130809 2000-01-22  Jim Meyering  <meyering@lucent.com>
130811         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130812         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130813         Required for some AIX systems.  Reported by Christian Krackowizer.
130814         [TESTING] (main): New function.
130816         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130817         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130818         letters.
130820         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130821         iswprint.
130823         * lib/strverscmp.c (ISDIGIT): Define.
130824         (strverscmp): Use ISDIGIT, not isdigit.
130826 2000-01-19  Jim Meyering  <meyering@lucent.com>
130828         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130829         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130830         defines `struct timespec' in <sys/time.h>
130832         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130833         Thanks to Akim for explaining.
130835 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130837         * lib/nanosleep.c (nanosleep):
130838         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130839         POSIX.1 doesn't require SA_INTERRUPT and some systems
130840         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130841         it's been part of POSIX.1 since day 1 (in 1988).
130843 2000-01-17  Jim Meyering  <meyering@lucent.com>
130845         * lib/interlock: Remove unused file.  Reported by François Pinard.
130847 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130849         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130850         alert, backslash, formfeed, and vertical tab unnecessarily in
130851         shell quoting style.
130853 2000-01-16  Jim Meyering  <meyering@lucent.com>
130855         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130856         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130857         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130858         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130860 2000-01-16  Jim Meyering  <meyering@lucent.com>
130862         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130863         because the latter didn't work.
130865 2000-01-15  Jim Meyering  <meyering@lucent.com>
130867         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130868         (AC_REPLACE_FUNCS): Add memcpy and memset.
130869         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130870         Add strpbrk.
130871         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130873 2000-01-12  Jim Meyering  <meyering@lucent.com>
130875         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130876         (jm_PREREQ): Use it.
130877         (jm_PREREQ_READUTMP): New macro.
130878         (jm_PREREQ): Use it.
130880 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130882         Quote multibyte characters correctly.
130883         * m4/c-bs-a.m4: New file.
130884         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130885         (jm_PREREQ): Use it.
130887 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130889         * m4/uintmax_t.m4: Port to autoconf 2.13.
130891 2000-01-08  Jim Meyering  <meyering@ascend.com>
130893         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130894         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130896 2000-01-04  Jim Meyering  <meyering@ascend.com>
130898         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130899         jm_STRUCT_DIRENT_D_TYPE.
130900         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130901         jm_STRUCT_DIRENT_D_INO.
130902         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130903         jm_STRUCT_UTIMBUF.
130904         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130905         renamings.
130906         * m4/utime.m4: Likewise.
130908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130909         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130911 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130913         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130914         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130916 2000-01-02  Jim Meyering  <meyering@ascend.com>
130918         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130919         remember if this is necessary.
130921 1999-12-26  Jim Meyering  <meyering@ascend.com>
130923         * m4/jm-macros.m4: Use it here.
130924         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130926 1999-12-23  Jim Meyering  <meyering@ascend.com>
130928         * m4/jm-macros.m4: Check for clock_gettime (moved from
130929         fileutils/configure.in)
130930         Check for gettimeofday.
130932 1999-12-20  Jim Meyering  <meyering@ascend.com>
130934         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130935         autoconf-2.14a-1999-12-20.
130937 1999-12-19  Jim Meyering  <meyering@ascend.com>
130939         * m4/lstat-slash.m4: New file.
130940         * m4/jm-macros.m4: Use the new macro:
130941         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130943 1999-12-07  Jim Meyering  <meyering@ascend.com>
130945         * m4/perl.m4: Require that File::Compare be available, too.
130946         Too many systems seem to lack it.
130948         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130949         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130951 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130953         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130954         problem with the QNX 4.25 shell, which doesn't propagate exit
130955         status of failed commands inside shell assignments.
130957 1999-11-17  Jim Meyering  <meyering@ascend.com>
130959         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130961 1999-11-07  Jim Meyering  <meyering@ascend.com>
130963         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130965 1999-11-06  Jim Meyering  <meyering@ascend.com>
130967         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130968         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130970 1999-11-05  Jim Meyering  <meyering@ascend.com>
130972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130973         configure.in of textutils, fileutils, and sh-utils into this one
130974         (shared between those packages) file.
130975         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130976         AC_STRUCT_ST_BLKSIZE.
130978 1999-11-03  Jim Meyering  <meyering@ascend.com>
130980         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130981         of AC_CHECK_TYPE checks includes unistd.h.
130982         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130983         Suggestion from Akim Demaille.
130985 1999-10-30  Jim Meyering  <meyering@ascend.com>
130987         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130988         m4-quoted string.
130989         * m4/ls-mntd-fs.m4: Likewise.
130990         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130991         * m4/jm-winsz1.m4: Likewise.
130993         * m4/const.m4: Remove file, since the fix made it into the experimental
130994         version of autoconf.
130995         * m4/mktime.m4: Likewise.
130997         * m4/check-type.m4: Remove file, now that the latest version of
130998         AC_CHECK_TYPE takes a third arg to specify additional #includes.
131000         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
131001         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
131002         AC_CHECK_TYPE.
131004 1999-10-04  Jim Meyering  <meyering@ascend.com>
131006         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
131008 1999-09-22  Paul Eggert  <eggert@twinsun.com>
131010         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
131011         2.95.1 bug with HP-UX 10.20.
131013 1999-09-17  Jim Meyering  <meyering@ascend.com>
131015         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
131016         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
131017         due to missing strdup (against sh-utils-2.0).
131019 1999-08-29  Jim Meyering  <meyering@ascend.com>
131021         * m4/jm-macros.m4: Require jm_BISON.
131022         * m4/bison.m4: New file.
131024 1999-08-17  Paul Eggert  <eggert@twinsun.com>
131026         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
131027         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
131029 1999-08-05  Jim Meyering  <meyering@ascend.com>
131031         * m4/getline.m4: Rename test file from conftestdata to conftest.data
131032         to avoid conflicts with `conftest' on 8+3 filesystems.
131033         Suggestion from Eli Zaretskii.
131035 1999-08-04  Jim Meyering  <meyering@ascend.com>
131037         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
131038         fileutils and sh-utils (textutils's getline test was inadequate).
131039         (AM_FUNC_GETLINE): Run this test.
131040         (AC_CHECK_FUNCS): Check for getdelim.
131041         Reported by Bob Proulx.
131043 1999-08-02  Jim Meyering  <meyering@ascend.com>
131045         * m4/jm-macros.m4: Add a comment.
131047 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
131050         <inttypes.h> defines strtoumax as a macro (and not as a
131051         function).
131053 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131055         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
131056         that we can shift, multiply and divide unsigned long long
131057         values; Ultrix cc can't do it.
131059 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131061         * m4/mktime.m4: New file, which is a preview of what should appear
131062         in the next public autoconf release.
131064 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131066         * m4/lfs.m4: Remove this file.
131067         * m4/largefile.m4: New file.  It contains the old contents of
131068         lfs.m4, except that all names with prefix AC_LFS have been
131069         changed to use the prefix AC_SYS_LARGEFILE instead, to be
131070         compatible with future autoconf versions.  Also, some minor m4
131071         quoting problems have been fixed.
131073 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131075         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
131076         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
131077         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
131078         and simplify the shell code.
131080 1999-08-01  Jim Meyering  <meyering@ascend.com>
131082         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
131083         m4.
131085 1999-07-20  Jim Meyering  <meyering@ascend.com>
131087         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
131089 1999-07-15  Jim Meyering  <meyering@ascend.com>
131091         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
131093 1999-05-22  Jim Meyering  <meyering@ascend.com>
131095         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
131097 1999-05-20  Jim Meyering  <meyering@ascend.com>
131099         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
131100         Add a colon after each `then' in case $4 is empty.
131102 1999-05-16  Jim Meyering  <meyering@ascend.com>
131104         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
131106 1999-05-10  Jim Meyering  <meyering@ascend.com>
131108         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
131110         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
131111         AC_FUNC_MKTIME.
131113 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
131115         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
131117 1999-05-04  Paul Eggert  <eggert@twinsun.com>
131119         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
131120         not CPPFLAGS, so that linking works correctly in IRIX.
131122 1999-04-30  Paul Eggert  <eggert@twinsun.com>
131124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
131126 1999-04-20  Paul Eggert  <eggert@twinsun.com>
131128         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
131129         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
131130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
131131         jm_AC_TYPE_UNSIGNED_LONG_LONG.
131132         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
131134         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
131136 1999-04-20  Jim Meyering  <meyering@ascend.com>
131138         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
131139         AC_REPLACE xstroull if necessary.  From Paul Eggert.
131140         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
131142 1999-04-18  Jim Meyering  <meyering@ascend.com>
131144         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
131145         * m4/jm-macros.m4: Use it.
131147 1999-04-06  Jim Meyering  <meyering@ascend.com>
131149         * m4/strftime.m4: Remove test for %f.
131151 1999-03-29  Jim Meyering  <meyering@ascend.com>
131153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
131154         superset of the AC_TYPE_* checks in the textutils, fileutils,
131155         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
131156         AC_TYPE_PID_T.
131158 1999-03-28  Jim Meyering  <meyering@ascend.com>
131160         * m4/jm-macros.m4: Define GNU_PACKAGE here.
131161         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
131162         replaced e.g., in the *.sh files of the sh-utils.
131164 1999-03-20  Jim Meyering  <meyering@ascend.com>
131166         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
131167         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
131168         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
131170 1999-03-19  Jim Meyering  <meyering@ascend.com>
131172         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
131174 1999-03-12  Jim Meyering  <meyering@ascend.com>
131176         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
131178 1999-03-07  Jim Meyering  <meyering@ascend.com>
131180         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
131181         declared.
131183 1999-02-17  Jim Meyering  <meyering@ascend.com>
131185         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
131186         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
131188 1999-02-07  Jim Meyering  <meyering@ascend.com>
131190         * m4/group-member.m4: New file -- extracted from sh-utils'
131191         configure.in.
131193         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
131194         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
131196 1999-02-06  Jim Meyering  <meyering@ascend.com>
131198         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
131199         * m4/fnmatch.m4: Likewise.
131200         * m4/getgroups.m4: Likewise.
131201         * m4/lstat.m4: Likewise.
131202         * m4/malloc.m4: Likewise.
131203         * m4/putenv.m4: Likewise.
131204         * m4/realloc.m4: Likewise.
131205         * m4/regex.m4: Likewise.
131206         * m4/stat.m4: Likewise.
131207         * m4/strftime.m4: Likewise.
131208         Suggestion from Alain Magloire.
131210         * m4/chown.m4: Use `.$ac_objext', not `.o'.
131211         * m4/fnmatch.m4: Likewise.
131212         * m4/getgroups.m4: Likewise.
131213         * m4/getline.m4: Likewise.
131214         * m4/lstat.m4: Likewise.
131215         * m4/malloc.m4: Likewise.
131216         * m4/memcmp.m4: Likewise.
131217         * m4/putenv.m4: Likewise.
131218         * m4/realloc.m4: Likewise.
131219         * m4/regex.m4: Likewise.
131220         * m4/stat.m4: Likewise.
131221         * m4/strftime.m4: Likewise.
131222         Suggestion from Alain Magloire.
131224         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
131225         an argument.
131227         * m4/regex.m4: Add a run-time Test for proper operation of
131228         re_compile_pattern.
131230 1999-01-31  Jim Meyering  <meyering@ascend.com>
131232         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
131234 1999-01-30  Jim Meyering  <meyering@ascend.com>
131236         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
131238         * m4/jm-mktime.m4: Make this a wrapper around the official
131239         AM_FUNC_MKTIME rather than my private copy, now that the official one
131240         is up to date.
131241         * m4/mktime.m4: Remove file.
131243         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
131244         * m4/uptime.m4: Likewise.
131245         * m4/uintmax_t.m4: Likewise.
131247 1999-01-28  Jim Meyering  <meyering@ascend.com>
131249         * m4/jm-macros.m4: Use jm_AFS.
131250         * m4/afs.m4: New file (from fileutils' configure.in).
131252         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
131253         * m4/chown.m4: Likewise.
131254         * m4/d-ino.m4: Likewise.
131255         * m4/d-type.m4: Likewise.
131256         * m4/fnmatch.m4: Likewise.
131257         * m4/getgroups.m4: Likewise.
131258         * m4/gettext.m4: Likewise.
131259         * m4/jm-mktime.m4: Likewise.
131260         * m4/jm-winsz2.m4: Likewise.
131261         * m4/lcmessage.m4: Likewise.
131262         * m4/ls-mntd-fs.m4: Likewise.
131263         * m4/malloc.m4: Likewise.
131264         * m4/memcmp.m4: Likewise.
131265         * m4/putenv.m4: Likewise.
131266         * m4/realloc.m4: Likewise.
131267         * m4/st_mtim.m4: Likewise.
131268         * m4/strftime.m4: Likewise.
131270 1999-01-16  Jim Meyering  <meyering@ascend.com>
131272         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
131273         (ARGMATCH_DIE_DECL): Define.
131275 1999-01-12  Jim Meyering  <meyering@ascend.com>
131277         * m4/Makefile.am.in: Rewrite to avoid using fmt.
131278         Reported by Lars Hecking.
131280 1999-01-10  Jim Meyering  <meyering@ascend.com>
131282         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
131283         gross kludge.
131284         * m4/inttypes_h.m4: Likewise.
131285         * m4/lstat.m4: Likewise.
131286         * m4/malloc.m4: Likewise.
131287         * m4/readdir.m4: Likewise.
131288         * m4/realloc.m4: Likewise.
131289         * m4/st_dm_mode.m4: Likewise.
131290         * m4/stat.m4: Likewise.
131291         * m4/utimbuf.m4: Likewise.
131292         * m4/utimes.m4: Likewise.
131294         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
131295         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
131296         comments in config.h.in are meaningful.
131298         * m4/jm-macros.m4: Require autoconf-2.13 here.
131300         * m4/regex.m4: By default, don't use the included regex.c on systems
131301         with glibc 2.  Suggestion from Uli Drepper.
131303 1999-01-02  Jim Meyering  <meyering@ascend.com>
131305         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
131307 1998-12-18  Jim Meyering  <meyering@ascend.com>
131309         * m4/Makefile.am.in (Makefile.am): Simplify rule.
131310         Based on a suggestion from Lars Hecking.
131312 1998-11-16  Paul Eggert  <eggert@twinsun.com>
131314         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
131316 1998-11-16  Jim Meyering  <meyering@ascend.com>
131318         * m4/lfs.m4: Double-quote the `uname...` expression.
131320 1998-11-14  Jim Meyering  <meyering@ascend.com>
131322         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
131323         * m4/stat.m4: Likewise.
131325 1998-11-03  Jim Meyering  <meyering@ascend.com>
131327         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
131328         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
131330 1998-10-18  Jim Meyering  <meyering@ascend.com>
131332         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
131334 1998-10-17  Jim Meyering  <meyering@ascend.com>
131336         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
131337         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
131338         calls for those previously hard-coded headers.  Instead, take a new
131339         parameter.
131340         (jm_CHECK_DECLARATIONS): Reflect interface change.
131341         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
131342         (jm_CHECK_DECL_LOCALTIME_R): New macro.
131344         * m4/mktime.m4: Test for spring-forward gap before long-running test.
131346 1998-10-14  Jim Meyering  <meyering@ascend.com>
131348         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
131349         instead of "TZ=America/Vancouver".  From Paul Eggert.
131351 1998-10-11  Jim Meyering  <meyering@ascend.com>
131353         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
131354         This adds a test for a recently added compatibility fix for mktime.c.
131355         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
131357 1998-09-27  Jim Meyering  <meyering@ascend.com>
131359         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
131361         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
131362         ../configure.in, including a change from Gordon Matzigkeit to allow
131363         cross-compiling for the Hurd.
131365         * m4/glibc.m4: New file/macro to test for the GNU C Library
131366         versions 1 and 2.  From Gordon Matzigkeit.
131367         Indent.
131369 1998-09-21  Jim Meyering  <meyering@ascend.com>
131371         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
131373 1998-08-18  Paul Eggert  <eggert@twinsun.com>
131375         Port nanosecond-resolution times to UnixWare 2.1.2 and
131376         pedantic Solaris 2.6.
131378         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
131379         AC_STRUCT_ST_MTIM.
131380         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
131381         Generate name of ns member, instead of just 1 or undef.
131382         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
131384 1998-08-15  Jim Meyering  <meyering@ascend.com>
131386         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
131387         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
131388         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
131389         instead of jm_TYPE_SSIZE_T.
131391 1998-08-12  Jim Meyering  <meyering@ascend.com>
131393         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
131395 1998-08-02  Jim Meyering  <meyering@ascend.com>
131397         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
131398         in acconfig.h manually.
131400 1998-07-31  Paul Eggert  <eggert@twinsun.com>
131402         * m4/st_mtim.m4: New file.
131404 1998-07-28  Jim Meyering  <meyering@ascend.com>
131406         * m4/utimes.m4: Undef stat.
131408 1998-07-25  Jim Meyering  <meyering@ascend.com>
131410         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
131411         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
131413 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
131415         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
131416         uid and gid actually remain unchanged.
131418 1998-07-07  Jim Meyering  <meyering@ascend.com>
131420         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
131422 1998-07-04  Jim Meyering  <meyering@ascend.com>
131424         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
131425         to prove that this macro can be used in packages without regex.c.
131427 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
131429         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
131430         is to be used.
131432 1998-07-03  Jim Meyering  <meyering@ascend.com>
131434         * m4/gettext.m4: Add -lintl if it's found to be necessary.
131436         * m4/gettext.m4: New file -- from gettext-0.10.35.
131437         * m4/lcmessage.m4: Likewise.
131438         * m4/progtest.m4: Likewise.
131440         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
131441         * m4/jm-macros.m4: Require the new macro.
131443 1998-06-29  Jim Meyering  <meyering@ascend.com>
131445         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
131446         for the definition of NGROUPS (used in a system header included
131447         by sys/mount.h).
131449 1998-06-28  Jim Meyering  <meyering@ascend.com>
131451         * m4/ls-mntd-fs.m4: New file.
131452         * m4/fstypename.m4: New file.
131454         * m4/jm-macros.m4: Require the new macro.
131455         * m4/jm-glibc-io.m4: New file.
131457 1998-05-19  Jim Meyering  <meyering@ascend.com>
131459         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
131460         * m4/lchown.m4: New file.
131462         * m4/Makefile.am.in: New file.
131463         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
131465 1998-05-14  Jim Meyering  <meyering@ascend.com>
131467         * m4/Makefile.am (EXTRA_DIST): Add them.
131468         * m4/jm-macros.m4: New file.
131469         * m4/utimbuf.m4: New file.
131471 1998-05-12  Jim Meyering  <meyering@ascend.com>
131473         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
131475 1998-05-11  Jim Meyering  <meyering@ascend.com>
131477         * m4/isc-posix.m4: New file.
131479 1998-05-10  Jim Meyering  <meyering@ascend.com>
131481         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
131483 1998-05-09  Jim Meyering  <meyering@ascend.com>
131485         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
131486         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
131487         with automake.
131489         * m4/ssize_t.m4: New file.
131490         * m4/mktime.m4: Remove file -- the new automake has this now.
131492 1998-04-26  Jim Meyering  <meyering@ascend.com>
131494         * m4/assert.m4: New file.
131495         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
131497 1998-04-05  Jim Meyering  <meyering@ascend.com>
131499         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
131500         (jm_PREREQ): Use it here.
131502 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
131504         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
131505         in acconfig.h.
131507 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
131509         * m4/prereq.m4: New file.
131510         * m4/error.m4: New file.
131511         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
131513 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
131515         * m4/getline.m4: Don't set am_cv_func_working_getline before the
131516         cache-check for the same variable -- that defeated the purpose of
131517         the test; the test program was never run.  This was a problem only
131518         on systems with losing getline functions -- HP-UX 10.20 is one.
131519         Reported by Bjorn Helgaas.
131521 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
131523         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
131525 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
131527         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
131529         * m4/const.m4: New file.  Use an initializer in this declaration
131530         typedef int charset[2]; const charset x;
131531         Reported by Bob Glickstein.
131533 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
131535         * m4/chown.m4: Fix reversed types on -1 args to chown.
131536         From Kaveh Ghazi.
131538 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
131540         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
131541         Add lseek and memchr.
131543         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
131544         T.E.Dickey <dickey@clark.net> said that some older preprocessors
131545         have a 20-character limit on names.
131547 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
131549         * m4/inttypes_h.m4: New file.
131550         * m4/uintmax_t.m4: New file.
131551         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
131554         -----
131556         Local Variables:
131557         coding: utf-8
131558         End:
131560         Copyright (C) 1997-2020 Free Software Foundation, Inc.
131562         Copying and distribution of this file, with or without
131563         modification, are permitted provided the copyright notice
131564         and this notice are preserved.